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

Commit 9ff593f

Browse files
authored
Merge pull request #81 from square/release/2.20190925.0
Release 2.20190925.0
2 parents bdab990 + 64a4a34 commit 9ff593f

File tree

296 files changed

+2718
-1071
lines changed

Some content is hidden

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

296 files changed

+2718
-1071
lines changed

CHANGES.md

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

3+
## Version 2.20190925.0 (2019-09-25)
4+
5+
* **GA release**: All SDKs have been updated to support the new Merchants API.
6+
7+
* **Beta release**: All SDKs have been updated to support the new endpoints (RetrieveLocation, UpdateLocation) added to the Locations API.
8+
9+
* **Beta release**: All SDKs have been updated to support the new field (`mcc`) added to the `Location` type.
10+
11+
* **GA release**: All SDKs have been updated to support the new field (`bin`) added to the `Card` type.
12+
13+
* **GA release**: All SDKs have been updated to support the new `CardPaymentDetails` fields (`verification_results`, `statement_description`, and `verification_method`).
14+
15+
* **GA release**: All SDKs have been updated to support the new `Payment` field, (`employee_id`).
16+
17+
318
## Version 2.20190814.2 (2019-08-23)
419

520
* **Bug fix**: Fixed path parameters for `UpdateOrder`

README.md

