Skip to content
This repository was archived by the owner on Apr 23, 2021. It is now read-only.

Commit 4d87c88

Browse files
authored
Release 2.20181205.0 (#50)
1 parent 49e3fae commit 4d87c88

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+447
-124
lines changed

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
22
"java.configuration.updateBuildConfiguration": "disabled"
3-
}
3+
}

CHANGES.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Change Log
22

3+
## Version 2.20181205.0 (2018-12-05)
4+
5+
## New feature: Idempotent customer profile creation in Connect v2
6+
7+
Requests to the CreateCustomer endpoint now include a `idempotency_key` field to
8+
ensure idempotent creation of new profiles.
9+
10+
## New feature: Refund Adjustment fields for Refunds in Connect v1
11+
12+
The Connect SDK now supports refund adjustments for the Connect v1
13+
Refunds API with the addition of multiple new fields in the `Refund` data type
14+
315
## Version 2.20180918.1 (2018-10-24)
416

517
### New feature: Support for Partial Payments in Connect v1

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Add this dependency to your project's POM:
1818
<dependency>
1919
<groupId>com.squareup</groupId>
2020
<artifactId>connect</artifactId>
21-
<version>2.20180918.1</version>
21+
<version>2.20181205.0</version>
2222
<scope>compile</scope>
2323
</dependency>
2424
```
@@ -28,7 +28,7 @@ Add this dependency to your project's POM:
2828
Add this dependency to your project's build file:
2929

3030
```groovy
31-
compile "com.squareup:connect:2.20180918.1"
31+
compile "com.squareup:connect:2.20181205.0"
3232
```
3333

3434
### Build and Install locally
@@ -47,7 +47,7 @@ At first generate the JAR by executing:
4747

4848
Then manually install the following JARs:
4949

50-
* target/connect-2.20180918.1.jar
50+
* target/connect-2.20181205.0.jar
5151
* target/lib/*.jar
5252

5353
## Getting Started

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apply plugin: 'idea'
22
apply plugin: 'eclipse'
33

44
group = 'com.squareup'
5-
version = '2.20180918.1'
5+
version = '2.20181205.0'
66

77
buildscript {
88
repositories {

docs/Card.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**id** | **String** | The card&#39;s unique ID, if any. | [optional]
7+
**id** | **String** | Unique ID for this card. Generated by Square. | [optional]
88
**cardBrand** | [**CardBrandEnum**](#CardBrandEnum) | The card&#39;s brand (such as &#x60;VISA&#x60;). See [CardBrand](#type-cardbrand) for all possible values. | [optional]
9-
**last4** | **String** | The last 4 digits of the card&#39;s number. | [optional]
10-
**expMonth** | **Long** | The month of the card&#39;s expiration date. This value is always between &#x60;1&#x60; and &#x60;12&#x60;, inclusive. | [optional]
9+
**last4** | **String** | The last 4 digits of the card number. | [optional]
10+
**expMonth** | **Long** | The expiration month of the associated card as an integer between 1 and 12. | [optional]
1111
**expYear** | **Long** | The four-digit year of the card&#39;s expiration date. | [optional]
12-
**cardholderName** | **String** | The cardholder name. This value is present only if this object represents a customer&#39;s card on file. | [optional]
13-
**billingAddress** | [**Address**](Address.md) | The card&#39;s billing address. This value is present only if this object represents a customer&#39;s card on file. | [optional]
14-
**fingerprint** | **String** | The unique string fingerprint for the card. The fingerprint is based on the credit card number and is unique to the merchant. If a card is used at multiple locations for the same merchant, it will have the same fingerprint in each case. Note: Fingerprint may not exist on old transactions. | [optional]
12+
**cardholderName** | **String** | The name of the cardholder. | [optional]
13+
**billingAddress** | [**Address**](Address.md) | The billing address for this card. | [optional]
14+
**fingerprint** | **String** | __Not currently set.__ Intended as a Square-assigned identifier, based on the card number, to identify the card across multiple locations within a single application. | [optional]
1515

1616

1717
<a name="CardBrandEnum"></a>

docs/CreateCustomerRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7+
**idempotencyKey** | **String** | The idempotency key for the request. See the [Idempotency](/basics/api101/idempotency) guide for more information. | [optional]
78
**givenName** | **String** | The customer&#39;s given (i.e., first) name. | [optional]
89
**familyName** | **String** | The customer&#39;s family (i.e., last) name. | [optional]
910
**companyName** | **String** | The name of the customer&#39;s company. | [optional]

docs/Customer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
77
**id** | **String** | The customer&#39;s unique ID. |
88
**createdAt** | **String** | The time when the customer was created, in RFC 3339 format. |
99
**updatedAt** | **String** | The time when the customer was last updated, in RFC 3339 format. |
10-
**cards** | [**List&lt;Card&gt;**](Card.md) | The non-confidential details of the customer&#39;s cards on file. | [optional]
10+
**cards** | [**List&lt;Card&gt;**](Card.md) | The payment details of the customer&#39;s cards on file. | [optional]
1111
**givenName** | **String** | The customer&#39;s given (i.e., first) name. | [optional]
1212
**familyName** | **String** | The customer&#39;s family (i.e., last) name. | [optional]
1313
**nickname** | **String** | The customer&#39;s nickname. | [optional]

docs/CustomersApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ Name | Type | Description | Notes
7373
7474
CreateCustomerCard
7575

76-
Adds a card on file to an existing customer. In the United States Square takes care of automatically updating any cards on file that might have expired since you first attached them to a customer. As with charges, calls to &#x60;CreateCustomerCard&#x60; are idempotent. Multiple calls with the same card nonce return the same card record that was created with the provided nonce during the _first_ call.
76+
Adds a card on file to an existing customer. As with charges, calls to &#x60;CreateCustomerCard&#x60; are idempotent. Multiple calls with the same card nonce return the same card record that was created with the provided nonce during the _first_ call.
7777

7878
### Example
7979
```java

