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

Commit 2afb4c6

Browse files
authored
Merge pull request #71 from square/release/2.20190612.1
Release 2.20190612.1
2 parents c25be31 + bad7d78 commit 2afb4c6

25 files changed

+157
-44
lines changed

CHANGES.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Change Log
22

3+
## Version 2.20190612.1 (2019-06-26)
4+
5+
* **Bug fix**: `Transaction.Charge` and `Customers.CreateCustomerCard` request objects — now include the `verification_token` required for [Strong Customer Authentication](https://developer.squareup.com/docs/sca-overview).
6+
37
## Version 2.20190612.0 (2019-06-12)
48

59
* **BETA releases**:

README.md

+4-3
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.20190612.0</version>
21+
<version>2.20190612.1</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.20190612.0"
31+
compile "com.squareup:connect:2.20190612.1"
3232
```
3333

3434
### Option 3: Build and Install locally
@@ -70,7 +70,7 @@ At first generate the JAR by executing:
7070

7171
Then manually install the following JARs:
7272

73-
* target/connect-2.20190612.0.jar
73+
* target/connect-2.20190612.1.jar
7474
* target/lib/*.jar
7575

7676
## Getting Started
@@ -694,6 +694,7 @@ Class | Method | HTTP request | Description
694694
- [V1VariationPricingType](docs/V1VariationPricingType.md)
695695
- [VoidTransactionRequest](docs/VoidTransactionRequest.md)
696696
- [VoidTransactionResponse](docs/VoidTransactionResponse.md)
697+
- [WebhookEvents](docs/WebhookEvents.md)
697698
- [Weekday](docs/Weekday.md)
698699
- [WorkweekConfig](docs/WorkweekConfig.md)
699700

build.gradle

+1-1
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.20190612.0'
5+
version = '2.20190612.1'
66

77
buildscript {
88
repositories {

docs/CatalogObject.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
### Description
55

6-
The wrapper object for object types in the Catalog data model. The type of a particular `CatalogObject` is determined by the value of `type` and only the corresponding data field may be set. - if type = `ITEM`, only `item_data` will be populated and it will contain a valid [CatalogItem](#type-catalogitem) object. - if type = `ITEM_VARIATION`, only `item_variation_data` will be populated and it will contain a valid [CatalogItemVariation](#type-catalogitemvariation) object. - if type = `MODIFIER`, only `modifier_data` will be populated and it will contain a valid [CatalogModifier](#type-catalogmodifier) object. - if type = `MODIFIER_LIST`, only `modifier_list_data` will be populated and it will contain a valid [CatalogModifierList](#type-catalogmodifierlist) object. - if type = `CATEGORY`, only `category_data` will be populated and it will contain a valid [CatalogCategory](#type-catalogcategory) object. - if type = `DISCOUNT`, only `discount_data` will be populated and it will contain a valid [CatalogDiscount](#type-catalogdiscount) object. - if type = `TAX`, only `tax_data` will be populated and it will contain a valid [CatalogTax](#type-catalogtax) object. - if type = `IMAGE`, only `image_data` will be populated and it will contain a valid [CatalogImage](#type-catalogimage) object. For a more detailed discussion of the Catalog data model, please see the [Catalog Overview](/products/catalog/overview).
6+
The wrapper object for object types in the Catalog data model. The type of a particular `CatalogObject` is determined by the value of `type` and only the corresponding data field may be set. - if type = `ITEM`, only `item_data` will be populated and it will contain a valid [CatalogItem](#type-catalogitem) object. - if type = `ITEM_VARIATION`, only `item_variation_data` will be populated and it will contain a valid [CatalogItemVariation](#type-catalogitemvariation) object. - if type = `MODIFIER`, only `modifier_data` will be populated and it will contain a valid [CatalogModifier](#type-catalogmodifier) object. - if type = `MODIFIER_LIST`, only `modifier_list_data` will be populated and it will contain a valid [CatalogModifierList](#type-catalogmodifierlist) object. - if type = `CATEGORY`, only `category_data` will be populated and it will contain a valid [CatalogCategory](#type-catalogcategory) object. - if type = `DISCOUNT`, only `discount_data` will be populated and it will contain a valid [CatalogDiscount](#type-catalogdiscount) object. - if type = `TAX`, only `tax_data` will be populated and it will contain a valid [CatalogTax](#type-catalogtax) object. - if type = `IMAGE`, only `image_data` will be populated and it will contain a valid [CatalogImage](#type-catalogimage) object. For a more detailed discussion of the Catalog data model, please see the [Design a Catalog](/catalog-api/design-a-catalog) guide.
77

88
## Properties
99
Name | Type | Description | Notes

docs/ChargeRequest.md

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Name | Type | Description | Notes
2121
**buyerEmailAddress** | **String** | The buyer&#39;s email address, if available. | [optional]
2222
**orderId** | **String** | The ID of the order to associate with this transaction. If you provide this value, the &#x60;amount_money&#x60; value of your request must __exactly match__ the value of the order&#39;s &#x60;total_money&#x60; field. | [optional]
2323
**additionalRecipients** | [**List&lt;AdditionalRecipient&gt;**](AdditionalRecipient.md) | The basic primitive of multi-party transaction. The value is optional. The transaction facilitated by you can be split from here. If you provide this value, the &#x60;amount_money&#x60; value in your additional_recipients must not be more than 90% of the &#x60;amount_money&#x60; value in the charge request. The &#x60;location_id&#x60; must be the valid location of the app owner merchant. This field requires the &#x60;PAYMENTS_WRITE_ADDITIONAL_RECIPIENTS&#x60; OAuth permission. This field is currently not supported in sandbox. | [optional]
24+
**verificationToken** | **String** | An identifying token generated by &#x60;SqPaymentForm.verifyBuyer()&#x60;. Verification tokens encapsulate customer device information and 3-D Secure challenge results to indicate that Square has verified the buyer identity. | [optional]
2425

2526

2627

docs/CreateCustomerCardRequest.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ Defines the fields that are included in the request body of a request to the Cre
88
## Properties
99
Name | Type | Description | Notes
1010
------------ | ------------- | ------------- | -------------
11-
**cardNonce** | **String** | A card nonce representing the credit card to link to the customer. Card nonces are generated by the &#x60;SqPaymentForm&#x60; that buyers enter their card information into. See [Embedding the payment form](/payments/sqpaymentform/overview) for more information. __Note:__ Card nonces generated by digital wallets (e.g., Apple Pay) cannot be used to create a customer card. |
11+
**cardNonce** | **String** | A card nonce representing the credit card to link to the customer. Card nonces are generated by the &#x60;SqPaymentForm&#x60; that buyers enter their card information into. See [Embedding the payment form](/payment-form/payment-form-walkthrough) for more information. __Note:__ Card nonces generated by digital wallets (e.g., Apple Pay) cannot be used to create a customer card. |
1212
**billingAddress** | [**Address**](Address.md) | Address information for the card on file. Only the &#x60;postal_code&#x60; field is required for payments in the US and Canada. | [optional]
13-
**cardholderName** | **String** | The cardholder&#39;s name. | [optional]
13+
**cardholderName** | **String** | The full name printed on the credit card. | [optional]
14+
**verificationToken** | **String** | An identifying token generated by &#x60;SqPaymentForm.verifyBuyer()&#x60;. Verification tokens encapsulate customer device information and 3-D Secure challenge results to indicate that Square has verified the buyer identity. | [optional]
1415

1516

1617

docs/CustomersApi.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
9191
oauth2.setAccessToken("YOUR ACCESS TOKEN");
9292

9393
CustomersApi apiInstance = new CustomersApi();
94-
String customerId = "customerId_example"; // String | The ID of the customer to link the card on file to.
94+
String customerId = "customerId_example"; // String | The Square ID of the customer profile the card is linked to.
9595
CreateCustomerCardRequest body = new CreateCustomerCardRequest(); // CreateCustomerCardRequest | An object containing the fields to POST for the request. See the corresponding object definition for field details.
9696
try {
9797
CreateCustomerCardResponse result = apiInstance.createCustomerCard(customerId, body);
@@ -106,7 +106,7 @@ try {
106106

107107
Name | Type | Description | Notes
108108
------------- | ------------- | ------------- | -------------
109-
**customerId** | **String**| The ID of the customer to link the card on file to. |
109+
**customerId** | **String**| The Square ID of the customer profile the card is linked to. |
110110
**body** | [**CreateCustomerCardRequest**](CreateCustomerCardRequest.md)| An object containing the fields to POST for the request. See the corresponding object definition for field details. |
111111

112112
### Return type

docs/OAuthApi.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ No authorization required
6060
6161
RenewToken
6262

63-
&#x60;RenewToken&#x60; is deprecated. For information about refreshing OAuth access tokens, see [Renew OAuth Token](/authz/oauth/cookbook/oauth-renew). Renews an OAuth access token before it expires. OAuth access tokens besides your application&#39;s personal access token expire after __30 days__. You can also renew expired tokens within __15 days__ of their expiration. You cannot renew an access token that has been expired for more than 15 days. Instead, the associated user must re-complete the OAuth flow from the beginning. __Important:__ The &#x60;Authorization&#x60; header for this endpoint must have the following format: &#x60;&#x60;&#x60; Authorization: Client APPLICATION_SECRET &#x60;&#x60;&#x60; Replace &#x60;APPLICATION_SECRET&#x60; with the application secret on the Credentials page in the [application dashboard](https://connect.squareup.com/apps).
63+
&#x60;RenewToken&#x60; is deprecated. For information about refreshing OAuth access tokens, see [Renew OAuth Token](https://developer.squareup.com/docs/oauth-api/cookbook/renew-oauth-tokens). Renews an OAuth access token before it expires. OAuth access tokens besides your application&#39;s personal access token expire after __30 days__. You can also renew expired tokens within __15 days__ of their expiration. You cannot renew an access token that has been expired for more than 15 days. Instead, the associated user must re-complete the OAuth flow from the beginning. __Important:__ The &#x60;Authorization&#x60; header for this endpoint must have the following format: &#x60;&#x60;&#x60; Authorization: Client APPLICATION_SECRET &#x60;&#x60;&#x60; Replace &#x60;APPLICATION_SECRET&#x60; with the application secret on the Credentials page in the [application dashboard](https://connect.squareup.com/apps).
6464

6565
### Example
6666
```java

docs/OrderLineItem.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
1010
------------ | ------------- | ------------- | -------------
1111
**uid** | **String** | Unique ID that identifies the line item only within this order. This field is read-only. | [optional]
1212
**name** | **String** | The name of the line item. | [optional]
13-
**quantity** | **String** | The quantity purchased, formatted as a decimal number. For example: &#x60;\&quot;3\&quot;&#x60;. Line items with a &#x60;quantity_unit&#x60; can have non-integer quantities. For example: &#x60;\&quot;1.70000\&quot;&#x60;. Orders Hub and older versions of Connect do not support non-integer quantities. See [Decimal quantities with Orders hub and older versions of Connect](/more-apis/orders/overview#decimal-quantities). |
13+
**quantity** | **String** | The quantity purchased, formatted as a decimal number. For example: &#x60;\&quot;3\&quot;&#x60;. Line items with a &#x60;quantity_unit&#x60; can have non-integer quantities. For example: &#x60;\&quot;1.70000\&quot;&#x60;. |
1414
**quantityUnit** | [**OrderQuantityUnit**](OrderQuantityUnit.md) | The unit and precision that this line item&#39;s quantity is measured in. | [optional]
1515
**note** | **String** | The note of the line item. | [optional]
1616
**catalogObjectId** | **String** | The [CatalogItemVariation](#type-catalogitemvariation) id applied to this line item. | [optional]

docs/OrderQuantityUnit.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Contains the measurement unit for a quantity and a precision which specifies the
99
Name | Type | Description | Notes
1010
------------ | ------------- | ------------- | -------------
1111
**measurementUnit** | [**MeasurementUnit**](MeasurementUnit.md) | A [MeasurementUnit](#type-measurementunit) that represents the unit of measure for the quantity. | [optional]
12-
**precision** | **Integer** | For non-integer quantities, represents the number of digits after the decimal point that are recorded for this quantity. For example, a precision of 1 allows quantities like &#x60;\&quot;1.0\&quot;&#x60; and &#x60;\&quot;1.1\&quot;&#x60;, but not &#x60;\&quot;1.01\&quot;&#x60;. Min: 0. Max: 5. Orders Hub and older versions of Connect do not support non-integer quantities. See [Decimal quantities with Orders hub and older versions of Connect](/more-apis/orders/overview#decimal-quantities). | [optional]
12+
**precision** | **Integer** | For non-integer quantities, represents the number of digits after the decimal point that are recorded for this quantity. For example, a precision of 1 allows quantities like &#x60;\&quot;1.0\&quot;&#x60; and &#x60;\&quot;1.1\&quot;&#x60;, but not &#x60;\&quot;1.01\&quot;&#x60;. Min: 0. Max: 5. | [optional]
1313

1414

1515

docs/V1CashDrawerShift.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
### Description
55

6-
V1CashDrawerShift
6+
Contains details for a single cash drawer shift.
77

88
## Properties
99
Name | Type | Description | Notes
@@ -17,7 +17,7 @@ Name | Type | Description | Notes
1717
**openingEmployeeId** | **String** | The ID of the employee that started the cash drawer shift. | [optional]
1818
**endingEmployeeId** | **String** | The ID of the employee that ended the cash drawer shift. | [optional]
1919
**closingEmployeeId** | **String** | The ID of the employee that closed the cash drawer shift by auditing the cash drawer&#39;s contents. | [optional]
20-
**description** | **String** | The time when the timecard was created, in ISO 8601 format. | [optional]
20+
**description** | **String** | A description of the cash drawer shift. | [optional]
2121
**startingCashMoney** | [**V1Money**](V1Money.md) | The amount of money in the cash drawer at the start of the shift. | [optional]
2222
**cashPaymentMoney** | [**V1Money**](V1Money.md) | The amount of money added to the cash drawer from cash payments. | [optional]
2323
**cashRefundsMoney** | [**V1Money**](V1Money.md) | The amount of money removed from the cash drawer from cash refunds. This value is always negative or zero. | [optional]

docs/V1Item.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Name | Type | Description | Notes
1919
**masterImage** | [**V1ItemImage**](V1ItemImage.md) | The item&#39;s master image, if any. | [optional]
2020
**category** | [**V1Category**](V1Category.md) | The category the item belongs to, if any. | [optional]
2121
**variations** | [**List&lt;V1Variation&gt;**](V1Variation.md) | The item&#39;s variations. You must specify at least one variation. | [optional]
22-
**modifierLists** | [**List&lt;V1Variation&gt;**](V1Variation.md) | The modifier lists that apply to the item, if any. | [optional]
22+
**modifierLists** | [**List&lt;V1ModifierList&gt;**](V1ModifierList.md) | The modifier lists that apply to the item, if any. | [optional]
2323
**fees** | [**List&lt;V1Fee&gt;**](V1Fee.md) | The fees that apply to the item, if any. | [optional]
2424
**taxable** | **Boolean** | Deprecated. This field is not used. | [optional]
2525
**categoryId** | **String** | The ID of the item&#39;s category, if any. | [optional]

docs/WebhookEvents.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
# WebhookEvents
3+
4+
## Enum
5+
6+
7+
* `UPDATED` (value: `"inventory.count.updated"`)
8+
9+
10+

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>connect</artifactId>
66
<packaging>jar</packaging>
77
<name>connect</name>
8-
<version>2.20190612.0</version>
8+
<version>2.20190612.1</version>
99
<url>https://github.com/square/connect-java-sdk/</url>
1010
<description>Java client library for the Square Connect API</description>
1111
<scm>

src/main/java/com/squareup/connect/ApiClient.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public ApiClient() {
7373
this.dateFormat = new RFC3339DateFormat();
7474

7575
// Set default User-Agent.
76-
setUserAgent("Square-Connect-Java/2.20190612.0");
76+
setUserAgent("Square-Connect-Java/2.20190612.1");
7777

7878
// Setup authentications (key: authentication name, value: authentication).
7979
authentications = new HashMap<String, Authentication>();

src/main/java/com/squareup/connect/api/CustomersApi.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public CreateCustomerResponse createCustomer(CreateCustomerRequest body) throws
133133
/**
134134
* CreateCustomerCard
135135
* 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. Cards on file are automatically updated on a monthly basis to confirm they are still valid and can be charged.
136-
* @param customerId The ID of the customer to link the card on file to. (required)
136+
* @param customerId The Square ID of the customer profile the card is linked to. (required)
137137
* @param body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required)
138138
* @return CreateCustomerCardResponse
139139
* @throws ApiException if fails to make API call
@@ -183,7 +183,7 @@ public CreateCustomerCardResponse createCustomerCard(String customerId, CreateCu
183183
/**
184184
* CreateCustomerCard
185185
* 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. Cards on file are automatically updated on a monthly basis to confirm they are still valid and can be charged.
186-
* @param customerId The ID of the customer to link the card on file to. (required)
186+
* @param customerId The Square ID of the customer profile the card is linked to. (required)
187187
* @param body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required)
188188
* @return CompleteResponse<CreateCustomerCardResponse>
189189
* @throws ApiException if fails to make API call

0 commit comments

Comments
 (0)