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 #104 from square/release/4.20200722.1
Browse files Browse the repository at this point in the history
Release 4.20200722.1
  • Loading branch information
okenshields authored Jul 22, 2020
2 parents 211b813 + e72118a commit fafefbb
Show file tree
Hide file tree
Showing 244 changed files with 6,776 additions and 474 deletions.
39 changes: 39 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,44 @@
# Change Log

## Version 4.20200722.1 (2020-07-22T00:00)
## API releases

* Invoices API (beta):
* For an overview, see [Manage Invoices Using the Invoices API](https://developer.squareup.com/docs/invoices-api/overview).
* For technical reference, see [Invoices API](https://developer.squareup.com/reference/square_2020-07-22/invoices-api).

## Existing API updates

* Catalog API
* [SearchCatalogItems](https://developer.squareup.com/reference/square_2020-07-22/catalog-api/search-catalog-items). You can now call the new search endpoint to [search for catalog items or item variations](https://developer.squareup.com/docs/catalog-api/search-catalog-items), with simplified programming experiences, using one or more of the supported query filters, including the custom attribute value filter.
* Locations API
* [Locations API Overview](https://developer.squareup.com/docs/locations-api). Introduced the "main" location concept.
* [RetrieveLocation](https://developer.squareup.com/reference/square_2020-07-22/locations-api/retrieve-location). You can now specify "main" as the location ID to retrieve the main location information.

* Merchants API
* [RetrieveMerchant](https://developer.squareup.com/reference/square_2020-07-22/merchants-api/retrieve-merchant) and [ListMerchants](https://developer.squareup.com/reference/square_2020-07-22/merchants-api/retrieve-merchant). These endpoints now return a new field, `main_location_id`.

* Orders API
* [PricingOptions](https://developer.squareup.com/reference/square_2020-07-22/objects/Order#definition__property-pricing_options). You can now enable the `auto_apply_discounts` of the options to have rule-based discounts automatically applied to an [Order](https://developer.squareup.com/reference/square_2020-07-22/objects/Order) that is pre-configured with a [pricing rule](https://developer.squareup.com/reference/square_2020-07-22/objects/CatalogPricingRule).

* [Inventory API](https://developer.squareup.com/reference/square_2020-07-22/inventory-api)
* Replaced 500 error on max string length exceeded with a max length error message. Max length attribute added to string type fields.

* Terminal API (beta)
* [TerminalCheckout](https://developer.squareup.com/reference/square_2020-07-22/objects/TerminalCheckout) object. The `TerminalCheckoutCancelReason` field is renamed to `ActionCancelReason`.

## Documentation updates

* Catalog API
* [Search a catalog](https://developer.squareup.com/docs/catalog-api/search-catalog). New topics added to provide actionable guides to using the existing [SearchCatalogObjects](https://developer.squareup.com/reference/square_2020-07-22/catalog-api/search-catalog-objects) endpoint, in addition to the [SearchCatalogItems](https://developer.squareup.com/reference/square_2020-07-22/catalog-api/search-catalog-items) endpoints.

* Orders API
* [Create Orders](https://developer.squareup.com/docs/orders-api/create-orders). Updated existing content with the new pricing option for the automatic application of rule-based discounts.





## Version 4.20200625.0 (2020-06-25T00:00)
## New API release

Expand Down
45 changes: 44 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ Class | Method | HTTP request | Description
*SquareConnect.CatalogApi* | [**deleteCatalogObject**](docs/CatalogApi.md#deleteCatalogObject) | **DELETE** /v2/catalog/object/{object_id} | DeleteCatalogObject
*SquareConnect.CatalogApi* | [**listCatalog**](docs/CatalogApi.md#listCatalog) | **GET** /v2/catalog/list | ListCatalog
*SquareConnect.CatalogApi* | [**retrieveCatalogObject**](docs/CatalogApi.md#retrieveCatalogObject) | **GET** /v2/catalog/object/{object_id} | RetrieveCatalogObject
*SquareConnect.CatalogApi* | [**searchCatalogItems**](docs/CatalogApi.md#searchCatalogItems) | **POST** /v2/catalog/search-catalog-items | SearchCatalogItems
*SquareConnect.CatalogApi* | [**searchCatalogObjects**](docs/CatalogApi.md#searchCatalogObjects) | **POST** /v2/catalog/search | SearchCatalogObjects
*SquareConnect.CatalogApi* | [**updateItemModifierLists**](docs/CatalogApi.md#updateItemModifierLists) | **POST** /v2/catalog/update-item-modifier-lists | UpdateItemModifierLists
*SquareConnect.CatalogApi* | [**updateItemTaxes**](docs/CatalogApi.md#updateItemTaxes) | **POST** /v2/catalog/update-item-taxes | UpdateItemTaxes
Expand Down Expand Up @@ -132,6 +133,14 @@ Class | Method | HTTP request | Description
*SquareConnect.InventoryApi* | [**retrieveInventoryChanges**](docs/InventoryApi.md#retrieveInventoryChanges) | **GET** /v2/inventory/{catalog_object_id}/changes | RetrieveInventoryChanges
*SquareConnect.InventoryApi* | [**retrieveInventoryCount**](docs/InventoryApi.md#retrieveInventoryCount) | **GET** /v2/inventory/{catalog_object_id} | RetrieveInventoryCount
*SquareConnect.InventoryApi* | [**retrieveInventoryPhysicalCount**](docs/InventoryApi.md#retrieveInventoryPhysicalCount) | **GET** /v2/inventory/physical-count/{physical_count_id} | RetrieveInventoryPhysicalCount
*SquareConnect.InvoicesApi* | [**cancelInvoice**](docs/InvoicesApi.md#cancelInvoice) | **POST** /v2/invoices/{invoice_id}/cancel | CancelInvoice
*SquareConnect.InvoicesApi* | [**createInvoice**](docs/InvoicesApi.md#createInvoice) | **POST** /v2/invoices | CreateInvoice
*SquareConnect.InvoicesApi* | [**deleteInvoice**](docs/InvoicesApi.md#deleteInvoice) | **DELETE** /v2/invoices/{invoice_id} | DeleteInvoice
*SquareConnect.InvoicesApi* | [**getInvoice**](docs/InvoicesApi.md#getInvoice) | **GET** /v2/invoices/{invoice_id} | GetInvoice
*SquareConnect.InvoicesApi* | [**listInvoices**](docs/InvoicesApi.md#listInvoices) | **GET** /v2/invoices | ListInvoices
*SquareConnect.InvoicesApi* | [**publishInvoice**](docs/InvoicesApi.md#publishInvoice) | **POST** /v2/invoices/{invoice_id}/publish | PublishInvoice
*SquareConnect.InvoicesApi* | [**searchInvoices**](docs/InvoicesApi.md#searchInvoices) | **POST** /v2/invoices/search | SearchInvoices
*SquareConnect.InvoicesApi* | [**updateInvoice**](docs/InvoicesApi.md#updateInvoice) | **PUT** /v2/invoices/{invoice_id} | UpdateInvoice
*SquareConnect.LaborApi* | [**createBreakType**](docs/LaborApi.md#createBreakType) | **POST** /v2/labor/break-types | CreateBreakType
*SquareConnect.LaborApi* | [**createShift**](docs/LaborApi.md#createShift) | **POST** /v2/labor/shifts | CreateShift
*SquareConnect.LaborApi* | [**deleteBreakType**](docs/LaborApi.md#deleteBreakType) | **DELETE** /v2/labor/break-types/{id} | DeleteBreakType
Expand Down Expand Up @@ -282,6 +291,7 @@ Class | Method | HTTP request | Description
- [SquareConnect.AcceptDisputeResponse](docs/AcceptDisputeResponse.md)
- [SquareConnect.AccumulateLoyaltyPointsRequest](docs/AccumulateLoyaltyPointsRequest.md)
- [SquareConnect.AccumulateLoyaltyPointsResponse](docs/AccumulateLoyaltyPointsResponse.md)
- [SquareConnect.ActionCancelReason](docs/ActionCancelReason.md)
- [SquareConnect.AddGroupToCustomerRequest](docs/AddGroupToCustomerRequest.md)
- [SquareConnect.AddGroupToCustomerResponse](docs/AddGroupToCustomerResponse.md)
- [SquareConnect.AdditionalRecipient](docs/AdditionalRecipient.md)
Expand Down Expand Up @@ -319,6 +329,8 @@ Class | Method | HTTP request | Description
- [SquareConnect.CalculateLoyaltyPointsResponse](docs/CalculateLoyaltyPointsResponse.md)
- [SquareConnect.CalculateOrderRequest](docs/CalculateOrderRequest.md)
- [SquareConnect.CalculateOrderResponse](docs/CalculateOrderResponse.md)
- [SquareConnect.CancelInvoiceRequest](docs/CancelInvoiceRequest.md)
- [SquareConnect.CancelInvoiceResponse](docs/CancelInvoiceResponse.md)
- [SquareConnect.CancelPaymentByIdempotencyKeyRequest](docs/CancelPaymentByIdempotencyKeyRequest.md)
- [SquareConnect.CancelPaymentByIdempotencyKeyResponse](docs/CancelPaymentByIdempotencyKeyResponse.md)
- [SquareConnect.CancelPaymentRequest](docs/CancelPaymentRequest.md)
Expand Down Expand Up @@ -418,6 +430,8 @@ Class | Method | HTTP request | Description
- [SquareConnect.CreateDisputeEvidenceFileResponse](docs/CreateDisputeEvidenceFileResponse.md)
- [SquareConnect.CreateDisputeEvidenceTextRequest](docs/CreateDisputeEvidenceTextRequest.md)
- [SquareConnect.CreateDisputeEvidenceTextResponse](docs/CreateDisputeEvidenceTextResponse.md)
- [SquareConnect.CreateInvoiceRequest](docs/CreateInvoiceRequest.md)
- [SquareConnect.CreateInvoiceResponse](docs/CreateInvoiceResponse.md)
- [SquareConnect.CreateLocationRequest](docs/CreateLocationRequest.md)
- [SquareConnect.CreateLocationResponse](docs/CreateLocationResponse.md)
- [SquareConnect.CreateLoyaltyAccountRequest](docs/CreateLoyaltyAccountRequest.md)
Expand All @@ -439,6 +453,7 @@ Class | Method | HTTP request | Description
- [SquareConnect.CreateTerminalCheckoutRequest](docs/CreateTerminalCheckoutRequest.md)
- [SquareConnect.CreateTerminalCheckoutResponse](docs/CreateTerminalCheckoutResponse.md)
- [SquareConnect.Currency](docs/Currency.md)
- [SquareConnect.CustomAttributeFilter](docs/CustomAttributeFilter.md)
- [SquareConnect.Customer](docs/Customer.md)
- [SquareConnect.CustomerCreationSource](docs/CustomerCreationSource.md)
- [SquareConnect.CustomerCreationSourceFilter](docs/CustomerCreationSourceFilter.md)
Expand All @@ -464,6 +479,8 @@ Class | Method | HTTP request | Description
- [SquareConnect.DeleteCustomerGroupResponse](docs/DeleteCustomerGroupResponse.md)
- [SquareConnect.DeleteCustomerRequest](docs/DeleteCustomerRequest.md)
- [SquareConnect.DeleteCustomerResponse](docs/DeleteCustomerResponse.md)
- [SquareConnect.DeleteInvoiceRequest](docs/DeleteInvoiceRequest.md)
- [SquareConnect.DeleteInvoiceResponse](docs/DeleteInvoiceResponse.md)
- [SquareConnect.DeleteLoyaltyRewardRequest](docs/DeleteLoyaltyRewardRequest.md)
- [SquareConnect.DeleteLoyaltyRewardResponse](docs/DeleteLoyaltyRewardResponse.md)
- [SquareConnect.DeleteShiftRequest](docs/DeleteShiftRequest.md)
Expand Down Expand Up @@ -499,6 +516,8 @@ Class | Method | HTTP request | Description
- [SquareConnect.GetDeviceCodeResponse](docs/GetDeviceCodeResponse.md)
- [SquareConnect.GetEmployeeWageRequest](docs/GetEmployeeWageRequest.md)
- [SquareConnect.GetEmployeeWageResponse](docs/GetEmployeeWageResponse.md)
- [SquareConnect.GetInvoiceRequest](docs/GetInvoiceRequest.md)
- [SquareConnect.GetInvoiceResponse](docs/GetInvoiceResponse.md)
- [SquareConnect.GetPaymentRefundRequest](docs/GetPaymentRefundRequest.md)
- [SquareConnect.GetPaymentRefundResponse](docs/GetPaymentRefundResponse.md)
- [SquareConnect.GetPaymentRequest](docs/GetPaymentRequest.md)
Expand All @@ -515,6 +534,18 @@ Class | Method | HTTP request | Description
- [SquareConnect.InventoryPhysicalCount](docs/InventoryPhysicalCount.md)
- [SquareConnect.InventoryState](docs/InventoryState.md)
- [SquareConnect.InventoryTransfer](docs/InventoryTransfer.md)
- [SquareConnect.Invoice](docs/Invoice.md)
- [SquareConnect.InvoiceFilter](docs/InvoiceFilter.md)
- [SquareConnect.InvoicePaymentReminder](docs/InvoicePaymentReminder.md)
- [SquareConnect.InvoicePaymentReminderStatus](docs/InvoicePaymentReminderStatus.md)
- [SquareConnect.InvoicePaymentRequest](docs/InvoicePaymentRequest.md)
- [SquareConnect.InvoiceQuery](docs/InvoiceQuery.md)
- [SquareConnect.InvoiceRecipient](docs/InvoiceRecipient.md)
- [SquareConnect.InvoiceRequestMethod](docs/InvoiceRequestMethod.md)
- [SquareConnect.InvoiceRequestType](docs/InvoiceRequestType.md)
- [SquareConnect.InvoiceSort](docs/InvoiceSort.md)
- [SquareConnect.InvoiceSortField](docs/InvoiceSortField.md)
- [SquareConnect.InvoiceStatus](docs/InvoiceStatus.md)
- [SquareConnect.ItemVariationLocationOverrides](docs/ItemVariationLocationOverrides.md)
- [SquareConnect.JobAssignment](docs/JobAssignment.md)
- [SquareConnect.JobAssignmentPayType](docs/JobAssignmentPayType.md)
Expand Down Expand Up @@ -548,6 +579,8 @@ Class | Method | HTTP request | Description
- [SquareConnect.ListEmployeeWagesResponse](docs/ListEmployeeWagesResponse.md)
- [SquareConnect.ListEmployeesRequest](docs/ListEmployeesRequest.md)
- [SquareConnect.ListEmployeesResponse](docs/ListEmployeesResponse.md)
- [SquareConnect.ListInvoicesRequest](docs/ListInvoicesRequest.md)
- [SquareConnect.ListInvoicesResponse](docs/ListInvoicesResponse.md)
- [SquareConnect.ListLocationsRequest](docs/ListLocationsRequest.md)
- [SquareConnect.ListLocationsResponse](docs/ListLocationsResponse.md)
- [SquareConnect.ListLoyaltyProgramsRequest](docs/ListLoyaltyProgramsRequest.md)
Expand Down Expand Up @@ -642,6 +675,7 @@ Class | Method | HTTP request | Description
- [SquareConnect.OrderLineItemTaxScope](docs/OrderLineItemTaxScope.md)
- [SquareConnect.OrderLineItemTaxType](docs/OrderLineItemTaxType.md)
- [SquareConnect.OrderMoneyAmounts](docs/OrderMoneyAmounts.md)
- [SquareConnect.OrderPricingOptions](docs/OrderPricingOptions.md)
- [SquareConnect.OrderQuantityUnit](docs/OrderQuantityUnit.md)
- [SquareConnect.OrderReturn](docs/OrderReturn.md)
- [SquareConnect.OrderReturnDiscount](docs/OrderReturnDiscount.md)
Expand All @@ -665,6 +699,9 @@ Class | Method | HTTP request | Description
- [SquareConnect.ProcessingFee](docs/ProcessingFee.md)
- [SquareConnect.Product](docs/Product.md)
- [SquareConnect.ProductType](docs/ProductType.md)
- [SquareConnect.PublishInvoiceRequest](docs/PublishInvoiceRequest.md)
- [SquareConnect.PublishInvoiceResponse](docs/PublishInvoiceResponse.md)
- [SquareConnect.Range](docs/Range.md)
- [SquareConnect.RedeemLoyaltyRewardRequest](docs/RedeemLoyaltyRewardRequest.md)
- [SquareConnect.RedeemLoyaltyRewardResponse](docs/RedeemLoyaltyRewardResponse.md)
- [SquareConnect.Refund](docs/Refund.md)
Expand Down Expand Up @@ -720,10 +757,15 @@ Class | Method | HTTP request | Description
- [SquareConnect.RetrieveWageSettingResponse](docs/RetrieveWageSettingResponse.md)
- [SquareConnect.RevokeTokenRequest](docs/RevokeTokenRequest.md)
- [SquareConnect.RevokeTokenResponse](docs/RevokeTokenResponse.md)
- [SquareConnect.SearchCatalogItemsRequest](docs/SearchCatalogItemsRequest.md)
- [SquareConnect.SearchCatalogItemsRequestStockLevel](docs/SearchCatalogItemsRequestStockLevel.md)
- [SquareConnect.SearchCatalogItemsResponse](docs/SearchCatalogItemsResponse.md)
- [SquareConnect.SearchCatalogObjectsRequest](docs/SearchCatalogObjectsRequest.md)
- [SquareConnect.SearchCatalogObjectsResponse](docs/SearchCatalogObjectsResponse.md)
- [SquareConnect.SearchCustomersRequest](docs/SearchCustomersRequest.md)
- [SquareConnect.SearchCustomersResponse](docs/SearchCustomersResponse.md)
- [SquareConnect.SearchInvoicesRequest](docs/SearchInvoicesRequest.md)
- [SquareConnect.SearchInvoicesResponse](docs/SearchInvoicesResponse.md)
- [SquareConnect.SearchLoyaltyAccountsRequest](docs/SearchLoyaltyAccountsRequest.md)
- [SquareConnect.SearchLoyaltyAccountsRequestLoyaltyAccountQuery](docs/SearchLoyaltyAccountsRequestLoyaltyAccountQuery.md)
- [SquareConnect.SearchLoyaltyAccountsResponse](docs/SearchLoyaltyAccountsResponse.md)
Expand Down Expand Up @@ -780,7 +822,6 @@ Class | Method | HTTP request | Description
- [SquareConnect.TenderCashDetails](docs/TenderCashDetails.md)
- [SquareConnect.TenderType](docs/TenderType.md)
- [SquareConnect.TerminalCheckout](docs/TerminalCheckout.md)
- [SquareConnect.TerminalCheckoutCancelReason](docs/TerminalCheckoutCancelReason.md)
- [SquareConnect.TerminalCheckoutQuery](docs/TerminalCheckoutQuery.md)
- [SquareConnect.TerminalCheckoutQueryFilter](docs/TerminalCheckoutQueryFilter.md)
- [SquareConnect.TerminalCheckoutQuerySort](docs/TerminalCheckoutQuerySort.md)
Expand All @@ -795,6 +836,8 @@ Class | Method | HTTP request | Description
- [SquareConnect.UpdateCustomerGroupResponse](docs/UpdateCustomerGroupResponse.md)
- [SquareConnect.UpdateCustomerRequest](docs/UpdateCustomerRequest.md)
- [SquareConnect.UpdateCustomerResponse](docs/UpdateCustomerResponse.md)
- [SquareConnect.UpdateInvoiceRequest](docs/UpdateInvoiceRequest.md)
- [SquareConnect.UpdateInvoiceResponse](docs/UpdateInvoiceResponse.md)
- [SquareConnect.UpdateItemModifierListsRequest](docs/UpdateItemModifierListsRequest.md)
- [SquareConnect.UpdateItemModifierListsResponse](docs/UpdateItemModifierListsResponse.md)
- [SquareConnect.UpdateItemTaxesRequest](docs/UpdateItemTaxesRequest.md)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SquareConnect.TerminalCheckoutCancelReason
# SquareConnect.ActionCancelReason

## Enum

Expand Down
2 changes: 1 addition & 1 deletion docs/BatchRetrieveInventoryChangesRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**catalog_object_ids** | **[String]** | Filters results by `CatalogObject` ID. Only applied when set. Default: unset. | [optional]
**catalog_object_ids** | **[String]** | Filters results by `CatalogObject` ID. Only applied when set. Max size is 500 IDs. Default: unset. | [optional]
**location_ids** | **[String]** | Filters results by `Location` ID. Only applied when set. Default: unset. | [optional]
**types** | **[String]** | Filters results by `InventoryChangeType`. Default: [`PHYSICAL_COUNT`, `ADJUSTMENT`]. `TRANSFER` is not supported as a filter. See [InventoryChangeType](#type-inventorychangetype) for possible values | [optional]
**states** | **[String]** | Filters `ADJUSTMENT` query results by `InventoryState`. Only applied when set. Default: unset. See [InventoryState](#type-inventorystate) for possible values | [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/BatchRetrieveInventoryCountsRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**catalog_object_ids** | **[String]** | Filters results by `CatalogObject` ID. Only applied when set. Default: unset. | [optional]
**catalog_object_ids** | **[String]** | Filters results by `CatalogObject` ID. Only applied when set. Max size is 1000 IDs. Default: unset. | [optional]
**location_ids** | **[String]** | Filters results by `Location` ID. Only applied when set. Default: unset. | [optional]
**updated_after** | **String** | Provided as an RFC 3339 timestamp. Returns results whose `calculated_at` value is after the given time. Default: UNIX epoch (`1970-01-01T00:00:00Z`). | [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/working-with-apis/pagination) guide for more information. | [optional]
Expand Down
4 changes: 2 additions & 2 deletions docs/BreakType.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

### Description

A defined break template that sets an expectation for possible `Break` instances on a `Shift`.
A defined break template that sets an expectation for possible `Break` instances on a `Shift`.

## Properties
Name | Type | Description | Notes
Expand All @@ -12,7 +12,7 @@ Name | Type | Description | Notes
**break_name** | **String** | A human-readable name for this type of break. Will be displayed to employees in Square products. |
**expected_duration** | **String** | Format: RFC-3339 P[n]Y[n]M[n]DT[n]H[n]M[n]S. The expected length of this break. Precision below minutes is truncated. |
**is_paid** | **Boolean** | Whether this break counts towards time worked for compensation purposes. |
**version** | **Number** | Used for resolving concurrency issues; request will fail if version provided does not match server version at time of request. If a value is not provided, Square's servers execute a \"blind\" write; potentially overwriting another writer's data. | [optional]
**version** | **Number** | Used for resolving concurrency issues; request will fail if version provided does not match server version at time of request. If a value is not provided, Square's servers execute a \"blind\" write; potentially overwriting another writer's data. | [optional]
**created_at** | **String** | A read-only timestamp in RFC 3339 format. | [optional]
**updated_at** | **String** | A read-only timestamp in RFC 3339 format. | [optional]

Expand Down
13 changes: 13 additions & 0 deletions docs/CancelInvoiceRequest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# SquareConnect.CancelInvoiceRequest

### Description
**Note: This model is in beta.**

Describes a `CancelInvoice` request.

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**version** | **Number** | The version of the `invoice` to cancel. If you do not know the version, you can call `GetInvoice](#endpoint-Invoices-GetInvoice) or [ListInvoices`. |


Loading

0 comments on commit fafefbb

Please sign in to comment.