+13-3
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Add this dependency to your project's POM:
2626
<dependency>
2727
<groupId>com.squareup</groupId>
2828
<artifactId>connect</artifactId>
29-
<version>2.20190814.2</version>
29+
<version>2.20190925.0</version>
3030
<scope>compile</scope>
3131
</dependency>
3232
```
@@ -36,7 +36,7 @@ Add this dependency to your project's POM:
3636
Add this dependency to your project's build file:
3737

3838
```groovy
39-
compile "com.squareup:connect:2.20190814.2"
39+
compile "com.squareup:connect:2.20190925.0"
4040
```
4141

4242
### Option 3: Build and Install locally
@@ -78,7 +78,7 @@ At first generate the JAR by executing:
7878

7979
Then manually install the following JARs:
8080

81-
* target/connect-2.20190814.2.jar
81+
* target/connect-2.20190925.0.jar
8282
* target/lib/*.jar
8383

8484
## Getting Started
@@ -201,6 +201,9 @@ Class | Method | HTTP request | Description
201201
*LaborApi* | [**updateShift**](docs/LaborApi.md#updateShift) | **PUT** /v2/labor/shifts/{id} | UpdateShift
202202
*LaborApi* | [**updateWorkweekConfig**](docs/LaborApi.md#updateWorkweekConfig) | **PUT** /v2/labor/workweek-configs/{id} | UpdateWorkweekConfig
203203
*LocationsApi* | [**listLocations**](docs/LocationsApi.md#listLocations) | **GET** /v2/locations | ListLocations
204+
*LocationsApi* | [**retrieveLocation**](docs/LocationsApi.md#retrieveLocation) | **GET** /v2/locations/{location_id} | RetrieveLocation
205+
*LocationsApi* | [**updateLocation**](docs/LocationsApi.md#updateLocation) | **PUT** /v2/locations/{location_id} | UpdateLocation
206+
*MerchantsApi* | [**retrieveMerchant**](docs/MerchantsApi.md#retrieveMerchant) | **GET** /v2/merchants/{merchant_id} | RetrieveMerchant
204207
*MobileAuthorizationApi* | [**createMobileAuthorizationCode**](docs/MobileAuthorizationApi.md#createMobileAuthorizationCode) | **POST** /mobile/authorization-code | CreateMobileAuthorizationCode
205208
*OAuthApi* | [**obtainToken**](docs/OAuthApi.md#obtainToken) | **POST** /oauth2/token | ObtainToken
206209
*OAuthApi* | [**renewToken**](docs/OAuthApi.md#renewToken) | **POST** /oauth2/clients/{client_id}/access-token/renew | RenewToken
@@ -486,9 +489,12 @@ Class | Method | HTTP request | Description
486489
- [MeasurementUnitCustom](docs/MeasurementUnitCustom.md)
487490
- [MeasurementUnitGeneric](docs/MeasurementUnitGeneric.md)
488491
- [MeasurementUnitLength](docs/MeasurementUnitLength.md)
492+
- [MeasurementUnitTime](docs/MeasurementUnitTime.md)
489493
- [MeasurementUnitUnitType](docs/MeasurementUnitUnitType.md)
490494
- [MeasurementUnitVolume](docs/MeasurementUnitVolume.md)
491495
- [MeasurementUnitWeight](docs/MeasurementUnitWeight.md)
496+
- [Merchant](docs/Merchant.md)
497+
- [MerchantStatus](docs/MerchantStatus.md)
492498
- [ModelBreak](docs/ModelBreak.md)
493499
- [Money](docs/Money.md)
494500
- [ObtainTokenRequest](docs/ObtainTokenRequest.md)
@@ -556,6 +562,8 @@ Class | Method | HTTP request | Description
556562
- [RetrieveInventoryPhysicalCountResponse](docs/RetrieveInventoryPhysicalCountResponse.md)
557563
- [RetrieveLocationRequest](docs/RetrieveLocationRequest.md)
558564
- [RetrieveLocationResponse](docs/RetrieveLocationResponse.md)
565+
- [RetrieveMerchantRequest](docs/RetrieveMerchantRequest.md)
566+
- [RetrieveMerchantResponse](docs/RetrieveMerchantResponse.md)
559567
- [RetrieveTransactionRequest](docs/RetrieveTransactionRequest.md)
560568
- [RetrieveTransactionResponse](docs/RetrieveTransactionResponse.md)
561569
- [RevokeTokenRequest](docs/RevokeTokenRequest.md)
@@ -610,6 +618,8 @@ Class | Method | HTTP request | Description
610618
- [UpdateItemModifierListsResponse](docs/UpdateItemModifierListsResponse.md)
611619
- [UpdateItemTaxesRequest](docs/UpdateItemTaxesRequest.md)
612620
- [UpdateItemTaxesResponse](docs/UpdateItemTaxesResponse.md)
621+
- [UpdateLocationRequest](docs/UpdateLocationRequest.md)
622+
- [UpdateLocationResponse](docs/UpdateLocationResponse.md)
613623
- [UpdateOrderRequest](docs/UpdateOrderRequest.md)
614624
- [UpdateOrderResponse](docs/UpdateOrderResponse.md)
615625
- [UpdateShiftRequest](docs/UpdateShiftRequest.md)

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.20190814.2'
5+
version = '2.20190925.0'
66

77
buildscript {
88
repositories {

docs/AdditionalRecipient.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
1111
**locationId** | **String** | The location ID for a recipient (other than the merchant) receiving a portion of this tender. |
1212
**description** | **String** | The description of the additional recipient. |
1313
**amountMoney** | [**Money**](Money.md) | The amount of money distributed to the recipient. |
14-
**receivableId** | **String** | The unique ID for this [AdditionalRecipientReceivable](#type-additionalrecipientreceivable), assigned by the server. | [optional]
14+
**receivableId** | **String** | The unique ID for this &#x60;AdditionalRecipientReceivable&#x60;, assigned by the server. | [optional]
1515

1616

1717

docs/BatchChangeInventoryRequest.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
## Properties
99
Name | Type | Description | Notes
1010
------------ | ------------- | ------------- | -------------
11-
**idempotencyKey** | **String** | A client-supplied, universally unique identifier (UUID) for the request. See [Idempotency](/basics/api101/idempotency) in the [API Development 101](/basics/api101/overview) section for more information. | [optional]
11+
**idempotencyKey** | **String** | A client-supplied, universally unique identifier (UUID) for the request. See [Idempotency](https://developer.squareup.com/docs/basics/api101/idempotency) in the [API Development 101](https://developer.squareup.com/docs/basics/api101/overview) section for more information. | [optional]
1212
**changes** | [**List&lt;InventoryChange&gt;**](InventoryChange.md) | The set of physical counts and inventory adjustments to be made. Changes are applied based on the client-supplied timestamp and may be sent out of order. Max size is 100 changes. | [optional]
1313
**ignoreUnchangedCounts** | **Boolean** | Indicates whether the current physical count should be ignored if the quantity is unchanged since the last physical count. Default: &#x60;true&#x60;. | [optional]
1414

docs/BatchDeleteCatalogObjectsRequest.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
## Properties
99
Name | Type | Description | Notes
1010
------------ | ------------- | ------------- | -------------
11-
**objectIds** | **List&lt;String&gt;** | The IDs of the [CatalogObject](#type-catalogobject)s to be deleted. When an object is deleted, other objects in the graph that depend on that object will be deleted as well (for example, deleting a [CatalogItem](#type-catalogitem) will delete its [CatalogItemVariation](#type-catalogitemvariation)s). | [optional]
11+
**objectIds** | **List&lt;String&gt;** | The IDs of the &#x60;CatalogObject&#x60;s to be deleted. When an object is deleted, other objects in the graph that depend on that object will be deleted as well (for example, deleting a &#x60;CatalogItem](#type-catalogitem) will delete its [CatalogItemVariation&#x60;. | [optional]
1212

1313

1414

docs/BatchDeleteCatalogObjectsResponse.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
## Properties
99
Name | Type | Description | Notes
1010
------------ | ------------- | ------------- | -------------
11-
**errors** | [**List&lt;Error&gt;**](Error.md) | The set of [Error](#type-error)s encountered. | [optional]
12-
**deletedObjectIds** | **List&lt;String&gt;** | The IDs of all [CatalogObject](#type-catalogobject)s deleted by this request. | [optional]
11+
**errors** | [**List&lt;Error&gt;**](Error.md) | The set of &#x60;Error&#x60;s encountered. | [optional]
12+
**deletedObjectIds** | **List&lt;String&gt;** | The IDs of all &#x60;CatalogObject&#x60;s deleted by this request. | [optional]
1313
**deletedAt** | **String** | The database [timestamp](#workingwithdates) of this deletion in RFC 3339 format, e.g., \&quot;2016-09-04T23:59:33.123Z\&quot;. | [optional]
1414

1515

docs/BatchRetrieveCatalogObjectsRequest.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
## Properties
99
Name | Type | Description | Notes
1010
------------ | ------------- | ------------- | -------------
11-
**objectIds** | **List&lt;String&gt;** | The IDs of the [CatalogObject](#type-catalogobject)s to be retrieved. |
12-
**includeRelatedObjects** | **Boolean** | If &#x60;true&#x60;, the response will include additional objects that are related to the requested objects, as follows: If the &#x60;objects&#x60; field of the response contains a [CatalogItem](#type-catalogitem), its associated [CatalogCategory](#type-catalogcategory), [CatalogTax](#type-catalogtax)es, [CatalogImage](#type-catalogimage)s and [CatalogModifierList](#type-catalogmodifierlist)s will be returned in the &#x60;related_objects&#x60; field of the response. If the &#x60;objects&#x60; field of the response contains a [CatalogItemVariation](#type-catalogitemvariation), its parent [CatalogItem](#type-catalogitem) will be returned in the &#x60;related_objects&#x60; field of the response. | [optional]
11+
**objectIds** | **List&lt;String&gt;** | The IDs of the &#x60;CatalogObject&#x60;s to be retrieved. |
12+
**includeRelatedObjects** | **Boolean** | If &#x60;true&#x60;, the response will include additional objects that are related to the requested objects, as follows: If the &#x60;objects&#x60; field of the response contains a &#x60;CatalogItem&#x60;, its associated &#x60;CatalogCategory](#type-catalogcategory), [CatalogTax&#x60;es, &#x60;CatalogImage](#type-catalogimage)s and [CatalogModifierList&#x60;s will be returned in the &#x60;related_objects&#x60; field of the response. If the &#x60;objects&#x60; field of the response contains a &#x60;CatalogItemVariation&#x60;, its parent &#x60;CatalogItem&#x60; will be returned in the &#x60;related_objects&#x60; field of the response. | [optional]
1313

1414

1515

docs/BatchRetrieveCatalogObjectsResponse.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
## Properties
99
Name | Type | Description | Notes
1010
------------ | ------------- | ------------- | -------------
11-
**errors** | [**List&lt;Error&gt;**](Error.md) | The set of [Error](#type-error)s encountered. | [optional]
12-
**objects** | [**List&lt;CatalogObject&gt;**](CatalogObject.md) | A list of [CatalogObject](#type-catalogobject)s returned. | [optional]
13-
**relatedObjects** | [**List&lt;CatalogObject&gt;**](CatalogObject.md) | A list of [CatalogObject](#type-catalogobject)s referenced by the object in the &#x60;objects&#x60; field. | [optional]
11+
**errors** | [**List&lt;Error&gt;**](Error.md) | The set of &#x60;Error&#x60;s encountered. | [optional]
12+
**objects** | [**List&lt;CatalogObject&gt;**](CatalogObject.md) | A list of &#x60;CatalogObject&#x60;s returned. | [optional]
13+
**relatedObjects** | [**List&lt;CatalogObject&gt;**](CatalogObject.md) | A list of &#x60;CatalogObject&#x60;s referenced by the object in the &#x60;objects&#x60; field. | [optional]
1414

1515

1616

docs/BatchRetrieveInventoryChangesRequest.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
## Properties
99
Name | Type | Description | Notes
1010
------------ | ------------- | ------------- | -------------
11-
**catalogObjectIds** | **List&lt;String&gt;** | Filters results by [CatalogObject](#type-catalogobject) ID. Only applied when set. Default: unset. | [optional]
12-
**locationIds** | **List&lt;String&gt;** | Filters results by [Location](#type-location) ID. Only applied when set. Default: unset. | [optional]
13-
**types** | **List&lt;String&gt;** | Filters results by [InventoryChangeType](#type-inventorychangetype). Default: [&#x60;PHYSICAL_COUNT&#x60;, &#x60;ADJUSTMENT&#x60;]. &#x60;TRANSFER&#x60; is not supported as a filter. See [InventoryChangeType](#type-inventorychangetype) for possible values | [optional]
14-
**states** | **List&lt;String&gt;** | Filters &#x60;ADJUSTMENT&#x60; query results by [InventoryState](#type-inventorystate). Only applied when set. Default: unset. See [InventoryState](#type-inventorystate) for possible values | [optional]
11+
**catalogObjectIds** | **List&lt;String&gt;** | Filters results by &#x60;CatalogObject&#x60; ID. Only applied when set. Default: unset. | [optional]
12+
**locationIds** | **List&lt;String&gt;** | Filters results by &#x60;Location&#x60; ID. Only applied when set. Default: unset. | [optional]
13+
**types** | **List&lt;String&gt;** | Filters results by &#x60;InventoryChangeType&#x60;. Default: [&#x60;PHYSICAL_COUNT&#x60;, &#x60;ADJUSTMENT&#x60;]. &#x60;TRANSFER&#x60; is not supported as a filter. See [InventoryChangeType](#type-inventorychangetype) for possible values | [optional]
14+
**states** | **List&lt;String&gt;** | Filters &#x60;ADJUSTMENT&#x60; query results by &#x60;InventoryState&#x60;. Only applied when set. Default: unset. See [InventoryState](#type-inventorystate) for possible values | [optional]
1515
**updatedAfter** | **String** | Provided as an RFC 3339 timestamp. Returns results whose &#x60;created_at&#x60; or &#x60;calculated_at&#x60; value is after the given time. Default: UNIX epoch (&#x60;1970-01-01T00:00:00Z&#x60;). | [optional]
1616
**updatedBefore** | **String** | Provided as an RFC 3339 timestamp. Returns results whose &#x60;created_at&#x60; or &#x60;calculated_at&#x60; value is strictly before the given time. Default: UNIX epoch (&#x60;1970-01-01T00:00:00Z&#x60;). | [optional]
17-
**cursor** | **String** | A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query. See [Pagination](/basics/api101/pagination) for more information. | [optional]
17+
**cursor** | **String** | A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query. See [Pagination](https://developer.squareup.com/docs/basics/api101/pagination) for more information. | [optional]
1818

1919

2020

docs/BatchRetrieveInventoryChangesResponse.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
1010
------------ | ------------- | ------------- | -------------
1111
**errors** | [**List&lt;Error&gt;**](Error.md) | Any errors that occurred during the request. | [optional]
1212
**changes** | [**List&lt;InventoryChange&gt;**](InventoryChange.md) | The current calculated inventory changes for the requested objects and locations. | [optional]
13-
**cursor** | **String** | The pagination cursor to be used in a subsequent request. If unset, this is the final response. See [Pagination](/basics/api101/pagination) for more information. | [optional]
13+
**cursor** | **String** | The pagination cursor to be used in a subsequent request. If unset, this is the final response. See [Pagination](https://developer.squareup.com/docs/basics/api101/pagination) for more information. | [optional]
1414

1515

1616

docs/BatchRetrieveInventoryCountsRequest.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
## Properties
99
Name | Type | Description | Notes
1010
------------ | ------------- | ------------- | -------------
11-
**catalogObjectIds** | **List&lt;String&gt;** | Filters results by [CatalogObject](#type-catalogobject) ID. Only applied when set. Default: unset. | [optional]
12-
**locationIds** | **List&lt;String&gt;** | Filters results by [Location](#type-location) ID. Only applied when set. Default: unset. | [optional]
11+
**catalogObjectIds** | **List&lt;String&gt;** | Filters results by &#x60;CatalogObject&#x60; ID. Only applied when set. Default: unset. | [optional]
12+
**locationIds** | **List&lt;String&gt;** | Filters results by &#x60;Location&#x60; ID. Only applied when set. Default: unset. | [optional]
1313
**updatedAfter** | **String** | Provided as an RFC 3339 timestamp. Returns results whose &#x60;calculated_at&#x60; value is after the given time. Default: UNIX epoch (&#x60;1970-01-01T00:00:00Z&#x60;). | [optional]
14-
**cursor** | **String** | A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query. See [Pagination](/basics/api101/pagination) for more information. | [optional]
14+
**cursor** | **String** | A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query. See [Pagination](https://developer.squareup.com/docs/basics/api101/pagination) for more information. | [optional]
1515

1616

1717

docs/BatchRetrieveInventoryCountsResponse.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
1010
------------ | ------------- | ------------- | -------------
1111
**errors** | [**List&lt;Error&gt;**](Error.md) | Any errors that occurred during the request. | [optional]
1212
**counts** | [**List&lt;InventoryCount&gt;**](InventoryCount.md) | The current calculated inventory counts for the requested objects and locations. | [optional]
13-
**cursor** | **String** | The pagination cursor to be used in a subsequent request. If unset, this is the final response. See [Pagination](/basics/api101/pagination) for more information. | [optional]
13+
**cursor** | **String** | The pagination cursor to be used in a subsequent request. If unset, this is the final response. See [Pagination](https://developer.squareup.com/docs/basics/api101/pagination) for more information. | [optional]
1414

1515

1616

0 commit comments

Comments
 (0)