square_connect 2.20181212.0.267 → 2.20190213.0.274

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +21 -0
  3. data/README.md +8 -1
  4. data/docs/CardBrand.md +1 -1
  5. data/docs/CatalogCategory.md +1 -1
  6. data/docs/CatalogDiscount.md +2 -2
  7. data/docs/CatalogItem.md +4 -4
  8. data/docs/CatalogItemVariation.md +2 -2
  9. data/docs/CatalogModifier.md +1 -1
  10. data/docs/CatalogModifierList.md +1 -1
  11. data/docs/CatalogObject.md +1 -1
  12. data/docs/CatalogObjectType.md +1 -1
  13. data/docs/CatalogTax.md +1 -1
  14. data/docs/CheckoutApi.md +1 -1
  15. data/docs/CreateOrderRequest.md +5 -4
  16. data/docs/CreateOrderRequestDiscount.md +1 -1
  17. data/docs/CreateOrderRequestLineItem.md +1 -1
  18. data/docs/CreateOrderRequestModifier.md +1 -1
  19. data/docs/CreateOrderRequestTax.md +1 -1
  20. data/docs/ErrorCode.md +1 -0
  21. data/docs/Order.md +4 -1
  22. data/docs/OrderFulfillment.md +14 -0
  23. data/docs/OrderFulfillmentPickupDetails.md +27 -0
  24. data/docs/OrderFulfillmentPickupDetailsScheduleType.md +13 -0
  25. data/docs/OrderFulfillmentRecipient.md +15 -0
  26. data/docs/OrderFulfillmentState.md +17 -0
  27. data/docs/OrderFulfillmentType.md +12 -0
  28. data/docs/OrderLineItem.md +2 -2
  29. data/docs/OrderLineItemDiscount.md +1 -1
  30. data/docs/OrderLineItemTax.md +1 -0
  31. data/docs/OrderLineItemTaxScope.md +14 -0
  32. data/docs/V1Timecard.md +1 -1
  33. data/lib/square_connect/api/apple_pay_api.rb +1 -1
  34. data/lib/square_connect/api/catalog_api.rb +11 -11
  35. data/lib/square_connect/api/checkout_api.rb +3 -3
  36. data/lib/square_connect/api/customers_api.rb +8 -8
  37. data/lib/square_connect/api/inventory_api.rb +7 -7
  38. data/lib/square_connect/api/locations_api.rb +1 -1
  39. data/lib/square_connect/api/mobile_authorization_api.rb +1 -1
  40. data/lib/square_connect/api/o_auth_api.rb +3 -3
  41. data/lib/square_connect/api/orders_api.rb +2 -2
  42. data/lib/square_connect/api/reporting_api.rb +2 -2
  43. data/lib/square_connect/api/transactions_api.rb +7 -7
  44. data/lib/square_connect/api_client.rb +1 -1
  45. data/lib/square_connect/models/catalog_category.rb +1 -1
  46. data/lib/square_connect/models/catalog_discount.rb +2 -2
  47. data/lib/square_connect/models/catalog_item.rb +4 -4
  48. data/lib/square_connect/models/catalog_item_variation.rb +2 -2
  49. data/lib/square_connect/models/catalog_modifier.rb +1 -1
  50. data/lib/square_connect/models/catalog_modifier_list.rb +1 -1
  51. data/lib/square_connect/models/catalog_object.rb +1 -1
  52. data/lib/square_connect/models/catalog_tax.rb +1 -1
  53. data/lib/square_connect/models/create_order_request.rb +15 -10
  54. data/lib/square_connect/models/create_order_request_discount.rb +1 -1
  55. data/lib/square_connect/models/create_order_request_line_item.rb +1 -1
  56. data/lib/square_connect/models/create_order_request_modifier.rb +1 -1
  57. data/lib/square_connect/models/create_order_request_tax.rb +1 -1
  58. data/lib/square_connect/models/error.rb +2 -2
  59. data/lib/square_connect/models/error_code.rb +1 -0
  60. data/lib/square_connect/models/order.rb +38 -7
  61. data/lib/square_connect/models/order_fulfillment.rb +251 -0
  62. data/lib/square_connect/models/order_fulfillment_pickup_details.rb +401 -0
  63. data/lib/square_connect/models/order_fulfillment_pickup_details_schedule_type.rb +19 -0
  64. data/lib/square_connect/models/order_fulfillment_recipient.rb +264 -0
  65. data/lib/square_connect/models/order_fulfillment_state.rb +23 -0
  66. data/lib/square_connect/models/order_fulfillment_type.rb +18 -0
  67. data/lib/square_connect/models/order_line_item.rb +2 -2
  68. data/lib/square_connect/models/order_line_item_discount.rb +1 -1
  69. data/lib/square_connect/models/order_line_item_tax.rb +26 -4
  70. data/lib/square_connect/models/order_line_item_tax_scope.rb +20 -0
  71. data/lib/square_connect/models/v1_timecard.rb +1 -1
  72. data/lib/square_connect/version.rb +1 -1
  73. data/lib/square_connect.rb +7 -0
  74. data/spec/api/checkout_api_spec.rb +1 -1
  75. data/spec/models/order_fulfillment_pickup_details_schedule_type_spec.rb +33 -0
  76. data/spec/models/order_fulfillment_pickup_details_spec.rb +133 -0
  77. data/spec/models/order_fulfillment_recipient_spec.rb +57 -0
  78. data/spec/models/order_fulfillment_spec.rb +59 -0
  79. data/spec/models/order_fulfillment_state_spec.rb +33 -0
  80. data/spec/models/order_fulfillment_type_spec.rb +33 -0
  81. data/spec/models/order_line_item_tax_scope_spec.rb +33 -0
  82. metadata +31 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 98a5543b9333917661531679ff8c0612e93c8e98ece230ec0f03cbc9d13006eb