docs/Error.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ EXPECTED_FLOAT | &quot;EXPECTED_FLOAT&quot;
6262
EXPECTED_STRING | &quot;EXPECTED_STRING&quot;
6363
EXPECTED_OBJECT | &quot;EXPECTED_OBJECT&quot;
6464
EXPECTED_ARRAY | &quot;EXPECTED_ARRAY&quot;
65+
EXPECTED_MAP | &quot;EXPECTED_MAP&quot;
6566
EXPECTED_BASE64_ENCODED_BYTE_ARRAY | &quot;EXPECTED_BASE64_ENCODED_BYTE_ARRAY&quot;
6667
INVALID_ARRAY_VALUE | &quot;INVALID_ARRAY_VALUE&quot;
6768
INVALID_ENUM_VALUE | &quot;INVALID_ENUM_VALUE&quot;
@@ -76,6 +77,7 @@ INVALID_EXPIRATION_YEAR | &quot;INVALID_EXPIRATION_YEAR&quot;
7677
INVALID_EXPIRATION_DATE | &quot;INVALID_EXPIRATION_DATE&quot;
7778
UNSUPPORTED_CARD_BRAND | &quot;UNSUPPORTED_CARD_BRAND&quot;
7879
UNSUPPORTED_ENTRY_METHOD | &quot;UNSUPPORTED_ENTRY_METHOD&quot;
80+
INVALID_ENCRYPTED_CARD | &quot;INVALID_ENCRYPTED_CARD&quot;
7981
INVALID_CARD | &quot;INVALID_CARD&quot;
8082
DELAYED_TRANSACTION_EXPIRED | &quot;DELAYED_TRANSACTION_EXPIRED&quot;
8183
DELAYED_TRANSACTION_CANCELED | &quot;DELAYED_TRANSACTION_CANCELED&quot;

docs/ErrorCode.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@
7676

7777
* `EXPECTED_ARRAY` (value: `"EXPECTED_ARRAY"`)
7878

79+
* `EXPECTED_MAP` (value: `"EXPECTED_MAP"`)
80+
7981
* `EXPECTED_BASE64_ENCODED_BYTE_ARRAY` (value: `"EXPECTED_BASE64_ENCODED_BYTE_ARRAY"`)
8082

8183
* `INVALID_ARRAY_VALUE` (value: `"INVALID_ARRAY_VALUE"`)
@@ -104,6 +106,8 @@
104106

105107
* `UNSUPPORTED_ENTRY_METHOD` (value: `"UNSUPPORTED_ENTRY_METHOD"`)
106108

109+
* `INVALID_ENCRYPTED_CARD` (value: `"INVALID_ENCRYPTED_CARD"`)
110+
107111
* `INVALID_CARD` (value: `"INVALID_CARD"`)
108112

109113
* `DELAYED_TRANSACTION_EXPIRED` (value: `"DELAYED_TRANSACTION_EXPIRED"`)

0 commit comments

Comments
 (0)