Skip to content

Commit 7b2d1a9

Browse files
authored
Release 2.20190213.0 (square#85)
1 parent d8e3f09 commit 7b2d1a9

File tree

75 files changed

+2058
-126
lines changed

Some content is hidden

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

75 files changed

+2058
-126
lines changed

CHANGES.md

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

3+
## Version 2.20190213.0 (2019-02-13)
4+
5+
## New feature: Order fulfillment BETA
6+
7+
The Orders API now includes beta
8+
functionality that supports in-person fulfillment through Square Point of Sale
9+
for orders placed online.
10+
11+
## Improvement: New CreateOrder request structure
12+
13+
The `CreateOrderRequest` datatype now groups order details under a single
14+
object.
15+
16+
17+
## Improvement: CreateOrder requests preserve order-level price adjustment objects
18+
19+
The `CreateOrderResponse` datatype now retains structure of order-level
20+
price adjustments in addition to converting them to scoped, line-item price
21+
adjustments. Previously, `CreateOrderResponse` did not preserve the original
22+
order-level price-adjustment objects.
23+
324
## Version 2.20181212.0 (2018-12-12)
425

526
## Improvement: ListCustomers return set expanded

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,9 @@ Class | Method | HTTP request
319319
- [ObtainTokenRequest](docs/ObtainTokenRequest.md)
320320
- [ObtainTokenResponse](docs/ObtainTokenResponse.md)
321321
- [Order](docs/Order.md)
322+
- [OrderFulfillment](docs/OrderFulfillment.md)
323+
- [OrderFulfillmentPickupDetails](docs/OrderFulfillmentPickupDetails.md)
324+
- [OrderFulfillmentRecipient](docs/OrderFulfillmentRecipient.md)
322325
- [OrderLineItem](docs/OrderLineItem.md)
323326
- [OrderLineItemDiscount](docs/OrderLineItemDiscount.md)
324327
- [OrderLineItemModifier](docs/OrderLineItemModifier.md)
@@ -426,8 +429,12 @@ Class | Method | HTTP request
426429
- [LocationCapability](docs/LocationCapability.md)
427430
- [LocationStatus](docs/LocationStatus.md)
428431
- [LocationType](docs/LocationType.md)
432+
- [OrderFulfillmentPickupDetailsScheduleType](docs/OrderFulfillmentPickupDetailsScheduleType.md)
433+
- [OrderFulfillmentState](docs/OrderFulfillmentState.md)
434+
- [OrderFulfillmentType](docs/OrderFulfillmentType.md)
429435
- [OrderLineItemDiscountScope](docs/OrderLineItemDiscountScope.md)
430436
- [OrderLineItemDiscountType](docs/OrderLineItemDiscountType.md)
437+
- [OrderLineItemTaxScope](docs/OrderLineItemTaxScope.md)
431438
- [OrderLineItemTaxType](docs/OrderLineItemTaxType.md)
432439
- [Product](docs/Product.md)
433440
- [RefundStatus](docs/RefundStatus.md)

docs/CardBrand.md

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

44
### Description
55

6-
Indicates a credit card's brand, such as `VISA` or `MASTERCARD`.
6+
Indicates a card's brand, such as `VISA` or `MASTERCARD`.
77

88
## Properties
99
Name | Type

docs/CatalogCategory.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ A category to which an [CatalogItem](#type-catalogitem) belongs in the Catalog o
88
## Properties
99
Name | Type | Description | Notes
1010
------------ | ------------- | ------------- | -------------
11-
**name** | **str** | The category's name. Searchable. | [optional]
11+
**name** | **str** | The category's name. Searchable. This field has max length of 255 Unicode code points. | [optional]
1212

1313
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1414

docs/CatalogDiscount.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ A discount in the Catalog object model.
88
## Properties
99
Name | Type | Description | Notes
1010
------------ | ------------- | ------------- | -------------
11-
**name** | **str** | The discount's name. Searchable. | [optional]
11+
**name** | **str** | The discount's name. Searchable. This field has max length of 255 Unicode code points. | [optional]
1212
**discount_type** | **str** | Indicates whether the discount is a fixed amount or percentage, or entered at the time of sale. See [CatalogDiscountType](#type-catalogdiscounttype) for all possible values. | [optional]
1313
**percentage** | **str** | The percentage of the discount as a string representation of a decimal number, using a `.` as the decimal separator and without a `%` sign. A value of `7.5` corresponds to `7.5%`. Specify a percentage of `0` if `discount_type` is `VARIABLE_PERCENTAGE`. Do not include this field for amount-based or variable discounts. | [optional]
1414
**amount_money** | [**Money**](Money.md) | The amount of the discount. Specify an amount of `0` if `discount_type` is `VARIABLE_AMOUNT`. Do not include this field for percentage-based or variable discounts. | [optional]
1515
**pin_required** | **bool** | Indicates whether a mobile staff member needs to enter their PIN to apply the discount to a payment in the Square Point of Sale app. | [optional]
16-
**label_color** | **str** | The color of the discount's display label in the Square Point of Sale app. | [optional]
16+
**label_color** | **str** | The color of the discount's display label in the Square Point of Sale app. This must be a valid hex color code. | [optional]
1717

1818
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1919

docs/CatalogItem.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ An item (i.e., product family) in the Catalog object model.
88
## Properties
99
Name | Type | Description | Notes
1010
------------ | ------------- | ------------- | -------------
11-
**name** | **str** | The item's name. Searchable. | [optional]
12-
**description** | **str** | The item's description. Searchable. | [optional]
13-
**abbreviation** | **str** | The text of the item's display label in the Square Point of Sale app. Only up to the first five characters of the string are used. Searchable. | [optional]
14-
**label_color** | **str** | The color of the item's display label in the Square Point of Sale app. | [optional]
11+
**name** | **str** | The item's name. Searchable. This field must not be empty. This field has max length of 512 Unicode code points. | [optional]
12+
**description** | **str** | The item's description. Searchable. This field has max length of 4096 Unicode code points. | [optional]
13+
**abbreviation** | **str** | The text of the item's display label in the Square Point of Sale app. Only up to the first five characters of the string are used. Searchable. This field has max length of 24 Unicode code points. | [optional]
14+
**label_color** | **str** | The color of the item's display label in the Square Point of Sale app. This must be a valid hex color code. | [optional]
1515
**available_online** | **bool** | If `true`, the item can be added to shipping orders from the merchant's online store. | [optional]
1616
**available_for_pickup** | **bool** | If `true`, the item can be added to pickup orders from the merchant's online store. | [optional]
1717
**available_electronically** | **bool** | If `true`, the item can be added to electronically fulfilled orders from the merchant's online store. | [optional]

docs/CatalogItemVariation.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ An item variation (i.e., product) in the Catalog object model.
99
Name | Type | Description | Notes
1010
------------ | ------------- | ------------- | -------------
1111
**item_id** | **str** | The ID of the [CatalogItem](#type-catalogitem) associated with this item variation. Searchable. | [optional]
12-
**name** | **str** | The item variation's name. Searchable. | [optional]
12+
**name** | **str** | The item variation's name. Searchable. This field has max length of 255 Unicode code points. | [optional]
1313
**sku** | **str** | The item variation's SKU, if any. Searchable. | [optional]
1414
**upc** | **str** | The item variation's UPC, if any. Searchable in the Connect API. This field is only exposed in the Connect API. It is not exposed in Square's Dashboard, Square Point of Sale app or Retail Point of Sale app. | [optional]
1515
**ordinal** | **int** | The order in which this item variation should be displayed. This value is read-only. On writes, the ordinal for each item variation within a parent [CatalogItem](#type-catalogitem) is set according to the item variations's position. On reads, the value is not guaranteed to be sequential or unique. | [optional]
@@ -19,7 +19,7 @@ Name | Type | Description | Notes
1919
**track_inventory** | **bool** | If `true`, inventory tracking is active for the variation. | [optional]
2020
**inventory_alert_type** | **str** | Indicates whether the item variation displays an alert when its inventory quantity is less than or equal to its `inventory_alert_threshold`. See [InventoryAlertType](#type-inventoryalerttype) for all possible values. | [optional]
2121
**inventory_alert_threshold** | **int** | 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]
22-
**user_data** | **str** | Arbitrary user metadata to associate with the item variation. Cannot exceed 255 characters. Searchable. | [optional]
22+
**user_data** | **str** | Arbitrary user metadata to associate with the item variation. Searchable. This field has max length of 255 Unicode code points. | [optional]
2323
**service_duration** | **int** | 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]
2424

2525
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

docs/CatalogModifier.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ A modifier in the Catalog object model.
88
## Properties
99
Name | Type | Description | Notes
1010
------------ | ------------- | ------------- | -------------
11-
**name** | **str** | The modifier's name. Searchable. | [optional]
11+
**name** | **str** | The modifier's name. Searchable. This field has max length of 255 Unicode code points. | [optional]
1212
**price_money** | [**Money**](Money.md) | The modifier's price. | [optional]
1313

1414
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

docs/CatalogModifierList.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ A modifier list in the Catalog object model. A [CatalogModifierList](#type-catal
88
## Properties
99
Name | Type | Description | Notes
1010
------------ | ------------- | ------------- | -------------
11-
**name** | **str** | The [CatalogModifierList](#type-catalogmodifierlist)'s name. Searchable. | [optional]
11+
**name** | **str** | The [CatalogModifierList](#type-catalogmodifierlist)'s name. Searchable. This field has max length of 255 Unicode code points. | [optional]
1212
**selection_type** | **str** | Indicates whether multiple options from the [CatalogModifierList](#type-catalogmodifierlist) can be applied to a single [CatalogItem](#type-catalogitem). See [CatalogModifierListSelectionType](#type-catalogmodifierlistselectiontype) for all possible values. | [optional]
1313
**modifiers** | [**list[CatalogObject]**](CatalogObject.md) | The options included in the [CatalogModifierList](#type-catalogmodifierlist). You must include at least one [CatalogModifier](#type-catalogmodifier). Each [CatalogObject](#type-catalogobject) must have type `MODIFIER` and contain [CatalogModifier](#type-catalogmodifier) data. | [optional]
1414

docs/CatalogObject.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
1111
**type** | **str** | The type of this object. Each object type has expected properties expressed in a structured format within its corresponding `*_data` field below. See [CatalogObjectType](#type-catalogobjecttype) for all possible values. |
1212
**id** | **str** | An identifier to reference this object in the catalog. When a new CatalogObject is inserted, the client should set the id to a temporary identifier starting with a `'#'` character. Other objects being inserted or updated within the same request may use this identifier to refer to the new object. When the server receives the new object, it will supply a unique identifier that replaces the temporary identifier for all future references. |
1313
**updated_at** | **str** | Last modification [timestamp](#workingwithdates) in RFC 3339 format, e.g., `\"2016-08-15T23:59:33.123Z\"` would indicate the UTC time (denoted by `Z`) of August 15, 2016 at 23:59:33 and 123 milliseconds. | [optional]
14-
**version** | **int** | The version of the object. When updating an object, the version supplied by the must match the version in the database, otherwise the write will be rejected as conflicting. | [optional]
14+
**version** | **int** | The version of the object. When updating an object, the version supplied must match the version in the database, otherwise the write will be rejected as conflicting. | [optional]
1515
**is_deleted** | **bool** | If `true`, the object has been deleted from the database. Must be `false` for new objects being inserted. When deleted, the `updated_at` field will equal the deletion time. | [optional]
1616
**catalog_v1_ids** | [**list[CatalogV1Id]**](CatalogV1Id.md) | The Connect V1 IDs for this object at each [location](#type-location) where it is present, where they differ from the object's Connect V2 ID. The field will only be present for objects that have been created or modified by legacy APIs. | [optional]
1717
**present_at_all_locations** | **bool** | If `true`, this object is present at all locations (including future locations), except where specified in the `absent_at_location_ids` field. If `false`, this object is not present at any locations (including future locations), except where specified in the `present_at_location_ids` field. If not specified, defaults to `true`. | [optional]

docs/CatalogObjectType.md

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

44
### Description
55

6-
Possible kinds of [CatalogObject](#type-catalogobject)s returned from the Catalog, each contaning type-specific properties in the `*_data` field corresponding to the object type.
6+
Possible kinds of [CatalogObject](#type-catalogobject)s returned from the Catalog, each containing type-specific properties in the `*_data` field corresponding to the object type.
77

88
## Properties
99
Name | Type

docs/CatalogTax.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ A tax in the Catalog object model.
88
## Properties
99
Name | Type | Description | Notes
1010
------------ | ------------- | ------------- | -------------
11-
**name** | **str** | The tax's name. Searchable. | [optional]
11+
**name** | **str** | The tax's name. Searchable. This field has max length of 255 Unicode code points. | [optional]
1212
**calculation_phase** | **str** | Whether the tax is calculated based on a payment's subtotal or total. See [TaxCalculationPhase](#type-taxcalculationphase) for all possible values. | [optional]
1313
**inclusion_type** | **str** | Whether the tax is `ADDITIVE` or `INCLUSIVE`. See [TaxInclusionType](#type-taxinclusiontype) for all possible values. | [optional]
1414
**percentage** | **str** | The percentage of the tax in decimal form, using a `'.'` as the decimal separator and without a `'%'` sign. A value of `7.5` corresponds to 7.5%. | [optional]

docs/CheckoutApi.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Method | HTTP request
1414
1515
### Description
1616

17-
Creates a [Checkout](#type-checkout) response that links a `checkoutId` and `checkout_page_url` that customers can be directed to in order to provide their payment information using a payment processing workflow hosted on connect.squareup.com.
17+
Links a `checkoutId` to a `checkout_page_url` that customers will be directed to in order to provide their payment information using a payment processing workflow hosted on connect.squareup.com.
1818

1919
### Parameters
2020

docs/CreateOrderRequest.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@
88
## Properties
99
Name | Type | Description | Notes
1010
------------ | ------------- | ------------- | -------------
11+
**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]
1112
**idempotency_key** | **str** | 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 keys](#idempotencykeys) for more information. | [optional]
12-
**reference_id** | **str** | 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]
13-
**line_items** | [**list[CreateOrderRequestLineItem]**](CreateOrderRequestLineItem.md) | The line items to associate with this order. Each line item represents a different product to include in a purchase. |
14-
**taxes** | [**list[CreateOrderRequestTax]**](CreateOrderRequestTax.md) | The taxes to include on the order. | [optional]
15-
**discounts** | [**list[CreateOrderRequestDiscount]**](CreateOrderRequestDiscount.md) | The discounts to include on the order. | [optional]
13+
**reference_id** | **str** | __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]
14+
**line_items** | [**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]
15+
**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]
16+
**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]
1617

1718
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1819

docs/CreateOrderRequestDiscount.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
### Description
55

6-
Represents a discount that can apply to either a single line item or an entire order.
6+
__Deprecated__: Please use the [OrderLineItemDiscount](#type-orderlineitemdiscount) type in the order field of [CreateOrderRequest](#type-createorderrequest) instead. Represents a discount that can apply to either a single line item or an entire order.
77

88
## Properties
99
Name | Type | Description | Notes

docs/CreateOrderRequestLineItem.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
### Description
55

6-
Represents a line item to include in an order. Each line item describes a different product to purchase, with its own quantity and price details. Line items can either reference objects from the merchant's catalog, or can alternatively specify a name and price instead.
6+
__Deprecated__: Please use the [OrderLineItem](#type-orderlineitem) type in the order field of [CreateOrderRequest](#type-createorderrequest) instead. Represents a line item to include in an order. Each line item describes a different product to purchase, with its own quantity and price details. Line items can either reference objects from the merchant's catalog, or can alternatively specify a name and price instead.
77

88
## Properties
99
Name | Type | Description | Notes

docs/CreateOrderRequestModifier.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
### Description
55

6-
Represents a modifier applied to a single line item. Modifiers can reference existing objects in a merchant catalog or be constructed ad hoc at the time of purchase by providing a name and price.
6+
__Deprecated__: Please use the [OrderLineItemModifier](#type-orderlineitemmodifier) type instead. Represents a modifier applied to a single line item. Modifiers can reference existing objects in a merchant catalog or be constructed ad hoc at the time of purchase by providing a name and price.
77

88
## Properties
99
Name | Type | Description | Notes

docs/CreateOrderRequestTax.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
### Description
55

6-
Represents a tax that can apply to either a single line item or an entire order.
6+
__Deprecated__: Please use the [OrderLineItemTax](#type-orderlineitemtax) type in the order field of [CreateOrderRequest](#type-createorderrequest) instead. Represents a tax that can apply to either a single line item or an entire order.
77

88
## Properties
99
Name | Type | Description | Notes

0 commit comments

Comments
 (0)