square_connect 2.20190508.0.304 → 2.20190612.0.309

Sign up to get free protection for your applications and to get access to all the features.
Files changed (119) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +12 -4
  3. data/README.md +13 -1
  4. data/docs/AggregationStrategy.md +15 -0
  5. data/docs/ApplePayApi.md +1 -1
  6. data/docs/BatchRetrieveCatalogObjectsRequest.md +1 -1
  7. data/docs/Card.md +1 -1
  8. data/docs/CatalogApi.md +3 -3
  9. data/docs/CatalogInfoResponse.md +1 -0
  10. data/docs/CatalogItem.md +1 -1
  11. data/docs/CatalogItemVariation.md +3 -1
  12. data/docs/CatalogMeasurementUnit.md +13 -0
  13. data/docs/CatalogObject.md +1 -0
  14. data/docs/CatalogObjectType.md +3 -0
  15. data/docs/CatalogPricingRule.md +24 -0
  16. data/docs/CatalogProductSet.md +18 -0
  17. data/docs/CatalogTimePeriod.md +12 -0
  18. data/docs/Coordinates.md +13 -0
  19. data/docs/CreateOrderRequest.md +1 -1
  20. data/docs/DayOfWeek.md +1 -1
  21. data/docs/ErrorCode.md +1 -0
  22. data/docs/Location.md +6 -0
  23. data/docs/MeasurementUnit.md +1 -0
  24. data/docs/MeasurementUnitGeneric.md +13 -0
  25. data/docs/OAuthApi.md +1 -1
  26. data/docs/ObtainTokenResponse.md +2 -2
  27. data/docs/Order.md +13 -11
  28. data/docs/OrderLineItem.md +5 -5
  29. data/docs/OrderLineItemDiscount.md +1 -1
  30. data/docs/OrderLineItemModifier.md +1 -1
  31. data/docs/OrderLineItemTax.md +1 -1
  32. data/docs/OrderReturn.md +2 -1
  33. data/docs/OrderReturnDiscount.md +1 -1
  34. data/docs/OrderReturnLineItem.md +4 -4
  35. data/docs/OrderReturnLineItemModifier.md +1 -1
  36. data/docs/OrderReturnServiceCharge.md +23 -0
  37. data/docs/OrderReturnTax.md +1 -1
  38. data/docs/OrderRoundingAdjustment.md +1 -1
  39. data/docs/OrderServiceCharge.md +22 -0
  40. data/docs/OrderServiceChargeCalculationPhase.md +13 -0
  41. data/docs/OrdersApi.md +1 -1
  42. data/docs/RenewTokenResponse.md +2 -2
  43. data/docs/RetrieveCatalogObjectRequest.md +1 -1
  44. data/docs/SearchCatalogObjectsRequest.md +1 -1
  45. data/docs/StandardUnitDescription.md +14 -0
  46. data/docs/StandardUnitDescriptionGroup.md +13 -0
  47. data/lib/square_connect.rb +12 -0
  48. data/lib/square_connect/api/apple_pay_api.rb +3 -3
  49. data/lib/square_connect/api/catalog_api.rb +15 -15
  50. data/lib/square_connect/api/checkout_api.rb +1 -1
  51. data/lib/square_connect/api/customers_api.rb +8 -8
  52. data/lib/square_connect/api/employees_api.rb +2 -2
  53. data/lib/square_connect/api/inventory_api.rb +7 -7
  54. data/lib/square_connect/api/labor_api.rb +14 -14
  55. data/lib/square_connect/api/locations_api.rb +1 -1
  56. data/lib/square_connect/api/mobile_authorization_api.rb +1 -1
  57. data/lib/square_connect/api/o_auth_api.rb +5 -5
  58. data/lib/square_connect/api/orders_api.rb +5 -5
  59. data/lib/square_connect/api/reporting_api.rb +2 -2
  60. data/lib/square_connect/api/transactions_api.rb +7 -7
  61. data/lib/square_connect/api/v1_employees_api.rb +16 -16
  62. data/lib/square_connect/api/v1_items_api.rb +40 -40
  63. data/lib/square_connect/api/v1_locations_api.rb +2 -2
  64. data/lib/square_connect/api/v1_transactions_api.rb +11 -11
  65. data/lib/square_connect/api_client.rb +1 -1
  66. data/lib/square_connect/models/aggregation_strategy.rb +21 -0
  67. data/lib/square_connect/models/batch_retrieve_catalog_objects_request.rb +1 -1
  68. data/lib/square_connect/models/card.rb +1 -1
  69. data/lib/square_connect/models/catalog_info_response.rb +14 -4
  70. data/lib/square_connect/models/catalog_item.rb +1 -1
  71. data/lib/square_connect/models/catalog_item_variation.rb +25 -5
  72. data/lib/square_connect/models/catalog_measurement_unit.rb +196 -0
  73. data/lib/square_connect/models/catalog_object.rb +16 -6
  74. data/lib/square_connect/models/catalog_object_type.rb +3 -0
  75. data/lib/square_connect/models/catalog_pricing_rule.rb +341 -0
  76. data/lib/square_connect/models/catalog_product_set.rb +250 -0
  77. data/lib/square_connect/models/catalog_time_period.rb +186 -0
  78. data/lib/square_connect/models/coordinates.rb +196 -0
  79. data/lib/square_connect/models/create_order_request.rb +1 -1
  80. data/lib/square_connect/models/error.rb +2 -2
  81. data/lib/square_connect/models/error_code.rb +1 -0
  82. data/lib/square_connect/models/location.rb +64 -4
  83. data/lib/square_connect/models/measurement_unit.rb +26 -4
  84. data/lib/square_connect/models/measurement_unit_generic.rb +19 -0
  85. data/lib/square_connect/models/money.rb +0 -16
  86. data/lib/square_connect/models/obtain_token_response.rb +2 -2
  87. data/lib/square_connect/models/order.rb +37 -15
  88. data/lib/square_connect/models/order_line_item.rb +5 -5
  89. data/lib/square_connect/models/order_line_item_discount.rb +1 -1
  90. data/lib/square_connect/models/order_line_item_modifier.rb +1 -1
  91. data/lib/square_connect/models/order_line_item_tax.rb +1 -1
  92. data/lib/square_connect/models/order_return.rb +14 -2
  93. data/lib/square_connect/models/order_return_discount.rb +1 -1
  94. data/lib/square_connect/models/order_return_line_item.rb +4 -4
  95. data/lib/square_connect/models/order_return_line_item_modifier.rb +1 -1
  96. data/lib/square_connect/models/order_return_service_charge.rb +411 -0
  97. data/lib/square_connect/models/order_return_tax.rb +1 -1
  98. data/lib/square_connect/models/order_rounding_adjustment.rb +1 -1
  99. data/lib/square_connect/models/order_service_charge.rb +385 -0
  100. data/lib/square_connect/models/order_service_charge_calculation_phase.rb +19 -0
  101. data/lib/square_connect/models/renew_token_response.rb +2 -2
  102. data/lib/square_connect/models/retrieve_catalog_object_request.rb +1 -1
  103. data/lib/square_connect/models/search_catalog_objects_request.rb +1 -1
  104. data/lib/square_connect/models/standard_unit_description.rb +206 -0
  105. data/lib/square_connect/models/standard_unit_description_group.rb +198 -0
  106. data/lib/square_connect/version.rb +1 -1
  107. data/spec/models/aggregation_strategy_spec.rb +33 -0
  108. data/spec/models/catalog_measurement_unit_spec.rb +45 -0
  109. data/spec/models/catalog_pricing_rule_spec.rb +115 -0
  110. data/spec/models/catalog_product_set_spec.rb +75 -0
  111. data/spec/models/catalog_time_period_spec.rb +39 -0
  112. data/spec/models/coordinates_spec.rb +45 -0
  113. data/spec/models/measurement_unit_generic_spec.rb +33 -0
  114. data/spec/models/order_return_service_charge_spec.rb +109 -0
  115. data/spec/models/order_service_charge_calculation_phase_spec.rb +33 -0
  116. data/spec/models/order_service_charge_spec.rb +103 -0
  117. data/spec/models/standard_unit_description_group_spec.rb +45 -0
  118. data/spec/models/standard_unit_description_spec.rb +51 -0
  119. metadata +50 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 85d184fb9366b2252308d8dc627cb0b8e233bf2d10c10787bb5b17bf323a3bfa
