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

Commit c25be31

Browse files
authored
Release 2.20190612.0 (#70)
1 parent 6b68d97 commit c25be31

File tree

106 files changed

+3099
-287
lines changed

Some content is hidden

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

106 files changed

+3099
-287
lines changed

CHANGES.md

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

3+
## Version 2.20190612.0 (2019-06-12)
4+
5+
* **BETA releases**:
6+
* Orders API: supports service charges with a new field and datatype.
7+
* Catalog API: supports measurement unites for item variation quantities with a new field and datatype.
8+
* **New functionality**: `Order` entities — now include a `source` field that contains details on where the order originated.
9+
* **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.
10+
311
## Version 2.20190508.1 (2019-05-28)
412

513
Bump Jackson dependency for Java SDK.

README.md

+15-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Add this dependency to your project's POM:
1818
<dependency>
1919
<groupId>com.squareup</groupId>
2020
<artifactId>connect</artifactId>
21-
<version>2.20190508.1</version>
21+
<version>2.20190612.0</version>
2222
<scope>compile</scope>
2323
</dependency>
2424
```
@@ -28,7 +28,7 @@ Add this dependency to your project's POM:
2828
Add this dependency to your project's build file:
2929

3030
```groovy
31-
compile "com.squareup:connect:2.20190508.1"
31+
compile "com.squareup:connect:2.20190612.0"
3232
```
3333

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

7171
Then manually install the following JARs:
7272

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

7676
## Getting Started
@@ -257,6 +257,7 @@ Class | Method | HTTP request | Description
257257
- [AdditionalRecipientReceivable](docs/AdditionalRecipientReceivable.md)
258258
- [AdditionalRecipientReceivableRefund](docs/AdditionalRecipientReceivableRefund.md)
259259
- [Address](docs/Address.md)
260+
- [AggregationStrategy](docs/AggregationStrategy.md)
260261
- [BatchChangeInventoryRequest](docs/BatchChangeInventoryRequest.md)
261262
- [BatchChangeInventoryResponse](docs/BatchChangeInventoryResponse.md)
262263
- [BatchDeleteCatalogObjectsRequest](docs/BatchDeleteCatalogObjectsRequest.md)
@@ -290,14 +291,17 @@ Class | Method | HTTP request | Description
290291
- [CatalogItemModifierListInfo](docs/CatalogItemModifierListInfo.md)
291292
- [CatalogItemProductType](docs/CatalogItemProductType.md)
292293
- [CatalogItemVariation](docs/CatalogItemVariation.md)
294+
- [CatalogMeasurementUnit](docs/CatalogMeasurementUnit.md)
293295
- [CatalogModifier](docs/CatalogModifier.md)
294296
- [CatalogModifierList](docs/CatalogModifierList.md)
295297
- [CatalogModifierListSelectionType](docs/CatalogModifierListSelectionType.md)
296298
- [CatalogModifierOverride](docs/CatalogModifierOverride.md)
297299
- [CatalogObject](docs/CatalogObject.md)
298300
- [CatalogObjectBatch](docs/CatalogObjectBatch.md)
299301
- [CatalogObjectType](docs/CatalogObjectType.md)
302+
- [CatalogPricingRule](docs/CatalogPricingRule.md)
300303
- [CatalogPricingType](docs/CatalogPricingType.md)
304+
- [CatalogProductSet](docs/CatalogProductSet.md)
301305
- [CatalogQuery](docs/CatalogQuery.md)
302306
- [CatalogQueryExact](docs/CatalogQueryExact.md)
303307
- [CatalogQueryItemsForModifierList](docs/CatalogQueryItemsForModifierList.md)
@@ -307,11 +311,13 @@ Class | Method | HTTP request | Description
307311
- [CatalogQuerySortedAttribute](docs/CatalogQuerySortedAttribute.md)
308312
- [CatalogQueryText](docs/CatalogQueryText.md)
309313
- [CatalogTax](docs/CatalogTax.md)
314+
- [CatalogTimePeriod](docs/CatalogTimePeriod.md)
310315
- [CatalogV1Id](docs/CatalogV1Id.md)
311316
- [ChargeRequest](docs/ChargeRequest.md)
312317
- [ChargeRequestAdditionalRecipient](docs/ChargeRequestAdditionalRecipient.md)
313318
- [ChargeResponse](docs/ChargeResponse.md)
314319
- [Checkout](docs/Checkout.md)
320+
- [Coordinates](docs/Coordinates.md)
315321
- [Country](docs/Country.md)
316322
- [CreateBreakTypeRequest](docs/CreateBreakTypeRequest.md)
317323
- [CreateBreakTypeResponse](docs/CreateBreakTypeResponse.md)
@@ -407,6 +413,7 @@ Class | Method | HTTP request | Description
407413
- [MeasurementUnit](docs/MeasurementUnit.md)
408414
- [MeasurementUnitArea](docs/MeasurementUnitArea.md)
409415
- [MeasurementUnitCustom](docs/MeasurementUnitCustom.md)
416+
- [MeasurementUnitGeneric](docs/MeasurementUnitGeneric.md)
410417
- [MeasurementUnitLength](docs/MeasurementUnitLength.md)
411418
- [MeasurementUnitVolume](docs/MeasurementUnitVolume.md)
412419
- [MeasurementUnitWeight](docs/MeasurementUnitWeight.md)
@@ -436,8 +443,11 @@ Class | Method | HTTP request | Description
436443
- [OrderReturnDiscount](docs/OrderReturnDiscount.md)
437444
- [OrderReturnLineItem](docs/OrderReturnLineItem.md)
438445
- [OrderReturnLineItemModifier](docs/OrderReturnLineItemModifier.md)
446+
- [OrderReturnServiceCharge](docs/OrderReturnServiceCharge.md)
439447
- [OrderReturnTax](docs/OrderReturnTax.md)
440448
- [OrderRoundingAdjustment](docs/OrderRoundingAdjustment.md)
449+
- [OrderServiceCharge](docs/OrderServiceCharge.md)
450+
- [OrderServiceChargeCalculationPhase](docs/OrderServiceChargeCalculationPhase.md)
441451
- [OrderSource](docs/OrderSource.md)
442452
- [OrderState](docs/OrderState.md)
443453
- [Product](docs/Product.md)
@@ -495,6 +505,8 @@ Class | Method | HTTP request | Description
495505
- [ShiftWorkdayMatcher](docs/ShiftWorkdayMatcher.md)
496506
- [SortOrder](docs/SortOrder.md)
497507
- [SourceApplication](docs/SourceApplication.md)
508+
- [StandardUnitDescription](docs/StandardUnitDescription.md)
509+
- [StandardUnitDescriptionGroup](docs/StandardUnitDescriptionGroup.md)
498510
- [TaxCalculationPhase](docs/TaxCalculationPhase.md)
499511
- [TaxInclusionType](docs/TaxInclusionType.md)
500512
- [Tender](docs/Tender.md)

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apply plugin: 'idea'
22
apply plugin: 'eclipse'
33

44
group = 'com.squareup'
5-
version = '2.20190508.1'
5+
version = '2.20190612.0'
66

77
buildscript {
88
repositories {

docs/AggregationStrategy.md

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
# AggregationStrategy
3+
4+
## Enum
5+
6+
7+
* `UNKNOWN` (value: `"UNKNOWN"`)
8+
9+
* `BASE` (value: `"BASE"`)
10+
11+
* `STACKABLE` (value: `"STACKABLE"`)
12+
13+
* `EXCLUSIVE` (value: `"EXCLUSIVE"`)
14+
15+
16+

docs/ApplePayApi.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Method | HTTP request | Description
1313
1414
RegisterDomain
1515

16-
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.
16+
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.
1717

1818
### Example
1919
```java

docs/BatchRetrieveCatalogObjectsRequest.md

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

1414

1515

docs/Card.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Name | Type | Description | Notes
1515
**expYear** | **Long** | The four-digit year of the card&#39;s expiration date. | [optional]
1616
**cardholderName** | **String** | The name of the cardholder. | [optional]
1717
**billingAddress** | [**Address**](Address.md) | The billing address for this card. | [optional]
18-
**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]
18+
**fingerprint** | **String** | A unique, Square-assigned ID that identifies the card across multiple locations and applications for a single Square account. | [optional]
1919

2020

2121
<a name="CardBrandEnum"></a>

docs/CatalogApi.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ Name | Type | Description | Notes
284284
285285
ListCatalog
286286

287-
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: &#x60;ITEM&#x60;, &#x60;ITEM_VARIATION&#x60;, &#x60;MODIFIER&#x60;, &#x60;MODIFIER_LIST&#x60;, &#x60;CATEGORY&#x60;, &#x60;DISCOUNT&#x60;, &#x60;TAX&#x60;.
287+
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 &#x60;types&#x60; parameter is specified as a comma-separated list of valid [CatalogObject](#type-catalogobject) types: &#x60;ITEM&#x60;, &#x60;ITEM_VARIATION&#x60;, &#x60;MODIFIER&#x60;, &#x60;MODIFIER_LIST&#x60;, &#x60;CATEGORY&#x60;, &#x60;DISCOUNT&#x60;, &#x60;TAX&#x60;. __Important:__ ListCatalog does not return deleted catalog items. To retrieve deleted catalog items, use SearchCatalogObjects and set &#x60;include_deleted_objects&#x60; to &#x60;true&#x60;.
288288

289289
### Example
290290
```java
@@ -358,7 +358,7 @@ oauth2.setAccessToken("YOUR ACCESS TOKEN");
358358

359359
CatalogApi apiInstance = new CatalogApi();
360360
String objectId = "objectId_example"; // String | The object ID of any type of [CatalogObject](#type-catalogobject)s to be retrieved.
361-
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`
361+
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`
362362
try {
363363
RetrieveCatalogObjectResponse result = apiInstance.retrieveCatalogObject(objectId, includeRelatedObjects);
364364
System.out.println(result);
@@ -373,7 +373,7 @@ try {
373373
Name | Type | Description | Notes
374374
------------- | ------------- | ------------- | -------------
375375
**objectId** | **String**| The object ID of any type of [CatalogObject](#type-catalogobject)s to be retrieved. |
376-
**includeRelatedObjects** | **Boolean**| If &#x60;true&#x60;, the response will include additional objects that are related to the requested object, as follows: If the &#x60;object&#x60; 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 &#x60;related_objects&#x60; field of the response. If the &#x60;object&#x60; field of the response contains a [CatalogItemVariation](#type-catalogitemvariation), its parent [CatalogItem](#type-catalogitem) will be returned in the &#x60;related_objects&#x60; field of the response. Default value: &#x60;false&#x60; | [optional]
376+
**includeRelatedObjects** | **Boolean**| If &#x60;true&#x60;, the response will include additional objects that are related to the requested object, as follows: If the &#x60;object&#x60; field of the response contains a [CatalogItem](#type-catalogitem), its associated [CatalogCategory](#type-catalogcategory), [CatalogTax](#type-catalogtax)es, [CatalogImage](#type-catalogimage)s and [CatalogModifierList](#type-catalogmodifierlist)s will be returned in the &#x60;related_objects&#x60; field of the response. If the &#x60;object&#x60; field of the response contains a [CatalogItemVariation](#type-catalogitemvariation), its parent [CatalogItem](#type-catalogitem) will be returned in the &#x60;related_objects&#x60; field of the response. Default value: &#x60;false&#x60; | [optional]
377377

378378
### Return type
379379

docs/CatalogInfoResponse.md

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
1010
------------ | ------------- | ------------- | -------------
1111
**errors** | [**List&lt;Error&gt;**](Error.md) | The set of [Error](#type-error)s encountered. | [optional]
1212
**limits** | [**CatalogInfoResponseLimits**](CatalogInfoResponseLimits.md) | | [optional]
13+
**standardUnitDescriptionGroup** | [**StandardUnitDescriptionGroup**](StandardUnitDescriptionGroup.md) | Names and abbreviations for standard units. | [optional]
1314

1415

1516

docs/CatalogItem.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Name | Type | Description | Notes
1919
**taxIds** | **List&lt;String&gt;** | 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 &#x60;UpdateItemTaxes&#x60;. | [optional]
2020
**modifierListInfo** | [**List&lt;CatalogItemModifierListInfo&gt;**](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 &#x60;UpdateItemModifierLists&#x60;. | [optional]
2121
**imageUrl** | **String** | __Deprecated__. The URL of an image representing this item. Deprecated in favor of &#x60;image_id&#x60; in [&#x60;CatalogObject&#x60;](#type-catalogobject). | [optional]
22-
**variations** | [**List&lt;CatalogObject&gt;**](CatalogObject.md) | A list of [CatalogObject](#type-catalogobject)s containing the [CatalogItemVariation](#type-catalogitemvariation)s for this item. | [optional]
22+
**variations** | [**List&lt;CatalogObject&gt;**](CatalogObject.md) | A list of [CatalogObject](#type-catalogobject)s containing the [CatalogItemVariation](#type-catalogitemvariation)s for this item. Maximum: 250 item variations | [optional]
2323
**productType** | [**ProductTypeEnum**](#ProductTypeEnum) | The product type of the item. May not be changed once an item has been created. Only items of product type &#x60;REGULAR&#x60; may be created by this API; items with other product types are read-only. See [CatalogItemProductType](#type-catalogitemproducttype) for possible values | [optional]
2424
**skipModifierScreen** | **Boolean** | If &#x60;false&#x60;, the Square Point of Sale app will present the [CatalogItem](#type-catalogitem)&#39;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 &#x60;true&#x60;, 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&#39;s details. Third-party clients are encouraged to implement similar behaviors. | [optional]
2525

docs/CatalogItemVariation.md

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

44
### Description
55

6-
An item variation (i.e., product) in the Catalog object model.
6+
An item variation (i.e., product) in the Catalog object model. Each item may have a maximum of 250 item variations.
77

88
## Properties
99
Name | Type | Description | Notes
@@ -21,6 +21,8 @@ Name | Type | Description | Notes
2121
**inventoryAlertThreshold** | **Long** | If the inventory quantity for the variation is less than or equal to this value and &#x60;inventory_alert_type&#x60; is &#x60;LOW_QUANTITY&#x60;, the variation displays an alert in the merchant dashboard. This value is always an integer. | [optional]
2222
**userData** | **String** | Arbitrary user metadata to associate with the item variation. Cannot exceed 255 characters. Searchable. | [optional]
2323
**serviceDuration** | **Long** | If the [CatalogItem](#type-catalogitem) that owns this item variation is of type &#x60;APPOINTMENTS_SERVICE&#x60;, then this is the duration of the service in milliseconds. For example, a 30 minute appointment would have the value &#x60;1800000&#x60;, which is equal to 30 (minutes) * 60 (seconds per minute) * 1000 (milliseconds per second). | [optional]
24+
**catalogMeasurementUnitId** | **String** | Represents the unit used to measure a [CatalogItemVariation](#type-catalogitemvariation) and specifies the precision for decimal quantities. | [optional]
25+
**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]
2426

2527

2628
<a name="PricingTypeEnum"></a>

docs/CatalogMeasurementUnit.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
2+
# CatalogMeasurementUnit
3+
4+
### Description
5+
6+
Represents the unit used to measure a [CatalogItemVariation](#type-catalogitemvariation) and specifies the precision for decimal quantities.
7+
8+
## Properties
9+
Name | Type | Description | Notes
10+
------------ | ------------- | ------------- | -------------
11+
**measurementUnit** | [**MeasurementUnit**](MeasurementUnit.md) | Indicates the unit used to measure the quantity of a catalog item variation. | [optional]
12+
**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]
13+
14+
15+

0 commit comments

Comments
 (0)