4
- data.tar.gz: 14146918959bf5804f9c9ad01e8de8f7d79ecf67cafbbd26bca9ccef005d1ad3
3
+ metadata.gz: 9248ee87a6327b22731e6c3969f7b376acb466d62eb3ee9e18f6231e41292974
4
+ data.tar.gz: 83db1d9bda16329b6f446495ad947f8dd476c7d8f908a8b16296d656176ccaf6
5
5
  SHA512:
6
- metadata.gz: 82e5b8578e50aba62d7af11511a235cd91bc90255a433dd1f8c3cc7e02aaf0407391edfa587f6f4ddb6113e1fffb42ca7f9d986d0861e3abd7bb65f1da29787a
7
- data.tar.gz: 9c735f99e23e3d6a458752e5b84abc96c6213a04aa8d86f310881bead6f90beb6354be5e31e1008ff185e89cbf486fba19dd09173d436ca1385e18e2adfc0465
6
+ metadata.gz: 7b2d8556af89a50b3c2599ec894cda2f511a40a4c48147797df04c4139032e882a2c5cc04010388babf7f1cc18c8d1516e24210fc704eca9a32217d3a38023c1
7
+ data.tar.gz: 2e176849449ec3e08152fa03a400febfa7366b46e39ced492d3d0f1816fd1a1fea1cb6ee201f81473d770f14056c28070df8b04e49e30c0354429b4639f1c215
data/CHANGES.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Change Log
2
2
 
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
+
3
24
  ## Version 2.20181212.0 (2018-12-12)
4
25
 
5
26
  ## Improvement: ListCustomers return set expanded
data/README.md CHANGED
@@ -10,7 +10,7 @@ for the specification and template files we used to generate this.
10
10
  This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
11
11
 
12
12
  - API version: 2.0
13
- - Package version: 2.20181212.0
13
+ - Package version: 2.20190213.0
14
14
  - Build package: io.swagger.codegen.languages.RubyClientCodegen
15
15
 
16
16
  For more information, please visit [https://squareup.com/developers](https://squareup.com/developers)
@@ -314,12 +314,19 @@ Class | Method | HTTP request | Description
314
314
  - [SquareConnect::ObtainTokenRequest](docs/ObtainTokenRequest.md)
315
315
  - [SquareConnect::ObtainTokenResponse](docs/ObtainTokenResponse.md)
316
316
  - [SquareConnect::Order](docs/Order.md)
317
+ - [SquareConnect::OrderFulfillment](docs/OrderFulfillment.md)
318
+ - [SquareConnect::OrderFulfillmentPickupDetails](docs/OrderFulfillmentPickupDetails.md)
319
+ - [SquareConnect::OrderFulfillmentPickupDetailsScheduleType](docs/OrderFulfillmentPickupDetailsScheduleType.md)
320
+ - [SquareConnect::OrderFulfillmentRecipient](docs/OrderFulfillmentRecipient.md)
321
+ - [SquareConnect::OrderFulfillmentState](docs/OrderFulfillmentState.md)
322
+ - [SquareConnect::OrderFulfillmentType](docs/OrderFulfillmentType.md)
317
323
  - [SquareConnect::OrderLineItem](docs/OrderLineItem.md)
318
324
  - [SquareConnect::OrderLineItemDiscount](docs/OrderLineItemDiscount.md)
319
325
  - [SquareConnect::OrderLineItemDiscountScope](docs/OrderLineItemDiscountScope.md)
320
326
  - [SquareConnect::OrderLineItemDiscountType](docs/OrderLineItemDiscountType.md)
321
327
  - [SquareConnect::OrderLineItemModifier](docs/OrderLineItemModifier.md)
322
328
  - [SquareConnect::OrderLineItemTax](docs/OrderLineItemTax.md)
329
+ - [SquareConnect::OrderLineItemTaxScope](docs/OrderLineItemTaxScope.md)
323
330
  - [SquareConnect::OrderLineItemTaxType](docs/OrderLineItemTaxType.md)
324
331
  - [SquareConnect::Product](docs/Product.md)
325
332
  - [SquareConnect::Refund](docs/Refund.md)
data/docs/CardBrand.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  ### Description
4
4
 
5
- Indicates a credit card's brand, such as `VISA` or `MASTERCARD`.
5
+ Indicates a card's brand, such as `VISA` or `MASTERCARD`.
6
6
 
7
7
  ## Properties
8
8
  Name | Type
@@ -7,6 +7,6 @@ A category to which an [CatalogItem](#type-catalogitem) belongs in the Catalog o
7
7
  ## Properties
8
8
  Name | Type | Description | Notes
9
9
  ------------ | ------------- | ------------- | -------------
10
- **name** | **String** | The category's name. Searchable. | [optional]
10
+ **name** | **String** | The category's name. Searchable. This field has max length of 255 Unicode code points. | [optional]
11
11
 
12
12
 
@@ -7,11 +7,11 @@ A discount in the Catalog object model.
7
7
  ## Properties
8
8
  Name | Type | Description | Notes
9
9
  ------------ | ------------- | ------------- | -------------
10
- **name** | **String** | The discount's name. Searchable. | [optional]
10
+ **name** | **String** | The discount's name. Searchable. This field has max length of 255 Unicode code points. | [optional]
11
11
  **discount_type** | **String** | 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]
12
12
  **percentage** | **String** | 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]