4
- data.tar.gz: 01e70bc43a761089a79e9d0137b3f70c801ed22ad5ef90a246934de0dfc84b28
3
+ metadata.gz: 5b12b9f96f75b74a6946254103385d855efbb76edd22aba480548f29e25b2685
4
+ data.tar.gz: be7a06e80022b951e43f40380f92f20647e7e55fff8313b85702dd006507cf69
5
5
  SHA512:
6
- metadata.gz: 178a78fe16e6c3a9f18fa0fb6a2a8c82ab22d02ce159354b3cbf610acaa2a825e31246940622aef6b957cb40d30d8311cc68567430bcb1b3d3cfbb20b2fc75fa
7
- data.tar.gz: c1726f1fd4c56fee51df0732b8c119f868431c19f662ae9746a1c251921249fd16d03c1d67a5654dcd3728ae3e1678ba54dd296c90ca9e376d44c9b3c4fe8611
6
+ metadata.gz: cc9b61cf7acecebf72da72826c543a3482025f147b60691ed7d5df02236e56f97e3e7553bc2f4f70c60ae0907d47ce1d72a33d1c16e6ce758a931558236d5f30
7
+ data.tar.gz: de4e71af13f5b63a0d557a3d70e0a301ed7e504cd9e40ca28c038cc7c8d87a7959350cd5ade04ff6fb78ef6cf58fa5d69612e4f749cd397aed62df049bb77eff
data/CHANGES.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Change Log
2
2
 
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
+
3
11
  ## Version 2.20190508.0 (2019-05-08)
4
12
 
5
13
  ## Details
@@ -62,15 +70,15 @@
62
70
  ## New API: Labor API
63
71
 
64
72
  The Labor API now includes functionality
65
- that gives a Square account the ability to track and retrieve employee labor hours
66
- including multiple hourly wage rates per employee, work shift break tracking, and
73
+ that gives a Square account the ability to track and retrieve employee labor hours
74
+ including multiple hourly wage rates per employee, work shift break tracking, and
67
75
  standardized break templates.
68
76
 
69
77
  See the Connect v2 Technical Reference.
70
78
 
71
79
  ## New API: Employees API
72
80
 
73
- The Employees API includes the ability to list employees for a Square
81
+ The Employees API includes the ability to list employees for a Square
74
82
  account and retrieve a single employee by ID.
75
83
 
76
84
  See the Connect v2 Technical Reference.
@@ -312,7 +320,7 @@ represent the value of returned goods in an exchange, rather than actual money m
312
320
  ### New features: Orders API
313
321
 
314
322
  * For Catalog-backed line items, setting `CreateOrderRequestLineItem.base_price_money` will now override
315
- the catalog item variation's price.
323
+ the catalog item variation's price.
316
324
  * `CreateOrderRequestModifier`s may now be created ad hoc using the new `name` and `base_price_money` fields.
317
325
 
318
326
  ## Version 2.5.2 (2018-01-06)
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.20190508.0
13
+ - Package version: 2.20190612.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)
@@ -211,6 +211,7 @@ Class | Method | HTTP request | Description
211
211
  - [SquareConnect::AdditionalRecipientReceivable](docs/AdditionalRecipientReceivable.md)
212
212
  - [SquareConnect::AdditionalRecipientReceivableRefund](docs/AdditionalRecipientReceivableRefund.md)
213
213
  - [SquareConnect::Address](docs/Address.md)
214
+ - [SquareConnect::AggregationStrategy](docs/AggregationStrategy.md)
214
215
  - [SquareConnect::BatchChangeInventoryRequest](docs/BatchChangeInventoryRequest.md)
215
216
  - [SquareConnect::BatchChangeInventoryResponse](docs/BatchChangeInventoryResponse.md)
