square.rb 45.2.0.pre.rc.0 → 46.0.1.20260715

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/.fern/metadata.json +3 -2
  3. data/.fern/replay.lock +7 -1
  4. data/lib/square/catalog/client.rb +14 -1
  5. data/lib/square/catalog/object/client.rb +4 -0
  6. data/lib/square/client.rb +1 -1
  7. data/lib/square/inventory/types/create_inventory_adjustment_reason_request.rb +12 -0
  8. data/lib/square/inventory/types/delete_inventory_adjustment_reason_request.rb +11 -0
  9. data/lib/square/inventory/types/list_inventory_adjustment_reasons_request.rb +12 -0
  10. data/lib/square/inventory/types/restore_inventory_adjustment_reason_request.rb +11 -0
  11. data/lib/square/inventory/types/retrieve_inventory_adjustment_reason_request.rb +11 -0
  12. data/lib/square/inventory/types/update_inventory_adjustment_reason_request.rb +12 -0
  13. data/lib/square/inventory/types/update_inventory_adjustment_request.rb +12 -0
  14. data/lib/square/types/batch_retrieve_inventory_changes_request.rb +2 -0
  15. data/lib/square/types/batch_retrieve_inventory_changes_sort.rb +10 -0
  16. data/lib/square/types/batch_retrieve_inventory_changes_sort_field.rb +23 -0
  17. data/lib/square/types/catalog_item_variation.rb +1 -0
  18. data/lib/square/types/catalog_item_variation_vendor_information.rb +12 -0
  19. data/lib/square/types/create_inventory_adjustment_reason_response.rb +12 -0
  20. data/lib/square/types/delete_inventory_adjustment_reason_response.rb +12 -0
  21. data/lib/square/types/exclude_strategy.rb +1 -0
  22. data/lib/square/types/fulfillment.rb +1 -0
  23. data/lib/square/types/fulfillment_in_store_details.rb +16 -0
  24. data/lib/square/types/fulfillment_type.rb +1 -0
  25. data/lib/square/types/get_inventory_transfer_response.rb +16 -3
  26. data/lib/square/types/inventory_adjustment.rb +6 -1
  27. data/lib/square/types/inventory_adjustment_reason.rb +15 -0
  28. data/lib/square/types/inventory_adjustment_reason_direction.rb +12 -0
  29. data/lib/square/types/inventory_adjustment_reason_id.rb +11 -0
  30. data/lib/square/types/inventory_adjustment_reason_id_type.rb +26 -0
  31. data/lib/square/types/inventory_change.rb +0 -1
  32. data/lib/square/types/inventory_change_type.rb +0 -1
  33. data/lib/square/types/inventory_count.rb +2 -1
  34. data/lib/square/types/inventory_physical_count.rb +1 -0
  35. data/lib/square/types/inventory_state.rb +1 -0
  36. data/lib/square/types/list_inventory_adjustment_reasons_response.rb +12 -0
  37. data/lib/square/types/loyalty_event.rb +2 -2
  38. data/lib/square/types/order_line_item_modifier.rb +1 -0
  39. data/lib/square/types/restore_inventory_adjustment_reason_response.rb +12 -0
  40. data/lib/square/types/retrieve_inventory_adjustment_reason_response.rb +12 -0
  41. data/lib/square/types/update_inventory_adjustment_reason_response.rb +12 -0
  42. data/lib/square/types/update_inventory_adjustment_response.rb +10 -0
  43. data/lib/square/version.rb +1 -1
  44. data/lib/square.rb +25 -4
  45. data/reference.md +725 -173
  46. data/wiremock/wiremock-mappings.json +1 -1
  47. metadata +24 -3
  48. data/lib/square/types/inventory_transfer.rb +0 -23
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 33286aa52968fd20a87e53747ec5f19b0769a955fae8be8bdb0d984d8d0e00cd
4
- data.tar.gz: 1cf5fd062db619a9e1ebe949bffe6e724173526fd82d6af6bb1e07eef6d69e8d
3
+ metadata.gz: 5aabb765f06b7f91a9943e2996d342aee7d7ebdc3132665984130674ad9832a7
4
+ data.tar.gz: aeeff982ae4a52da0c21a00c81a11ae51e0f18feb11bee280acd94410e66ec73
5
5
  SHA512:
6
- metadata.gz: 8ebd02e23396a301d4cb91cdc2592d10112d419d84ba3581e69fba5d5222bbe58916c614e60d71692aeb4440079e7f8153582eba549d7f10e68d2c653cb49888
7
- data.tar.gz: 7f5819b9a81bb6b683d64134b09649c698ccecc01db56b5d0e7ea58c328083da6ee669d8c5b034086d2a2a98ec4bc63ae73aac3054a3596d60b6f80fe22aa46c
6
+ metadata.gz: dd3ff2a54d789c933156f113bb6ff472352034d29af46051d0b633a0002cb513699ef25b644784cf63c7f7bf19c580ec9405f95f705188fba3ff6e6e6dcb67ba
7
+ data.tar.gz: 6ff2f9a734e0df1480c6da6d4d93cd19c8a55ebedb24cb6aa7bf84abfc6b28d34462527832a7196c3e7b3e498712e010eca6d20360fa2b2b8398d6a4fd8775eb
data/.fern/metadata.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
- "cliVersion": "3.98.5",
2
+ "cliVersion": "5.56.0",
3
3
  "generatorName": "fernapi/fern-ruby-sdk",
4
4
  "generatorVersion": "1.0.0-rc84",
5
5
  "generatorConfig": {
6
6
  "enableWireTests": true
7
7
  },
8
- "sdkVersion": "45.2.0-rc.0"
8
+ "originGitCommit": "b2dac8b2c1b9fe87c0e1fe3eb6257b259caa0715",
9
+ "sdkVersion": "46.0.1.20260715"
9
10
  }
data/.fern/replay.lock CHANGED
@@ -6,5 +6,11 @@ generations:
6
6
  timestamp: 2026-05-19T21:18:26.039Z
7
7
  cli_version: unknown
8
8
  generator_versions: {}
9
- current_generation: f631923c98d9161665156652789a58902009b805
9
+ - commit_sha: 0df987cc98c660edfc8d9da6a8a62443df8d4754
10
+ tree_hash: 83a1da975e9400250bba4bf52a2ee62f320d33f5
11
+ timestamp: 2026-07-14T17:00:55.993Z
12
+ cli_version: unknown
13
+ generator_versions:
14
+ fernapi/fern-ruby-sdk: 1.0.0-rc84
15
+ current_generation: 0df987cc98c660edfc8d9da6a8a62443df8d4754
10
16
  patches: []
@@ -106,9 +106,15 @@ module Square
106
106
  # request (items, variations, modifier lists, discounts, and taxes) is no more
107
107
  # than 10,000.
108
108
  #
109
+ # This endpoint uses full-replacement semantics. The client must send the complete object, and any
110
+ # field absent from the request is interpreted as an intentional clear. This logic applies to
111
+ # nested objects as well. For example, omitting inlined children like variations will delete them.
112
+ #
109
113
  # To ensure consistency, only one update request is processed at a time per seller account.
110
114
  # While one (batch or non-batch) update request is being processed, other (batched and non-batched)
111
- # update requests are rejected with the `429` error code.
115
+ # update requests are rejected with the `429` error code. Prefer batching related changes into a
116
+ # single call rather than issuing many small writes, since each write acquires the lock separately
117
+ # and parallel writes to the same seller will contend with each other, producing `429` errors.
112
118
  #
113
119
  # @param request_options [Hash]
114
120
  # @param params [Square::Catalog::Types::BatchUpsertCatalogObjectsRequest]
@@ -181,6 +187,8 @@ module Square
181
187
  # The `types` parameter is specified as a comma-separated list of the
182
188
  # [CatalogObjectType](entity:CatalogObjectType) values,
183
189
  # for example, "`ITEM`, `ITEM_VARIATION`, `MODIFIER`, `MODIFIER_LIST`, `CATEGORY`, `DISCOUNT`, `TAX`, `IMAGE`".
190
+ # Always specify `types` explicitly. When upgrading to a newer API version, omitting `types` may
191
+ # cause new object types to appear in results that were not returned under the previous version.
184
192
  #
185
193
  # __Important:__ ListCatalog does not return deleted catalog items. To retrieve
186
194
  # deleted catalog items, use [SearchCatalogObjects](api-endpoint:Catalog-SearchCatalogObjects)
@@ -251,6 +259,11 @@ module Square
251
259
  # variations, whereas `SearchCatalogObjects` does.
252
260
  # - The both endpoints have different call conventions, including the query filter formats.
253
261
  #
262
+ # The `object_types` parameter is specified as a list of [CatalogObjectType](entity:CatalogObjectType) values.
263
+ # Always specify `object_types` explicitly. When upgrading to a newer API version, omitting
264
+ # `object_types` may cause new object types to appear in results that were not returned under
265
+ # the previous version.
266
+ #
254
267
  # @param request_options [Hash]
255
268
  # @param params [Square::Catalog::Types::SearchCatalogObjectsRequest]
256
269
  # @option request_options [String] :base_url
@@ -13,6 +13,10 @@ module Square
13
13
 
14
14
  # Creates a new or updates the specified [CatalogObject](entity:CatalogObject).
15
15
  #
16
+ # This endpoint uses full-replacement semantics. The client must send the complete object, and any
17
+ # field absent from the request is interpreted as an intentional clear. This logic applies to
18
+ # nested objects as well. For example, omitting inlined children like variations will delete them.
19
+ #
16
20
  # To ensure consistency, only one update request is processed at a time per seller account.
17
21
  # While one (batch or non-batch) update request is being processed, other (batched and non-batched)
18
22
  # update requests are rejected with the `429` error code.
data/lib/square/client.rb CHANGED
@@ -10,7 +10,7 @@ module Square
10
10
  @raw_client = Square::Internal::Http::RawClient.new(
11
11
  base_url: base_url || Square::Environment::PRODUCTION,
12
12
  headers: {
13
- "User-Agent" => "square.rb/45.2.0-rc.0",
13
+ "User-Agent" => "square.rb/46.0.1.20260715",
14
14
  "X-Fern-Language" => "Ruby",
15
15
  Authorization: "Bearer #{token}"
16
16
  }
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Square
4
+ module Inventory
5
+ module Types
6
+ class CreateInventoryAdjustmentReasonRequest < Internal::Types::Model
7
+ field :idempotency_key, -> { String }, optional: false, nullable: false
8
+ field :adjustment_reason, -> { Square::Types::InventoryAdjustmentReason }, optional: false, nullable: false
9
+ end
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Square
4
+ module Inventory
5
+ module Types
6
+ class DeleteInventoryAdjustmentReasonRequest < Internal::Types::Model
7
+ field :reason_id, -> { Square::Types::InventoryAdjustmentReasonId }, optional: false, nullable: false
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Square
4
+ module Inventory
5
+ module Types
6
+ class ListInventoryAdjustmentReasonsRequest < Internal::Types::Model
7
+ field :include_deleted, -> { Internal::Types::Boolean }, optional: true, nullable: false
8
+ field :include_system_codes, -> { Internal::Types::Boolean }, optional: true, nullable: false
9
+ end
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Square
4
+ module Inventory
5
+ module Types
6
+ class RestoreInventoryAdjustmentReasonRequest < Internal::Types::Model
7
+ field :reason_id, -> { Square::Types::InventoryAdjustmentReasonId }, optional: false, nullable: false
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Square
4
+ module Inventory
5
+ module Types
6
+ class RetrieveInventoryAdjustmentReasonRequest < Internal::Types::Model
7
+ field :reason_id, -> { Square::Types::InventoryAdjustmentReasonId }, optional: false, nullable: false
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Square
4
+ module Inventory
5
+ module Types
6
+ class UpdateInventoryAdjustmentReasonRequest < Internal::Types::Model
7
+ field :reason_id, -> { Square::Types::InventoryAdjustmentReasonId }, optional: false, nullable: false
8
+ field :adjustment_reason, -> { Square::Types::InventoryAdjustmentReason }, optional: false, nullable: false
9
+ end
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Square
4
+ module Inventory
5
+ module Types
6
+ class UpdateInventoryAdjustmentRequest < Internal::Types::Model
7
+ field :idempotency_key, -> { String }, optional: false, nullable: false
8
+ field :adjustment, -> { Square::Types::InventoryAdjustment }, optional: false, nullable: false
9
+ end
10
+ end
11
+ end
12
+ end
@@ -11,6 +11,8 @@ module Square
11
11
  field :updated_before, -> { String }, optional: true, nullable: false
12
12
  field :cursor, -> { String }, optional: true, nullable: false
13
13
  field :limit, -> { Integer }, optional: true, nullable: false
14
+ field :sort, -> { Square::Types::BatchRetrieveInventoryChangesSort }, optional: true, nullable: false
15
+ field :reason_ids, -> { Internal::Types::Array[Square::Types::InventoryAdjustmentReasonId] }, optional: true, nullable: false
14
16
  end
15
17
  end
16
18
  end
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Square
4
+ module Types
5
+ class BatchRetrieveInventoryChangesSort < Internal::Types::Model
6
+ field :field, -> { String }, optional: true, nullable: false
7
+ field :order, -> { Square::Types::SortOrder }, optional: true, nullable: false
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Square
4
+ module Types
5
+ module BatchRetrieveInventoryChangesSortField
6
+ # BatchRetrieveInventoryChangesSortField is an alias for Object
7
+
8
+ # @option str [String]
9
+ #
10
+ # @return [untyped]
11
+ def self.load(str)
12
+ ::JSON.parse(str)
13
+ end
14
+
15
+ # @option value [untyped]
16
+ #
17
+ # @return [String]
18
+ def self.dump(value)
19
+ ::JSON.generate(value)
20
+ end
21
+ end
22
+ end
23
+ end
@@ -42,6 +42,7 @@ module Square
42
42
  field :team_member_ids, -> { Internal::Types::Array[String] }, optional: true, nullable: false
43
43
  field :stockable_conversion, -> { Square::Types::CatalogStockConversion }, optional: true, nullable: false
44
44
  field :kitchen_name, -> { String }, optional: true, nullable: false
45
+ field :vendor_information, -> { Internal::Types::Array[Square::Types::CatalogItemVariationVendorInformation] }, optional: true, nullable: false
45
46
  end
46
47
  end
47
48
  end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Square
4
+ module Types
5
+ # Information about the vendor of an item variation.
6
+ class CatalogItemVariationVendorInformation < Internal::Types::Model
7
+ field :vendor_id, -> { String }, optional: true, nullable: false
8
+ field :vendor_code, -> { String }, optional: true, nullable: false
9
+ field :unit_cost_money, -> { Square::Types::Money }, optional: true, nullable: false
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Square
4
+ module Types
5
+ # Represents an output from a call to
6
+ # [CreateInventoryAdjustmentReason](api-endpoint:Inventory-CreateInventoryAdjustmentReason).
7
+ class CreateInventoryAdjustmentReasonResponse < Internal::Types::Model
8
+ field :errors, -> { Internal::Types::Array[Square::Types::Error] }, optional: true, nullable: false
9
+ field :adjustment_reason, -> { Square::Types::InventoryAdjustmentReason }, optional: true, nullable: false
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Square
4
+ module Types
5
+ # Represents an output from a call to
6
+ # [DeleteInventoryAdjustmentReason](api-endpoint:Inventory-DeleteInventoryAdjustmentReason).
7
+ class DeleteInventoryAdjustmentReasonResponse < Internal::Types::Model
8
+ field :errors, -> { Internal::Types::Array[Square::Types::Error] }, optional: true, nullable: false
9
+ field :adjustment_reason, -> { Square::Types::InventoryAdjustmentReason }, optional: true, nullable: false
10
+ end
11
+ end
12
+ end
@@ -7,6 +7,7 @@ module Square
7
7
 
8
8
  LEAST_EXPENSIVE = "LEAST_EXPENSIVE"
9
9
  MOST_EXPENSIVE = "MOST_EXPENSIVE"
10
+ MOST_EXPENSIVE_LOWEST_VALUE = "MOST_EXPENSIVE_LOWEST_VALUE"
10
11
  end
11
12
  end
12
13
  end
@@ -16,6 +16,7 @@ module Square
16
16
  field :pickup_details, -> { Square::Types::FulfillmentPickupDetails }, optional: true, nullable: false
17
17
  field :shipment_details, -> { Square::Types::FulfillmentShipmentDetails }, optional: true, nullable: false
18
18
  field :delivery_details, -> { Square::Types::FulfillmentDeliveryDetails }, optional: true, nullable: false
19
+ field :in_store_details, -> { Square::Types::FulfillmentInStoreDetails }, optional: true, nullable: false
19
20
  end
20
21
  end
21
22
  end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Square
4
+ module Types
5
+ # Contains the details necessary to fulfill an in-store order.
6
+ class FulfillmentInStoreDetails < Internal::Types::Model
7
+ field :note, -> { String }, optional: true, nullable: false
8
+ field :recipient, -> { Square::Types::FulfillmentRecipient }, optional: true, nullable: false
9
+ field :placed_at, -> { String }, optional: true, nullable: false
10
+ field :completed_at, -> { String }, optional: true, nullable: false
11
+ field :in_progress_at, -> { String }, optional: true, nullable: false
12
+ field :prepared_at, -> { String }, optional: true, nullable: false
13
+ field :canceled_at, -> { String }, optional: true, nullable: false
14
+ end
15
+ end
16
+ end
@@ -8,6 +8,7 @@ module Square
8
8
  PICKUP = "PICKUP"
9
9
  SHIPMENT = "SHIPMENT"
10
10
  DELIVERY = "DELIVERY"
11
+ IN_STORE = "IN_STORE"
11
12
  end
12
13
  end
13
14
  end
@@ -2,9 +2,22 @@
2
2
 
3
3
  module Square
4
4
  module Types
5
- class GetInventoryTransferResponse < Internal::Types::Model
6
- field :errors, -> { Internal::Types::Array[Square::Types::Error] }, optional: true, nullable: false
7
- field :transfer, -> { Square::Types::InventoryTransfer }, optional: true, nullable: false
5
+ module GetInventoryTransferResponse
6
+ # GetInventoryTransferResponse is an alias for Object
7
+
8
+ # @option str [String]
9
+ #
10
+ # @return [untyped]
11
+ def self.load(str)
12
+ ::JSON.parse(str)
13
+ end
14
+
15
+ # @option value [untyped]
16
+ #
17
+ # @return [String]
18
+ def self.dump(value)
19
+ ::JSON.generate(value)
20
+ end
8
21
  end
9
22
  end
10
23
  end
@@ -9,7 +9,8 @@ module Square
9
9
  field :reference_id, -> { String }, optional: true, nullable: false
10
10
  field :from_state, -> { Square::Types::InventoryState }, optional: true, nullable: false
11
11
  field :to_state, -> { Square::Types::InventoryState }, optional: true, nullable: false
12
- field :location_id, -> { String }, optional: true, nullable: false
12
+ field :from_location_id, -> { String }, optional: true, nullable: false
13
+ field :to_location_id, -> { String }, optional: true, nullable: false
13
14
  field :catalog_object_id, -> { String }, optional: true, nullable: false
14
15
  field :catalog_object_type, -> { String }, optional: true, nullable: false
15
16
  field :quantity, -> { String }, optional: true, nullable: false
@@ -24,6 +25,10 @@ module Square
24
25
  field :purchase_order_id, -> { String }, optional: true, nullable: false
25
26
  field :goods_receipt_id, -> { String }, optional: true, nullable: false
26
27
  field :adjustment_group, -> { Square::Types::InventoryAdjustmentGroup }, optional: true, nullable: false
28
+ field :cost_money, -> { Square::Types::Money }, optional: true, nullable: false
29
+ field :vendor_id, -> { String }, optional: true, nullable: false
30
+ field :physical_count_id, -> { String }, optional: true, nullable: false
31
+ field :reason_id, -> { Square::Types::InventoryAdjustmentReasonId }, optional: true, nullable: false
27
32
  end
28
33
  end
29
34
  end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Square
4
+ module Types
5
+ # Represents an inventory adjustment reason.
6
+ class InventoryAdjustmentReason < Internal::Types::Model
7
+ field :id, -> { Square::Types::InventoryAdjustmentReasonId }, optional: false, nullable: false
8
+ field :name, -> { String }, optional: true, nullable: false
9
+ field :direction, -> { Square::Types::InventoryAdjustmentReasonDirection }, optional: true, nullable: false
10
+ field :created_at, -> { String }, optional: true, nullable: false
11
+ field :updated_at, -> { String }, optional: true, nullable: false
12
+ field :is_deleted, -> { Internal::Types::Boolean }, optional: true, nullable: false
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Square
4
+ module Types
5
+ module InventoryAdjustmentReasonDirection
6
+ extend Square::Internal::Types::Enum
7
+
8
+ INCREASE = "INCREASE"
9
+ DECREASE = "DECREASE"
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Square
4
+ module Types
5
+ # Identifies a standard or custom inventory adjustment reason.
6
+ class InventoryAdjustmentReasonId < Internal::Types::Model
7
+ field :type, -> { Square::Types::InventoryAdjustmentReasonIdType }, optional: false, nullable: false
8
+ field :custom_reason_id, -> { String }, optional: true, nullable: false
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Square
4
+ module Types
5
+ module InventoryAdjustmentReasonIdType
6
+ extend Square::Internal::Types::Enum
7
+
8
+ RECEIVED = "RECEIVED"
9
+ DAMAGED = "DAMAGED"
10
+ THEFT = "THEFT"
11
+ LOST = "LOST"
12
+ RETURNED = "RETURNED"
13
+ SPOILAGE_WASTE = "SPOILAGE_WASTE"
14
+ SAMPLES_PROMOTIONAL = "SAMPLES_PROMOTIONAL"
15
+ INTERNAL_USE = "INTERNAL_USE"
16
+ VENDOR_RETURN = "VENDOR_RETURN"
17
+ PRODUCTION_WASTE = "PRODUCTION_WASTE"
18
+ SALE = "SALE"
19
+ RECOUNT = "RECOUNT"
20
+ TRANSFER = "TRANSFER"
21
+ IN_TRANSIT = "IN_TRANSIT"
22
+ CANCELED_SALE = "CANCELED_SALE"
23
+ CUSTOM = "CUSTOM"
24
+ end
25
+ end
26
+ end
@@ -9,7 +9,6 @@ module Square
9
9
  field :type, -> { Square::Types::InventoryChangeType }, optional: true, nullable: false
10
10
  field :physical_count, -> { Square::Types::InventoryPhysicalCount }, optional: true, nullable: false
11
11
  field :adjustment, -> { Square::Types::InventoryAdjustment }, optional: true, nullable: false
12
- field :transfer, -> { Square::Types::InventoryTransfer }, optional: true, nullable: false
13
12
  field :measurement_unit, -> { Square::Types::CatalogMeasurementUnit }, optional: true, nullable: false
14
13
  field :measurement_unit_id, -> { String }, optional: true, nullable: false
15
14
  end
@@ -7,7 +7,6 @@ module Square
7
7
 
8
8
  PHYSICAL_COUNT = "PHYSICAL_COUNT"
9
9
  ADJUSTMENT = "ADJUSTMENT"
10
- TRANSFER = "TRANSFER"
11
10
  end
12
11
  end
13
12
  end
@@ -4,7 +4,8 @@ module Square
4
4
  module Types
5
5
  # Represents Square-estimated quantity of items in a particular state at a
6
6
  # particular seller location based on the known history of physical counts and
7
- # inventory adjustments.
7
+ # inventory adjustments. The absence of an inventory count indicates that the
8
+ # catalog object hasn't interacted with the given inventory state at the given location.
8
9
  class InventoryCount < Internal::Types::Model
9
10
  field :catalog_object_id, -> { String }, optional: true, nullable: false
10
11
  field :catalog_object_type, -> { String }, optional: true, nullable: false
@@ -19,6 +19,7 @@ module Square
19
19
  field :team_member_id, -> { String }, optional: true, nullable: false
20
20
  field :occurred_at, -> { String }, optional: true, nullable: false
21
21
  field :created_at, -> { String }, optional: true, nullable: false
22
+ field :adjustment_id, -> { String }, optional: true, nullable: false
22
23
  end
23
24
  end
24
25
  end
@@ -21,6 +21,7 @@ module Square
21
21
  DECOMPOSED = "DECOMPOSED"
22
22
  SUPPORTED_BY_NEWER_VERSION = "SUPPORTED_BY_NEWER_VERSION"
23
23
  IN_TRANSIT = "IN_TRANSIT"
24
+ UNTRACKED = "UNTRACKED"
24
25
  end
25
26
  end
26
27
  end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Square
4
+ module Types
5
+ # Represents an output from a call to
6
+ # [ListInventoryAdjustmentReasons](api-endpoint:Inventory-ListInventoryAdjustmentReasons).
7
+ class ListInventoryAdjustmentReasonsResponse < Internal::Types::Model
8
+ field :errors, -> { Internal::Types::Array[Square::Types::Error] }, optional: true, nullable: false
9
+ field :adjustment_reasons, -> { Internal::Types::Array[Square::Types::InventoryAdjustmentReason] }, optional: true, nullable: false
10
+ end
11
+ end
12
+ end
@@ -7,7 +7,7 @@ module Square
7
7
  # Events](https://developer.squareup.com/docs/loyalty-api/loyalty-events).
8
8
  class LoyaltyEvent < Internal::Types::Model
9
9
  field :id, -> { String }, optional: true, nullable: false
10
- field :type, -> { Square::Types::LoyaltyEventType }, optional: false, nullable: false
10
+ field :type, -> { Square::Types::LoyaltyEventType }, optional: true, nullable: false
11
11
  field :created_at, -> { String }, optional: true, nullable: false
12
12
  field :accumulate_points, -> { Square::Types::LoyaltyEventAccumulatePoints }, optional: true, nullable: false
13
13
  field :create_reward, -> { Square::Types::LoyaltyEventCreateReward }, optional: true, nullable: false
@@ -16,7 +16,7 @@ module Square
16
16
  field :adjust_points, -> { Square::Types::LoyaltyEventAdjustPoints }, optional: true, nullable: false
17
17
  field :loyalty_account_id, -> { String }, optional: true, nullable: false
18
18
  field :location_id, -> { String }, optional: true, nullable: false
19
- field :source, -> { Square::Types::LoyaltyEventSource }, optional: false, nullable: false
19
+ field :source, -> { Square::Types::LoyaltyEventSource }, optional: true, nullable: false
20
20
  field :expire_points, -> { Square::Types::LoyaltyEventExpirePoints }, optional: true, nullable: false
21
21
  field :other_event, -> { Square::Types::LoyaltyEventOther }, optional: true, nullable: false
22
22
  field :accumulate_promotion_points, -> { Square::Types::LoyaltyEventAccumulatePromotionPoints }, optional: true, nullable: false
@@ -12,6 +12,7 @@ module Square
12
12
  field :base_price_money, -> { Square::Types::Money }, optional: true, nullable: false
13
13
  field :total_price_money, -> { Square::Types::Money }, optional: true, nullable: false
14
14
  field :metadata, -> { Internal::Types::Hash[String, String] }, optional: true, nullable: false
15
+ field :parent_modifier_uid, -> { String }, optional: true, nullable: false
15
16
  end
16
17
  end
17
18
  end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Square
4
+ module Types
5
+ # Represents an output from a call to
6
+ # [RestoreInventoryAdjustmentReason](api-endpoint:Inventory-RestoreInventoryAdjustmentReason).
7
+ class RestoreInventoryAdjustmentReasonResponse < Internal::Types::Model
8
+ field :errors, -> { Internal::Types::Array[Square::Types::Error] }, optional: true, nullable: false
9
+ field :adjustment_reason, -> { Square::Types::InventoryAdjustmentReason }, optional: true, nullable: false
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Square
4
+ module Types
5
+ # Represents an output from a call to
6
+ # [RetrieveInventoryAdjustmentReason](api-endpoint:Inventory-RetrieveInventoryAdjustmentReason).
7
+ class RetrieveInventoryAdjustmentReasonResponse < Internal::Types::Model
8
+ field :errors, -> { Internal::Types::Array[Square::Types::Error] }, optional: true, nullable: false
9
+ field :adjustment_reason, -> { Square::Types::InventoryAdjustmentReason }, optional: true, nullable: false
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Square
4
+ module Types
5
+ # Represents an output from a call to
6
+ # [UpdateInventoryAdjustmentReason](api-endpoint:Inventory-UpdateInventoryAdjustmentReason).
7
+ class UpdateInventoryAdjustmentReasonResponse < Internal::Types::Model
8
+ field :errors, -> { Internal::Types::Array[Square::Types::Error] }, optional: true, nullable: false
9
+ field :adjustment_reason, -> { Square::Types::InventoryAdjustmentReason }, optional: true, nullable: false
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Square
4
+ module Types
5
+ class UpdateInventoryAdjustmentResponse < Internal::Types::Model
6
+ field :errors, -> { Internal::Types::Array[Square::Types::Error] }, optional: true, nullable: false
7
+ field :adjustment, -> { Square::Types::InventoryAdjustment }, optional: true, nullable: false
8
+ end
9
+ end
10
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Square
4
- VERSION = "45.2.0-rc.0"
4
+ VERSION = "46.0.1.20260715"
5
5
  end