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

Commit

Permalink
Merge pull request #145 from square/release/2.25.0
Browse files Browse the repository at this point in the history
Release 2.25.0
  • Loading branch information
jessdelacruzsantos committed Nov 20, 2019
2 parents da49233 + cc1dea6 commit 049482b
Show file tree
Hide file tree
Showing 481 changed files with 5,645 additions and 2,086 deletions.
13 changes: 13 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
# Change Log

## Version 2.25.0 (2019-11-20)
!!!important
Square has begun the retirement process for Connect v1 APIs. See the [Connect v1 Retirement](/migrate-from-v1) information page for details.
!!!

* __GA releases:__ SDKs now support the new `modify_tax_basis` field to Discounts and v2 Sandbox
* __BETA releases:__ SDKs now support the Shifts API webhooks for Labor shift created, updated, deleted, CreateLocation endpoint, and the ability to customize statement description in Payments API.
* **Deprecated**: Support for v1Items API and v1Locations API is fully deprecated.




## Version 2.24.0 (2019-10-23)
* **GA release**: Merchants.ListMerchant is GA for all SDKs.
* **Beta release**: All SDKs support new Locations API endpoint, CreateLocation.
* **Beta release**: All SDKs support exclusion strategies for pricing rules.


Expand Down
22 changes: 16 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ Class | Method | HTTP request
*LaborApi* | [**UpdateBreakType**](docs/LaborApi.md#updatebreaktype) | **PUT** /v2/labor/break-types/{id}
*LaborApi* | [**UpdateShift**](docs/LaborApi.md#updateshift) | **PUT** /v2/labor/shifts/{id}
*LaborApi* | [**UpdateWorkweekConfig**](docs/LaborApi.md#updateworkweekconfig) | **PUT** /v2/labor/workweek-configs/{id}
*LocationsApi* | [**CreateLocation**](docs/LocationsApi.md#createlocation) | **POST** /v2/locations
*LocationsApi* | [**ListLocations**](docs/LocationsApi.md#listlocations) | **GET** /v2/locations
*LocationsApi* | [**RetrieveLocation**](docs/LocationsApi.md#retrievelocation) | **GET** /v2/locations/{location_id}
*LocationsApi* | [**UpdateLocation**](docs/LocationsApi.md#updatelocation) | **PUT** /v2/locations/{location_id}
Expand Down Expand Up @@ -312,6 +313,7 @@ Class | Method | HTTP request
- [Model.CaptureTransactionResponse](docs/CaptureTransactionResponse.md)
- [Model.Card](docs/Card.md)
- [Model.CardPaymentDetails](docs/CardPaymentDetails.md)
- [Model.CashPaymentDetails](docs/CashPaymentDetails.md)
- [Model.CatalogCategory](docs/CatalogCategory.md)
- [Model.CatalogDiscount](docs/CatalogDiscount.md)
- [Model.CatalogIdMapping](docs/CatalogIdMapping.md)
Expand All @@ -335,7 +337,10 @@ Class | Method | HTTP request
- [Model.CatalogPricingRule](docs/CatalogPricingRule.md)
- [Model.CatalogProductSet](docs/CatalogProductSet.md)
- [Model.CatalogQuery](docs/CatalogQuery.md)
- [Model.CatalogQueryCustomAttributeUsage](docs/CatalogQueryCustomAttributeUsage.md)
- [Model.CatalogQueryExact](docs/CatalogQueryExact.md)
- [Model.CatalogQueryFilteredItems](docs/CatalogQueryFilteredItems.md)
- [Model.CatalogQueryFilteredItemsCustomAttributeFilter](docs/CatalogQueryFilteredItemsCustomAttributeFilter.md)
- [Model.CatalogQueryItemVariationsForItemOptionValues](docs/CatalogQueryItemVariationsForItemOptionValues.md)
- [Model.CatalogQueryItemsForItemOptions](docs/CatalogQueryItemsForItemOptions.md)
- [Model.CatalogQueryItemsForModifierList](docs/CatalogQueryItemsForModifierList.md)
Expand All @@ -356,12 +361,16 @@ Class | Method | HTTP request
- [Model.Coordinates](docs/Coordinates.md)
- [Model.CreateBreakTypeRequest](docs/CreateBreakTypeRequest.md)
- [Model.CreateBreakTypeResponse](docs/CreateBreakTypeResponse.md)
- [Model.CreateCatalogImageRequest](docs/CreateCatalogImageRequest.md)
- [Model.CreateCatalogImageResponse](docs/CreateCatalogImageResponse.md)
- [Model.CreateCheckoutRequest](docs/CreateCheckoutRequest.md)
- [Model.CreateCheckoutResponse](docs/CreateCheckoutResponse.md)
- [Model.CreateCustomerCardRequest](docs/CreateCustomerCardRequest.md)
- [Model.CreateCustomerCardResponse](docs/CreateCustomerCardResponse.md)
- [Model.CreateCustomerRequest](docs/CreateCustomerRequest.md)
- [Model.CreateCustomerResponse](docs/CreateCustomerResponse.md)
- [Model.CreateLocationRequest](docs/CreateLocationRequest.md)
- [Model.CreateLocationResponse](docs/CreateLocationResponse.md)
- [Model.CreateMobileAuthorizationCodeRequest](docs/CreateMobileAuthorizationCodeRequest.md)
- [Model.CreateMobileAuthorizationCodeResponse](docs/CreateMobileAuthorizationCodeResponse.md)
- [Model.CreateOrderRequest](docs/CreateOrderRequest.md)
Expand Down Expand Up @@ -398,6 +407,7 @@ Class | Method | HTTP request
- [Model.Employee](docs/Employee.md)
- [Model.EmployeeWage](docs/EmployeeWage.md)
- [Model.Error](docs/Error.md)
- [Model.ExternalPaymentDetails](docs/ExternalPaymentDetails.md)
- [Model.GetBreakTypeRequest](docs/GetBreakTypeRequest.md)
- [Model.GetBreakTypeResponse](docs/GetBreakTypeResponse.md)
- [Model.GetEmployeeWageRequest](docs/GetEmployeeWageRequest.md)
Expand Down Expand Up @@ -698,18 +708,18 @@ Class | Method | HTTP request
- EMPLOYEES_WRITE: __HTTP Method__: `POST`, `PUT`, `DELETE` Grants write access to employee profile information. For example, to create and modify employee profiles.
- INVENTORY_READ: __HTTP Method__: `GET` Grants read access to inventory information. For example, to call the RetrieveInventoryCount endpoint.
- INVENTORY_WRITE: __HTTP Method__: `POST`, `PUT`, `DELETE` Grants write access to inventory information. For example, to call the BatchChangeInventory endpoint.
- ITEMS_READ: __HTTP Method__: `GET` Grants read access to product catalog information. For example, to get an item or a list of items.
- ITEMS_READ: __HTTP Method__: `GET` Grants read access to business and location information. For example, to obtain a location ID for subsequent activity.
- ITEMS_WRITE: __HTTP Method__: `POST`, `PUT`, `DELETE` Grants write access to product catalog information. For example, to modify or add to a product catalog.
- MERCHANT_PROFILE_READ: __HTTP Method__: `GET` Grants read access to business and location information. For example, to obtain a location ID for subsequent activity.
- ORDERS_READ: __HTTP Method__: `GET` Grants read access to order information. For example, to call the BatchRetrieveOrders endpoint.
- ORDERS_WRITE: __HTTP Method__: `POST`, `PUT`, `DELETE` Grants write access to order information. For example, to call the CreateCheckout endpoint.
- PAYMENTS_READ: __HTTP Method__: `GET` Grants read access to transaction and refund information. For example, to call the RetrieveTransaction endpoint.
- PAYMENTS_WRITE: __HTTP Method__: `POST`, `PUT`, `DELETE` Grants write access to transaction and refunds information. For example, to process payments with the Transactions or Checkout API.
- PAYMENTS_WRITE_ADDITIONAL_RECIPIENTS: __HTTP Method__: `POST`, `PUT`, `DELETE` Allow third party applications to deduct a portion of each transaction amount. __Required__ to use multiparty transaction functionality with the Transactions API.
- PAYMENTS_WRITE_IN_PERSON: __HTTP Method__: `POST`, `PUT`, `DELETE` Grants write access to transaction and refunds information. For example, to process in-person payments.
- PAYMENTS_WRITE: __HTTP Method__: `POST`, `PUT`, `DELETE` Grants write access to transaction and refunds information. For example, to process payments with the Payments or Checkout API.
- PAYMENTS_WRITE_ADDITIONAL_RECIPIENTS: __HTTP Method__: `POST`, `PUT`, `DELETE` Allow third party applications to deduct a portion of each transaction amount. __Required__ to use multiparty transaction functionality with the Payments API.
- PAYMENTS_WRITE_IN_PERSON: __HTTP Method__: `POST`, `PUT`, `DELETE` Grants write access to payments and refunds information. For example, to process in-person payments.
- SETTLEMENTS_READ: __HTTP Method__: `GET` Grants read access to settlement (deposit) information. For example, to call the Connect v1 ListSettlements endpoint.
- TIMECARDS_READ: __HTTP Method__: `GET` Grants read access to employee timecard information. For example, to call the Connect v1 ListTimecards endpoint.
- TIMECARDS_WRITE: __HTTP Method__: `POST`, `PUT`, `DELETE` Grants write access to employee timecard information. For example, to create and modify timecards.
- TIMECARDS_READ: __HTTP Method__: `GET` Grants read access to employee timecard information. For example, to call the Connect v2 SearchShifts endpoint.
- TIMECARDS_WRITE: __HTTP Method__: `POST`, `PUT`, `DELETE` Grants write access to employee shift information. For example, to create and modify employee shifts.
- TIMECARDS_SETTINGS_READ: __HTTP Method__: `GET` Grants read access to employee timecard settings information. For example, to call the GetBreakType endpoint.
- TIMECARDS_SETTINGS_WRITE: __HTTP Method__: `POST`, `PUT`, `DELETE` Grants write access to employee timecard settings information. For example, to call the UpdateBreakType endpoint.

Expand Down
2 changes: 1 addition & 1 deletion docs/ApplePayApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Method | HTTP request | Description
RegisterDomain

Activates a domain for use with Web Apple Pay and Square. A validation will be performed on this domain by Apple to ensure is it properly set up as an Apple Pay enabled domain. This endpoint provides an easy way for platform developers to bulk activate Web Apple Pay with Square for merchants using their platform. To learn more about Apple Pay on Web see the Apple Pay section in the [Embedding the Square Payment Form](/payment-form/add-digital-wallets/apple-pay) guide.
Activates a domain for use with Web Apple Pay and Square. A validation will be performed on this domain by Apple to ensure is it properly set up as an Apple Pay enabled domain. This endpoint provides an easy way for platform developers to bulk activate Web Apple Pay with Square for merchants using their platform. To learn more about Apple Pay on Web see the Apple Pay section in the [Square Payment Form Walkthrough](/docs/payment-form/payment-form-walkthrough).

### Example
```csharp
Expand Down
2 changes: 1 addition & 1 deletion docs/BatchDeleteCatalogObjectsRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**ObjectIds** | **List<string>** | 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]
**ObjectIds** | **List<string>** | The IDs of the CatalogObjects 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 will delete its CatalogItemVariation. | [optional]



Expand Down
6 changes: 3 additions & 3 deletions docs/BatchDeleteCatalogObjectsResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Errors** | [**List&lt;Error&gt;**](Error.md) | The set of &#x60;Error&#x60;s encountered. | [optional]
**DeletedObjectIds** | **List<string>** | The IDs of all &#x60;CatalogObject&#x60;s deleted by this request. | [optional]
**DeletedAt** | **string** | The database [timestamp](#workingwithdates) of this deletion in RFC 3339 format, e.g., \&quot;2016-09-04T23:59:33.123Z\&quot;. | [optional]
**Errors** | [**List&lt;Error&gt;**](Error.md) | The set of Errors encountered. | [optional]
**DeletedObjectIds** | **List<string>** | The IDs of all CatalogObjects deleted by this request. | [optional]
**DeletedAt** | **string** | The database [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) of this deletion in RFC 3339 format, e.g., \&quot;2016-09-04T23:59:33.123Z\&quot;. | [optional]



Expand Down
4 changes: 2 additions & 2 deletions docs/BatchRetrieveCatalogObjectsRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**ObjectIds** | **List<string>** | The IDs of the &#x60;CatalogObject&#x60;s to be retrieved. |
**IncludeRelatedObjects** | **bool?** | 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]
**ObjectIds** | **List<string>** | The IDs of the CatalogObjects to be retrieved. |
**IncludeRelatedObjects** | **bool?** | 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, its associated CatalogCategory objects, CatalogTax objects, CatalogImage objects and CatalogModifierLists 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, its parent CatalogItem will be returned in the &#x60;related_objects&#x60; field of the response. | [optional]



Expand Down
2 changes: 1 addition & 1 deletion docs/BatchRetrieveInventoryChangesRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Name | Type | Description | Notes
**States** | **List<string>** | Filters &#x60;ADJUSTMENT&#x60; query results by &#x60;InventoryState&#x60;. Only applied when set. Default: unset. See [InventoryState](#type-inventorystate) for possible values | [optional]
**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]
**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]
**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]
**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 the [Pagination](https://developer.squareup.com/docs/docs/working-with-apis/pagination) guide for more information. | [optional]



Expand Down
2 changes: 1 addition & 1 deletion docs/BatchRetrieveInventoryChangesResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Errors** | [**List&lt;Error&gt;**](Error.md) | Any errors that occurred during the request. | [optional]
**Changes** | [**List&lt;InventoryChange&gt;**](InventoryChange.md) | The current calculated inventory changes for the requested objects and locations. | [optional]
**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]
**Cursor** | **string** | The pagination cursor to be used in a subsequent request. If unset, this is the final response. See the [Pagination](https://developer.squareup.com/docs/docs/working-with-apis/pagination) guide for more information. | [optional]



Expand Down
2 changes: 1 addition & 1 deletion docs/BatchRetrieveInventoryCountsRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Name | Type | Description | Notes
**CatalogObjectIds** | **List<string>** | Filters results by &#x60;CatalogObject&#x60; ID. Only applied when set. Default: unset. | [optional]
**LocationIds** | **List<string>** | Filters results by &#x60;Location&#x60; ID. Only applied when set. Default: unset. | [optional]
**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]
**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]
**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 the [Pagination](https://developer.squareup.com/docs/docs/working-with-apis/pagination) guide for more information. | [optional]



Expand Down
2 changes: 1 addition & 1 deletion docs/BatchRetrieveInventoryCountsResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Errors** | [**List&lt;Error&gt;**](Error.md) | Any errors that occurred during the request. | [optional]
**Counts** | [**List&lt;InventoryCount&gt;**](InventoryCount.md) | The current calculated inventory counts for the requested objects and locations. | [optional]
**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]
**Cursor** | **string** | The pagination cursor to be used in a subsequent request. If unset, this is the final response. See the [Pagination](https://developer.squareup.com/docs/docs/working-with-apis/pagination) guide for more information. | [optional]



Expand Down
Loading

0 comments on commit 049482b

Please sign in to comment.