216
217
  - [SquareConnect::BatchDeleteCatalogObjectsRequest](docs/BatchDeleteCatalogObjectsRequest.md)
@@ -244,6 +245,7 @@ Class | Method | HTTP request | Description
244
245
  - [SquareConnect::CatalogItemModifierListInfo](docs/CatalogItemModifierListInfo.md)
245
246
  - [SquareConnect::CatalogItemProductType](docs/CatalogItemProductType.md)
246
247
  - [SquareConnect::CatalogItemVariation](docs/CatalogItemVariation.md)
248
+ - [SquareConnect::CatalogMeasurementUnit](docs/CatalogMeasurementUnit.md)
247
249
  - [SquareConnect::CatalogModifier](docs/CatalogModifier.md)
248
250
  - [SquareConnect::CatalogModifierList](docs/CatalogModifierList.md)
249
251
  - [SquareConnect::CatalogModifierListSelectionType](docs/CatalogModifierListSelectionType.md)
@@ -251,7 +253,9 @@ Class | Method | HTTP request | Description
251
253
  - [SquareConnect::CatalogObject](docs/CatalogObject.md)
252
254
  - [SquareConnect::CatalogObjectBatch](docs/CatalogObjectBatch.md)
253
255
  - [SquareConnect::CatalogObjectType](docs/CatalogObjectType.md)
256
+ - [SquareConnect::CatalogPricingRule](docs/CatalogPricingRule.md)
254
257
  - [SquareConnect::CatalogPricingType](docs/CatalogPricingType.md)
258
+ - [SquareConnect::CatalogProductSet](docs/CatalogProductSet.md)
255
259
  - [SquareConnect::CatalogQuery](docs/CatalogQuery.md)
256
260
  - [SquareConnect::CatalogQueryExact](docs/CatalogQueryExact.md)
257
261
  - [SquareConnect::CatalogQueryItemsForModifierList](docs/CatalogQueryItemsForModifierList.md)
@@ -261,11 +265,13 @@ Class | Method | HTTP request | Description
261
265
  - [SquareConnect::CatalogQuerySortedAttribute](docs/CatalogQuerySortedAttribute.md)
262
266
  - [SquareConnect::CatalogQueryText](docs/CatalogQueryText.md)
263
267
  - [SquareConnect::CatalogTax](docs/CatalogTax.md)
268
+ - [SquareConnect::CatalogTimePeriod](docs/CatalogTimePeriod.md)
264
269
  - [SquareConnect::CatalogV1Id](docs/CatalogV1Id.md)
265
270
  - [SquareConnect::ChargeRequest](docs/ChargeRequest.md)
266
271
  - [SquareConnect::ChargeRequestAdditionalRecipient](docs/ChargeRequestAdditionalRecipient.md)
267
272
  - [SquareConnect::ChargeResponse](docs/ChargeResponse.md)
268
273
  - [SquareConnect::Checkout](docs/Checkout.md)
274
+ - [SquareConnect::Coordinates](docs/Coordinates.md)
269
275
  - [SquareConnect::Country](docs/Country.md)
270
276
  - [SquareConnect::CreateBreakTypeRequest](docs/CreateBreakTypeRequest.md)
271
277
  - [SquareConnect::CreateBreakTypeResponse](docs/CreateBreakTypeResponse.md)
@@ -361,6 +367,7 @@ Class | Method | HTTP request | Description
361
367
  - [SquareConnect::MeasurementUnit](docs/MeasurementUnit.md)
362
368
  - [SquareConnect::MeasurementUnitArea](docs/MeasurementUnitArea.md)
363
369
  - [SquareConnect::MeasurementUnitCustom](docs/MeasurementUnitCustom.md)
370
+ - [SquareConnect::MeasurementUnitGeneric](docs/MeasurementUnitGeneric.md)
364
371
  - [SquareConnect::MeasurementUnitLength](docs/MeasurementUnitLength.md)
365
372
  - [SquareConnect::MeasurementUnitVolume](docs/MeasurementUnitVolume.md)
366
373
  - [SquareConnect::MeasurementUnitWeight](docs/MeasurementUnitWeight.md)
@@ -390,8 +397,11 @@ Class | Method | HTTP request | Description
390
397
  - [SquareConnect::OrderReturnDiscount](docs/OrderReturnDiscount.md)
391
398
  - [SquareConnect::OrderReturnLineItem](docs/OrderReturnLineItem.md)
392
399
  - [SquareConnect::OrderReturnLineItemModifier](docs/OrderReturnLineItemModifier.md)
400
+ - [SquareConnect::OrderReturnServiceCharge](docs/OrderReturnServiceCharge.md)
393
401
  - [SquareConnect::OrderReturnTax](docs/OrderReturnTax.md)
394
402
  - [SquareConnect::OrderRoundingAdjustment](docs/OrderRoundingAdjustment.md)
403
+ - [SquareConnect::OrderServiceCharge](docs/OrderServiceCharge.md)
404
+ - [SquareConnect::OrderServiceChargeCalculationPhase](docs/OrderServiceChargeCalculationPhase.md)
395
405
  - [SquareConnect::OrderSource](docs/OrderSource.md)
396
406
  - [SquareConnect::OrderState](docs/OrderState.md)
397
407
  - [SquareConnect::Product](docs/Product.md)
@@ -449,6 +459,8 @@ Class | Method | HTTP request | Description
449
459
  - [SquareConnect::ShiftWorkdayMatcher](docs/ShiftWorkdayMatcher.md)
450
460
  - [SquareConnect::SortOrder](docs/SortOrder.md)
451
461
  - [SquareConnect::SourceApplication](docs/SourceApplication.md)
462
+ - [SquareConnect::StandardUnitDescription](docs/StandardUnitDescription.md)
463
+ - [SquareConnect::StandardUnitDescriptionGroup](docs/StandardUnitDescriptionGroup.md)
452
464
  - [SquareConnect::TaxCalculationPhase](docs/TaxCalculationPhase.md)
453
465
  - [SquareConnect::TaxInclusionType](docs/TaxInclusionType.md)
454
466
  - [SquareConnect::Tender](docs/Tender.md)
@@ -0,0 +1,15 @@
1
+ # SquareConnect::AggregationStrategy
2
+
3
+ ### Description
4
+
5
+ Indicates how a [CatalogPricingRule](#type-catalogpricingrule) can be combined with other rules.
6
+
7
+ ## Properties
8
+ Name | Type
9
+ ------------ | -------------
10
+ **UNKNOWN** | string
11
+ **BASE** | string
12
+ **STACKABLE** | string
13
+ **EXCLUSIVE** | string
14
+
15
+
data/docs/ApplePayApi.md CHANGED
@@ -12,7 +12,7 @@ Method | HTTP request | Description
12
12
 
13
13
  RegisterDomain
14
14
 
15
- 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.
15
+ 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.
16
16
 
17
17
  ### Example
18
18
  ```ruby
@@ -8,6 +8,6 @@
8
8
  Name | Type | Description | Notes
9
9
  ------------ | ------------- | ------------- | -------------
10
10
  **object_ids** | **Array<String>** | The IDs of the [CatalogObject](#type-catalogobject)s to be retrieved. |
11
- **include_related_objects** | **BOOLEAN** | If `true`, the response will include additional objects that are related to the requested objects, as follows: If the `objects` field of the response contains a [CatalogItem](#type-catalogitem), its associated [CatalogCategory](#type-catalogcategory), [CatalogTax](#type-catalogtax)es, and [CatalogModifierList](#type-catalogmodifierlist)s will be returned in the `related_objects` field of the response. If the `objects` field of the response contains a [CatalogItemVariation](#type-catalogitemvariation), its parent [CatalogItem](#type-catalogitem) will be returned in the `related_objects` field of the response. | [optional]
11
+ **include_related_objects** | **BOOLEAN** | If `true`, the response will include additional objects that are related to the requested objects, as follows: If the `objects` field of the response contains a [CatalogItem](#type-catalogitem), its associated [CatalogCategory](#type-catalogcategory), [CatalogTax](#type-catalogtax)es, [CatalogImage](#type-catalogimage)s and [CatalogModifierList](#type-catalogmodifierlist)s will be returned in the `related_objects` field of the response. If the `objects` field of the response contains a [CatalogItemVariation](#type-catalogitemvariation), its parent [CatalogItem](#type-catalogitem) will be returned in the `related_objects` field of the response. | [optional]
12
12
 
13
13
 
data/docs/Card.md CHANGED
@@ -14,6 +14,6 @@ Name | Type | Description | Notes
14
14
  **exp_year** | **Integer** | The four-digit year of the card's expiration date. | [optional]
15
15
  **cardholder_name** | **String** | The name of the cardholder. | [optional]
16
16
  **billing_address** | [**Address**](Address.md) | The billing address for this card. | [optional]
17
- **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]
17
+ **fingerprint** | **String** | A unique, Square-assigned ID that identifies the card across multiple locations and applications for a single Square account. | [optional]
18
18
 
19
19
 
data/docs/CatalogApi.md CHANGED
@@ -276,7 +276,7 @@ Name | Type | Description | Notes
276
276
 
277
277
  ListCatalog
278
278
 
279
- Returns a list of [CatalogObject](#type-catalogobject)s that includes all objects of a set of desired types (for example, all [CatalogItem](#type-catalogitem) and [CatalogTax](#type-catalogtax) objects) in the catalog. The types parameter is specified as a comma-separated list of valid [CatalogObject](#type-catalogobject) types: `ITEM`, `ITEM_VARIATION`, `MODIFIER`, `MODIFIER_LIST`, `CATEGORY`, `DISCOUNT`, `TAX`.
279
+ Returns a list of [CatalogObject](#type-catalogobject)s that includes all objects of a set of desired types (for example, all [CatalogItem](#type-catalogitem) and [CatalogTax](#type-catalogtax) objects) in the catalog. The `types` parameter is specified as a comma-separated list of valid [CatalogObject](#type-catalogobject) types: `ITEM`, `ITEM_VARIATION`, `MODIFIER`, `MODIFIER_LIST`, `CATEGORY`, `DISCOUNT`, `TAX`. __Important:__ ListCatalog does not return deleted catalog items. To retrieve deleted catalog items, use SearchCatalogObjects and set `include_deleted_objects` to `true`.
280
280
 
281
281
  ### Example
282
282
  ```ruby
@@ -348,7 +348,7 @@ api_instance = SquareConnect::CatalogApi.new
348
348
  object_id = "object_id_example" # String | The object ID of any type of [CatalogObject](#type-catalogobject)s to be retrieved.
349
349
 
350
350
  opts = {
351
- include_related_objects: 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`
351
+ include_related_objects: 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`
352
352
  }
353
353
 
354
354
  begin
@@ -365,7 +365,7 @@ end
365
365
  Name | Type | Description | Notes
366
366
  ------------- | ------------- | ------------- | -------------
367
367
  **object_id** | **String**| The object ID of any type of [CatalogObject](#type-catalogobject)s to be retrieved. |
368
- **include_related_objects** | **BOOLEAN**| If `true`, the response will include additional objects that are related to the requested object, as follows: If the `object` field of the response contains a [CatalogItem](#type-catalogitem), its associated [CatalogCategory](#type-catalogcategory), [CatalogTax](#type-catalogtax)es, and [CatalogModifierList](#type-catalogmodifierlist)s will be returned in the `related_objects` field of the response. If the `object` field of the response contains a [CatalogItemVariation](#type-catalogitemvariation), its parent [CatalogItem](#type-catalogitem) will be returned in the `related_objects` field of the response. Default value: `false` | [optional]
368
+ **include_related_objects** | **BOOLEAN**| If `true`, the response will include additional objects that are related to the requested object, as follows: If the `object` field of the response contains a [CatalogItem](#type-catalogitem), its associated [CatalogCategory](#type-catalogcategory), [CatalogTax](#type-catalogtax)es, [CatalogImage](#type-catalogimage)s and [CatalogModifierList](#type-catalogmodifierlist)s will be returned in the `related_objects` field of the response. If the `object` field of the response contains a [CatalogItemVariation](#type-catalogitemvariation), its parent [CatalogItem](#type-catalogitem) will be returned in the `related_objects` field of the response. Default value: `false` | [optional]
369
369
 
370
370
  ### Return type
371
371
 
@@ -9,5 +9,6 @@ Name | Type | Description | Notes
9
9
  ------------ | ------------- | ------------- | -------------
10
10
  **errors** | [**Array<Error>**](Error.md) | The set of [Error](#type-error)s encountered. | [optional]
11
11
  **limits** | [**CatalogInfoResponseLimits**](CatalogInfoResponseLimits.md) | | [optional]
12
+ **standard_unit_description_group** | [**StandardUnitDescriptionGroup**](StandardUnitDescriptionGroup.md) | Names and abbreviations for standard units. | [optional]
12
13
 
13
14
 
data/docs/CatalogItem.md CHANGED
@@ -18,7 +18,7 @@ Name | Type | Description | Notes
18
18
  **tax_ids** | **Array<String>** | A set of IDs indicating the [CatalogTax](#type-catalogtax)es that are enabled for this item. When updating an item, any taxes listed here will be added to the item. [CatalogTax](#type-catalogtax)es may also be added to or deleted from an item using `UpdateItemTaxes`. | [optional]
19
19
  **modifier_list_info** | [**Array<CatalogItemModifierListInfo>**](CatalogItemModifierListInfo.md) | A set of [CatalogItemModifierListInfo](#type-catalogitemmodifierlistinfo) objects representing the modifier lists that apply to this item, along with the overrides and min and max limits that are specific to this item. [CatalogModifierList](#type-catalogmodifierlist)s may also be added to or deleted from an item using `UpdateItemModifierLists`. | [optional]
20
20
  **image_url** | **String** | __Deprecated__. The URL of an image representing this item. Deprecated in favor of `image_id` in [`CatalogObject`](#type-catalogobject). | [optional]
21
- **variations** | [**Array<CatalogObject>**](CatalogObject.md) | A list of [CatalogObject](#type-catalogobject)s containing the [CatalogItemVariation](#type-catalogitemvariation)s for this item. | [optional]
21
+ **variations** | [**Array<CatalogObject>**](CatalogObject.md) | A list of [CatalogObject](#type-catalogobject)s containing the [CatalogItemVariation](#type-catalogitemvariation)s for this item. Maximum: 250 item variations | [optional]
22
22
  **product_type** | **String** | The product type of the item. May not be changed once an item has been created. Only items of product type `REGULAR` may be created by this API; items with other product types are read-only. See [CatalogItemProductType](#type-catalogitemproducttype) for possible values | [optional]
23
23
  **skip_modifier_screen** | **BOOLEAN** | If `false`, the Square Point of Sale app will present the [CatalogItem](#type-catalogitem)'s details screen immediately, allowing the merchant to choose [CatalogModifier](#type-catalogmodifier)s before adding the item to the cart. This is the default behavior. If `true`, the Square Point of Sale app will immediately add the item to the cart with the pre-selected modifiers, and merchants can edit modifiers by drilling down onto the item's details. Third-party clients are encouraged to implement similar behaviors. | [optional]
24
24
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  ### Description
4
4
 
5
- An item variation (i.e., product) in the Catalog object model.
5
+ An item variation (i.e., product) in the Catalog object model. Each item may have a maximum of 250 item variations.
6
6
 
7
7
  ## Properties
8
8
  Name | Type | Description | Notes
@@ -20,5 +20,7 @@ Name | Type | Description | Notes
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
21
  **user_data** | **String** | Arbitrary user metadata to associate with the item variation. Cannot exceed 255 characters. Searchable. | [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
+ **catalog_measurement_unit_id** | **String** | Represents the unit used to measure a [CatalogItemVariation](#type-catalogitemvariation) and specifies the precision for decimal quantities. | [optional]
24
+ **measurement_unit_id** | **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]
23
25
 
24
26
 
@@ -0,0 +1,13 @@
1
+ # SquareConnect::CatalogMeasurementUnit
2
+
3
+ ### Description
4
+
5
+ Represents the unit used to measure a [CatalogItemVariation](#type-catalogitemvariation) and specifies the precision for decimal quantities.
6
+
7
+ ## Properties
8
+ Name | Type | Description | Notes
9
+ ------------ | ------------- | ------------- | -------------
10
+ **measurement_unit** | [**MeasurementUnit**](MeasurementUnit.md) | Indicates the unit used to measure the quantity of a catalog item variation. | [optional]
11
+ **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]
12
+
13
+
@@ -25,5 +25,6 @@ Name | Type | Description | Notes
25
25
  **modifier_list_data** | [**CatalogModifierList**](CatalogModifierList.md) | Structured data for a [CatalogModifierList](#type-catalogmodifierlist), set for CatalogObjects of type `MODIFIER_LIST`. | [optional]
26
26
  **modifier_data** | [**CatalogModifier**](CatalogModifier.md) | Structured data for a [CatalogModifier](#type-catalogmodifier), set for CatalogObjects of type `MODIFIER`. | [optional]
27
27
  **image_data** | [**CatalogImage**](CatalogImage.md) | Structured data for a [CatalogImage](#type-catalogimage), set for CatalogObjects of type `IMAGE`. | [optional]
28
+ **measurement_unit_data** | [**CatalogMeasurementUnit**](CatalogMeasurementUnit.md) | Structured data for a [CatalogMeasurementUnit](#type-catalogmeasurementunit), set for CatalogObjects of type `MEASUREMENT_UNIT`. | [optional]
28
29
 
29
30
 
@@ -15,5 +15,8 @@ Name | Type
15
15
  **DISCOUNT** | string
16
16
  **MODIFIER_LIST** | string
17
17
  **MODIFIER** | string
18
+ **PRICING_RULE** | string
19
+ **PRODUCT_SET** | string
20
+ **TIME_PERIOD** | string
18
21
 
19
22
 
@@ -0,0 +1,24 @@
1
+ # SquareConnect::CatalogPricingRule
2
+
3
+ ### Description
4
+
5
+ Defines how prices are modified or set for items that match the pricing rule during the active time period.
6
+
7
+ ## Properties
8
+ Name | Type | Description | Notes
9
+ ------------ | ------------- | ------------- | -------------
10
+ **name** | **String** | User-defined name for the pricing rule. For example, \"Buy one get one free\" or \"10% off\". | [optional]
11
+ **time_period_ids** | **Array<String>** | Unique ID for the [CatalogTimePeriod](#type-catalogtimeperiod)s when this pricing rule is in effect. If left unset, the pricing rule is always in effect. | [optional]
12
+ **total_price_money** | [**Money**](Money.md) | The total amount of money to charge for all matched items. Only one of `total_price_money`, `item_price`, or `discount` can be supplied. | [optional]
13
+ **item_price_money** | [**Money**](Money.md) | The amount of money to charge for each matched item. Only one of `total_price_money`, `item_price`, or `discount` can be supplied. | [optional]
14
+ **discount_id** | **String** | Unique ID for the [CatalogDiscount](#type-catalogdiscount) to take off the price of all matched items. Only one of `total_price_money`, `item_price`, or `discount` can be supplied. | [optional]
15
+ **match_products_id** | **String** | Unique ID for the [CatalogProductSet](#type-catalogproductset) that will be matched by this rule. A match rule matches within the entire cart. | [optional]
16
+ **apply_products_id** | **String** | The [CatalogProductSet](#type-catalogproductset) to apply the pricing rule to within the set of matched products specified by `match_products_id`. An apply rule can only match once within the set of matched products. If left unset, the pricing rule will be applied to all products within the set of matched products. | [optional]
17
+ **stackable** | **String** | Describes how the pricing rule can be combined with other pricing rules. See [Stackable](#type-stackable) for all possible values. See [AggregationStrategy](#type-aggregationstrategy) for possible values | [optional]
18
+ **exclude_products_id** | **String** | Identifies the [CatalogProductSet](#type-catalogproductset) to exclude from this pricing rule. An exclude rule matches within the subset of the cart that fits the match rules (the match set). An exclude rule can only match once in the match set. If not supplied, the pricing will be applied to all products in the match set. Other products retain their base price, or a price generated by other rules. | [optional]
19
+ **valid_from_date** | **String** | Represents the date the Pricing Rule is valid from. Represented in RFC3339 full-date format (YYYY-MM-DD). | [optional]
20
+ **valid_from_local_time** | **String** | Represents the local time the pricing rule should be valid from. Time zone is determined by the device running the Point of Sale app. Represented in RFC3339 partial-time format (HH:MM:SS). Partial seconds will be truncated. | [optional]
21
+ **valid_until_date** | **String** | Represents the date the pricing rule will become inactive. Represented in RFC3339 full-date format (YYYY-MM-DD). | [optional]
22
+ **valid_until_local_time** | **String** | Represents the local time at which the pricing rule will become inactive. Time zone is determined by the device running the Point of Sale app. Represented in RFC3339 partial-time format (HH:MM:SS). Partial seconds will be truncated. | [optional]
23
+
24
+
@@ -0,0 +1,18 @@
1
+ # SquareConnect::CatalogProductSet
2
+
3
+ ### Description
4
+
5
+ Represents a collection of catalog objects for the purpose of applying a [PricingRule](#type-pricingrule). Including a catalog object will include all of its subtypes. For example, including a category in a product set will include all of its items and associated item variations in the product set. Including an item in a product set will also include its item variations.
6
+
7
+ ## Properties
8
+ Name | Type | Description | Notes
9
+ ------------ | ------------- | ------------- | -------------
10
+ **name** | **String** | User-defined name for the product set. For example, \"Clearance Items\" or \"Winter Sale Items\". | [optional]
11
+ **product_ids_any** | **Array<String>** | Unique IDs for any [CatalogObjects](#type-catalogobject)s to include in this product set. Any number of these catalog objects can be in an order for a pricing rule to apply. This can be used with `product_ids_all` in a parent [CatalogProductSet](#type-catalogproductset) to match groups of products for a bulk discount, such as a discount for an entree and side combo. Only one of `product_ids_all`, `product_ids_any`, or `all_products` can be set. Max: 500 catalog object IDs. | [optional]
12
+ **product_ids_all** | **Array<String>** | Unique IDs for [CatalogObjects](#type-catalogobject) to include in this product set. All objects in this set must be included in an order for a pricing rule to apply. Only one of `product_ids_all`, `product_ids_any`, or `all_products` can be set. Max: 500 catalog object IDs. | [optional]
13
+ **quantity_exact** | **Integer** | If set, there must be exactly this many items from `products_any` or `products_all` in the cart for the discount to apply. Cannot be combined with either `quantity_min` or `quantity_max`. | [optional]
14
+ **quantity_min** | **Integer** | If set, there must be at least this many items from `products_any` or `products_all` in a cart for the discount to apply. See `quantity_exact`. Defaults to 0 if `quantity_exact`, `quantity_min` and `quantity_max` are all unspecified. | [optional]
15
+ **quantity_max** | **Integer** | If set, the pricing rule will apply to a maximum of this many items from `products_any` or `products_all`. | [optional]
16
+ **all_products** | **BOOLEAN** | If set to `true`, the product set will include every item in the catalog. Only one of `product_ids_all`, `product_ids_any`, or `all_products` can be set. | [optional]
17
+
18
+
@@ -0,0 +1,12 @@
1
+ # SquareConnect::CatalogTimePeriod
2
+
3
+ ### Description
4
+
5
+ Represents a time period - either a single period or a repeating period.
6
+
7
+ ## Properties
8
+ Name | Type | Description | Notes
9
+ ------------ | ------------- | ------------- | -------------
10
+ **event** | **String** | An iCalendar (RFC5545) [event](https://tools.ietf.org/html/rfc5545#section-3.6.1), which specifies the name, timing, duration and recurrence of this time period. Example: ``` DTSTART:20190707T180000 DURATION:P2H RRULE:FREQ=WEEKLY;BYDAY=MO,WE,FR ``` Only `SUMMARY`, `DTSTART`, `DURATION` and `RRULE` fields are supported. `DTSTART` must be in local (unzoned) time format. Note that while `BEGIN:VEVENT` and `END:VEVENT` is not required in the request. The response will always include them. | [optional]
11
+
12
+
@@ -0,0 +1,13 @@
1
+ # SquareConnect::Coordinates
2
+
3
+ ### Description
4
+
5
+ Latitude and longitude coordinates.
6
+
7
+ ## Properties
8
+ Name | Type | Description | Notes
9
+ ------------ | ------------- | ------------- | -------------
10
+ **latitude** | **Float** | The coordinate's latitude expressed in degrees. | [optional]
11
+ **longitude** | **Float** | The coordinate's longitude expressed in degrees. | [optional]
12
+
13
+
@@ -9,7 +9,7 @@ Name | Type | Description | Notes
9
9
  ------------ | ------------- | ------------- | -------------
10
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]
11
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](/basics/api101/idempotency) for more information. | [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. -- Top-level fields necessary to support the connect v2 CreateOrderRequest shape. | [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
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
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
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]
data/docs/DayOfWeek.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  ### Description
4
4
 
5
- Indicates the specific day of the week.
5
+ Indicates the specific day of the week.
6
6
 
7
7
  ## Properties
8
8
  Name | Type
data/docs/ErrorCode.md CHANGED
@@ -52,6 +52,7 @@ Name | Type
52
52
  **ONE_INSTRUMENT_EXPECTED** | string
53
53
  **NO_FIELDS_SET** | string
54
54
  **DEPRECATED_FIELD_SET** | string
55
+ **RETIRED_FIELD_SET** | string
55
56
  **CARD_EXPIRED** | string
56
57
  **INVALID_EXPIRATION** | string
57
58
  **INVALID_EXPIRATION_YEAR** | string
data/docs/Location.md CHANGED
@@ -23,5 +23,11 @@ Name | Type | Description | Notes
23
23
  **type** | **String** | The location's type, as set by the account owner in the Square dashboard. Typically used to indicate whether or not the location object represents a physical space like a building or mall space. See [LocationType](#type-locationtype) for possible values | [optional]
24
24
  **website_url** | **String** | The location's website, as set by the account owner in the Square dashboard. Default: none; only exists if explicitly set. | [optional]
25
25
  **business_hours** | [**BusinessHours**](BusinessHours.md) | The hours of operation for a business location. Default: none; only exists if explicitly set. | [optional]
26
+ **business_email** | **String** | The email of the location. | [optional]
27
+ **description** | **String** | The business description of the location. | [optional]
28
+ **twitter_username** | **String** | The Twitter username of the location without the ' | [optional]
29
+ **instagram_username** | **String** | The Instagram username of the location without the ' | [optional]
30
+ **facebook_url** | **String** | The Facebook profile URL of the location. The URL should begin with 'facebook.com/'. | [optional]
31
+ **coordinates** | [**Coordinates**](Coordinates.md) | The physical coordinates (latitude and longitude) of the location. | [optional]
26
32
 
27
33
 
@@ -12,5 +12,6 @@ Name | Type | Description | Notes
12
12
  **length_unit** | **String** | Represents a standard length unit. See [MeasurementUnitLength](#type-measurementunitlength) for possible values | [optional]
13
13
  **volume_unit** | **String** | Represents a standard volume unit. See [MeasurementUnitVolume](#type-measurementunitvolume) for possible values | [optional]
14
14
  **weight_unit** | **String** | Represents a standard unit of weight or mass. See [MeasurementUnitWeight](#type-measurementunitweight) for possible values | [optional]
15
+ **generic_unit** | **String** | Reserved for API integrations that lack the ability to specify a real measurement unit See [MeasurementUnitGeneric](#type-measurementunitgeneric) for possible values | [optional]
15
16
 
16
17
 
@@ -0,0 +1,13 @@
1
+ # SquareConnect::MeasurementUnitGeneric
2
+
3
+ ### Description
4
+
5
+ A custom unit of measurement defined by the user.
6
+
7
+ ## Properties
8
+ Name | Type
9
+ ------------ | -------------
10
+ **INVALID_GENERIC_UNIT** | string
11
+ **UNIT** | string
12
+
13
+
data/docs/OAuthApi.md CHANGED
@@ -14,7 +14,7 @@ Method | HTTP request | Description
14
14
 
15
15
  ObtainToken
16
16
 
17
- Returns an OAuth access token. The endpoint supports distinct methods of obtaining OAuth access tokens. Applications specify a method by adding the `grant_type` parameter in the request and also provide relevant information. For more information, see [OAuth access token management](/authz/oauth/how-it-works#oauth-access-token-management). __Note:__ Regardless of the method application specified, the endpoint always returns two items; an OAuth access token and a refresh token in the response. By default, the OAuth API lets up to 500 Square accounts authorize your application. Please [contact support](https://squareup.com/help/us/en/contact?prefill=developer_api) if you are developing an application for a larger audience. __OAuth tokens should only live on secure servers. Application clients should never interact directly with OAuth tokens__.
17
+ Returns an OAuth access token. The endpoint supports distinct methods of obtaining OAuth access tokens. Applications specify a method by adding the `grant_type` parameter in the request and also provide relevant information. For more information, see [OAuth access token management](/authz/oauth/how-it-works#oauth-access-token-management). __Note:__ Regardless of the method application specified, the endpoint always returns two items; an OAuth access token and a refresh token in the response. __OAuth tokens should only live on secure servers. Application clients should never interact directly with OAuth tokens__.
18
18
 
19
19
  ### Example
20
20
  ```ruby
@@ -11,8 +11,8 @@ Name | Type | Description | Notes
11
11
  **token_type** | **String** | This value is always _bearer_. | [optional]
12
12
  **expires_at** | **String** | The date when access_token expires, in [ISO 8601](http://www.iso.org/iso/home/standards/iso8601.htm) format. | [optional]
13
13
  **merchant_id** | **String** | The ID of the authorizing merchant's business. | [optional]
14
- **subscription_id** | **String** | __Legacy field__. The ID of a subscription plan the merchant signed up for. Only present if the merchant signed up for a subscription during authorization. | [optional]
15
- **plan_id** | **String** | The ID of the [subscription](https://docs.connect.squareup.com/api/connect/v1/#navsection-subscriptionmanagement) plan the merchant signed up for. Only present if the merchant signed up for a subscription during authorization. | [optional]
14
+ **subscription_id** | **String** | __LEGACY FIELD__. The ID of a subscription plan the merchant signed up for. Only present if the merchant signed up for a subscription during authorization. | [optional]
15
+ **plan_id** | **String** | __LEGACY FIELD__. The ID of the subscription plan the merchant signed up for. Only present if the merchant signed up for a subscription during authorization. | [optional]
16
16
  **id_token** | **String** | Then OpenID token belonging to this this person. Only present if the OPENID scope is included in the authorize request. | [optional]
17
17
  **refresh_token** | **String** | A refresh token. For more information, see [OAuth access token management](/authz/oauth/how-it-works#oauth-access-token-management). | [optional]
18
18
 
data/docs/Order.md CHANGED
@@ -7,7 +7,7 @@ Contains all information related to a single order to process with Square, inclu
7
7
  ## Properties
8
8
  Name | Type | Description | Notes
9
9
  ------------ | ------------- | ------------- | -------------
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-orders-createorder) endpoint. | [optional]
10
+ **id** | **String** | The order's unique ID. This field is read-only. | [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
13
  **source** | [**OrderSource**](OrderSource.md) | The origination details of the order. | [optional]
@@ -15,19 +15,21 @@ Name | Type | Description | Notes
15
15
  **line_items** | [**Array<OrderLineItem>**](OrderLineItem.md) | The line items included in the order. | [optional]
16
16
  **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]
17
17
  **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]
18
+ **service_charges** | [**Array<OrderServiceCharge>**](OrderServiceCharge.md) | A list of service charges applied to the order. | [optional]
18
19
  **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]
19
- **returns** | [**Array<OrderReturn>**](OrderReturn.md) | Collection of items from sale Orders being returned in this one. Normally part of an Itemized Return or Exchange. There will be exactly one `Return` object per sale Order being referenced. | [optional]
20
- **return_amounts** | [**OrderMoneyAmounts**](OrderMoneyAmounts.md) | Rollup of returned money amounts. | [optional]
21
- **net_amounts** | [**OrderMoneyAmounts**](OrderMoneyAmounts.md) | Net money amounts (sale money - return money). | [optional]
22
- **rounding_adjustment** | [**OrderRoundingAdjustment**](OrderRoundingAdjustment.md) | A positive or negative rounding adjustment to the total of the order, commonly used to apply Cash Rounding when the minimum unit of account is smaller than the lowest physical denomination of currency. | [optional]
20
+ **returns** | [**Array<OrderReturn>**](OrderReturn.md) | Collection of items from sale Orders being returned in this one. Normally part of an Itemized Return or Exchange. There will be exactly one `Return` object per sale Order being referenced. This field is read-only. | [optional]
21
+ **return_amounts** | [**OrderMoneyAmounts**](OrderMoneyAmounts.md) | Rollup of returned money amounts. This field is read-only. | [optional]
22
+ **net_amounts** | [**OrderMoneyAmounts**](OrderMoneyAmounts.md) | Net money amounts (sale money - return money). This field is read-only. | [optional]
23
+ **rounding_adjustment** | [**OrderRoundingAdjustment**](OrderRoundingAdjustment.md) | A positive or negative rounding adjustment to the total of the order, commonly used to apply Cash Rounding when the minimum unit of account is smaller than the lowest physical denomination of currency. This field is read-only. | [optional]
23
24
  **tenders** | [**Array<Tender>**](Tender.md) | The Tenders which were used to pay for the Order. This field is read-only. | [optional]
24
25
  **refunds** | [**Array<Refund>**](Refund.md) | The Refunds that are part of this Order. This field is read-only. | [optional]
25
- **created_at** | **String** | Timestamp for when the order was created. In RFC 3339 format, e.g., \"2016-09-04T23:59:33.123Z\". | [optional]
26
- **updated_at** | **String** | Timestamp for when the order was last updated. In RFC 3339 format, e.g., \"2016-09-04T23:59:33.123Z\". | [optional]
27
- **closed_at** | **String** | Timestamp for when the order was closed. In RFC 3339 format, e.g., \"2016-09-04T23:59:33.123Z\". | [optional]
26
+ **created_at** | **String** | Timestamp for when the order was created. In RFC 3339 format, e.g., \"2016-09-04T23:59:33.123Z\". This field is read-only. | [optional]
27
+ **updated_at** | **String** | Timestamp for when the order was last updated. In RFC 3339 format, e.g., \"2016-09-04T23:59:33.123Z\". This field is read-only. | [optional]
28
+ **closed_at** | **String** | Timestamp for when the order was closed. In RFC 3339 format, e.g., \"2016-09-04T23:59:33.123Z\". This field is read-only. | [optional]
28
29
  **state** | **String** | The current state of the order. `OPEN`,`COMPLETED`,`CANCELED` See [OrderState](#type-orderstate) for possible values | [optional]
29
- **total_money** | [**Money**](Money.md) | The total amount of money to collect for the order. | [optional]
30
- **total_tax_money** | [**Money**](Money.md) | The total tax amount of money to collect for the order. | [optional]
31
- **total_discount_money** | [**Money**](Money.md) | The total discount amount of money to collect for the order. | [optional]
30
+ **total_money** | [**Money**](Money.md) | The total amount of money to collect for the order. This field is read-only. | [optional]
31
+ **total_tax_money** | [**Money**](Money.md) | The total tax amount of money to collect for the order. This field is read-only. | [optional]
32
+ **total_discount_money** | [**Money**](Money.md) | The total discount amount of money to collect for the order. This field is read-only. | [optional]
33
+ **total_service_charge_money** | [**Money**](Money.md) | The total amount of money collected in service charges for the order. Note: `total_service_charge_money` is the sum of `applied_money` fields for each individual service charge. Therefore, `total_service_charge_money` will only include inclusive tax amounts, not additive tax amounts. This field is read-only. | [optional]
32
34
 
33
35