13
13
  **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]
14
14
  **pin_required** | **BOOLEAN** | 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]
15
- **label_color** | **String** | The color of the discount's display label in the Square Point of Sale app. | [optional]
15
+ **label_color** | **String** | The color of the discount's display label in the Square Point of Sale app. This must be a valid hex color code. | [optional]
16
16
 
17
17
 
data/docs/CatalogItem.md CHANGED
@@ -7,10 +7,10 @@ An item (i.e., product family) in the Catalog object model.
7
7
  ## Properties
8
8
  Name | Type | Description | Notes
9
9
  ------------ | ------------- | ------------- | -------------
10
- **name** | **String** | The item's name. Searchable. | [optional]
11
- **description** | **String** | The item's description. Searchable. | [optional]
12
- **abbreviation** | **String** | 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]
13
- **label_color** | **String** | The color of the item's display label in the Square Point of Sale app. | [optional]
10
+ **name** | **String** | The item's name. Searchable. This field must not be empty. This field has max length of 512 Unicode code points. | [optional]
11
+ **description** | **String** | The item's description. Searchable. This field has max length of 4096 Unicode code points. | [optional]
12
+ **abbreviation** | **String** | 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]
13
+ **label_color** | **String** | The color of the item's display label in the Square Point of Sale app. This must be a valid hex color code. | [optional]
14
14
  **available_online** | **BOOLEAN** | If `true`, the item can be added to shipping orders from the merchant's online store. | [optional]
15
15
  **available_for_pickup** | **BOOLEAN** | If `true`, the item can be added to pickup orders from the merchant's online store. | [optional]
16
16
  **available_electronically** | **BOOLEAN** | If `true`, the item can be added to electronically fulfilled orders from the merchant's online store. | [optional]
@@ -8,7 +8,7 @@ An item variation (i.e., product) in the Catalog object model.
8
8
  Name | Type | Description | Notes
9
9
  ------------ | ------------- | ------------- | -------------
10
10
  **item_id** | **String** | The ID of the [CatalogItem](#type-catalogitem) associated with this item variation. Searchable. | [optional]
11
- **name** | **String** | The item variation's name. Searchable. | [optional]
11
+ **name** | **String** | The item variation's name. Searchable. This field has max length of 255 Unicode code points. | [optional]
12
12
  **sku** | **String** | The item variation's SKU, if any. Searchable. | [optional]
13
13
  **upc** | **String** | 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]
14
14
  **ordinal** | **Integer** | 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]
@@ -18,7 +18,7 @@ Name | Type | Description | Notes
18
18
  **track_inventory** | **BOOLEAN** | If `true`, inventory tracking is active for the variation. | [optional]
19
19
  **inventory_alert_type** | **String** | 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]
20
20
  **inventory_alert_threshold** | **Integer** | 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]
21
- **user_data** | **String** | Arbitrary user metadata to associate with the item variation. Cannot exceed 255 characters. Searchable. | [optional]
21
+ **user_data** | **String** | Arbitrary user metadata to associate with the item variation. Searchable. This field has max length of 255 Unicode code points. | [optional]
22
22
  **service_duration** | **Integer** | 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]
23
23
 
24
24
 
@@ -7,7 +7,7 @@ A modifier in the Catalog object model.
7
7
  ## Properties
8
8
  Name | Type | Description | Notes
9
9
  ------------ | ------------- | ------------- | -------------
10
- **name** | **String** | The modifier's name. Searchable. | [optional]
10
+ **name** | **String** | The modifier's name. Searchable. This field has max length of 255 Unicode code points. | [optional]
11
11
  **price_money** | [**Money**](Money.md) | The modifier's price. | [optional]
12
12
 
13
13
 
@@ -7,7 +7,7 @@ A modifier list in the Catalog object model. A [CatalogModifierList](#type-catal
7
7
  ## Properties
8
8
  Name | Type | Description | Notes
9
9
  ------------ | ------------- | ------------- | -------------
10
- **name** | **String** | The [CatalogModifierList](#type-catalogmodifierlist)'s name. Searchable. | [optional]
10
+ **name** | **String** | The [CatalogModifierList](#type-catalogmodifierlist)'s name. Searchable. This field has max length of 255 Unicode code points. | [optional]
11
11
  **selection_type** | **String** | 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]
12
12
  **modifiers** | [**Array<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]
13
13
 
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
10
10
  **type** | **String** | 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. |
11
11
  **id** | **String** | 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. |
12
12
  **updated_at** | **String** | 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]
13
- **version** | **Integer** | 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]
13
+ **version** | **Integer** | 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]
14
14
  **is_deleted** | **BOOLEAN** | 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]
15
15
  **catalog_v1_ids** | [**Array<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]
16
16
  **present_at_all_locations** | **BOOLEAN** | 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]
@@ -2,7 +2,7 @@
2
2
 
3
3
  ### Description
4
4
 
5
- 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.
5
+ 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.
6
6
 
7
7
  ## Properties
8
8
  Name | Type
data/docs/CatalogTax.md CHANGED
@@ -7,7 +7,7 @@ A tax in the Catalog object model.
7
7
  ## Properties
8
8
  Name | Type | Description | Notes
9
9
  ------------ | ------------- | ------------- | -------------
10
- **name** | **String** | The tax's name. Searchable. | [optional]
10
+ **name** | **String** | The tax's name. Searchable. This field has max length of 255 Unicode code points. | [optional]
11
11
  **calculation_phase** | **String** | Whether the tax is calculated based on a payment's subtotal or total. See [TaxCalculationPhase](#type-taxcalculationphase) for all possible values. | [optional]
12
12
  **inclusion_type** | **String** | Whether the tax is `ADDITIVE` or `INCLUSIVE`. See [TaxInclusionType](#type-taxinclusiontype) for all possible values. | [optional]
13
13
  **percentage** | **String** | 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]
data/docs/CheckoutApi.md CHANGED
@@ -12,7 +12,7 @@ Method | HTTP request | Description
12
12
 
13
13
  CreateCheckout
14
14
 
15
- 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.
15
+ 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.
16
16
 
17
17
  ### Example
