square_connect 2.20180712.2.237 → 2.20180918.0.244

Sign up to get free protection for your applications and to get access to all the features.
Files changed (105) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +20 -1
  3. data/README.md +33 -1
  4. data/docs/BatchChangeInventoryRequest.md +14 -0
  5. data/docs/BatchChangeInventoryResponse.md +13 -0
  6. data/docs/BatchRetrieveInventoryChangesRequest.md +18 -0
  7. data/docs/BatchRetrieveInventoryChangesResponse.md +14 -0
  8. data/docs/BatchRetrieveInventoryCountsRequest.md +15 -0
  9. data/docs/BatchRetrieveInventoryCountsResponse.md +14 -0
  10. data/docs/Card.md +1 -1
  11. data/docs/CreateCustomerRequest.md +1 -0
  12. data/docs/Customer.md +1 -0
  13. data/docs/CustomersApi.md +2 -2
  14. data/docs/ErrorCode.md +2 -0
  15. data/docs/InventoryAdjustment.md +28 -0
  16. data/docs/InventoryApi.md +391 -0
  17. data/docs/InventoryChange.md +15 -0
  18. data/docs/InventoryChangeType.md +14 -0
  19. data/docs/InventoryCount.md +17 -0
  20. data/docs/InventoryPhysicalCount.md +22 -0
  21. data/docs/InventoryState.md +23 -0
  22. data/docs/InventoryTransfer.md +23 -0
  23. data/docs/Product.md +19 -0
  24. data/docs/RetrieveInventoryAdjustmentRequest.md +11 -0
  25. data/docs/RetrieveInventoryAdjustmentResponse.md +13 -0
  26. data/docs/RetrieveInventoryChangesRequest.md +13 -0
  27. data/docs/RetrieveInventoryChangesResponse.md +14 -0
  28. data/docs/RetrieveInventoryCountRequest.md +13 -0
  29. data/docs/RetrieveInventoryCountResponse.md +14 -0
  30. data/docs/RetrieveInventoryPhysicalCountRequest.md +11 -0
  31. data/docs/RetrieveInventoryPhysicalCountResponse.md +13 -0
  32. data/docs/SourceApplication.md +14 -0
  33. data/docs/TransactionsApi.md +1 -1
  34. data/docs/UpdateCustomerRequest.md +1 -0
  35. data/docs/V1Timecard.md +4 -1
  36. data/lib/square_connect.rb +24 -0
  37. data/lib/square_connect/api/apple_pay_api.rb +1 -1
  38. data/lib/square_connect/api/catalog_api.rb +11 -11
  39. data/lib/square_connect/api/checkout_api.rb +1 -1
  40. data/lib/square_connect/api/customers_api.rb +12 -12
  41. data/lib/square_connect/api/inventory_api.rb +417 -0
  42. data/lib/square_connect/api/locations_api.rb +1 -1
  43. data/lib/square_connect/api/mobile_authorization_api.rb +1 -1
  44. data/lib/square_connect/api/o_auth_api.rb +3 -3
  45. data/lib/square_connect/api/orders_api.rb +2 -2
  46. data/lib/square_connect/api/reporting_api.rb +2 -2
  47. data/lib/square_connect/api/transactions_api.rb +9 -9
  48. data/lib/square_connect/api_client.rb +1 -1
  49. data/lib/square_connect/models/batch_change_inventory_request.rb +208 -0
  50. data/lib/square_connect/models/batch_change_inventory_response.rb +200 -0
  51. data/lib/square_connect/models/batch_retrieve_inventory_changes_request.rb +275 -0
  52. data/lib/square_connect/models/batch_retrieve_inventory_changes_response.rb +210 -0
  53. data/lib/square_connect/models/batch_retrieve_inventory_counts_request.rb +220 -0
  54. data/lib/square_connect/models/batch_retrieve_inventory_counts_response.rb +210 -0
  55. data/lib/square_connect/models/card.rb +1 -1
  56. data/lib/square_connect/models/create_customer_request.rb +14 -4
  57. data/lib/square_connect/models/customer.rb +11 -1
  58. data/lib/square_connect/models/error.rb +2 -2
  59. data/lib/square_connect/models/error_code.rb +2 -0
  60. data/lib/square_connect/models/inventory_adjustment.rb +391 -0
  61. data/lib/square_connect/models/inventory_change.rb +249 -0
  62. data/lib/square_connect/models/inventory_change_type.rb +20 -0
  63. data/lib/square_connect/models/inventory_count.rb +269 -0
  64. data/lib/square_connect/models/inventory_physical_count.rb +319 -0
  65. data/lib/square_connect/models/inventory_state.rb +29 -0
  66. data/lib/square_connect/models/inventory_transfer.rb +329 -0
  67. data/lib/square_connect/models/money.rb +0 -9
  68. data/lib/square_connect/models/product.rb +25 -0
  69. data/lib/square_connect/models/retrieve_inventory_adjustment_request.rb +176 -0
  70. data/lib/square_connect/models/retrieve_inventory_adjustment_response.rb +198 -0
  71. data/lib/square_connect/models/retrieve_inventory_changes_request.rb +196 -0
  72. data/lib/square_connect/models/retrieve_inventory_changes_response.rb +210 -0
  73. data/lib/square_connect/models/retrieve_inventory_count_request.rb +196 -0
  74. data/lib/square_connect/models/retrieve_inventory_count_response.rb +210 -0
  75. data/lib/square_connect/models/retrieve_inventory_physical_count_request.rb +176 -0
  76. data/lib/square_connect/models/retrieve_inventory_physical_count_response.rb +198 -0
  77. data/lib/square_connect/models/source_application.rb +239 -0
  78. data/lib/square_connect/models/update_customer_request.rb +14 -4
  79. data/lib/square_connect/models/v1_timecard.rb +35 -5
  80. data/lib/square_connect/version.rb +1 -1
  81. data/spec/api/inventory_api_spec.rb +120 -0
  82. data/spec/models/batch_change_inventory_request_spec.rb +51 -0
  83. data/spec/models/batch_change_inventory_response_spec.rb +45 -0
  84. data/spec/models/batch_retrieve_inventory_changes_request_spec.rb +83 -0
  85. data/spec/models/batch_retrieve_inventory_changes_response_spec.rb +51 -0
  86. data/spec/models/batch_retrieve_inventory_counts_request_spec.rb +57 -0
  87. data/spec/models/batch_retrieve_inventory_counts_response_spec.rb +51 -0
  88. data/spec/models/inventory_adjustment_spec.rb +143 -0
  89. data/spec/models/inventory_change_spec.rb +61 -0
  90. data/spec/models/inventory_change_type_spec.rb +33 -0
  91. data/spec/models/inventory_count_spec.rb +73 -0
  92. data/spec/models/inventory_physical_count_spec.rb +103 -0
  93. data/spec/models/inventory_state_spec.rb +33 -0
  94. data/spec/models/inventory_transfer_spec.rb +109 -0
  95. data/spec/models/product_spec.rb +33 -0
  96. data/spec/models/retrieve_inventory_adjustment_request_spec.rb +33 -0
  97. data/spec/models/retrieve_inventory_adjustment_response_spec.rb +45 -0
  98. data/spec/models/retrieve_inventory_changes_request_spec.rb +45 -0
  99. data/spec/models/retrieve_inventory_changes_response_spec.rb +51 -0
  100. data/spec/models/retrieve_inventory_count_request_spec.rb +45 -0
  101. data/spec/models/retrieve_inventory_count_response_spec.rb +51 -0
  102. data/spec/models/retrieve_inventory_physical_count_request_spec.rb +33 -0
  103. data/spec/models/retrieve_inventory_physical_count_response_spec.rb +45 -0
  104. data/spec/models/source_application_spec.rb +55 -0
  105. metadata +99 -3
@@ -0,0 +1,15 @@
1
+ # SquareConnect::InventoryChange
2
+
3
+ ### Description
4
+
5
+ Represents a single physical count, inventory, adjustment, or transfer that is part of the history of inventory changes for a particular [CatalogObject](#type-catalogobject).
6
+
7
+ ## Properties
8
+ Name | Type | Description | Notes
9
+ ------------ | ------------- | ------------- | -------------
10
+ **type** | **String** | Indicates how the inventory change was applied. See [InventoryChangeType](#type-inventorychangetype) for all possible values. | [optional]
11
+ **physical_count** | [**InventoryPhysicalCount**](InventoryPhysicalCount.md) | Contains details about the physical count when `type` is `PHYSICAL_COUNT` and unset for all other types. | [optional]
12
+ **adjustment** | [**InventoryAdjustment**](InventoryAdjustment.md) | Contains details about the inventory adjustment when `type` is `ADJUSTMENT` and unset for all other types. | [optional]
13
+ **transfer** | [**InventoryTransfer**](InventoryTransfer.md) | Contains details about the inventory transfer when `type` is `TRANSFER` and unset for all other types. | [optional]
14
+
15
+
@@ -0,0 +1,14 @@
1
+ # SquareConnect::InventoryChangeType
2
+
3
+ ### Description
4
+
5
+ Indicates how the inventory change was applied to a tracked quantity of items.
6
+
7
+ ## Properties
8
+ Name | Type
9
+ ------------ | -------------
10
+ **PHYSICAL_COUNT** | string
11
+ **ADJUSTMENT** | string
12
+ **TRANSFER** | string
13
+
14
+
@@ -0,0 +1,17 @@
1
+ # SquareConnect::InventoryCount
2
+
3
+ ### Description
4
+
5
+ Represents the estimated quantity of items in a particular state at a particular location based on the known history of physical counts and inventory adjustments.
6
+
7
+ ## Properties
8
+ Name | Type | Description | Notes
9
+ ------------ | ------------- | ------------- | -------------
10
+ **catalog_object_id** | **String** | The Square generated ID of the [CatalogObject](#type-catalogobject) being tracked. | [optional]
11
+ **catalog_object_type** | **String** | The [CatalogObjectType](#type-catalogobjecttype) of the [CatalogObject](#type-catalogobject) being tracked. Tracking is only supported for the `ITEM_VARIATION` type. | [optional]
12
+ **state** | **String** | The current [InventoryState](#type-inventorystate) for the related quantity of items. | [optional]
13
+ **location_id** | **String** | The Square ID of the [Location](#type-location) where the related quantity of items are being tracked. | [optional]
14
+ **quantity** | **String** | The number of items in the count as a decimal string. Fractional quantities are not supported. | [optional]
15
+ **calculated_at** | **String** | A read-only timestamp in RFC 3339 format that indicates when Square received the most recent physical count or adjustment that had an affect on the estimated count. | [optional]
16
+
17
+
@@ -0,0 +1,22 @@
1
+ # SquareConnect::InventoryPhysicalCount
2
+
3
+ ### Description
4
+
5
+ Represents a verified (re)count of items in a given state at a specific location. For example, the quantity of items currently on hand at a physical store).
6
+
7
+ ## Properties
8
+ Name | Type | Description | Notes
9
+ ------------ | ------------- | ------------- | -------------
10
+ **id** | **String** | A unique ID generated by Square for the [InventoryPhysicalCount](#type-inventoryphysicalcount). | [optional]
11
+ **reference_id** | **String** | An optional ID provided by the application to tie the [InventoryPhysicalCount](#type-inventoryphysicalcount) to an external system. | [optional]
12
+ **catalog_object_id** | **String** | The Square generated ID of the [CatalogObject](#type-catalogobject) being tracked. | [optional]
13
+ **catalog_object_type** | **String** | The [CatalogObjectType](#type-catalogobjecttype) of the [CatalogObject](#type-catalogobject) being tracked. Tracking is only supported for the `ITEM_VARIATION` type. | [optional]
14
+ **state** | **String** | The current [InventoryState](#type-inventorystate) for the related quantity of items. | [optional]
15
+ **location_id** | **String** | The Square ID of the [Location](#type-location) where the related quantity of items are being tracked. | [optional]
16
+ **quantity** | **String** | The number of items affected by the physical count as a decimal string. Fractional quantities are not supported. | [optional]
17
+ **source** | [**SourceApplication**](SourceApplication.md) | Read-only information about the application that submitted the physical count. | [optional]
18
+ **employee_id** | **String** | The Square ID of the [Employee](#type-employee) responsible for the physical count. | [optional]
19
+ **occurred_at** | **String** | A client-generated timestamp in RFC 3339 format that indicates when the physical count took place. For write actions, the `occurred_at` timestamp cannot be older than 24 hours or in the future relative to the time of the request. | [optional]
20
+ **created_at** | **String** | A read-only timestamp in RFC 3339 format that indicates when Square received the physical count. | [optional]
21
+
22
+
@@ -0,0 +1,23 @@
1
+ # SquareConnect::InventoryState
2
+
3
+ ### Description
4
+
5
+ Indicates the state of a tracked item quantity in the lifecycle of goods.
6
+
7
+ ## Properties
8
+ Name | Type
9
+ ------------ | -------------
10
+ **CUSTOM** | string
11
+ **IN_STOCK** | string
12
+ **SOLD** | string
13
+ **RETURNED_BY_CUSTOMER** | string
14
+ **RESERVED_FOR_SALE** | string
15
+ **SOLD_ONLINE** | string
16
+ **ORDERED_FROM_VENDOR** | string
17
+ **RECEIVED_FROM_VENDOR** | string
18
+ **IN_TRANSIT_TO** | string
19
+ **NONE** | string
20
+ **WASTE** | string
21
+ **UNLINKED_RETURN** | string
22
+
23
+
@@ -0,0 +1,23 @@
1
+ # SquareConnect::InventoryTransfer
2
+
3
+ ### Description
4
+
5
+ Represents the transfer of a quantity of product inventory at a particular time from one location to another.
6
+
7
+ ## Properties
8
+ Name | Type | Description | Notes
9
+ ------------ | ------------- | ------------- | -------------
10
+ **id** | **String** | A unique ID generated by Square for the [InventoryTransfer](#type-inventorytransfer). | [optional]
11
+ **reference_id** | **String** | An optional ID provided by the application to tie the [InventoryTransfer](#type-inventorytransfer) to an external system. | [optional]
12
+ **state** | **String** | The [InventoryState](#type-inventorystate) for the quantity of items being transfered. | [optional]
13
+ **from_location_id** | **String** | The Square ID of the [Location](#type-location) where the related quantity of items were tracked before the transfer. | [optional]
14
+ **to_location_id** | **String** | The Square ID of the [Location](#type-location) where the related quantity of items were tracked after the transfer. | [optional]
15
+ **catalog_object_id** | **String** | The Square generated ID of the [CatalogObject](#type-catalogobject) being tracked. | [optional]
16
+ **catalog_object_type** | **String** | The [CatalogObjectType](#type-catalogobjecttype) of the [CatalogObject](#type-catalogobject) being tracked.Tracking is only supported for the `ITEM_VARIATION` type. | [optional]
17
+ **quantity** | **String** | The number of items affected by the transfer as a decimal string. Fractional quantities are not supported. | [optional]
18
+ **occurred_at** | **String** | A client-generated timestamp in RFC 3339 format that indicates when the transfer took place. For write actions, the `occurred_at` timestamp cannot be older than 24 hours or in the future relative to the time of the request. | [optional]
19
+ **created_at** | **String** | A read-only timestamp in RFC 3339 format that indicates when Square received the transfer request. | [optional]
20
+ **source** | [**SourceApplication**](SourceApplication.md) | Read-only information about the application that initiated the inventory transfer. | [optional]
21
+ **employee_id** | **String** | The Square ID of the [Employee](#type-employee) responsible for the inventory transfer. | [optional]
22
+
23
+
data/docs/Product.md ADDED
@@ -0,0 +1,19 @@
1
+ # SquareConnect::Product
2
+
3
+ ### Description
4
+
5
+ Indicates the Square product used to generate an inventory change.
6
+
7
+ ## Properties
8
+ Name | Type
9
+ ------------ | -------------
10
+ **SQUARE_POS** | string
11
+ **EXTERNAL_API** | string
12
+ **BILLING** | string
13
+ **APPOINTMENTS** | string
14
+ **INVOICES** | string
15
+ **ONLINE_STORE** | string
16
+ **PAYROLL** | string
17
+ **OTHER** | string
18
+
19
+
@@ -0,0 +1,11 @@
1
+ # SquareConnect::RetrieveInventoryAdjustmentRequest
2
+
3
+ ### Description
4
+
5
+
6
+
7
+ ## Properties
8
+ Name | Type | Description | Notes
9
+ ------------ | ------------- | ------------- | -------------
10
+
11
+
@@ -0,0 +1,13 @@
1
+ # SquareConnect::RetrieveInventoryAdjustmentResponse
2
+
3
+ ### Description
4
+
5
+
6
+
7
+ ## Properties
8
+ Name | Type | Description | Notes
9
+ ------------ | ------------- | ------------- | -------------
10
+ **errors** | [**Array<Error>**](Error.md) | Any errors that occurred during the request. | [optional]
11
+ **adjustment** | [**InventoryAdjustment**](InventoryAdjustment.md) | The requested [InventoryAdjustment](#type-inventoryadjustment). | [optional]
12
+
13
+
@@ -0,0 +1,13 @@
1
+ # SquareConnect::RetrieveInventoryChangesRequest
2
+
3
+ ### Description
4
+
5
+
6
+
7
+ ## Properties
8
+ Name | Type | Description | Notes
9
+ ------------ | ------------- | ------------- | -------------
10
+ **location_ids** | **String** | The [Location](#type-location) IDs to look up as a comma-separated list. An empty list queries all locations. | [optional]
11
+ **cursor** | **String** | A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query. See [Paginating results](#paginatingresults) for more information. | [optional]
12
+
13
+
@@ -0,0 +1,14 @@
1
+ # SquareConnect::RetrieveInventoryChangesResponse
2
+
3
+ ### Description
4
+
5
+
6
+
7
+ ## Properties
8
+ Name | Type | Description | Notes
9
+ ------------ | ------------- | ------------- | -------------
10
+ **errors** | [**Array<Error>**](Error.md) | Any errors that occurred during the request. | [optional]
11
+ **changes** | [**Array<InventoryChange>**](InventoryChange.md) | The set of inventory changes for the requested object and locations. | [optional]
12
+ **cursor** | **String** | The pagination cursor to be used in a subsequent request. If unset, this is the final response. See [Paginating results](#paginatingresults) for more information. | [optional]
13
+
14
+
@@ -0,0 +1,13 @@
1
+ # SquareConnect::RetrieveInventoryCountRequest
2
+
3
+ ### Description
4
+
5
+
6
+
7
+ ## Properties
8
+ Name | Type | Description | Notes
9
+ ------------ | ------------- | ------------- | -------------
10
+ **location_ids** | **String** | The [Location](#type-location) IDs to look up as a comma-separated list. An empty list queries all locations. | [optional]
11
+ **cursor** | **String** | A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query. See [Paginating results](#paginatingresults) for more information. | [optional]
12
+
13
+
@@ -0,0 +1,14 @@
1
+ # SquareConnect::RetrieveInventoryCountResponse
2
+
3
+ ### Description
4
+
5
+
6
+
7
+ ## Properties
8
+ Name | Type | Description | Notes
9
+ ------------ | ------------- | ------------- | -------------
10
+ **errors** | [**Array<Error>**](Error.md) | Any errors that occurred during the request. | [optional]
11
+ **counts** | [**Array<InventoryCount>**](InventoryCount.md) | The current calculated inventory counts for the requested object and locations. | [optional]
12
+ **cursor** | **String** | The pagination cursor to be used in a subsequent request. If unset, this is the final response. See [Paginating results](#paginatingresults) for more information. | [optional]
13
+
14
+
@@ -0,0 +1,11 @@
1
+ # SquareConnect::RetrieveInventoryPhysicalCountRequest
2
+
3
+ ### Description
4
+
5
+
6
+
7
+ ## Properties
8
+ Name | Type | Description | Notes
9
+ ------------ | ------------- | ------------- | -------------
10
+
11
+
@@ -0,0 +1,13 @@
1
+ # SquareConnect::RetrieveInventoryPhysicalCountResponse
2
+
3
+ ### Description
4
+
5
+
6
+
7
+ ## Properties
8
+ Name | Type | Description | Notes
9
+ ------------ | ------------- | ------------- | -------------
10
+ **errors** | [**Array<Error>**](Error.md) | Any errors that occurred during the request. | [optional]
11
+ **count** | [**InventoryPhysicalCount**](InventoryPhysicalCount.md) | The requested [InventoryPhysicalCount](#type-inventoryphysicalcount). | [optional]
12
+
13
+
@@ -0,0 +1,14 @@
1
+ # SquareConnect::SourceApplication
2
+
3
+ ### Description
4
+
5
+ Provides information about the application used to generate an inventory change.
6
+
7
+ ## Properties
8
+ Name | Type | Description | Notes
9
+ ------------ | ------------- | ------------- | -------------
10
+ **product** | **String** | Read-only [Product](#type-product) type for the application. | [optional]
11
+ **application_id** | **String** | Read-only Square ID assigned to the application. Only used for [Product](#type-product) type `EXTERNAL_API`. | [optional]
12
+ **name** | **String** | Read-only display name assigned to the application (e.g. `\"Custom Application\"`, `\"Square POS 4.74 for Android\"`). | [optional]
13
+
14
+
@@ -128,7 +128,7 @@ Name | Type | Description | Notes
128
128
 
129
129
  CreateRefund
130
130
 
131
- Initiates a refund for a previously charged tender. You must issue a refund within 120 days of the associated payment. See [this article](https://squareup.com/help/us/en/article/5060) for more information on refund behavior. *NOTE**: Card-present transactions with Interac credit cards **cannot be refunded using the Connect API**. Interac transactions must refunded in-person (e.g., dipping the card using POS app).
131
+ Initiates a refund for a previously charged tender. You must issue a refund within 120 days of the associated payment. See [this article](https://squareup.com/help/us/en/article/5060) for more information on refund behavior. NOTE: Card-present transactions with Interac credit cards **cannot be refunded using the Connect API**. Interac transactions must refunded in-person (e.g., dipping the card using POS app).
132
132
 
133
133
  ### Example
134
134
  ```ruby
@@ -16,5 +16,6 @@ Name | Type | Description | Notes
16
16
  **phone_number** | **String** | The customer's phone number. | [optional]
17
17
  **reference_id** | **String** | An optional second ID you can set to associate the customer with an entity in another system. | [optional]
18
18
  **note** | **String** | An optional note to associate with the customer. | [optional]
19
+ **birthday** | **String** | The customer birthday in RFC-3339 format. Year is optional, timezone and times are not allowed. Example: `0000-09-01T00:00:00-00:00` for a birthday on September 1st. `1998-09-01T00:00:00-00:00` for a birthday on September 1st 1998. | [optional]
19
20
 
20
21
 
data/docs/V1Timecard.md CHANGED
@@ -12,9 +12,12 @@ 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, if any. | [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]
19
+ **regular_seconds_worked** | **Float** | The total number of regular (non-overtime) seconds worked in the timecard. | [optional]
20
+ **overtime_seconds_worked** | **Float** | The total number of overtime seconds worked in the timecard. | [optional]
21
+ **doubletime_seconds_worked** | **Float** | The total number of doubletime seconds worked in the timecard. | [optional]
19
22
 
20
23
 
@@ -18,10 +18,16 @@ require 'square_connect/models/additional_recipient'
18
18
  require 'square_connect/models/additional_recipient_receivable'
19
19
  require 'square_connect/models/additional_recipient_receivable_refund'
20
20
  require 'square_connect/models/address'
21
+ require 'square_connect/models/batch_change_inventory_request'
22
+ require 'square_connect/models/batch_change_inventory_response'
21
23
  require 'square_connect/models/batch_delete_catalog_objects_request'
22
24
  require 'square_connect/models/batch_delete_catalog_objects_response'
23
25
  require 'square_connect/models/batch_retrieve_catalog_objects_request'
24
26
  require 'square_connect/models/batch_retrieve_catalog_objects_response'
27
+ require 'square_connect/models/batch_retrieve_inventory_changes_request'
28
+ require 'square_connect/models/batch_retrieve_inventory_changes_response'
29
+ require 'square_connect/models/batch_retrieve_inventory_counts_request'
30
+ require 'square_connect/models/batch_retrieve_inventory_counts_response'
25
31
  require 'square_connect/models/batch_retrieve_orders_request'
26
32
  require 'square_connect/models/batch_retrieve_orders_response'
27
33
  require 'square_connect/models/batch_upsert_catalog_objects_request'
@@ -101,7 +107,14 @@ require 'square_connect/models/device'
101
107
  require 'square_connect/models/error'
102
108
  require 'square_connect/models/error_category'
103
109
  require 'square_connect/models/error_code'
110
+ require 'square_connect/models/inventory_adjustment'
104
111
  require 'square_connect/models/inventory_alert_type'
112
+ require 'square_connect/models/inventory_change'
113
+ require 'square_connect/models/inventory_change_type'
114
+ require 'square_connect/models/inventory_count'
115
+ require 'square_connect/models/inventory_physical_count'
116
+ require 'square_connect/models/inventory_state'
117
+ require 'square_connect/models/inventory_transfer'
105
118
  require 'square_connect/models/item_variation_location_overrides'
106
119
  require 'square_connect/models/list_additional_recipient_receivable_refunds_request'
107
120
  require 'square_connect/models/list_additional_recipient_receivable_refunds_response'
@@ -132,6 +145,7 @@ require 'square_connect/models/order_line_item_discount_type'
132
145
  require 'square_connect/models/order_line_item_modifier'
133
146
  require 'square_connect/models/order_line_item_tax'
134
147
  require 'square_connect/models/order_line_item_tax_type'
148
+ require 'square_connect/models/product'
135
149
  require 'square_connect/models/refund'
136
150
  require 'square_connect/models/refund_status'
137
151
  require 'square_connect/models/register_domain_request'
@@ -143,6 +157,14 @@ require 'square_connect/models/retrieve_catalog_object_request'
143
157
  require 'square_connect/models/retrieve_catalog_object_response'
144
158
  require 'square_connect/models/retrieve_customer_request'
145
159
  require 'square_connect/models/retrieve_customer_response'
160
+ require 'square_connect/models/retrieve_inventory_adjustment_request'
161
+ require 'square_connect/models/retrieve_inventory_adjustment_response'
162
+ require 'square_connect/models/retrieve_inventory_changes_request'
163
+ require 'square_connect/models/retrieve_inventory_changes_response'
164
+ require 'square_connect/models/retrieve_inventory_count_request'
165
+ require 'square_connect/models/retrieve_inventory_count_response'
166
+ require 'square_connect/models/retrieve_inventory_physical_count_request'
167
+ require 'square_connect/models/retrieve_inventory_physical_count_response'
146
168
  require 'square_connect/models/retrieve_transaction_request'
147
169
  require 'square_connect/models/retrieve_transaction_response'
148
170
  require 'square_connect/models/revoke_token_request'
@@ -152,6 +174,7 @@ require 'square_connect/models/search_catalog_objects_response'
152
174
  require 'square_connect/models/search_customers_request'
153
175
  require 'square_connect/models/search_customers_response'
154
176
  require 'square_connect/models/sort_order'
177
+ require 'square_connect/models/source_application'
155
178
  require 'square_connect/models/tax_calculation_phase'
156
179
  require 'square_connect/models/tax_inclusion_type'
157
180
  require 'square_connect/models/tender'
@@ -218,6 +241,7 @@ require 'square_connect/api/apple_pay_api'
218
241
  require 'square_connect/api/catalog_api'
219
242
  require 'square_connect/api/checkout_api'
220
243
  require 'square_connect/api/customers_api'
244
+ require 'square_connect/api/inventory_api'
221
245
  require 'square_connect/api/locations_api'
222
246
  require 'square_connect/api/mobile_authorization_api'
223
247
  require 'square_connect/api/o_auth_api'
@@ -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-07-12"
54
+ header_params['Square-Version'] = "2018-09-18"
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-07-12"
54
+ header_params['Square-Version'] = "2018-09-18"
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-07-12"
109
+ header_params['Square-Version'] = "2018-09-18"
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-07-12"
164
+ header_params['Square-Version'] = "2018-09-18"
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-07-12"
215
+ header_params['Square-Version'] = "2018-09-18"
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-07-12"
270
+ header_params['Square-Version'] = "2018-09-18"
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-07-12"
327
+ header_params['Square-Version'] = "2018-09-18"
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-07-12"
385
+ header_params['Square-Version'] = "2018-09-18"
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-07-12"
440
+ header_params['Square-Version'] = "2018-09-18"
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-07-12"
495
+ header_params['Square-Version'] = "2018-09-18"
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-07-12"
550
+ header_params['Square-Version'] = "2018-09-18"
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-07-12"
605
+ header_params['Square-Version'] = "2018-09-18"
606
606
 
607
607
  # form parameters
608
608
  form_params = {}