diff --git a/CHANGES.md b/CHANGES.md
index e6eb2d9..32bc733 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -1,5 +1,13 @@
# Change Log
+## Version 2.20190612.0 (2019-06-12)
+
+* **BETA releases**:
+ * Orders API: supports service charges with a new field and datatype.
+ * Catalog API: supports measurement unites for item variation quantities with a new field and datatype.
+* **New functionality**: `Order` entities — now include a `source` field that contains details on where the order originated.
+* **Improved functionality**: ListLocations — Expanded business information available through the Locations API, including business hours, contact email, social media handles, and longitude/latitude for physical locations.
+
## Version 2.20190508.1 (2019-05-28)
Bump Jackson dependency for Java SDK.
diff --git a/README.md b/README.md
index 5ab3bfd..f62a0dc 100644
--- a/README.md
+++ b/README.md
@@ -18,7 +18,7 @@ Add this dependency to your project's POM:
com.squareup
connect
- 2.20190508.1
+ 2.20190612.0
compile
```
@@ -28,7 +28,7 @@ Add this dependency to your project's POM:
Add this dependency to your project's build file:
```groovy
-compile "com.squareup:connect:2.20190508.1"
+compile "com.squareup:connect:2.20190612.0"
```
### Option 3: Build and Install locally
@@ -70,7 +70,7 @@ At first generate the JAR by executing:
Then manually install the following JARs:
-* target/connect-2.20190508.1.jar
+* target/connect-2.20190612.0.jar
* target/lib/*.jar
## Getting Started
@@ -257,6 +257,7 @@ Class | Method | HTTP request | Description
- [AdditionalRecipientReceivable](docs/AdditionalRecipientReceivable.md)
- [AdditionalRecipientReceivableRefund](docs/AdditionalRecipientReceivableRefund.md)
- [Address](docs/Address.md)
+ - [AggregationStrategy](docs/AggregationStrategy.md)
- [BatchChangeInventoryRequest](docs/BatchChangeInventoryRequest.md)
- [BatchChangeInventoryResponse](docs/BatchChangeInventoryResponse.md)
- [BatchDeleteCatalogObjectsRequest](docs/BatchDeleteCatalogObjectsRequest.md)
@@ -290,6 +291,7 @@ Class | Method | HTTP request | Description
- [CatalogItemModifierListInfo](docs/CatalogItemModifierListInfo.md)
- [CatalogItemProductType](docs/CatalogItemProductType.md)
- [CatalogItemVariation](docs/CatalogItemVariation.md)
+ - [CatalogMeasurementUnit](docs/CatalogMeasurementUnit.md)
- [CatalogModifier](docs/CatalogModifier.md)
- [CatalogModifierList](docs/CatalogModifierList.md)
- [CatalogModifierListSelectionType](docs/CatalogModifierListSelectionType.md)
@@ -297,7 +299,9 @@ Class | Method | HTTP request | Description
- [CatalogObject](docs/CatalogObject.md)
- [CatalogObjectBatch](docs/CatalogObjectBatch.md)
- [CatalogObjectType](docs/CatalogObjectType.md)
+ - [CatalogPricingRule](docs/CatalogPricingRule.md)
- [CatalogPricingType](docs/CatalogPricingType.md)
+ - [CatalogProductSet](docs/CatalogProductSet.md)
- [CatalogQuery](docs/CatalogQuery.md)
- [CatalogQueryExact](docs/CatalogQueryExact.md)
- [CatalogQueryItemsForModifierList](docs/CatalogQueryItemsForModifierList.md)
@@ -307,11 +311,13 @@ Class | Method | HTTP request | Description
- [CatalogQuerySortedAttribute](docs/CatalogQuerySortedAttribute.md)
- [CatalogQueryText](docs/CatalogQueryText.md)
- [CatalogTax](docs/CatalogTax.md)
+ - [CatalogTimePeriod](docs/CatalogTimePeriod.md)
- [CatalogV1Id](docs/CatalogV1Id.md)
- [ChargeRequest](docs/ChargeRequest.md)
- [ChargeRequestAdditionalRecipient](docs/ChargeRequestAdditionalRecipient.md)
- [ChargeResponse](docs/ChargeResponse.md)
- [Checkout](docs/Checkout.md)
+ - [Coordinates](docs/Coordinates.md)
- [Country](docs/Country.md)
- [CreateBreakTypeRequest](docs/CreateBreakTypeRequest.md)
- [CreateBreakTypeResponse](docs/CreateBreakTypeResponse.md)
@@ -407,6 +413,7 @@ Class | Method | HTTP request | Description
- [MeasurementUnit](docs/MeasurementUnit.md)
- [MeasurementUnitArea](docs/MeasurementUnitArea.md)
- [MeasurementUnitCustom](docs/MeasurementUnitCustom.md)
+ - [MeasurementUnitGeneric](docs/MeasurementUnitGeneric.md)
- [MeasurementUnitLength](docs/MeasurementUnitLength.md)
- [MeasurementUnitVolume](docs/MeasurementUnitVolume.md)
- [MeasurementUnitWeight](docs/MeasurementUnitWeight.md)
@@ -436,8 +443,11 @@ Class | Method | HTTP request | Description
- [OrderReturnDiscount](docs/OrderReturnDiscount.md)
- [OrderReturnLineItem](docs/OrderReturnLineItem.md)
- [OrderReturnLineItemModifier](docs/OrderReturnLineItemModifier.md)
+ - [OrderReturnServiceCharge](docs/OrderReturnServiceCharge.md)
- [OrderReturnTax](docs/OrderReturnTax.md)
- [OrderRoundingAdjustment](docs/OrderRoundingAdjustment.md)
+ - [OrderServiceCharge](docs/OrderServiceCharge.md)
+ - [OrderServiceChargeCalculationPhase](docs/OrderServiceChargeCalculationPhase.md)
- [OrderSource](docs/OrderSource.md)
- [OrderState](docs/OrderState.md)
- [Product](docs/Product.md)
@@ -495,6 +505,8 @@ Class | Method | HTTP request | Description
- [ShiftWorkdayMatcher](docs/ShiftWorkdayMatcher.md)
- [SortOrder](docs/SortOrder.md)
- [SourceApplication](docs/SourceApplication.md)
+ - [StandardUnitDescription](docs/StandardUnitDescription.md)
+ - [StandardUnitDescriptionGroup](docs/StandardUnitDescriptionGroup.md)
- [TaxCalculationPhase](docs/TaxCalculationPhase.md)
- [TaxInclusionType](docs/TaxInclusionType.md)
- [Tender](docs/Tender.md)
diff --git a/build.gradle b/build.gradle
index 337144c..6afd9d7 100644
--- a/build.gradle
+++ b/build.gradle
@@ -2,7 +2,7 @@ apply plugin: 'idea'
apply plugin: 'eclipse'
group = 'com.squareup'
-version = '2.20190508.1'
+version = '2.20190612.0'
buildscript {
repositories {
diff --git a/docs/AggregationStrategy.md b/docs/AggregationStrategy.md
new file mode 100644
index 0000000..fa85c53
--- /dev/null
+++ b/docs/AggregationStrategy.md
@@ -0,0 +1,16 @@
+
+# AggregationStrategy
+
+## Enum
+
+
+* `UNKNOWN` (value: `"UNKNOWN"`)
+
+* `BASE` (value: `"BASE"`)
+
+* `STACKABLE` (value: `"STACKABLE"`)
+
+* `EXCLUSIVE` (value: `"EXCLUSIVE"`)
+
+
+
diff --git a/docs/ApplePayApi.md b/docs/ApplePayApi.md
index 023d325..7d8b4c6 100644
--- a/docs/ApplePayApi.md
+++ b/docs/ApplePayApi.md
@@ -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](/payments/sqpaymentform/overview) 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 [Embedding the Square Payment Form](/payment-form/add-digital-wallets/apple-pay) guide.
### Example
```java
diff --git a/docs/BatchRetrieveCatalogObjectsRequest.md b/docs/BatchRetrieveCatalogObjectsRequest.md
index d44b912..70da82e 100644
--- a/docs/BatchRetrieveCatalogObjectsRequest.md
+++ b/docs/BatchRetrieveCatalogObjectsRequest.md
@@ -9,7 +9,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**objectIds** | **List<String>** | The IDs of the [CatalogObject](#type-catalogobject)s to be retrieved. |
-**includeRelatedObjects** | **Boolean** | If `true`, the response will include additional objects that are related to the requested objects, as follows: If the `objects` field of the response contains a [CatalogItem](#type-catalogitem), its associated [CatalogCategory](#type-catalogcategory), [CatalogTax](#type-catalogtax)es, and [CatalogModifierList](#type-catalogmodifierlist)s will be returned in the `related_objects` field of the response. If the `objects` field of the response contains a [CatalogItemVariation](#type-catalogitemvariation), its parent [CatalogItem](#type-catalogitem) will be returned in the `related_objects` field of the response. | [optional]
+**includeRelatedObjects** | **Boolean** | If `true`, the response will include additional objects that are related to the requested objects, as follows: If the `objects` 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 `related_objects` field of the response. If the `objects` field of the response contains a [CatalogItemVariation](#type-catalogitemvariation), its parent [CatalogItem](#type-catalogitem) will be returned in the `related_objects` field of the response. | [optional]
diff --git a/docs/Card.md b/docs/Card.md
index 13e1152..4109867 100644
--- a/docs/Card.md
+++ b/docs/Card.md
@@ -15,7 +15,7 @@ Name | Type | Description | Notes
**expYear** | **Long** | The four-digit year of the card's expiration date. | [optional]
**cardholderName** | **String** | The name of the cardholder. | [optional]
**billingAddress** | [**Address**](Address.md) | The billing address for this card. | [optional]
-**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]
+**fingerprint** | **String** | A unique, Square-assigned ID that identifies the card across multiple locations and applications for a single Square account. | [optional]
diff --git a/docs/CatalogApi.md b/docs/CatalogApi.md
index 4838b5f..d1136c0 100644
--- a/docs/CatalogApi.md
+++ b/docs/CatalogApi.md
@@ -284,7 +284,7 @@ Name | Type | Description | Notes
ListCatalog
-Returns a list of [CatalogObject](#type-catalogobject)s that includes all objects of a set of desired types (for example, all [CatalogItem](#type-catalogitem) and [CatalogTax](#type-catalogtax) objects) in the catalog. The types parameter is specified as a comma-separated list of valid [CatalogObject](#type-catalogobject) types: `ITEM`, `ITEM_VARIATION`, `MODIFIER`, `MODIFIER_LIST`, `CATEGORY`, `DISCOUNT`, `TAX`.
+Returns a list of [CatalogObject](#type-catalogobject)s that includes all objects of a set of desired types (for example, all [CatalogItem](#type-catalogitem) and [CatalogTax](#type-catalogtax) objects) in the catalog. The `types` parameter is specified as a comma-separated list of valid [CatalogObject](#type-catalogobject) types: `ITEM`, `ITEM_VARIATION`, `MODIFIER`, `MODIFIER_LIST`, `CATEGORY`, `DISCOUNT`, `TAX`. __Important:__ ListCatalog does not return deleted catalog items. To retrieve deleted catalog items, use SearchCatalogObjects and set `include_deleted_objects` to `true`.
### Example
```java
@@ -358,7 +358,7 @@ oauth2.setAccessToken("YOUR ACCESS TOKEN");
CatalogApi apiInstance = new CatalogApi();
String objectId = "objectId_example"; // String | The object ID of any type of [CatalogObject](#type-catalogobject)s to be retrieved.
-Boolean includeRelatedObjects = true; // Boolean | If `true`, the response will include additional objects that are related to the requested object, as follows: If the `object` field of the response contains a [CatalogItem](#type-catalogitem), its associated [CatalogCategory](#type-catalogcategory), [CatalogTax](#type-catalogtax)es, and [CatalogModifierList](#type-catalogmodifierlist)s will be returned in the `related_objects` field of the response. If the `object` field of the response contains a [CatalogItemVariation](#type-catalogitemvariation), its parent [CatalogItem](#type-catalogitem) will be returned in the `related_objects` field of the response. Default value: `false`
+Boolean includeRelatedObjects = true; // Boolean | If `true`, the response will include additional objects that are related to the requested object, as follows: If the `object` 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 `related_objects` field of the response. If the `object` field of the response contains a [CatalogItemVariation](#type-catalogitemvariation), its parent [CatalogItem](#type-catalogitem) will be returned in the `related_objects` field of the response. Default value: `false`
try {
RetrieveCatalogObjectResponse result = apiInstance.retrieveCatalogObject(objectId, includeRelatedObjects);
System.out.println(result);
@@ -373,7 +373,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**objectId** | **String**| The object ID of any type of [CatalogObject](#type-catalogobject)s to be retrieved. |
- **includeRelatedObjects** | **Boolean**| If `true`, the response will include additional objects that are related to the requested object, as follows: If the `object` field of the response contains a [CatalogItem](#type-catalogitem), its associated [CatalogCategory](#type-catalogcategory), [CatalogTax](#type-catalogtax)es, and [CatalogModifierList](#type-catalogmodifierlist)s will be returned in the `related_objects` field of the response. If the `object` field of the response contains a [CatalogItemVariation](#type-catalogitemvariation), its parent [CatalogItem](#type-catalogitem) will be returned in the `related_objects` field of the response. Default value: `false` | [optional]
+ **includeRelatedObjects** | **Boolean**| If `true`, the response will include additional objects that are related to the requested object, as follows: If the `object` 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 `related_objects` field of the response. If the `object` field of the response contains a [CatalogItemVariation](#type-catalogitemvariation), its parent [CatalogItem](#type-catalogitem) will be returned in the `related_objects` field of the response. Default value: `false` | [optional]
### Return type
diff --git a/docs/CatalogInfoResponse.md b/docs/CatalogInfoResponse.md
index c8e5dfa..bcf4d15 100644
--- a/docs/CatalogInfoResponse.md
+++ b/docs/CatalogInfoResponse.md
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**errors** | [**List<Error>**](Error.md) | The set of [Error](#type-error)s encountered. | [optional]
**limits** | [**CatalogInfoResponseLimits**](CatalogInfoResponseLimits.md) | | [optional]
+**standardUnitDescriptionGroup** | [**StandardUnitDescriptionGroup**](StandardUnitDescriptionGroup.md) | Names and abbreviations for standard units. | [optional]
diff --git a/docs/CatalogItem.md b/docs/CatalogItem.md
index 9408c90..d2ed158 100644
--- a/docs/CatalogItem.md
+++ b/docs/CatalogItem.md
@@ -19,7 +19,7 @@ Name | Type | Description | Notes
**taxIds** | **List<String>** | A set of IDs indicating the [CatalogTax](#type-catalogtax)es that are enabled for this item. When updating an item, any taxes listed here will be added to the item. [CatalogTax](#type-catalogtax)es may also be added to or deleted from an item using `UpdateItemTaxes`. | [optional]
**modifierListInfo** | [**List<CatalogItemModifierListInfo>**](CatalogItemModifierListInfo.md) | A set of [CatalogItemModifierListInfo](#type-catalogitemmodifierlistinfo) objects representing the modifier lists that apply to this item, along with the overrides and min and max limits that are specific to this item. [CatalogModifierList](#type-catalogmodifierlist)s may also be added to or deleted from an item using `UpdateItemModifierLists`. | [optional]
**imageUrl** | **String** | __Deprecated__. The URL of an image representing this item. Deprecated in favor of `image_id` in [`CatalogObject`](#type-catalogobject). | [optional]
-**variations** | [**List<CatalogObject>**](CatalogObject.md) | A list of [CatalogObject](#type-catalogobject)s containing the [CatalogItemVariation](#type-catalogitemvariation)s for this item. | [optional]
+**variations** | [**List<CatalogObject>**](CatalogObject.md) | A list of [CatalogObject](#type-catalogobject)s containing the [CatalogItemVariation](#type-catalogitemvariation)s for this item. Maximum: 250 item variations | [optional]
**productType** | [**ProductTypeEnum**](#ProductTypeEnum) | The product type of the item. May not be changed once an item has been created. Only items of product type `REGULAR` may be created by this API; items with other product types are read-only. See [CatalogItemProductType](#type-catalogitemproducttype) for possible values | [optional]
**skipModifierScreen** | **Boolean** | If `false`, the Square Point of Sale app will present the [CatalogItem](#type-catalogitem)'s details screen immediately, allowing the merchant to choose [CatalogModifier](#type-catalogmodifier)s before adding the item to the cart. This is the default behavior. If `true`, the Square Point of Sale app will immediately add the item to the cart with the pre-selected modifiers, and merchants can edit modifiers by drilling down onto the item's details. Third-party clients are encouraged to implement similar behaviors. | [optional]
diff --git a/docs/CatalogItemVariation.md b/docs/CatalogItemVariation.md
index 4d37301..28b477d 100644
--- a/docs/CatalogItemVariation.md
+++ b/docs/CatalogItemVariation.md
@@ -3,7 +3,7 @@
### Description
-An item variation (i.e., product) in the Catalog object model.
+An item variation (i.e., product) in the Catalog object model. Each item may have a maximum of 250 item variations.
## Properties
Name | Type | Description | Notes
@@ -21,6 +21,8 @@ Name | Type | Description | Notes
**inventoryAlertThreshold** | **Long** | If the inventory quantity for the variation is less than or equal to this value and `inventory_alert_type` is `LOW_QUANTITY`, the variation displays an alert in the merchant dashboard. This value is always an integer. | [optional]
**userData** | **String** | Arbitrary user metadata to associate with the item variation. Cannot exceed 255 characters. Searchable. | [optional]
**serviceDuration** | **Long** | If the [CatalogItem](#type-catalogitem) that owns this item variation is of type `APPOINTMENTS_SERVICE`, then this is the duration of the service in milliseconds. For example, a 30 minute appointment would have the value `1800000`, which is equal to 30 (minutes) * 60 (seconds per minute) * 1000 (milliseconds per second). | [optional]
+**catalogMeasurementUnitId** | **String** | Represents the unit used to measure a [CatalogItemVariation](#type-catalogitemvariation) and specifies the precision for decimal quantities. | [optional]
+**measurementUnitId** | **String** | ID of the ‘CatalogMeasurementUnit’ that is used to measure the quantity sold of this item variation. If left unset, the item will be sold in whole quantities. | [optional]
diff --git a/docs/CatalogMeasurementUnit.md b/docs/CatalogMeasurementUnit.md
new file mode 100644
index 0000000..a6bc099
--- /dev/null
+++ b/docs/CatalogMeasurementUnit.md
@@ -0,0 +1,15 @@
+
+# CatalogMeasurementUnit
+
+### Description
+
+Represents the unit used to measure a [CatalogItemVariation](#type-catalogitemvariation) and specifies the precision for decimal quantities.
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**measurementUnit** | [**MeasurementUnit**](MeasurementUnit.md) | Indicates the unit used to measure the quantity of a catalog item variation. | [optional]
+**precision** | **Integer** | Represents the maximum number of positions allowed after the decimal in quantities measured with this unit. For example, if the precision is 2, then an itemization’s quantity can be 0.01, 0.12, etc. Min: 0 Max: 5 Default: 3 | [optional]
+
+
+
diff --git a/docs/CatalogObject.md b/docs/CatalogObject.md
index 3df10d9..5fe1172 100644
--- a/docs/CatalogObject.md
+++ b/docs/CatalogObject.md
@@ -26,6 +26,7 @@ Name | Type | Description | Notes
**modifierListData** | [**CatalogModifierList**](CatalogModifierList.md) | Structured data for a [CatalogModifierList](#type-catalogmodifierlist), set for CatalogObjects of type `MODIFIER_LIST`. | [optional]
**modifierData** | [**CatalogModifier**](CatalogModifier.md) | Structured data for a [CatalogModifier](#type-catalogmodifier), set for CatalogObjects of type `MODIFIER`. | [optional]
**imageData** | [**CatalogImage**](CatalogImage.md) | Structured data for a [CatalogImage](#type-catalogimage), set for CatalogObjects of type `IMAGE`. | [optional]
+**measurementUnitData** | [**CatalogMeasurementUnit**](CatalogMeasurementUnit.md) | Structured data for a [CatalogMeasurementUnit](#type-catalogmeasurementunit), set for CatalogObjects of type `MEASUREMENT_UNIT`. | [optional]
@@ -40,6 +41,9 @@ TAX | "TAX"
DISCOUNT | "DISCOUNT"
MODIFIER_LIST | "MODIFIER_LIST"
MODIFIER | "MODIFIER"
+PRICING_RULE | "PRICING_RULE"
+PRODUCT_SET | "PRODUCT_SET"
+TIME_PERIOD | "TIME_PERIOD"
diff --git a/docs/CatalogObjectType.md b/docs/CatalogObjectType.md
index e49e001..763ec2e 100644
--- a/docs/CatalogObjectType.md
+++ b/docs/CatalogObjectType.md
@@ -20,5 +20,11 @@
* `MODIFIER` (value: `"MODIFIER"`)
+* `PRICING_RULE` (value: `"PRICING_RULE"`)
+
+* `PRODUCT_SET` (value: `"PRODUCT_SET"`)
+
+* `TIME_PERIOD` (value: `"TIME_PERIOD"`)
+
diff --git a/docs/CatalogPricingRule.md b/docs/CatalogPricingRule.md
new file mode 100644
index 0000000..1bee214
--- /dev/null
+++ b/docs/CatalogPricingRule.md
@@ -0,0 +1,36 @@
+
+# CatalogPricingRule
+
+### Description
+
+Defines how prices are modified or set for items that match the pricing rule during the active time period.
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**name** | **String** | User-defined name for the pricing rule. For example, \"Buy one get one free\" or \"10% off\". | [optional]
+**timePeriodIds** | **List<String>** | Unique ID for the [CatalogTimePeriod](#type-catalogtimeperiod)s when this pricing rule is in effect. If left unset, the pricing rule is always in effect. | [optional]
+**totalPriceMoney** | [**Money**](Money.md) | The total amount of money to charge for all matched items. Only one of `total_price_money`, `item_price`, or `discount` can be supplied. | [optional]
+**itemPriceMoney** | [**Money**](Money.md) | The amount of money to charge for each matched item. Only one of `total_price_money`, `item_price`, or `discount` can be supplied. | [optional]
+**discountId** | **String** | Unique ID for the [CatalogDiscount](#type-catalogdiscount) to take off the price of all matched items. Only one of `total_price_money`, `item_price`, or `discount` can be supplied. | [optional]
+**matchProductsId** | **String** | Unique ID for the [CatalogProductSet](#type-catalogproductset) that will be matched by this rule. A match rule matches within the entire cart. | [optional]
+**applyProductsId** | **String** | The [CatalogProductSet](#type-catalogproductset) to apply the pricing rule to within the set of matched products specified by `match_products_id`. An apply rule can only match once within the set of matched products. If left unset, the pricing rule will be applied to all products within the set of matched products. | [optional]
+**stackable** | [**StackableEnum**](#StackableEnum) | Describes how the pricing rule can be combined with other pricing rules. See [Stackable](#type-stackable) for all possible values. See [AggregationStrategy](#type-aggregationstrategy) for possible values | [optional]
+**excludeProductsId** | **String** | Identifies the [CatalogProductSet](#type-catalogproductset) to exclude from this pricing rule. An exclude rule matches within the subset of the cart that fits the match rules (the match set). An exclude rule can only match once in the match set. If not supplied, the pricing will be applied to all products in the match set. Other products retain their base price, or a price generated by other rules. | [optional]
+**validFromDate** | **String** | Represents the date the Pricing Rule is valid from. Represented in RFC3339 full-date format (YYYY-MM-DD). | [optional]
+**validFromLocalTime** | **String** | Represents the local time the pricing rule should be valid from. Time zone is determined by the device running the Point of Sale app. Represented in RFC3339 partial-time format (HH:MM:SS). Partial seconds will be truncated. | [optional]
+**validUntilDate** | **String** | Represents the date the pricing rule will become inactive. Represented in RFC3339 full-date format (YYYY-MM-DD). | [optional]
+**validUntilLocalTime** | **String** | Represents the local time at which the pricing rule will become inactive. Time zone is determined by the device running the Point of Sale app. Represented in RFC3339 partial-time format (HH:MM:SS). Partial seconds will be truncated. | [optional]
+
+
+
+## Enum: StackableEnum
+Name | Value
+---- | -----
+UNKNOWN | "UNKNOWN"
+BASE | "BASE"
+STACKABLE | "STACKABLE"
+EXCLUSIVE | "EXCLUSIVE"
+
+
+
diff --git a/docs/CatalogProductSet.md b/docs/CatalogProductSet.md
new file mode 100644
index 0000000..8a4546a
--- /dev/null
+++ b/docs/CatalogProductSet.md
@@ -0,0 +1,20 @@
+
+# CatalogProductSet
+
+### Description
+
+Represents a collection of catalog objects for the purpose of applying a [PricingRule](#type-pricingrule). Including a catalog object will include all of its subtypes. For example, including a category in a product set will include all of its items and associated item variations in the product set. Including an item in a product set will also include its item variations.
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**name** | **String** | User-defined name for the product set. For example, \"Clearance Items\" or \"Winter Sale Items\". | [optional]
+**productIdsAny** | **List<String>** | Unique IDs for any [CatalogObjects](#type-catalogobject)s to include in this product set. Any number of these catalog objects can be in an order for a pricing rule to apply. This can be used with `product_ids_all` in a parent [CatalogProductSet](#type-catalogproductset) to match groups of products for a bulk discount, such as a discount for an entree and side combo. Only one of `product_ids_all`, `product_ids_any`, or `all_products` can be set. Max: 500 catalog object IDs. | [optional]
+**productIdsAll** | **List<String>** | Unique IDs for [CatalogObjects](#type-catalogobject) to include in this product set. All objects in this set must be included in an order for a pricing rule to apply. Only one of `product_ids_all`, `product_ids_any`, or `all_products` can be set. Max: 500 catalog object IDs. | [optional]
+**quantityExact** | **Long** | If set, there must be exactly this many items from `products_any` or `products_all` in the cart for the discount to apply. Cannot be combined with either `quantity_min` or `quantity_max`. | [optional]
+**quantityMin** | **Long** | If set, there must be at least this many items from `products_any` or `products_all` in a cart for the discount to apply. See `quantity_exact`. Defaults to 0 if `quantity_exact`, `quantity_min` and `quantity_max` are all unspecified. | [optional]
+**quantityMax** | **Long** | If set, the pricing rule will apply to a maximum of this many items from `products_any` or `products_all`. | [optional]
+**allProducts** | **Boolean** | If set to `true`, the product set will include every item in the catalog. Only one of `product_ids_all`, `product_ids_any`, or `all_products` can be set. | [optional]
+
+
+
diff --git a/docs/CatalogTimePeriod.md b/docs/CatalogTimePeriod.md
new file mode 100644
index 0000000..9f07375
--- /dev/null
+++ b/docs/CatalogTimePeriod.md
@@ -0,0 +1,14 @@
+
+# CatalogTimePeriod
+
+### Description
+
+Represents a time period - either a single period or a repeating period.
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**event** | **String** | An iCalendar (RFC5545) [event](https://tools.ietf.org/html/rfc5545#section-3.6.1), which specifies the name, timing, duration and recurrence of this time period. Example: ``` DTSTART:20190707T180000 DURATION:P2H RRULE:FREQ=WEEKLY;BYDAY=MO,WE,FR ``` Only `SUMMARY`, `DTSTART`, `DURATION` and `RRULE` fields are supported. `DTSTART` must be in local (unzoned) time format. Note that while `BEGIN:VEVENT` and `END:VEVENT` is not required in the request. The response will always include them. | [optional]
+
+
+
diff --git a/docs/Coordinates.md b/docs/Coordinates.md
new file mode 100644
index 0000000..ef574a9
--- /dev/null
+++ b/docs/Coordinates.md
@@ -0,0 +1,15 @@
+
+# Coordinates
+
+### Description
+
+Latitude and longitude coordinates.
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**latitude** | [**BigDecimal**](BigDecimal.md) | The coordinate's latitude expressed in degrees. | [optional]
+**longitude** | [**BigDecimal**](BigDecimal.md) | The coordinate's longitude expressed in degrees. | [optional]
+
+
+
diff --git a/docs/CreateOrderRequest.md b/docs/CreateOrderRequest.md
index 9721ef9..2f0d782 100644
--- a/docs/CreateOrderRequest.md
+++ b/docs/CreateOrderRequest.md
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**order** | [**Order**](Order.md) | The order to create. If this field is set, then the only other top-level field that can be set is the idempotency_key. | [optional]
**idempotencyKey** | **String** | A value you specify that uniquely identifies this order among orders you've created. If you're unsure whether a particular order was created successfully, you can reattempt it with the same idempotency key without worrying about creating duplicate orders. See [Idempotency](/basics/api101/idempotency) for more information. | [optional]
-**referenceId** | **String** | __Deprecated__: Please set the reference_id on the nested [order](#type-order) field instead. An optional ID you can associate with the order for your own purposes (such as to associate the order with an entity ID in your own database). This value cannot exceed 40 characters. -- Top-level fields necessary to support the connect v2 CreateOrderRequest shape. | [optional]
+**referenceId** | **String** | __Deprecated__: Please set the reference_id on the nested [order](#type-order) field instead. An optional ID you can associate with the order for your own purposes (such as to associate the order with an entity ID in your own database). This value cannot exceed 40 characters. | [optional]
**lineItems** | [**List<CreateOrderRequestLineItem>**](CreateOrderRequestLineItem.md) | __Deprecated__: Please set the line_items on the nested [order](#type-order) field instead. The line items to associate with this order. Each line item represents a different product to include in a purchase. | [optional]
**taxes** | [**List<CreateOrderRequestTax>**](CreateOrderRequestTax.md) | __Deprecated__: Please set the taxes on the nested [order](#type-order) field instead. The taxes to include on the order. | [optional]
**discounts** | [**List<CreateOrderRequestDiscount>**](CreateOrderRequestDiscount.md) | __Deprecated__: Please set the discounts on the nested [order](#type-order) field instead. The discounts to include on the order. | [optional]
diff --git a/docs/Error.md b/docs/Error.md
index 879a159..1a884f8 100644
--- a/docs/Error.md
+++ b/docs/Error.md
@@ -75,6 +75,7 @@ INVALID_FORM_VALUE | "INVALID_FORM_VALUE"
ONE_INSTRUMENT_EXPECTED | "ONE_INSTRUMENT_EXPECTED"
NO_FIELDS_SET | "NO_FIELDS_SET"
DEPRECATED_FIELD_SET | "DEPRECATED_FIELD_SET"
+RETIRED_FIELD_SET | "RETIRED_FIELD_SET"
CARD_EXPIRED | "CARD_EXPIRED"
INVALID_EXPIRATION | "INVALID_EXPIRATION"
INVALID_EXPIRATION_YEAR | "INVALID_EXPIRATION_YEAR"
diff --git a/docs/ErrorCode.md b/docs/ErrorCode.md
index 6a88de6..dc47771 100644
--- a/docs/ErrorCode.md
+++ b/docs/ErrorCode.md
@@ -94,6 +94,8 @@
* `DEPRECATED_FIELD_SET` (value: `"DEPRECATED_FIELD_SET"`)
+* `RETIRED_FIELD_SET` (value: `"RETIRED_FIELD_SET"`)
+
* `CARD_EXPIRED` (value: `"CARD_EXPIRED"`)
* `INVALID_EXPIRATION` (value: `"INVALID_EXPIRATION"`)
diff --git a/docs/Location.md b/docs/Location.md
index 3a0fdd5..973449a 100644
--- a/docs/Location.md
+++ b/docs/Location.md
@@ -24,6 +24,12 @@ Name | Type | Description | Notes
**type** | [**TypeEnum**](#TypeEnum) | The location's type, as set by the account owner in the Square dashboard. Typically used to indicate whether or not the location object represents a physical space like a building or mall space. See [LocationType](#type-locationtype) for possible values | [optional]
**websiteUrl** | **String** | The location's website, as set by the account owner in the Square dashboard. Default: none; only exists if explicitly set. | [optional]
**businessHours** | [**BusinessHours**](BusinessHours.md) | The hours of operation for a business location. Default: none; only exists if explicitly set. | [optional]
+**businessEmail** | **String** | The email of the location. | [optional]
+**description** | **String** | The business description of the location. | [optional]
+**twitterUsername** | **String** | The Twitter username of the location without the ' | [optional]
+**instagramUsername** | **String** | The Instagram username of the location without the ' | [optional]
+**facebookUrl** | **String** | The Facebook profile URL of the location. The URL should begin with 'facebook.com/'. | [optional]
+**coordinates** | [**Coordinates**](Coordinates.md) | The physical coordinates (latitude and longitude) of the location. | [optional]
diff --git a/docs/MeasurementUnit.md b/docs/MeasurementUnit.md
index 8e30869..69a1121 100644
--- a/docs/MeasurementUnit.md
+++ b/docs/MeasurementUnit.md
@@ -13,6 +13,7 @@ Name | Type | Description | Notes
**lengthUnit** | [**LengthUnitEnum**](#LengthUnitEnum) | Represents a standard length unit. See [MeasurementUnitLength](#type-measurementunitlength) for possible values | [optional]
**volumeUnit** | [**VolumeUnitEnum**](#VolumeUnitEnum) | Represents a standard volume unit. See [MeasurementUnitVolume](#type-measurementunitvolume) for possible values | [optional]
**weightUnit** | [**WeightUnitEnum**](#WeightUnitEnum) | Represents a standard unit of weight or mass. See [MeasurementUnitWeight](#type-measurementunitweight) for possible values | [optional]
+**genericUnit** | [**GenericUnitEnum**](#GenericUnitEnum) | Reserved for API integrations that lack the ability to specify a real measurement unit See [MeasurementUnitGeneric](#type-measurementunitgeneric) for possible values | [optional]
@@ -72,4 +73,12 @@ METRIC_GRAM | "METRIC_GRAM"
METRIC_KILOGRAM | "METRIC_KILOGRAM"
+
+## Enum: GenericUnitEnum
+Name | Value
+---- | -----
+INVALID_GENERIC_UNIT | "INVALID_GENERIC_UNIT"
+UNIT | "UNIT"
+
+
diff --git a/docs/MeasurementUnitGeneric.md b/docs/MeasurementUnitGeneric.md
new file mode 100644
index 0000000..a3a6451
--- /dev/null
+++ b/docs/MeasurementUnitGeneric.md
@@ -0,0 +1,12 @@
+
+# MeasurementUnitGeneric
+
+## Enum
+
+
+* `INVALID_GENERIC_UNIT` (value: `"INVALID_GENERIC_UNIT"`)
+
+* `UNIT` (value: `"UNIT"`)
+
+
+
diff --git a/docs/OAuthApi.md b/docs/OAuthApi.md
index 087d907..96d56f3 100644
--- a/docs/OAuthApi.md
+++ b/docs/OAuthApi.md
@@ -15,7 +15,7 @@ Method | HTTP request | Description
ObtainToken
-Returns an OAuth access token. The endpoint supports distinct methods of obtaining OAuth access tokens. Applications specify a method by adding the `grant_type` parameter in the request and also provide relevant information. For more information, see [OAuth access token management](/authz/oauth/how-it-works#oauth-access-token-management). __Note:__ Regardless of the method application specified, the endpoint always returns two items; an OAuth access token and a refresh token in the response. By default, the OAuth API lets up to 500 Square accounts authorize your application. Please [contact support](https://squareup.com/help/us/en/contact?prefill=developer_api) if you are developing an application for a larger audience. __OAuth tokens should only live on secure servers. Application clients should never interact directly with OAuth tokens__.
+Returns an OAuth access token. The endpoint supports distinct methods of obtaining OAuth access tokens. Applications specify a method by adding the `grant_type` parameter in the request and also provide relevant information. For more information, see [OAuth access token management](/authz/oauth/how-it-works#oauth-access-token-management). __Note:__ Regardless of the method application specified, the endpoint always returns two items; an OAuth access token and a refresh token in the response. __OAuth tokens should only live on secure servers. Application clients should never interact directly with OAuth tokens__.
### Example
```java
diff --git a/docs/ObtainTokenResponse.md b/docs/ObtainTokenResponse.md
index 08d081b..7e589dd 100644
--- a/docs/ObtainTokenResponse.md
+++ b/docs/ObtainTokenResponse.md
@@ -12,8 +12,8 @@ Name | Type | Description | Notes
**tokenType** | **String** | This value is always _bearer_. | [optional]
**expiresAt** | **String** | The date when access_token expires, in [ISO 8601](http://www.iso.org/iso/home/standards/iso8601.htm) format. | [optional]
**merchantId** | **String** | The ID of the authorizing merchant's business. | [optional]
-**subscriptionId** | **String** | __Legacy field__. The ID of a subscription plan the merchant signed up for. Only present if the merchant signed up for a subscription during authorization. | [optional]
-**planId** | **String** | The ID of the [subscription](https://docs.connect.squareup.com/api/connect/v1/#navsection-subscriptionmanagement) plan the merchant signed up for. Only present if the merchant signed up for a subscription during authorization. | [optional]
+**subscriptionId** | **String** | __LEGACY FIELD__. The ID of a subscription plan the merchant signed up for. Only present if the merchant signed up for a subscription during authorization. | [optional]
+**planId** | **String** | __LEGACY FIELD__. The ID of the subscription plan the merchant signed up for. Only present if the merchant signed up for a subscription during authorization. | [optional]
**idToken** | **String** | Then OpenID token belonging to this this person. Only present if the OPENID scope is included in the authorize request. | [optional]
**refreshToken** | **String** | A refresh token. For more information, see [OAuth access token management](/authz/oauth/how-it-works#oauth-access-token-management). | [optional]
diff --git a/docs/Order.md b/docs/Order.md
index 89fe262..0a7be6a 100644
--- a/docs/Order.md
+++ b/docs/Order.md
@@ -8,7 +8,7 @@ Contains all information related to a single order to process with Square, inclu
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**id** | **String** | The order's unique ID. This value is only present for Order objects created by the Orders API through the [CreateOrder](#endpoint-orders-createorder) endpoint. | [optional]
+**id** | **String** | The order's unique ID. This field is read-only. | [optional]
**locationId** | **String** | The ID of the merchant location this order is associated with. |
**referenceId** | **String** | A client specified identifier to associate an entity in another system with this order. | [optional]
**source** | [**OrderSource**](OrderSource.md) | The origination details of the order. | [optional]
@@ -16,20 +16,22 @@ Name | Type | Description | Notes
**lineItems** | [**List<OrderLineItem>**](OrderLineItem.md) | The line items included in the order. | [optional]
**taxes** | [**List<OrderLineItemTax>**](OrderLineItemTax.md) | A list of taxes applied to this order. On read or retrieve, this list includes both order-level and item-level taxes. When creating an Order, set your order-level taxes in this list. | [optional]
**discounts** | [**List<OrderLineItemDiscount>**](OrderLineItemDiscount.md) | A list of discounts applied to this order. On read or retrieve, this list includes both order-level and item-level discounts. When creating an Order, set your order-level discounts in this list. | [optional]
+**serviceCharges** | [**List<OrderServiceCharge>**](OrderServiceCharge.md) | A list of service charges applied to the order. | [optional]
**fulfillments** | [**List<OrderFulfillment>**](OrderFulfillment.md) | Details on order fulfillment. Orders can only be created with at most one fulfillment. However, orders returned by the API may contain multiple fulfillments. | [optional]
-**returns** | [**List<OrderReturn>**](OrderReturn.md) | Collection of items from sale Orders being returned in this one. Normally part of an Itemized Return or Exchange. There will be exactly one `Return` object per sale Order being referenced. | [optional]
-**returnAmounts** | [**OrderMoneyAmounts**](OrderMoneyAmounts.md) | Rollup of returned money amounts. | [optional]
-**netAmounts** | [**OrderMoneyAmounts**](OrderMoneyAmounts.md) | Net money amounts (sale money - return money). | [optional]
-**roundingAdjustment** | [**OrderRoundingAdjustment**](OrderRoundingAdjustment.md) | A positive or negative rounding adjustment to the total of the order, commonly used to apply Cash Rounding when the minimum unit of account is smaller than the lowest physical denomination of currency. | [optional]
+**returns** | [**List<OrderReturn>**](OrderReturn.md) | Collection of items from sale Orders being returned in this one. Normally part of an Itemized Return or Exchange. There will be exactly one `Return` object per sale Order being referenced. This field is read-only. | [optional]
+**returnAmounts** | [**OrderMoneyAmounts**](OrderMoneyAmounts.md) | Rollup of returned money amounts. This field is read-only. | [optional]
+**netAmounts** | [**OrderMoneyAmounts**](OrderMoneyAmounts.md) | Net money amounts (sale money - return money). This field is read-only. | [optional]
+**roundingAdjustment** | [**OrderRoundingAdjustment**](OrderRoundingAdjustment.md) | A positive or negative rounding adjustment to the total of the order, commonly used to apply Cash Rounding when the minimum unit of account is smaller than the lowest physical denomination of currency. This field is read-only. | [optional]
**tenders** | [**List<Tender>**](Tender.md) | The Tenders which were used to pay for the Order. This field is read-only. | [optional]
**refunds** | [**List<Refund>**](Refund.md) | The Refunds that are part of this Order. This field is read-only. | [optional]
-**createdAt** | **String** | Timestamp for when the order was created. In RFC 3339 format, e.g., \"2016-09-04T23:59:33.123Z\". | [optional]
-**updatedAt** | **String** | Timestamp for when the order was last updated. In RFC 3339 format, e.g., \"2016-09-04T23:59:33.123Z\". | [optional]
-**closedAt** | **String** | Timestamp for when the order was closed. In RFC 3339 format, e.g., \"2016-09-04T23:59:33.123Z\". | [optional]
+**createdAt** | **String** | Timestamp for when the order was created. In RFC 3339 format, e.g., \"2016-09-04T23:59:33.123Z\". This field is read-only. | [optional]
+**updatedAt** | **String** | Timestamp for when the order was last updated. In RFC 3339 format, e.g., \"2016-09-04T23:59:33.123Z\". This field is read-only. | [optional]
+**closedAt** | **String** | Timestamp for when the order was closed. In RFC 3339 format, e.g., \"2016-09-04T23:59:33.123Z\". This field is read-only. | [optional]
**state** | [**StateEnum**](#StateEnum) | The current state of the order. `OPEN`,`COMPLETED`,`CANCELED` See [OrderState](#type-orderstate) for possible values | [optional]
-**totalMoney** | [**Money**](Money.md) | The total amount of money to collect for the order. | [optional]
-**totalTaxMoney** | [**Money**](Money.md) | The total tax amount of money to collect for the order. | [optional]
-**totalDiscountMoney** | [**Money**](Money.md) | The total discount amount of money to collect for the order. | [optional]
+**totalMoney** | [**Money**](Money.md) | The total amount of money to collect for the order. This field is read-only. | [optional]
+**totalTaxMoney** | [**Money**](Money.md) | The total tax amount of money to collect for the order. This field is read-only. | [optional]
+**totalDiscountMoney** | [**Money**](Money.md) | The total discount amount of money to collect for the order. This field is read-only. | [optional]
+**totalServiceChargeMoney** | [**Money**](Money.md) | The total amount of money collected in service charges for the order. Note: `total_service_charge_money` is the sum of `applied_money` fields for each individual service charge. Therefore, `total_service_charge_money` will only include inclusive tax amounts, not additive tax amounts. This field is read-only. | [optional]
diff --git a/docs/OrderLineItem.md b/docs/OrderLineItem.md
index 1b34078..f0a3bd6 100644
--- a/docs/OrderLineItem.md
+++ b/docs/OrderLineItem.md
@@ -8,7 +8,7 @@ Represents a line item in an order. Each line item describes a different product
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**uid** | **String** | The line item's Unique identifier, unique only within this order. This field is read-only. | [optional]
+**uid** | **String** | Unique ID that identifies the line item only within this order. This field is read-only. | [optional]
**name** | **String** | The name of the line item. | [optional]
**quantity** | **String** | The quantity purchased, formatted as a decimal number. For example: `\"3\"`. Line items with a `quantity_unit` can have non-integer quantities. For example: `\"1.70000\"`. 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). |
**quantityUnit** | [**OrderQuantityUnit**](OrderQuantityUnit.md) | The unit and precision that this line item's quantity is measured in. | [optional]
@@ -20,10 +20,10 @@ Name | Type | Description | Notes
**discounts** | [**List<OrderLineItemDiscount>**](OrderLineItemDiscount.md) | A list of discounts applied to this line item. On read or retrieve, this list includes both item-level discounts and any order-level discounts apportioned to this item. When creating an Order, set your item-level discounts in this list. | [optional]
**basePriceMoney** | [**Money**](Money.md) | The base price for a single unit of the line item. | [optional]
**variationTotalPriceMoney** | [**Money**](Money.md) | The total price of all item variations sold in this line item. Calculated as `base_price_money` multiplied by `quantity`. Does not include modifiers. | [optional]
-**grossSalesMoney** | [**Money**](Money.md) | The amount of money made in gross sales for this line item. Calculated as the sum of the variation's total price and each modifier's total price. | [optional]
-**totalTaxMoney** | [**Money**](Money.md) | The total tax amount of money to collect for the line item. | [optional]
-**totalDiscountMoney** | [**Money**](Money.md) | The total discount amount of money to collect for the line item. | [optional]
-**totalMoney** | [**Money**](Money.md) | The total amount of money to collect for this line item. | [optional]
+**grossSalesMoney** | [**Money**](Money.md) | The amount of money made in gross sales for this line item. Calculated as the sum of the variation's total price and each modifier's total price. This field is read-only. | [optional]
+**totalTaxMoney** | [**Money**](Money.md) | The total tax amount of money to collect for the line item. This field is read-only. | [optional]
+**totalDiscountMoney** | [**Money**](Money.md) | The total discount amount of money to collect for the line item. This field is read-only. | [optional]
+**totalMoney** | [**Money**](Money.md) | The total amount of money to collect for this line item. This field is read-only. | [optional]
diff --git a/docs/OrderLineItemDiscount.md b/docs/OrderLineItemDiscount.md
index 74aea5c..e0167e2 100644
--- a/docs/OrderLineItemDiscount.md
+++ b/docs/OrderLineItemDiscount.md
@@ -8,7 +8,7 @@ Represents a discount that applies to one or more line items in an order. Fixed
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**uid** | **String** | The discount's Unique identifier, unique only within this order. This field is read-only. | [optional]
+**uid** | **String** | Unique ID that identifies the discount only within this order. This field is read-only. | [optional]
**catalogObjectId** | **String** | The catalog object id referencing [CatalogDiscount](#type-catalogdiscount). | [optional]
**name** | **String** | The discount's name. | [optional]
**type** | [**TypeEnum**](#TypeEnum) | The type of the discount. If it is created by API, it would be either `FIXED_PERCENTAGE` or `FIXED_AMOUNT`. VARIABLE_* is not supported in API because the order is created at the time of sale and either percentage or amount has to be specified. See [OrderLineItemDiscountType](#type-orderlineitemdiscounttype) for possible values | [optional]
diff --git a/docs/OrderLineItemModifier.md b/docs/OrderLineItemModifier.md
index 27884c3..53381f9 100644
--- a/docs/OrderLineItemModifier.md
+++ b/docs/OrderLineItemModifier.md
@@ -8,7 +8,7 @@ A [CatalogModifier](#type-catalogmodifier).
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**uid** | **String** | The modifier's Unique identifier, unique only within this order. This field is read-only. | [optional]
+**uid** | **String** | Unique ID that identifies the modifier only within this order. This field is read-only. | [optional]
**catalogObjectId** | **String** | The catalog object id referencing [CatalogModifier](#type-catalogmodifier). | [optional]
**name** | **String** | The name of the item modifier. | [optional]
**basePriceMoney** | [**Money**](Money.md) | The base price for the modifier. `base_price_money` is required for ad hoc modifiers. If both `catalog_object_id` and `base_price_money` are set, `base_price_money` will override the predefined [CatalogModifier](#type-catalogmodifier) price. | [optional]
diff --git a/docs/OrderLineItemTax.md b/docs/OrderLineItemTax.md
index 109c01b..125d90a 100644
--- a/docs/OrderLineItemTax.md
+++ b/docs/OrderLineItemTax.md
@@ -8,7 +8,7 @@ Represents a tax that applies to one or more line items in an order.
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**uid** | **String** | The tax's Unique identifier, unique only within this order. This field is read-only. | [optional]
+**uid** | **String** | Unique ID that identifies the tax only within this order. This field is read-only. | [optional]
**catalogObjectId** | **String** | The catalog object id referencing [CatalogTax](#type-catalogtax). | [optional]
**name** | **String** | The tax's name. | [optional]
**type** | [**TypeEnum**](#TypeEnum) | Indicates the calculation method used to apply the tax. See [OrderLineItemTaxType](#type-orderlineitemtaxtype) for possible values | [optional]
diff --git a/docs/OrderReturn.md b/docs/OrderReturn.md
index 5bd6c2e..eb14759 100644
--- a/docs/OrderReturn.md
+++ b/docs/OrderReturn.md
@@ -8,9 +8,10 @@ The set of line items, service charges, taxes, discounts, tips, etc. being retur
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**uid** | **String** | The return's Unique identifier, unique only within this order. This field is read-only. | [optional]
+**uid** | **String** | Unique ID that identifies the return only within this order. This field is read-only. | [optional]
**sourceOrderId** | **String** | Order which contains the original sale of these returned line items. This will be unset for unlinked returns. | [optional]
**returnLineItems** | [**List<OrderReturnLineItem>**](OrderReturnLineItem.md) | Collection of line items which are being returned. | [optional]
+**returnServiceCharges** | [**List<OrderReturnServiceCharge>**](OrderReturnServiceCharge.md) | Collection of service charges which are being returned. This field is read-only. | [optional]
**returnTaxes** | [**List<OrderReturnTax>**](OrderReturnTax.md) | Collection of taxes which are being returned. | [optional]
**returnDiscounts** | [**List<OrderReturnDiscount>**](OrderReturnDiscount.md) | Collection of discounts which are being returned. | [optional]
**roundingAdjustment** | [**OrderRoundingAdjustment**](OrderRoundingAdjustment.md) | A positive or negative rounding adjustment to the total value being returned. Commonly used to apply Cash Rounding when the minimum unit of account is smaller than the lowest physical denomination of currency. | [optional]
diff --git a/docs/OrderReturnDiscount.md b/docs/OrderReturnDiscount.md
index 78fba7f..50783bd 100644
--- a/docs/OrderReturnDiscount.md
+++ b/docs/OrderReturnDiscount.md
@@ -8,7 +8,7 @@ The line item discount being returned.
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**uid** | **String** | The return discount's Unique identifier, unique only within this order. | [optional]
+**uid** | **String** | Unique ID that identifies the return discount only within this order. This field is read-only. | [optional]
**sourceDiscountUid** | **String** | `uid` of the Discount from the Order which contains the original application of this discount. | [optional]
**catalogObjectId** | **String** | The catalog object id referencing [CatalogDiscount](#type-catalogdiscount). | [optional]
**name** | **String** | The discount's name. | [optional]
diff --git a/docs/OrderReturnLineItem.md b/docs/OrderReturnLineItem.md
index 15aaf8e..3f261e7 100644
--- a/docs/OrderReturnLineItem.md
+++ b/docs/OrderReturnLineItem.md
@@ -21,10 +21,10 @@ Name | Type | Description | Notes
**returnDiscounts** | [**List<OrderReturnDiscount>**](OrderReturnDiscount.md) | A list of discounts applied to this line item. On read or retrieve, this list includes both item-level discounts and any return-level discounts apportioned to this item. | [optional]
**basePriceMoney** | [**Money**](Money.md) | The base price for a single unit of the line item. | [optional]
**variationTotalPriceMoney** | [**Money**](Money.md) | The total price of all item variations returned in this line item. Calculated as `base_price_money` multiplied by `quantity`. Does not include modifiers. | [optional]
-**grossReturnMoney** | [**Money**](Money.md) | The gross return amount of money calculated as (item base price + modifiers price) * quantity. | [optional]
-**totalTaxMoney** | [**Money**](Money.md) | The total tax amount of money to return for the line item. | [optional]
-**totalDiscountMoney** | [**Money**](Money.md) | The total discount amount of money to return for the line item. | [optional]
-**totalMoney** | [**Money**](Money.md) | The total amount of money to return for this line item. | [optional]
+**grossReturnMoney** | [**Money**](Money.md) | The gross return amount of money calculated as (item base price + modifiers price) * quantity. This field is read-only. | [optional]
+**totalTaxMoney** | [**Money**](Money.md) | The total tax amount of money to return for the line item. This field is read-only. | [optional]
+**totalDiscountMoney** | [**Money**](Money.md) | The total discount amount of money to return for the line item. This field is read-only. | [optional]
+**totalMoney** | [**Money**](Money.md) | The total amount of money to return for this line item. This field is read-only. | [optional]
diff --git a/docs/OrderReturnLineItemModifier.md b/docs/OrderReturnLineItemModifier.md
index fc3d64a..4ad8609 100644
--- a/docs/OrderReturnLineItemModifier.md
+++ b/docs/OrderReturnLineItemModifier.md
@@ -8,7 +8,7 @@ A line item modifier being returned.
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**uid** | **String** | The return modifier's Unique identifier, unique only within this order | [optional]
+**uid** | **String** | Unique ID that identifies the return modifier only within this order. This field is read-only. | [optional]
**sourceModifierUid** | **String** | `uid` of the Modifier from the LineItem from the Order which contains the original sale of this line item modifier. | [optional]
**catalogObjectId** | **String** | The catalog object id referencing [CatalogModifier](#type-catalogmodifier). | [optional]
**name** | **String** | The name of the item modifier. | [optional]
diff --git a/docs/OrderReturnServiceCharge.md b/docs/OrderReturnServiceCharge.md
new file mode 100644
index 0000000..eb84181
--- /dev/null
+++ b/docs/OrderReturnServiceCharge.md
@@ -0,0 +1,33 @@
+
+# OrderReturnServiceCharge
+
+### Description
+
+The service charge applied to the original order.
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**uid** | **String** | Unique ID that identifies the return service charge only within this order. This field is read-only. | [optional]
+**sourceServiceChargeUid** | **String** | `uid` of the Service Charge from the Order which contains the original charge of this service charge, null for unlinked returns. | [optional]
+**name** | **String** | The name of the service charge. | [optional]
+**catalogObjectId** | **String** | The ID referencing the service charge [CatalogObject](#type-catalogobject) | [optional]
+**percentage** | **String** | The percentage of the service charge, as a string representation of a decimal number. A value of `7.25` corresponds to a percentage of 7.25%. Exactly one of percentage or amount_money should be set. | [optional]
+**amountMoney** | [**Money**](Money.md) | The amount of a non-percentage based service charge. Exactly one of percentage or amount_money should be set. | [optional]
+**appliedMoney** | [**Money**](Money.md) | The amount of money applied to the order by the service charge, as calculated by the server. For fixed-amount service charges, `applied_money` is equal to `amount_money`. For percentage-based service charges, `applied_money` is the money calculated using the percentage. The `applied_money` field will include any inclusive tax amounts as well. This field is read-only. | [optional]
+**totalMoney** | [**Money**](Money.md) | The total amount of money to collect for the service charge. Note that `total_money` does not equal `applied_money` plus `total_tax_money` if an inclusive tax is applied to the service charge since the inclusive tax amount will be included in both `applied_money` and `total_tax_money`. This field is read-only. | [optional]
+**totalTaxMoney** | [**Money**](Money.md) | The total amount of tax money to collect for the service charge. This field is read-only. | [optional]
+**calculationPhase** | [**CalculationPhaseEnum**](#CalculationPhaseEnum) | The calculation phase after which to apply the service charge. This field is read-only. See [OrderServiceChargeCalculationPhase](#type-orderservicechargecalculationphase) for possible values | [optional]
+**taxable** | **Boolean** | Indicates whether the surcharge can be taxed. Service charges calculated in the `TOTAL_PHASE` cannot be marked as taxable. | [optional]
+**returnTaxes** | [**List<OrderReturnTax>**](OrderReturnTax.md) | The taxes which apply to the service charge. Return-level taxes apply by default to service charge calculated in the `SUBTOTAL_PHASE` if the service charge is marked as taxable. | [optional]
+
+
+
+## Enum: CalculationPhaseEnum
+Name | Value
+---- | -----
+SUBTOTAL_PHASE | "SUBTOTAL_PHASE"
+TOTAL_PHASE | "TOTAL_PHASE"
+
+
+
diff --git a/docs/OrderReturnTax.md b/docs/OrderReturnTax.md
index 76c075b..5bfa140 100644
--- a/docs/OrderReturnTax.md
+++ b/docs/OrderReturnTax.md
@@ -8,7 +8,7 @@ The line item tax being returned.
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**uid** | **String** | The return tax's Unique identifier, unique only within this order. | [optional]
+**uid** | **String** | Unique ID that identifies the return tax only within this order. This field is read-only. | [optional]
**sourceTaxUid** | **String** | `uid` of the Tax from the Order which contains the original charge of this tax. | [optional]
**catalogObjectId** | **String** | The catalog object id referencing [CatalogTax](#type-catalogtax). | [optional]
**name** | **String** | The tax's name. | [optional]
diff --git a/docs/OrderRoundingAdjustment.md b/docs/OrderRoundingAdjustment.md
index 5f03134..57b3b73 100644
--- a/docs/OrderRoundingAdjustment.md
+++ b/docs/OrderRoundingAdjustment.md
@@ -8,7 +8,7 @@ A rounding adjustment of the money being returned. Commonly used to apply Cash R
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**uid** | **String** | The rounding adjustment's Unique identifier, unique only within this order. This field is read-only. | [optional]
+**uid** | **String** | Unique ID that identifies the rounding adjustment only within this order. This field is read-only. | [optional]
**name** | **String** | The name of the rounding adjustment from the original sale Order. | [optional]
**amountMoney** | [**Money**](Money.md) | Actual rounding adjustment amount. | [optional]
diff --git a/docs/OrderServiceCharge.md b/docs/OrderServiceCharge.md
new file mode 100644
index 0000000..1ccc1b5
--- /dev/null
+++ b/docs/OrderServiceCharge.md
@@ -0,0 +1,32 @@
+
+# OrderServiceCharge
+
+### Description
+
+Represents a service charge applied to an order.
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**uid** | **String** | Unique ID that identifies the service charge only within this order. This field is read-only. | [optional]
+**name** | **String** | The name of the service charge. | [optional]
+**catalogObjectId** | **String** | The catalog object ID referencing the service charge [CatalogObject](#type-catalogobject). | [optional]
+**percentage** | **String** | The service charge percentage, as a string representation of a decimal number. For example, `7.25` indicates 7.25% Exactly one of `percentage` or `amount_money` should be set. | [optional]
+**amountMoney** | [**Money**](Money.md) | The amount of a non-percentage based service charge. Exactly one of `percentage` or `amount_money` should be set. | [optional]
+**appliedMoney** | [**Money**](Money.md) | The amount of money applied to the order by the service charge, as calculated by the server. For fixed-amount service charges, `applied_money` is equal to `amount_money`. For percentage-based service charges, `applied_money` is the money calculated using the percentage. The `applied_money` field will include any inclusive tax amounts as well. This field is read-only. | [optional]
+**totalMoney** | [**Money**](Money.md) | The total amount of money to collect for the service charge. Note that `total_money` does not equal `applied_money` plus `total_tax_money` if an inclusive tax is applied to the service charge since the inclusive tax amount will be included in both `applied_money` and `total_tax_money`. This field is read-only. | [optional]
+**totalTaxMoney** | [**Money**](Money.md) | The total amount of tax money to collect for the service charge. This field is read-only. | [optional]
+**calculationPhase** | [**CalculationPhaseEnum**](#CalculationPhaseEnum) | The calculation phase at which to apply the service charge. See [OrderServiceChargeCalculationPhase](#type-orderservicechargecalculationphase) for possible values | [optional]
+**taxable** | **Boolean** | Indicates whether the service charge can be taxed. If set to `true`, any order-level taxes will automatically apply to this service charge. Note that service charges calculated in the `TOTAL_PHASE` cannot be marked as taxable. | [optional]
+**taxes** | [**List<OrderLineItemTax>**](OrderLineItemTax.md) | Taxes applied to the service charge. By default, order-level taxes apply to service charges calculated in the `SUBTOTAL_PHASE` if `taxable` is set to `true`. | [optional]
+
+
+
+## Enum: CalculationPhaseEnum
+Name | Value
+---- | -----
+SUBTOTAL_PHASE | "SUBTOTAL_PHASE"
+TOTAL_PHASE | "TOTAL_PHASE"
+
+
+
diff --git a/docs/OrderServiceChargeCalculationPhase.md b/docs/OrderServiceChargeCalculationPhase.md
new file mode 100644
index 0000000..9bfb8c5
--- /dev/null
+++ b/docs/OrderServiceChargeCalculationPhase.md
@@ -0,0 +1,12 @@
+
+# OrderServiceChargeCalculationPhase
+
+## Enum
+
+
+* `SUBTOTAL_PHASE` (value: `"SUBTOTAL_PHASE"`)
+
+* `TOTAL_PHASE` (value: `"TOTAL_PHASE"`)
+
+
+
diff --git a/docs/OrdersApi.md b/docs/OrdersApi.md
index daf383c..4a5eb22 100644
--- a/docs/OrdersApi.md
+++ b/docs/OrdersApi.md
@@ -125,7 +125,7 @@ Name | Type | Description | Notes
SearchOrders
-Search all Orders for a merchant and return either [Orders](#type-order) or [OrderEntries](#type-orderentry). Note that details for orders processed with Square Point of Sale while in offline mode may not be transmitted to Square for up to 72 hours. Offline orders have a `created_at` value that reflects the time the order was originally processed, not the time it was subsequently transmitted to Square. Consequently, the SearchOrder endpoint might list an offline Order chronologically between online Orders that were seen in a previous request. By default, SearchOrders will return all results for all of the merchant’s locations. When fetching additional pages using a `cursor`, the `query` must be equal to the `query` used to fetch the first page of results.
+Search all Orders for a merchant and return either [Orders](#type-order) or [OrderEntries](#type-orderentry). Note that details for orders processed with Square Point of Sale while in offline mode may not be transmitted to Square for up to 72 hours. Offline orders have a `created_at` value that reflects the time the order was originally processed, not the time it was subsequently transmitted to Square. Consequently, the SearchOrder endpoint might list an offline Order chronologically between online Orders that were seen in a previous request. When fetching additional pages using a `cursor`, the `query` must be equal to the `query` used to fetch the first page of results.
### Example
```java
diff --git a/docs/RenewTokenResponse.md b/docs/RenewTokenResponse.md
index fa637a2..cb46ea2 100644
--- a/docs/RenewTokenResponse.md
+++ b/docs/RenewTokenResponse.md
@@ -12,8 +12,8 @@ Name | Type | Description | Notes
**tokenType** | **String** | This value is always _bearer_. | [optional]
**expiresAt** | **String** | The date when access_token expires, in [ISO 8601](http://www.iso.org/iso/home/standards/iso8601.htm) format. | [optional]
**merchantId** | **String** | The ID of the authorizing merchant's business. | [optional]
-**subscriptionId** | **String** | The ID of the merchant [subscription](https://docs.connect.squareup.com/api/connect/v1/#navsection-subscriptionmanagement) associated with the authorization. Only present if the merchant signed up for a subscription during authorization. | [optional]
-**planId** | **String** | The ID of the [subscription](https://docs.connect.squareup.com/api/connect/v1/#navsection-subscriptionmanagement) plan the merchant signed up for. Only present if the merchant signed up for a subscription during authorization. | [optional]
+**subscriptionId** | **String** | __LEGACY FIELD__. The ID of the merchant subscription associated with the authorization. Only present if the merchant signed up for a subscription during authorization. | [optional]
+**planId** | **String** | __LEGACY FIELD__. The ID of the subscription plan the merchant signed up for. Only present if the merchant signed up for a subscription during authorization. | [optional]
diff --git a/docs/RetrieveCatalogObjectRequest.md b/docs/RetrieveCatalogObjectRequest.md
index 79b8660..4d53608 100644
--- a/docs/RetrieveCatalogObjectRequest.md
+++ b/docs/RetrieveCatalogObjectRequest.md
@@ -8,7 +8,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**includeRelatedObjects** | **Boolean** | If `true`, the response will include additional objects that are related to the requested object, as follows: If the `object` field of the response contains a [CatalogItem](#type-catalogitem), its associated [CatalogCategory](#type-catalogcategory), [CatalogTax](#type-catalogtax)es, and [CatalogModifierList](#type-catalogmodifierlist)s will be returned in the `related_objects` field of the response. If the `object` field of the response contains a [CatalogItemVariation](#type-catalogitemvariation), its parent [CatalogItem](#type-catalogitem) will be returned in the `related_objects` field of the response. Default value: `false` | [optional]
+**includeRelatedObjects** | **Boolean** | If `true`, the response will include additional objects that are related to the requested object, as follows: If the `object` 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 `related_objects` field of the response. If the `object` field of the response contains a [CatalogItemVariation](#type-catalogitemvariation), its parent [CatalogItem](#type-catalogitem) will be returned in the `related_objects` field of the response. Default value: `false` | [optional]
diff --git a/docs/SearchCatalogObjectsRequest.md b/docs/SearchCatalogObjectsRequest.md
index 942776a..4defcd4 100644
--- a/docs/SearchCatalogObjectsRequest.md
+++ b/docs/SearchCatalogObjectsRequest.md
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
**cursor** | **String** | The pagination cursor returned in the previous response. Leave unset for an initial request. See [Pagination](/basics/api101/pagination) for more information. | [optional]
**objectTypes** | [**List<ObjectTypesEnum>**](#List<ObjectTypesEnum>) | The desired set of object types to appear in the search results. The legal values are taken from the [CatalogObjectType](#type-catalogobjecttype) enumeration, namely `\"ITEM\"`, `\"ITEM_VARIATION\"`, `\"CATEGORY\"`, `\"DISCOUNT\"`, `\"TAX\"`, `\"MODIFIER\"`, or `\"MODIFIER_LIST\"`. See [CatalogObjectType](#type-catalogobjecttype) for possible values | [optional]
**includeDeletedObjects** | **Boolean** | If `true`, deleted objects will be included in the results. Deleted objects will have their `is_deleted` field set to `true`. | [optional]
-**includeRelatedObjects** | **Boolean** | If `true`, the response will include additional objects that are related to the requested object, as follows: If a [CatalogItem](#type-catalogitem) is returned in the object field of the response, its associated [CatalogCategory](#type-catalogcategory), [CatalogTax](#type-catalogtax)es, and [CatalogModifierList](#type-catalogmodifierlist)s will be included in the `related_objects` field of the response. If a [CatalogItemVariation](#type-catalogitemvariation) is returned in the object field of the response, its parent [CatalogItem](#type-catalogitem) will be included in the `related_objects` field of the response. | [optional]
+**includeRelatedObjects** | **Boolean** | If `true`, the response will include additional objects that are related to the requested object, as follows: If a [CatalogItem](#type-catalogitem) is returned in the object field of the response, its associated [CatalogCategory](#type-catalogcategory), [CatalogTax](#type-catalogtax)es, [CatalogImage](#type-catalogimage)s and [CatalogModifierList](#type-catalogmodifierlist)s will be included in the `related_objects` field of the response. If a [CatalogItemVariation](#type-catalogitemvariation) is returned in the object field of the response, its parent [CatalogItem](#type-catalogitem) will be included in the `related_objects` field of the response. | [optional]
**beginTime** | **String** | Return objects modified after this [timestamp](#workingwithdates), in RFC 3339 format, e.g., \"2016-09-04T23:59:33.123Z\". The timestamp is exclusive - objects with a timestamp equal to `begin_time` will not be included in the response. | [optional]
**query** | [**CatalogQuery**](CatalogQuery.md) | A query to be used to filter or sort the results. If no query is specified, the entire catalog will be returned. | [optional]
**limit** | **Integer** | A limit on the number of results to be returned in a single page. The limit is advisory - the implementation may return more or fewer results. If the supplied limit is negative, zero, or is higher than the maximum limit of 1,000, it will be ignored. | [optional]
@@ -29,6 +29,9 @@ TAX | "TAX"
DISCOUNT | "DISCOUNT"
MODIFIER_LIST | "MODIFIER_LIST"
MODIFIER | "MODIFIER"
+PRICING_RULE | "PRICING_RULE"
+PRODUCT_SET | "PRODUCT_SET"
+TIME_PERIOD | "TIME_PERIOD"
diff --git a/docs/StandardUnitDescription.md b/docs/StandardUnitDescription.md
new file mode 100644
index 0000000..7773262
--- /dev/null
+++ b/docs/StandardUnitDescription.md
@@ -0,0 +1,16 @@
+
+# StandardUnitDescription
+
+### Description
+
+Contains the name and abbreviation for standard measurement unit.
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**unit** | [**MeasurementUnit**](MeasurementUnit.md) | Identifies the measurement unit being described. | [optional]
+**name** | **String** | Display name of the measurement unit. For example, 'Pound'. | [optional]
+**abbreviation** | **String** | Abbreviation for the measurement unit. For example, 'lb'. | [optional]
+
+
+
diff --git a/docs/StandardUnitDescriptionGroup.md b/docs/StandardUnitDescriptionGroup.md
new file mode 100644
index 0000000..6d0187a
--- /dev/null
+++ b/docs/StandardUnitDescriptionGroup.md
@@ -0,0 +1,15 @@
+
+# StandardUnitDescriptionGroup
+
+### Description
+
+Group of standard measurement units.
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**standardUnitDescriptions** | [**List<StandardUnitDescription>**](StandardUnitDescription.md) | List of measurement units in this description group. | [optional]
+**languageCode** | **String** | IETF language tag. | [optional]
+
+
+
diff --git a/pom.xml b/pom.xml
index d3f2b59..534f453 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
connect
jar
connect
- 2.20190508.1
+ 2.20190612.0
https://github.com/square/connect-java-sdk/
Java client library for the Square Connect API
diff --git a/src/main/java/com/squareup/connect/ApiClient.java b/src/main/java/com/squareup/connect/ApiClient.java
index a4076bf..9ed66f3 100644
--- a/src/main/java/com/squareup/connect/ApiClient.java
+++ b/src/main/java/com/squareup/connect/ApiClient.java
@@ -73,7 +73,7 @@ public ApiClient() {
this.dateFormat = new RFC3339DateFormat();
// Set default User-Agent.
- setUserAgent("Square-Connect-Java/2.20190508.1");
+ setUserAgent("Square-Connect-Java/2.20190612.0");
// Setup authentications (key: authentication name, value: authentication).
authentications = new HashMap();
diff --git a/src/main/java/com/squareup/connect/api/ApplePayApi.java b/src/main/java/com/squareup/connect/api/ApplePayApi.java
index a7f705f..a9bfb06 100644
--- a/src/main/java/com/squareup/connect/api/ApplePayApi.java
+++ b/src/main/java/com/squareup/connect/api/ApplePayApi.java
@@ -38,7 +38,7 @@ public void setApiClient(ApiClient apiClient) {
/**
* 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](/payments/sqpaymentform/overview) 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 [Embedding the Square Payment Form](/payment-form/add-digital-wallets/apple-pay) guide.
* @param body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required)
* @return RegisterDomainResponse
* @throws ApiException if fails to make API call
@@ -58,7 +58,7 @@ public RegisterDomainResponse registerDomain(RegisterDomainRequest body) throws
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
- localVarHeaderParams.put("Square-Version", "2019-05-08");
+ localVarHeaderParams.put("Square-Version", "2019-06-12");
@@ -81,7 +81,7 @@ public RegisterDomainResponse registerDomain(RegisterDomainRequest body) throws
/**
* 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](/payments/sqpaymentform/overview) 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 [Embedding the Square Payment Form](/payment-form/add-digital-wallets/apple-pay) guide.
* @param body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required)
* @return CompleteResponse
* @throws ApiException if fails to make API call
diff --git a/src/main/java/com/squareup/connect/api/CatalogApi.java b/src/main/java/com/squareup/connect/api/CatalogApi.java
index d9b986b..9905574 100644
--- a/src/main/java/com/squareup/connect/api/CatalogApi.java
+++ b/src/main/java/com/squareup/connect/api/CatalogApi.java
@@ -74,7 +74,7 @@ public BatchDeleteCatalogObjectsResponse batchDeleteCatalogObjects(BatchDeleteCa
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
- localVarHeaderParams.put("Square-Version", "2019-05-08");
+ localVarHeaderParams.put("Square-Version", "2019-06-12");
@@ -158,7 +158,7 @@ public BatchRetrieveCatalogObjectsResponse batchRetrieveCatalogObjects(BatchRetr
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
- localVarHeaderParams.put("Square-Version", "2019-05-08");
+ localVarHeaderParams.put("Square-Version", "2019-06-12");
@@ -242,7 +242,7 @@ public BatchUpsertCatalogObjectsResponse batchUpsertCatalogObjects(BatchUpsertCa
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
- localVarHeaderParams.put("Square-Version", "2019-05-08");
+ localVarHeaderParams.put("Square-Version", "2019-06-12");
@@ -320,7 +320,7 @@ public CatalogInfoResponse catalogInfo() throws ApiException {
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
- localVarHeaderParams.put("Square-Version", "2019-05-08");
+ localVarHeaderParams.put("Square-Version", "2019-06-12");
@@ -399,7 +399,7 @@ public DeleteCatalogObjectResponse deleteCatalogObject(String objectId) throws A
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
- localVarHeaderParams.put("Square-Version", "2019-05-08");
+ localVarHeaderParams.put("Square-Version", "2019-06-12");
@@ -464,7 +464,7 @@ public DeleteCatalogObjectResponse deleteCatalogObject(String objectId) throws A
}
/**
* ListCatalog
- * Returns a list of [CatalogObject](#type-catalogobject)s that includes all objects of a set of desired types (for example, all [CatalogItem](#type-catalogitem) and [CatalogTax](#type-catalogtax) objects) in the catalog. The types parameter is specified as a comma-separated list of valid [CatalogObject](#type-catalogobject) types: `ITEM`, `ITEM_VARIATION`, `MODIFIER`, `MODIFIER_LIST`, `CATEGORY`, `DISCOUNT`, `TAX`.
+ * Returns a list of [CatalogObject](#type-catalogobject)s that includes all objects of a set of desired types (for example, all [CatalogItem](#type-catalogitem) and [CatalogTax](#type-catalogtax) objects) in the catalog. The `types` parameter is specified as a comma-separated list of valid [CatalogObject](#type-catalogobject) types: `ITEM`, `ITEM_VARIATION`, `MODIFIER`, `MODIFIER_LIST`, `CATEGORY`, `DISCOUNT`, `TAX`. __Important:__ ListCatalog does not return deleted catalog items. To retrieve deleted catalog items, use SearchCatalogObjects and set `include_deleted_objects` to `true`.
* @param cursor The pagination cursor returned in the previous response. Leave unset for an initial request. See [Pagination](/basics/api101/pagination) for more information. (optional)
* @param types An optional case-insensitive, comma-separated list of object types to retrieve, for example `ITEM,ITEM_VARIATION,CATEGORY,IMAGE`. The legal values are taken from the [CatalogObjectType](#type-catalogobjecttype) enumeration, namely `ITEM`, `ITEM_VARIATION`, `CATEGORY`, `DISCOUNT`, `TAX`, `MODIFIER`, `MODIFIER_LIST`, or `IMAGE`. (optional)
* @return ListCatalogResponse
@@ -480,7 +480,7 @@ public ListCatalogResponse listCatalog(String cursor, String types) throws ApiEx
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
- localVarHeaderParams.put("Square-Version", "2019-05-08");
+ localVarHeaderParams.put("Square-Version", "2019-06-12");
localVarQueryParams.addAll(apiClient.parameterToPairs("", "cursor", cursor));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "types", types));
@@ -505,7 +505,7 @@ public ListCatalogResponse listCatalog(String cursor, String types) throws ApiEx
/**
* ListCatalog
- * Returns a list of [CatalogObject](#type-catalogobject)s that includes all objects of a set of desired types (for example, all [CatalogItem](#type-catalogitem) and [CatalogTax](#type-catalogtax) objects) in the catalog. The types parameter is specified as a comma-separated list of valid [CatalogObject](#type-catalogobject) types: `ITEM`, `ITEM_VARIATION`, `MODIFIER`, `MODIFIER_LIST`, `CATEGORY`, `DISCOUNT`, `TAX`.
+ * Returns a list of [CatalogObject](#type-catalogobject)s that includes all objects of a set of desired types (for example, all [CatalogItem](#type-catalogitem) and [CatalogTax](#type-catalogtax) objects) in the catalog. The `types` parameter is specified as a comma-separated list of valid [CatalogObject](#type-catalogobject) types: `ITEM`, `ITEM_VARIATION`, `MODIFIER`, `MODIFIER_LIST`, `CATEGORY`, `DISCOUNT`, `TAX`. __Important:__ ListCatalog does not return deleted catalog items. To retrieve deleted catalog items, use SearchCatalogObjects and set `include_deleted_objects` to `true`.
* @param cursor The pagination cursor returned in the previous response. Leave unset for an initial request. See [Pagination](/basics/api101/pagination) for more information. (optional)
* @param types An optional case-insensitive, comma-separated list of object types to retrieve, for example `ITEM,ITEM_VARIATION,CATEGORY,IMAGE`. The legal values are taken from the [CatalogObjectType](#type-catalogobjecttype) enumeration, namely `ITEM`, `ITEM_VARIATION`, `CATEGORY`, `DISCOUNT`, `TAX`, `MODIFIER`, `MODIFIER_LIST`, or `IMAGE`. (optional)
* @return CompleteResponse
@@ -546,7 +546,7 @@ public ListCatalogResponse listCatalog(String cursor, String types) throws ApiEx
* RetrieveCatalogObject
* Returns a single [CatalogItem](#type-catalogitem) as a [CatalogObject](#type-catalogobject) based on the provided ID. The returned object includes all of the relevant [CatalogItem](#type-catalogitem) information including: [CatalogItemVariation](#type-catalogitemvariation) children, references to its [CatalogModifierList](#type-catalogmodifierlist) objects, and the ids of any [CatalogTax](#type-catalogtax) objects that apply to it.
* @param objectId The object ID of any type of [CatalogObject](#type-catalogobject)s to be retrieved. (required)
- * @param includeRelatedObjects If `true`, the response will include additional objects that are related to the requested object, as follows: If the `object` field of the response contains a [CatalogItem](#type-catalogitem), its associated [CatalogCategory](#type-catalogcategory), [CatalogTax](#type-catalogtax)es, and [CatalogModifierList](#type-catalogmodifierlist)s will be returned in the `related_objects` field of the response. If the `object` field of the response contains a [CatalogItemVariation](#type-catalogitemvariation), its parent [CatalogItem](#type-catalogitem) will be returned in the `related_objects` field of the response. Default value: `false` (optional)
+ * @param includeRelatedObjects If `true`, the response will include additional objects that are related to the requested object, as follows: If the `object` 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 `related_objects` field of the response. If the `object` field of the response contains a [CatalogItemVariation](#type-catalogitemvariation), its parent [CatalogItem](#type-catalogitem) will be returned in the `related_objects` field of the response. Default value: `false` (optional)
* @return RetrieveCatalogObjectResponse
* @throws ApiException if fails to make API call
*/
@@ -566,7 +566,7 @@ public RetrieveCatalogObjectResponse retrieveCatalogObject(String objectId, Bool
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
- localVarHeaderParams.put("Square-Version", "2019-05-08");
+ localVarHeaderParams.put("Square-Version", "2019-06-12");
localVarQueryParams.addAll(apiClient.parameterToPairs("", "include_related_objects", includeRelatedObjects));
@@ -592,7 +592,7 @@ public RetrieveCatalogObjectResponse retrieveCatalogObject(String objectId, Bool
* RetrieveCatalogObject
* Returns a single [CatalogItem](#type-catalogitem) as a [CatalogObject](#type-catalogobject) based on the provided ID. The returned object includes all of the relevant [CatalogItem](#type-catalogitem) information including: [CatalogItemVariation](#type-catalogitemvariation) children, references to its [CatalogModifierList](#type-catalogmodifierlist) objects, and the ids of any [CatalogTax](#type-catalogtax) objects that apply to it.
* @param objectId The object ID of any type of [CatalogObject](#type-catalogobject)s to be retrieved. (required)
- * @param includeRelatedObjects If `true`, the response will include additional objects that are related to the requested object, as follows: If the `object` field of the response contains a [CatalogItem](#type-catalogitem), its associated [CatalogCategory](#type-catalogcategory), [CatalogTax](#type-catalogtax)es, and [CatalogModifierList](#type-catalogmodifierlist)s will be returned in the `related_objects` field of the response. If the `object` field of the response contains a [CatalogItemVariation](#type-catalogitemvariation), its parent [CatalogItem](#type-catalogitem) will be returned in the `related_objects` field of the response. Default value: `false` (optional)
+ * @param includeRelatedObjects If `true`, the response will include additional objects that are related to the requested object, as follows: If the `object` 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 `related_objects` field of the response. If the `object` field of the response contains a [CatalogItemVariation](#type-catalogitemvariation), its parent [CatalogItem](#type-catalogitem) will be returned in the `related_objects` field of the response. Default value: `false` (optional)
* @return CompleteResponse
* @throws ApiException if fails to make API call
*/
@@ -654,7 +654,7 @@ public SearchCatalogObjectsResponse searchCatalogObjects(SearchCatalogObjectsReq
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
- localVarHeaderParams.put("Square-Version", "2019-05-08");
+ localVarHeaderParams.put("Square-Version", "2019-06-12");
@@ -738,7 +738,7 @@ public UpdateItemModifierListsResponse updateItemModifierLists(UpdateItemModifie
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
- localVarHeaderParams.put("Square-Version", "2019-05-08");
+ localVarHeaderParams.put("Square-Version", "2019-06-12");
@@ -822,7 +822,7 @@ public UpdateItemTaxesResponse updateItemTaxes(UpdateItemTaxesRequest body) thro
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
- localVarHeaderParams.put("Square-Version", "2019-05-08");
+ localVarHeaderParams.put("Square-Version", "2019-06-12");
@@ -906,7 +906,7 @@ public UpsertCatalogObjectResponse upsertCatalogObject(UpsertCatalogObjectReques
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
- localVarHeaderParams.put("Square-Version", "2019-05-08");
+ localVarHeaderParams.put("Square-Version", "2019-06-12");
diff --git a/src/main/java/com/squareup/connect/api/CheckoutApi.java b/src/main/java/com/squareup/connect/api/CheckoutApi.java
index f956e1a..7cbee60 100644
--- a/src/main/java/com/squareup/connect/api/CheckoutApi.java
+++ b/src/main/java/com/squareup/connect/api/CheckoutApi.java
@@ -65,7 +65,7 @@ public CreateCheckoutResponse createCheckout(String locationId, CreateCheckoutRe
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
- localVarHeaderParams.put("Square-Version", "2019-05-08");
+ localVarHeaderParams.put("Square-Version", "2019-06-12");
diff --git a/src/main/java/com/squareup/connect/api/CustomersApi.java b/src/main/java/com/squareup/connect/api/CustomersApi.java
index e1c0593..14074dc 100644
--- a/src/main/java/com/squareup/connect/api/CustomersApi.java
+++ b/src/main/java/com/squareup/connect/api/CustomersApi.java
@@ -68,7 +68,7 @@ public CreateCustomerResponse createCustomer(CreateCustomerRequest body) throws
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
- localVarHeaderParams.put("Square-Version", "2019-05-08");
+ localVarHeaderParams.put("Square-Version", "2019-06-12");
@@ -159,7 +159,7 @@ public CreateCustomerCardResponse createCustomerCard(String customerId, CreateCu
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
- localVarHeaderParams.put("Square-Version", "2019-05-08");
+ localVarHeaderParams.put("Square-Version", "2019-06-12");
@@ -251,7 +251,7 @@ public DeleteCustomerResponse deleteCustomer(String customerId) throws ApiExcept
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
- localVarHeaderParams.put("Square-Version", "2019-05-08");
+ localVarHeaderParams.put("Square-Version", "2019-06-12");
@@ -344,7 +344,7 @@ public DeleteCustomerCardResponse deleteCustomerCard(String customerId, String c
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
- localVarHeaderParams.put("Square-Version", "2019-05-08");
+ localVarHeaderParams.put("Square-Version", "2019-06-12");
@@ -433,7 +433,7 @@ public ListCustomersResponse listCustomers(String cursor, String sortField, Stri
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
- localVarHeaderParams.put("Square-Version", "2019-05-08");
+ localVarHeaderParams.put("Square-Version", "2019-06-12");
localVarQueryParams.addAll(apiClient.parameterToPairs("", "cursor", cursor));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "sort_field", sortField));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "sort_order", sortOrder));
@@ -521,7 +521,7 @@ public RetrieveCustomerResponse retrieveCustomer(String customerId) throws ApiEx
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
- localVarHeaderParams.put("Square-Version", "2019-05-08");
+ localVarHeaderParams.put("Square-Version", "2019-06-12");
@@ -606,7 +606,7 @@ public SearchCustomersResponse searchCustomers(SearchCustomersRequest body) thro
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
- localVarHeaderParams.put("Square-Version", "2019-05-08");
+ localVarHeaderParams.put("Square-Version", "2019-06-12");
@@ -697,7 +697,7 @@ public UpdateCustomerResponse updateCustomer(String customerId, UpdateCustomerRe
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
- localVarHeaderParams.put("Square-Version", "2019-05-08");
+ localVarHeaderParams.put("Square-Version", "2019-06-12");
diff --git a/src/main/java/com/squareup/connect/api/EmployeesApi.java b/src/main/java/com/squareup/connect/api/EmployeesApi.java
index 47a05f5..301ba9d 100644
--- a/src/main/java/com/squareup/connect/api/EmployeesApi.java
+++ b/src/main/java/com/squareup/connect/api/EmployeesApi.java
@@ -56,7 +56,7 @@ public ListEmployeesResponse listEmployees(String locationId, String status, Int
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
- localVarHeaderParams.put("Square-Version", "2019-05-08");
+ localVarHeaderParams.put("Square-Version", "2019-06-12");
localVarQueryParams.addAll(apiClient.parameterToPairs("", "location_id", locationId));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "status", status));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "limit", limit));
@@ -147,7 +147,7 @@ public RetrieveEmployeeResponse retrieveEmployee(String id) throws ApiException
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
- localVarHeaderParams.put("Square-Version", "2019-05-08");
+ localVarHeaderParams.put("Square-Version", "2019-06-12");
diff --git a/src/main/java/com/squareup/connect/api/InventoryApi.java b/src/main/java/com/squareup/connect/api/InventoryApi.java
index 3e6e7f3..08d6a7e 100644
--- a/src/main/java/com/squareup/connect/api/InventoryApi.java
+++ b/src/main/java/com/squareup/connect/api/InventoryApi.java
@@ -66,7 +66,7 @@ public BatchChangeInventoryResponse batchChangeInventory(BatchChangeInventoryReq
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
- localVarHeaderParams.put("Square-Version", "2019-05-08");
+ localVarHeaderParams.put("Square-Version", "2019-06-12");
@@ -150,7 +150,7 @@ public BatchRetrieveInventoryChangesResponse batchRetrieveInventoryChanges(Batch
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
- localVarHeaderParams.put("Square-Version", "2019-05-08");
+ localVarHeaderParams.put("Square-Version", "2019-06-12");
@@ -234,7 +234,7 @@ public BatchRetrieveInventoryCountsResponse batchRetrieveInventoryCounts(BatchRe
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
- localVarHeaderParams.put("Square-Version", "2019-05-08");
+ localVarHeaderParams.put("Square-Version", "2019-06-12");
@@ -319,7 +319,7 @@ public RetrieveInventoryAdjustmentResponse retrieveInventoryAdjustment(String ad
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
- localVarHeaderParams.put("Square-Version", "2019-05-08");
+ localVarHeaderParams.put("Square-Version", "2019-06-12");
@@ -407,7 +407,7 @@ public RetrieveInventoryChangesResponse retrieveInventoryChanges(String catalogO
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
- localVarHeaderParams.put("Square-Version", "2019-05-08");
+ localVarHeaderParams.put("Square-Version", "2019-06-12");
localVarQueryParams.addAll(apiClient.parameterToPairs("", "location_ids", locationIds));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "cursor", cursor));
@@ -501,7 +501,7 @@ public RetrieveInventoryCountResponse retrieveInventoryCount(String catalogObjec
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
- localVarHeaderParams.put("Square-Version", "2019-05-08");
+ localVarHeaderParams.put("Square-Version", "2019-06-12");
localVarQueryParams.addAll(apiClient.parameterToPairs("", "location_ids", locationIds));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "cursor", cursor));
@@ -593,7 +593,7 @@ public RetrieveInventoryPhysicalCountResponse retrieveInventoryPhysicalCount(Str
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
- localVarHeaderParams.put("Square-Version", "2019-05-08");
+ localVarHeaderParams.put("Square-Version", "2019-06-12");
diff --git a/src/main/java/com/squareup/connect/api/LaborApi.java b/src/main/java/com/squareup/connect/api/LaborApi.java
index 19ecb14..09fbd06 100644
--- a/src/main/java/com/squareup/connect/api/LaborApi.java
+++ b/src/main/java/com/squareup/connect/api/LaborApi.java
@@ -76,7 +76,7 @@ public CreateBreakTypeResponse createBreakType(CreateBreakTypeRequest body) thro
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
- localVarHeaderParams.put("Square-Version", "2019-05-08");
+ localVarHeaderParams.put("Square-Version", "2019-06-12");
@@ -160,7 +160,7 @@ public CreateShiftResponse createShift(CreateShiftRequest body) throws ApiExcept
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
- localVarHeaderParams.put("Square-Version", "2019-05-08");
+ localVarHeaderParams.put("Square-Version", "2019-06-12");
@@ -245,7 +245,7 @@ public DeleteBreakTypeResponse deleteBreakType(String id) throws ApiException {
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
- localVarHeaderParams.put("Square-Version", "2019-05-08");
+ localVarHeaderParams.put("Square-Version", "2019-06-12");
@@ -331,7 +331,7 @@ public DeleteShiftResponse deleteShift(String id) throws ApiException {
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
- localVarHeaderParams.put("Square-Version", "2019-05-08");
+ localVarHeaderParams.put("Square-Version", "2019-06-12");
@@ -417,7 +417,7 @@ public GetBreakTypeResponse getBreakType(String id) throws ApiException {
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
- localVarHeaderParams.put("Square-Version", "2019-05-08");
+ localVarHeaderParams.put("Square-Version", "2019-06-12");
@@ -503,7 +503,7 @@ public GetEmployeeWageResponse getEmployeeWage(String id) throws ApiException {
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
- localVarHeaderParams.put("Square-Version", "2019-05-08");
+ localVarHeaderParams.put("Square-Version", "2019-06-12");
@@ -589,7 +589,7 @@ public GetShiftResponse getShift(String id) throws ApiException {
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
- localVarHeaderParams.put("Square-Version", "2019-05-08");
+ localVarHeaderParams.put("Square-Version", "2019-06-12");
@@ -671,7 +671,7 @@ public ListBreakTypesResponse listBreakTypes(String locationId, Integer limit, S
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
- localVarHeaderParams.put("Square-Version", "2019-05-08");
+ localVarHeaderParams.put("Square-Version", "2019-06-12");
localVarQueryParams.addAll(apiClient.parameterToPairs("", "location_id", locationId));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "limit", limit));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "cursor", cursor));
@@ -755,7 +755,7 @@ public ListEmployeeWagesResponse listEmployeeWages(String employeeId, Integer li
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
- localVarHeaderParams.put("Square-Version", "2019-05-08");
+ localVarHeaderParams.put("Square-Version", "2019-06-12");
localVarQueryParams.addAll(apiClient.parameterToPairs("", "employee_id", employeeId));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "limit", limit));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "cursor", cursor));
@@ -838,7 +838,7 @@ public ListWorkweekConfigsResponse listWorkweekConfigs(Integer limit, String cur
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
- localVarHeaderParams.put("Square-Version", "2019-05-08");
+ localVarHeaderParams.put("Square-Version", "2019-06-12");
localVarQueryParams.addAll(apiClient.parameterToPairs("", "limit", limit));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "cursor", cursor));
@@ -922,7 +922,7 @@ public SearchShiftsResponse searchShifts(SearchShiftsRequest body) throws ApiExc
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
- localVarHeaderParams.put("Square-Version", "2019-05-08");
+ localVarHeaderParams.put("Square-Version", "2019-06-12");
@@ -1013,7 +1013,7 @@ public UpdateBreakTypeResponse updateBreakType(String id, UpdateBreakTypeRequest
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap