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

Commit

Permalink
Release 2.20190313.0 (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssung88 authored Mar 13, 2019
1 parent c04b18a commit d2fe44a
Show file tree
Hide file tree
Showing 644 changed files with 24,284 additions and 826 deletions.
24 changes: 24 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
# Change Log

## Version 2.20190313.0 (2019-03-13)

## New API: Labor API

The Labor API now includes functionality
that gives a Square account the ability to track and retrieve employee labor hours
including multiple hourly wage rates per employee, work shift break tracking, and
standardized break templates.

See the Connect v2 Technical Reference.

## New API: Employees API

The Employees API includes the ability to list employees for a Square
account and retrieve a single employee by ID.

See the Connect v2 Technical Reference.

## Improvement: Simplified OAuth access token renewal

The RenewToken endpoint is now deprecated and replaced with new functionality in ObtainToken.
ObtainToken now returns a refresh token along with an access token. Refresh
tokens are used to renew expired OAuth access tokens.

## Version 2.20190213.0 (2019-02-13)

## New feature: Order fulfillment BETA
Expand Down
330 changes: 258 additions & 72 deletions README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'idea'
apply plugin: 'eclipse'

group = 'com.squareup'
version = '2.20190213.0'
version = '2.20190313.0'

buildscript {
repositories {
Expand Down
4 changes: 4 additions & 0 deletions docs/AdditionalRecipient.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@

# AdditionalRecipient

### Description

Represents an additional recipient (other than the merchant) receiving a portion of this tender.

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
Expand Down
4 changes: 4 additions & 0 deletions docs/AdditionalRecipientReceivable.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@

# AdditionalRecipientReceivable

### Description

Represents a monetary distribution of part of a [Transaction](#type-transaction)'s amount for Transactions which included additional recipients. The location of this receivable is that same as the one specified in the [AdditionalRecipient](#type-additionalrecipient).

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
Expand Down
4 changes: 4 additions & 0 deletions docs/AdditionalRecipientReceivableRefund.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@

# AdditionalRecipientReceivableRefund

### Description

A refund of an [AdditionalRecipientReceivable](#type-additionalrecipientreceivable). This includes the ID of the additional recipient receivable associated to this object, as well as a reference to the [Refund](#type-refund) that created this receivable refund.

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
Expand Down
4 changes: 4 additions & 0 deletions docs/Address.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@

# Address

### Description

Represents a physical address.

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
Expand Down
4 changes: 4 additions & 0 deletions docs/BatchChangeInventoryRequest.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@

# BatchChangeInventoryRequest

### Description



## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
Expand Down
4 changes: 4 additions & 0 deletions docs/BatchChangeInventoryResponse.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@

# BatchChangeInventoryResponse

### Description



## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
Expand Down
4 changes: 4 additions & 0 deletions docs/BatchDeleteCatalogObjectsRequest.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@

# BatchDeleteCatalogObjectsRequest

### Description



## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
Expand Down
4 changes: 4 additions & 0 deletions docs/BatchDeleteCatalogObjectsResponse.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@

# BatchDeleteCatalogObjectsResponse

### Description



## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
Expand Down
4 changes: 4 additions & 0 deletions docs/BatchRetrieveCatalogObjectsRequest.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@

# BatchRetrieveCatalogObjectsRequest

### Description



## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
Expand Down
4 changes: 4 additions & 0 deletions docs/BatchRetrieveCatalogObjectsResponse.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@

# BatchRetrieveCatalogObjectsResponse

### Description



## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
Expand Down
6 changes: 5 additions & 1 deletion docs/BatchRetrieveInventoryChangesRequest.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@

# BatchRetrieveInventoryChangesRequest

### Description



## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
Expand All @@ -10,7 +14,7 @@ Name | Type | Description | Notes
**states** | [**List<StatesEnum>**](#List<StatesEnum>) | Filters `ADJUSTMENT` query results by [InventoryState](#type-inventorystate). Only applied when set. Default: unset. | [optional]
**updatedAfter** | **String** | Provided as an RFC 3339 timestamp. Returns results whose `created_at` or `calculated_at` value is after the given time. Default: UNIX epoch (`1970-01-01T00:00:00Z`). | [optional]
**updatedBefore** | **String** | Provided as an RFC 3339 timestamp. Returns results whose `created_at` or `calculated_at` value is strictly before the given time. Default: UNIX epoch (`1970-01-01T00:00:00Z`). | [optional]
**cursor** | **String** | A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query. See [Paginating results](#paginatingresults) for more information. | [optional]
**cursor** | **String** | A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query. See [Pagination](/basics/api101/pagination) for more information. | [optional]


<a name="List<TypesEnum>"></a>
Expand Down
6 changes: 5 additions & 1 deletion docs/BatchRetrieveInventoryChangesResponse.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@

# BatchRetrieveInventoryChangesResponse

### Description



## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**errors** | [**List&lt;Error&gt;**](Error.md) | Any errors that occurred during the request. | [optional]
**changes** | [**List&lt;InventoryChange&gt;**](InventoryChange.md) | The current calculated inventory changes for the requested objects and locations. | [optional]
**cursor** | **String** | The pagination cursor to be used in a subsequent request. If unset, this is the final response. See [Paginating results](#paginatingresults) for more information. | [optional]
**cursor** | **String** | The pagination cursor to be used in a subsequent request. If unset, this is the final response. See [Pagination](/basics/api101/pagination) for more information. | [optional]



6 changes: 5 additions & 1 deletion docs/BatchRetrieveInventoryCountsRequest.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@

# BatchRetrieveInventoryCountsRequest

### Description



## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**catalogObjectIds** | **List&lt;String&gt;** | Filters results by [CatalogObject](#type-catalogobject) ID. Only applied when set. Default: unset. | [optional]
**locationIds** | **List&lt;String&gt;** | Filters results by [Location](#type-location) ID. Only applied when set. Default: unset. | [optional]
**updatedAfter** | **String** | Provided as an RFC 3339 timestamp. Returns results whose &#x60;calculated_at&#x60; value is after the given time. Default: UNIX epoch (&#x60;1970-01-01T00:00:00Z&#x60;). | [optional]
**cursor** | **String** | A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query. See [Paginating results](#paginatingresults) for more information. | [optional]
**cursor** | **String** | A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query. See [Pagination](/basics/api101/pagination) for more information. | [optional]



6 changes: 5 additions & 1 deletion docs/BatchRetrieveInventoryCountsResponse.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@

# BatchRetrieveInventoryCountsResponse

### Description



## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**errors** | [**List&lt;Error&gt;**](Error.md) | Any errors that occurred during the request. | [optional]
**counts** | [**List&lt;InventoryCount&gt;**](InventoryCount.md) | The current calculated inventory counts for the requested objects and locations. | [optional]
**cursor** | **String** | The pagination cursor to be used in a subsequent request. If unset, this is the final response. See [Paginating results](#paginatingresults) for more information. | [optional]
**cursor** | **String** | The pagination cursor to be used in a subsequent request. If unset, this is the final response. See [Pagination](/basics/api101/pagination) for more information. | [optional]



4 changes: 4 additions & 0 deletions docs/BatchRetrieveOrdersRequest.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@

# BatchRetrieveOrdersRequest

### Description



## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
Expand Down
4 changes: 4 additions & 0 deletions docs/BatchRetrieveOrdersResponse.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@

# BatchRetrieveOrdersResponse

### Description

Defines the fields that are included in the response body of a request to the [BatchRetrieveOrders](#endpoint-batchretrieveorders) endpoint.

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
Expand Down
6 changes: 5 additions & 1 deletion docs/BatchUpsertCatalogObjectsRequest.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@

# BatchUpsertCatalogObjectsRequest

### Description



## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**idempotencyKey** | **String** | A value you specify that uniquely identifies this request among all your requests. A common way to create a valid idempotency key is to use a Universally unique identifier (UUID). If you&#39;re unsure whether a particular request was successful, you can reattempt it with the same idempotency key without worrying about creating duplicate objects. See [Idempotency keys](#idempotencykeys) for more information. |
**idempotencyKey** | **String** | A value you specify that uniquely identifies this request among all your requests. A common way to create a valid idempotency key is to use a Universally unique identifier (UUID). If you&#39;re unsure whether a particular request was successful, you can reattempt it with the same idempotency key without worrying about creating duplicate objects. See [Idempotency](/basics/api101/idempotency) for more information. |
**batches** | [**List&lt;CatalogObjectBatch&gt;**](CatalogObjectBatch.md) | A batch of [CatalogObject](#type-catalogobject)s to be inserted/updated atomically. The objects within a batch will be inserted in an all-or-nothing fashion, i.e., if an error occurs attempting to insert or update an object within a batch, the entire batch will be rejected. However, an error in one batch will not affect other batches within the same request. For each object, its &#x60;updated_at&#x60; field is ignored and replaced with a current [timestamp](#workingwithdates), and its &#x60;is_deleted&#x60; field must not be set to &#x60;true&#x60;. To modify an existing object, supply its ID. To create a new object, use an ID starting with &#x60;#&#x60;. These IDs may be used to create relationships between an object and attributes of other objects that reference it. For example, you can create a [CatalogItem](#type-catalogitem) with ID &#x60;#ABC&#x60; and a [CatalogItemVariation](#type-catalogitemvariation) with its &#x60;item_id&#x60; attribute set to &#x60;#ABC&#x60; in order to associate the [CatalogItemVariation](#type-catalogitemvariation) with its parent [CatalogItem](#type-catalogitem). Any &#x60;#&#x60;-prefixed IDs are valid only within a single atomic batch, and will be replaced by server-generated IDs. Each batch may contain up to 1,000 objects. The total number of objects across all batches for a single request may not exceed 10,000. If either of these limits is violated, an error will be returned and no objects will be inserted or updated. | [optional]


Expand Down
4 changes: 4 additions & 0 deletions docs/BatchUpsertCatalogObjectsResponse.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@

# BatchUpsertCatalogObjectsResponse

### Description



## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
Expand Down
21 changes: 21 additions & 0 deletions docs/BreakType.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@

# BreakType

### Description

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

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **String** | UUID for this object. | [optional]
**locationId** | **String** | The ID of the business location this type of break applies to. |
**breakName** | **String** | A human-readable name for this type of break. Will be displayed to employees in Square products. |
**expectedDuration** | **String** | Format: RFC-3339 P[n]Y[n]M[n]DT[n]H[n]M[n]S. The expected length of this break. Precision below minutes is truncated. |
**isPaid** | **Boolean** | Whether this break counts towards time worked for compensation purposes. |
**version** | **Integer** | Used for resolving concurrency issues; request will fail if version provided does not match server version at time of request. If a value is not provided, Square&#39;s servers execute a \&quot;blind\&quot; write; potentially overwriting another writer&#39;s data. | [optional]
**createdAt** | **String** | A read-only timestamp in RFC 3339 format. | [optional]
**updatedAt** | **String** | A read-only timestamp in RFC 3339 format. | [optional]



4 changes: 4 additions & 0 deletions docs/CaptureTransactionRequest.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@

# CaptureTransactionRequest

### Description



## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
Expand Down
4 changes: 4 additions & 0 deletions docs/CaptureTransactionResponse.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@

# CaptureTransactionResponse

### Description

Defines the fields that are included in the response body of a request to the [CaptureTransaction](#endpoint-capturetransaction) endpoint.

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
Expand Down
6 changes: 5 additions & 1 deletion docs/Card.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@

# Card

### Description

Represents the payment details of a card to be used for payments. These details are determined by the `card_nonce` generated by `SqPaymentForm`.

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
Expand All @@ -11,7 +15,7 @@ Name | Type | Description | Notes
**expYear** | **Long** | The four-digit year of the card&#39;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** | __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]


<a name="CardBrandEnum"></a>
Expand Down
4 changes: 2 additions & 2 deletions docs/CatalogApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");

CatalogApi apiInstance = new CatalogApi();
String cursor = "cursor_example"; // String | The pagination cursor returned in the previous response. Leave unset for an initial request. See [Paginating results](#paginatingresults) for more information.
String cursor = "cursor_example"; // String | The pagination cursor returned in the previous response. Leave unset for an initial request. See [Pagination](/basics/api101/pagination) for more information.
String types = "types_example"; // String | An optional case-insensitive, comma-separated list of object types to retrieve, for example `ITEM,ITEM_VARIATION,CATEGORY`. The legal values are taken from the [CatalogObjectType](#type-catalogobjecttype) enumeration, namely `\"ITEM\"`, `\"ITEM_VARIATION\"`, `\"CATEGORY\"`, `\"DISCOUNT\"`, `\"TAX\"`, `\"MODIFIER\"`, or `\"MODIFIER_LIST\"`.
try {
ListCatalogResponse result = apiInstance.listCatalog(cursor, types);
Expand All @@ -317,7 +317,7 @@ try {

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**cursor** | **String**| The pagination cursor returned in the previous response. Leave unset for an initial request. See [Paginating results](#paginatingresults) for more information. | [optional]
**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]
**types** | **String**| An optional case-insensitive, comma-separated list of object types to retrieve, for example &#x60;ITEM,ITEM_VARIATION,CATEGORY&#x60;. The legal values are taken from the [CatalogObjectType](#type-catalogobjecttype) enumeration, namely &#x60;\&quot;ITEM\&quot;&#x60;, &#x60;\&quot;ITEM_VARIATION\&quot;&#x60;, &#x60;\&quot;CATEGORY\&quot;&#x60;, &#x60;\&quot;DISCOUNT\&quot;&#x60;, &#x60;\&quot;TAX\&quot;&#x60;, &#x60;\&quot;MODIFIER\&quot;&#x60;, or &#x60;\&quot;MODIFIER_LIST\&quot;&#x60;. | [optional]

### Return type
Expand Down
4 changes: 4 additions & 0 deletions docs/CatalogCategory.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@

# CatalogCategory

### Description

A category to which an [CatalogItem](#type-catalogitem) belongs in the Catalog object model.

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
Expand Down
4 changes: 4 additions & 0 deletions docs/CatalogDiscount.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@

# CatalogDiscount

### Description

A discount in the Catalog object model.

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
Expand Down
4 changes: 4 additions & 0 deletions docs/CatalogIdMapping.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@

# CatalogIdMapping

### Description

A mapping between a client-supplied temporary ID and a permanent server ID.

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
Expand Down
4 changes: 4 additions & 0 deletions docs/CatalogInfoRequest.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@

# CatalogInfoRequest

### Description



## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
Expand Down
Loading

0 comments on commit d2fe44a

Please sign in to comment.