18
18
  ```ruby
@@ -7,10 +7,11 @@
7
7
  ## Properties
8
8
  Name | Type | Description | Notes
9
9
  ------------ | ------------- | ------------- | -------------
10
+ **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]
10
11
  **idempotency_key** | **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 keys](#idempotencykeys) for more information. | [optional]
11
- **reference_id** | **String** | 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]
12
- **line_items** | [**Array<CreateOrderRequestLineItem>**](CreateOrderRequestLineItem.md) | The line items to associate with this order. Each line item represents a different product to include in a purchase. |
13
- **taxes** | [**Array<CreateOrderRequestTax>**](CreateOrderRequestTax.md) | The taxes to include on the order. | [optional]
14
- **discounts** | [**Array<CreateOrderRequestDiscount>**](CreateOrderRequestDiscount.md) | The discounts to include on the order. | [optional]
12
+ **reference_id** | **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]
13
+ **line_items** | [**Array<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]
14
+ **taxes** | [**Array<CreateOrderRequestTax>**](CreateOrderRequestTax.md) | __Deprecated__: Please set the taxes on the nested [order](#type-order) field instead. The taxes to include on the order. | [optional]
15
+ **discounts** | [**Array<CreateOrderRequestDiscount>**](CreateOrderRequestDiscount.md) | __Deprecated__: Please set the discounts on the nested [order](#type-order) field instead. The discounts to include on the order. | [optional]
15
16
 
16
17
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  ### Description
4
4
 
5
- Represents a discount that can apply to either a single line item or an entire order.
5
+ __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.
6
6
 
7
7
  ## Properties
8
8
  Name | Type | Description | Notes
@@ -2,7 +2,7 @@
2
2
 
3
3
  ### Description
4
4
 
5
- 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.
5
+ __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.
6
6
 
7
7
  ## Properties
8
8
  Name | Type | Description | Notes
@@ -2,7 +2,7 @@
2
2
 
3
3
  ### Description
4
4
 
5
- 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.
5
+ __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.
6
6
 
7
7
  ## Properties
8
8
  Name | Type | Description | Notes
@@ -2,7 +2,7 @@
2
2
 
3
3
  ### Description
4
4
 
5
- Represents a tax that can apply to either a single line item or an entire order.
5
+ __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.
6
6
 
7
7
  ## Properties
8
8
  Name | Type | Description | Notes
data/docs/ErrorCode.md CHANGED
@@ -87,6 +87,7 @@ Name | Type
87
87
  **NOT_FOUND** | string
88
88
  **APPLE_PAYMENT_PROCESSING_CERTIFICATE_HASH_NOT_FOUND** | string
89
89
  **METHOD_NOT_ALLOWED** | string
90
+ **NOT_ACCEPTABLE** | string
90
91
  **REQUEST_TIMEOUT** | string
91
92
  **CONFLICT** | string
92
93
  **REQUEST_ENTITY_TOO_LARGE** | string
data/docs/Order.md CHANGED
@@ -10,7 +10,10 @@ Name | Type | Description | Notes
10
10
  **id** | **String** | The order's unique ID. This value is only present for Order objects created by the Orders API through the [CreateOrder](#endpoint-createorder) endpoint. | [optional]
11
11
  **location_id** | **String** | The ID of the merchant location this order is associated with. |
12
12
  **reference_id** | **String** | A client specified identifier to associate an entity in another system with this order. | [optional]
13
- **line_items** | [**Array<OrderLineItem>**](OrderLineItem.md) | The line items included in the order. Every order has at least one line item. |
13
+ **line_items** | [**Array<OrderLineItem>**](OrderLineItem.md) | The line items included in the order. | [optional]
14
+ **taxes** | [**Array<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]
15
+ **discounts** | [**Array<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]
16
+ **fulfillments** | [**Array<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]
14
17
  **total_money** | [**Money**](Money.md) | The total amount of money to collect for the order. | [optional]
15
18
  **total_tax_money** | [**Money**](Money.md) | The total tax amount of money to collect for the order. | [optional]
16
19
  **total_discount_money** | [**Money**](Money.md) | The total discount amount of money to collect for the order. | [optional]
@@ -0,0 +1,14 @@
1
+ # SquareConnect::OrderFulfillment
2
+
3
+ ### Description
4
+
5
+ Contains details on how to fulfill this order.
6
+
7
+ ## Properties
8
+ Name | Type | Description | Notes
9
+ ------------ | ------------- | ------------- | -------------
10
+ **type** | **String** | The type of the fulfillment. | [optional]
11
+ **state** | **String** | The state of the fulfillment. | [optional]
12
+ **pickup_details** | [**OrderFulfillmentPickupDetails**](OrderFulfillmentPickupDetails.md) | Contains pickup-specific details. Required when fulfillment type is `PICKUP`. | [optional]
13
+
14
+
@@ -0,0 +1,27 @@
1
+ # SquareConnect::OrderFulfillmentPickupDetails
2
+
3
+ ### Description
4
+
5
+ Contains details necessary to fulfill a pickup order.
6
+
7
+ ## Properties
8
+ Name | Type | Description | Notes
9
+ ------------ | ------------- | ------------- | -------------
10
+ **recipient** | [**OrderFulfillmentRecipient**](OrderFulfillmentRecipient.md) | The recipient of this pickup fulfillment. | [optional]
11
+ **expires_at** | **String** | The expiry [timestamp](#workingwithdates) in RFC 3339 format, e.g., \"2016-09-04T23:59:33.123Z\". This timestamp indicates when the pickup fulfillment will expire if it is not accepted by the merchant. Expiration time can only be set up to 7 days in the future. If not set, this pickup fulfillment will be automatically accepted when placed. | [optional]
12
+ **auto_complete_duration** | **String** | The auto completion duration in RFC3339 duration format, e.g., \"P1W3D\". If set, an open and accepted pickup fulfillment will automatically move to the `COMPLETED` state after this period of time. If not set, this pickup fulfillment will remain accepted until it is canceled or completed. | [optional]
13
+ **schedule_type** | **String** | The schedule type of the pickup fulfillment. Defaults to `SCHEDULED`. | [optional]
14
+ **pickup_at** | **String** | The pickup [timestamp](#workingwithdates) in RFC3339 timestamp format, e.g., \"2016-09-04T23:59:33.123Z\". For fulfillments with the schedule type `ASAP`, this is automatically set to the current time plus the expected duration to prepare the fulfillment. This represents the start of the pickup window. | [optional]
15
+ **pickup_window_duration** | **String** | The pickup window duration in RFC3339 duration format, e.g., \"P1W3D\". This duration represents the window of time for which the order should be picked up after the `pickup_at` time. Can be used as an informational guideline for merchants. | [optional]
16
+ **prep_time_duration** | **String** | The preparation time duration in RFC3339 duration format, e.g., \"P1W3D\". This duration indicates how long it takes the merchant to prepare this fulfillment. | [optional]
17
+ **note** | **String** | A general note about the pickup fulfillment. Notes are useful for providing additional instructions and are displayed in Square apps. | [optional]
18
+ **placed_at** | **String** | The [timestamp](#workingwithdates) in RFC3339 timestamp format, e.g., \"2016-09-04T23:59:33.123Z\", indicating when the fulfillment was placed. | [optional]
19
+ **accepted_at** | **String** | The [timestamp](#workingwithdates) in RFC3339 timestamp format, e.g., \"2016-09-04T23:59:33.123Z\", indicating when the fulfillment was accepted by the merchant. | [optional]
20
+ **rejected_at** | **String** | The [timestamp](#workingwithdates) in RFC3339 timestamp format, e.g., \"2016-09-04T23:59:33.123Z\", indicating when the fulfillment was rejected. | [optional]
21
+ **ready_at** | **String** | The [timestamp](#workingwithdates) in RFC3339 timestamp format, e.g., \"2016-09-04T23:59:33.123Z\", indicating when the merchant set the fulfillment as ready for pickup. | [optional]
22
+ **expired_at** | **String** | The [timestamp](#workingwithdates) in RFC3339 timestamp format, e.g., \"2016-09-04T23:59:33.123Z\", indicating when the fulfillment expired. | [optional]
23
+ **picked_up_at** | **String** | The [timestamp](#workingwithdates) in RFC3339 timestamp format, e.g., \"2016-09-04T23:59:33.123Z\", indicating when the fulfillment was picked up by the recipient. | [optional]
24
+ **canceled_at** | **String** | The [timestamp](#workingwithdates) in RFC3339 timestamp format, e.g., \"2016-09-04T23:59:33.123Z\", indicating when the fulfillment was canceled by the merchant or buyer. | [optional]
25
+ **cancel_reason** | **String** | A description of why the pickup was canceled. Max length is 100 characters. | [optional]
26
+
27
+
@@ -0,0 +1,13 @@
1
+ # SquareConnect::OrderFulfillmentPickupDetailsScheduleType
2
+
3
+ ### Description
4
+
5
+ The schedule type of the pickup fulfillment.
6
+
7
+ ## Properties
8
+ Name | Type
9
+ ------------ | -------------
10
+ **SCHEDULED** | string
11
+ **ASAP** | string
12
+
13
+
@@ -0,0 +1,15 @@
1
+ # SquareConnect::OrderFulfillmentRecipient
2
+
3
+ ### Description
4
+
5
+ The recipient of a fulfillment.
6
+
7
+ ## Properties
8
+ Name | Type | Description | Notes
9
+ ------------ | ------------- | ------------- | -------------
10
+ **customer_id** | **String** | The Customer ID of the customer associated with the fulfillment. If customer_id is provided, the corresponding recipient information fields (`display_name`, `email_address`, and `phone_number`) are automatically populated from the relevant customer profile. If the targeted profile information does not contain the necessary required information, the request will result in an error. | [optional]
11
+ **display_name** | **String** | The display name of the fulfillment recipient. If provided, overrides the value from customer profile indicated by customer_id. | [optional]
12
+ **email_address** | **String** | The email address of the fulfillment recipient. If provided, overrides the value from customer profile indicated by customer_id. | [optional]
13
+ **phone_number** | **String** | The phone number of the fulfillment recipient. If provided, overrides the value from customer profile indicated by customer_id. | [optional]
14
+
15
+
@@ -0,0 +1,17 @@
1
+ # SquareConnect::OrderFulfillmentState
2
+
3
+ ### Description
4
+
5
+ The state of the fulfillment.
6
+
7
+ ## Properties
8
+ Name | Type
9
+ ------------ | -------------
10
+ **PROPOSED** | string
11
+ **RESERVED** | string
12
+ **PREPARED** | string
13
+ **COMPLETED** | string
14
+ **CANCELED** | string
15
+ **FAILED** | string
16
+
17
+
@@ -0,0 +1,12 @@
1
+ # SquareConnect::OrderFulfillmentType
2
+
3
+ ### Description
4
+
5
+ The type of fulfillment.
6
+
7
+ ## Properties
8
+ Name | Type
9
+ ------------ | -------------
10
+ **PICKUP** | string
11
+
12
+
@@ -13,8 +13,8 @@ Name | Type | Description | Notes
13
13
  **catalog_object_id** | **String** | The [CatalogItemVariation](#type-catalogitemvariation) id applied to this line item. | [optional]
14
14
  **variation_name** | **String** | The name of the variation applied to this line item. | [optional]
15
15
  **modifiers** | [**Array<OrderLineItemModifier>**](OrderLineItemModifier.md) | The [CatalogModifier](#type-catalogmodifier)s applied to this line item. | [optional]
16
- **taxes** | [**Array<OrderLineItemTax>**](OrderLineItemTax.md) | The taxes applied to this line item. | [optional]
17
- **discounts** | [**Array<OrderLineItemDiscount>**](OrderLineItemDiscount.md) | The discounts applied to this line item. | [optional]
16
+ **taxes** | [**Array<OrderLineItemTax>**](OrderLineItemTax.md) | A list of taxes applied to this line item. On read or retrieve, this list includes both item-level taxes and any order-level taxes apportioned to this item. When creating an Order, set your item-level taxes in this list. | [optional]
17
+ **discounts** | [**Array<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]
18
18
  **base_price_money** | [**Money**](Money.md) | The base price for a single unit of the line item. | [optional]
19
19
  **gross_sales_money** | [**Money**](Money.md) | The gross sales amount of money calculated as (item base price + modifiers price) * quantity. | [optional]
20
20
  **total_tax_money** | [**Money**](Money.md) | The total tax amount of money to collect for the line item. | [optional]
@@ -13,6 +13,6 @@ Name | Type | Description | Notes
13
13
  **percentage** | **String** | The percentage of the tax, as a string representation of a decimal number. A value of `7.25` corresponds to a percentage of 7.25%. The percentage won't be set for an amount-based discount. | [optional]
14
14
  **amount_money** | [**Money**](Money.md) | The total monetary amount of the applicable discount. If it is at order level, it is the value of the order level discount. If it is at line item level, it is the value of the line item level discount. The amount_money won't be set for a percentage-based discount. | [optional]
15
15
  **applied_money** | [**Money**](Money.md) | The amount of discount actually applied to this line item. Represents the amount of money applied to a line item as a discount When an amount-based discount is at order-level, this value is different from `amount_money` because the discount is distributed across the line items. | [optional]
16
- **scope** | **String** | Indicates the level at which the discount applies. See [OrderLineItemDiscountScope](#type-orderlineitemdiscountscope) for possible values. | [optional]
16
+ **scope** | **String** | Indicates the level at which the discount applies. This field is set by the server. If set in a CreateOrder request, it will be ignored on write. See [OrderLineItemDiscountScope](#type-orderlineitemdiscountscope) for possible values. | [optional]
17
17
 
18
18
 
@@ -12,5 +12,6 @@ Name | Type | Description | Notes
12
12
  **type** | **String** | Indicates the calculation method used to apply the tax. See [OrderLineItemTaxType](#type-orderlineitemtaxtype) for possible values. | [optional]
13
13
  **percentage** | **String** | The percentage of the tax, as a string representation of a decimal number. A value of `7.25` corresponds to a percentage of 7.25%. | [optional]
14
14
  **applied_money** | [**Money**](Money.md) | The amount of the money applied by the tax in an order. | [optional]
15
+ **scope** | **String** | Indicates the level at which the tax applies. This field is set by the server. If set in a CreateOrder request, it will be ignored on write. See [OrderLineItemTaxScope](#type-orderlineitemtaxscope) for possible values. | [optional]
15
16
 
16
17
 
@@ -0,0 +1,14 @@
1
+ # SquareConnect::OrderLineItemTaxScope
2
+
3
+ ### Description
4
+
5
+ Indicates whether this is a line item or order level tax.
6
+
7
+ ## Properties
8
+ Name | Type
9
+ ------------ | -------------
10
+ **OTHER_TAX_SCOPE** | string
11
+ **LINE_ITEM** | string
12
+ **ORDER** | string
13
+
14
+
data/docs/V1Timecard.md CHANGED
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
12
12
  **deleted** | **BOOLEAN** | If true, the timecard was deleted by the merchant, and it is no longer valid. | [optional]
13
13
  **clockin_time** | **String** | The clock-in time for the timecard, in ISO 8601 format. | [optional]
14
14
  **clockout_time** | **String** | The clock-out time for the timecard, in ISO 8601 format. Provide this value only if importing timecard information from another system. | [optional]
15
- **clockin_location_id** | **String** | The ID of the location the employee clocked in from. We strongly reccomend providing a clockin_location_id. Square uses the clockin_location_id to determine a timecards timezone and overtime rules. | [optional]
15
+ **clockin_location_id** | **String** | The ID of the location the employee clocked in from. We strongly reccomend providing a clockin_location_id. Square uses the clockin_location_id to determine a timecard���s timezone and overtime rules. | [optional]
16
16
  **clockout_location_id** | **String** | The ID of the location the employee clocked out from. Provide this value only if importing timecard information from another system. | [optional]
17
17
  **created_at** | **String** | The time when the timecard was created, in ISO 8601 format. | [optional]
18
18
  **updated_at** | **String** | The time when the timecard was most recently updated, in ISO 8601 format. | [optional]
@@ -51,7 +51,7 @@ module SquareConnect
51
51
  # HTTP header 'Content-Type'
52
52
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
53
53
 
54
- header_params['Square-Version'] = "2018-12-12"
54
+ header_params['Square-Version'] = "2019-02-13"
55
55
 
56
56
  # form parameters
57
57
  form_params = {}
@@ -51,7 +51,7 @@ module SquareConnect
51
51
  # HTTP header 'Content-Type'
52
52
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
53
53
 
54
- header_params['Square-Version'] = "2018-12-12"
54
+ header_params['Square-Version'] = "2019-02-13"
55
55
 
56
56
  # form parameters
57
57
  form_params = {}
@@ -106,7 +106,7 @@ module SquareConnect
106
106
  # HTTP header 'Content-Type'
107
107
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
108
108
 
109
- header_params['Square-Version'] = "2018-12-12"
109
+ header_params['Square-Version'] = "2019-02-13"
110
110
 
111
111
  # form parameters
112
112
  form_params = {}
@@ -161,7 +161,7 @@ module SquareConnect
161
161
  # HTTP header 'Content-Type'
162
162
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
163
163
 
164
- header_params['Square-Version'] = "2018-12-12"
164
+ header_params['Square-Version'] = "2019-02-13"
165
165
 
166
166
  # form parameters
167
167
  form_params = {}
@@ -212,7 +212,7 @@ module SquareConnect
212
212
  # HTTP header 'Content-Type'
213
213
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
214
214
 
215
- header_params['Square-Version'] = "2018-12-12"
215
+ header_params['Square-Version'] = "2019-02-13"
216
216
 
217
217
  # form parameters
218
218
  form_params = {}
@@ -267,7 +267,7 @@ module SquareConnect
267
267
  # HTTP header 'Content-Type'
268
268
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
269
269
 
270
- header_params['Square-Version'] = "2018-12-12"
270
+ header_params['Square-Version'] = "2019-02-13"
271
271
 
272
272
  # form parameters
273
273
  form_params = {}
@@ -324,7 +324,7 @@ module SquareConnect
324
324
  # HTTP header 'Content-Type'
325
325
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
326
326
 
327
- header_params['Square-Version'] = "2018-12-12"
327
+ header_params['Square-Version'] = "2019-02-13"
328
328
 
329
329
  # form parameters
330
330
  form_params = {}
@@ -382,7 +382,7 @@ module SquareConnect
382
382
  # HTTP header 'Content-Type'
383
383
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
384
384
 
385
- header_params['Square-Version'] = "2018-12-12"
385
+ header_params['Square-Version'] = "2019-02-13"
386
386
 
387
387
  # form parameters
388
388
  form_params = {}
@@ -437,7 +437,7 @@ module SquareConnect
437
437
  # HTTP header 'Content-Type'
438
438
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
439
439
 
440
- header_params['Square-Version'] = "2018-12-12"
440
+ header_params['Square-Version'] = "2019-02-13"
441
441
 
442
442
  # form parameters
443
443
  form_params = {}
@@ -492,7 +492,7 @@ module SquareConnect
492
492
  # HTTP header 'Content-Type'
493
493
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
494
494
 
495
- header_params['Square-Version'] = "2018-12-12"
495
+ header_params['Square-Version'] = "2019-02-13"
496
496
 
497
497
  # form parameters
498
498
  form_params = {}
@@ -547,7 +547,7 @@ module SquareConnect
547
547
  # HTTP header 'Content-Type'
548
548
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
549
549
 
550
- header_params['Square-Version'] = "2018-12-12"
550
+ header_params['Square-Version'] = "2019-02-13"
551
551
 
552
552
  # form parameters
553
553
  form_params = {}
@@ -602,7 +602,7 @@ module SquareConnect
602
602
  # HTTP header 'Content-Type'
603
603
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
604
604
 
605
- header_params['Square-Version'] = "2018-12-12"
605
+ header_params['Square-Version'] = "2019-02-13"
606
606
 
607
607
  # form parameters
608
608
  form_params = {}
@@ -18,7 +18,7 @@ module SquareConnect
18
18
  end
19
19
 
20
20
  # CreateCheckout
21
- # 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.
21
+ # 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.
22
22
  # @param location_id The ID of the business location to associate the checkout with.
23
23
  # @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
24
24
  # @param [Hash] opts the optional parameters
@@ -29,7 +29,7 @@ module SquareConnect
29
29
  end
30
30
 
31
31
  # CreateCheckout
32
- # 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.
32
+ # 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.
33
33
  # @param location_id The ID of the business location to associate the checkout with.
34
34
  # @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
35
35
  # @param [Hash] opts the optional parameters
@@ -55,7 +55,7 @@ module SquareConnect
55
55
  # HTTP header 'Content-Type'
56
56
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
57
57
 
58
- header_params['Square-Version'] = "2018-12-12"
58
+ header_params['Square-Version'] = "2019-02-13"
59
59
 
60
60
  # form parameters
61
61
  form_params = {}