square.rb 46.0.1.20260715 → 47.0.0.20260916
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.
- checksums.yaml +4 -4
- data/.fern/metadata.json +2 -2
- data/.fern/replay.lock +19 -1
- data/lib/square/catalog/types/batch_get_catalog_objects_request.rb +1 -0
- data/lib/square/catalog/types/search_catalog_items_request.rb +1 -0
- data/lib/square/catalog/types/search_catalog_objects_request.rb +1 -0
- data/lib/square/client.rb +1 -1
- data/lib/square/inventory/client.rb +0 -25
- data/lib/square/locations/transactions/client.rb +0 -82
- data/lib/square/orders/client.rb +3 -2
- data/lib/square/types/batch_get_catalog_objects_response.rb +1 -0
- data/lib/square/types/card_brand.rb +4 -0
- data/lib/square/types/catalog_modifier.rb +1 -0
- data/lib/square/types/catalog_query.rb +1 -0
- data/lib/square/types/catalog_query_modifiers_for_child_list.rb +11 -0
- data/lib/square/types/error_code.rb +9 -0
- data/lib/square/types/include_options.rb +11 -0
- data/lib/square/types/include_type.rb +12 -0
- data/lib/square/types/included_resources.rb +11 -0
- data/lib/square/types/location.rb +2 -0
- data/lib/square/types/search_catalog_items_response.rb +1 -0
- data/lib/square/types/search_catalog_objects_response.rb +1 -0
- data/lib/square/version.rb +1 -1
- data/lib/square.rb +4 -5
- data/reference.md +27 -206
- data/wiremock/wiremock-mappings.json +1 -1
- metadata +6 -7
- data/lib/square/inventory/types/get_transfer_inventory_request.rb +0 -11
- data/lib/square/locations/transactions/types/capture_transactions_request.rb +0 -14
- data/lib/square/locations/transactions/types/void_transactions_request.rb +0 -14
- data/lib/square/types/capture_transaction_response.rb +0 -11
- data/lib/square/types/void_transaction_response.rb +0 -11
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9d17f61ce18b7ebf510871533eeea0193eec9ae13394845d0ea206e5b9ce9363
|
|
4
|
+
data.tar.gz: 4340f9e0a1da7a9d74b0cbc8c05fdbfc0ae18e15870e1679522fa277f32eb5f4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1cb9e1c552005559ec72d7394e41a482543e3136866d7e804498206d2535ff23f9391df1d14b66d90f2e278385d16f2def9107b91cc116e086f24449d78a09c6
|
|
7
|
+
data.tar.gz: f2ff8e7e19d59c8a321fdd5c17a41998074e17506abd2ba30768c9301c8539eb6eacf4aef269cea0b76343c58711d28a94cabe3174df9492b350f19c3f15e0f6
|
data/.fern/metadata.json
CHANGED
data/.fern/replay.lock
CHANGED
|
@@ -12,5 +12,23 @@ generations:
|
|
|
12
12
|
cli_version: unknown
|
|
13
13
|
generator_versions:
|
|
14
14
|
fernapi/fern-ruby-sdk: 1.0.0-rc84
|
|
15
|
-
|
|
15
|
+
- commit_sha: b0712bf25b1ee3e2ec220e59c3c61688c2b75c6f
|
|
16
|
+
tree_hash: 4a2f9cd8e383c435dcd1ba76069c1ae9d761aa67
|
|
17
|
+
timestamp: 2026-08-18T17:49:33.834Z
|
|
18
|
+
cli_version: unknown
|
|
19
|
+
generator_versions:
|
|
20
|
+
fernapi/fern-ruby-sdk: 1.0.0-rc84
|
|
21
|
+
- commit_sha: 2b507b58f33418df2cef553d5c1a2abbab7f3960
|
|
22
|
+
tree_hash: a5aa4a24276c8810c55ba372f9ab4180165faf92
|
|
23
|
+
timestamp: 2026-08-18T20:55:11.217Z
|
|
24
|
+
cli_version: unknown
|
|
25
|
+
generator_versions:
|
|
26
|
+
fernapi/fern-ruby-sdk: 1.0.0-rc84
|
|
27
|
+
- commit_sha: 7da5bc01e7361877608311c5b904b38317ee4bc8
|
|
28
|
+
tree_hash: e7dd7fecf9a3a00da227b02790601543c85a05e6
|
|
29
|
+
timestamp: 2026-09-15T18:47:45.322Z
|
|
30
|
+
cli_version: unknown
|
|
31
|
+
generator_versions:
|
|
32
|
+
fernapi/fern-ruby-sdk: 1.0.0-rc84
|
|
33
|
+
current_generation: 7da5bc01e7361877608311c5b904b38317ee4bc8
|
|
16
34
|
patches: []
|
|
@@ -9,6 +9,7 @@ module Square
|
|
|
9
9
|
field :catalog_version, -> { Integer }, optional: true, nullable: false
|
|
10
10
|
field :include_deleted_objects, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
11
11
|
field :include_category_path_to_root, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
12
|
+
field :include_options, -> { Square::Types::IncludeOptions }, optional: true, nullable: false
|
|
12
13
|
end
|
|
13
14
|
end
|
|
14
15
|
end
|
|
@@ -14,6 +14,7 @@ module Square
|
|
|
14
14
|
field :product_types, -> { Internal::Types::Array[Square::Types::CatalogItemProductType] }, optional: true, nullable: false
|
|
15
15
|
field :custom_attribute_filters, -> { Internal::Types::Array[Square::Types::CustomAttributeFilter] }, optional: true, nullable: false
|
|
16
16
|
field :archived_state, -> { Square::Types::ArchivedState }, optional: true, nullable: false
|
|
17
|
+
field :include_options, -> { Square::Types::IncludeOptions }, optional: true, nullable: false
|
|
17
18
|
end
|
|
18
19
|
end
|
|
19
20
|
end
|
|
@@ -12,6 +12,7 @@ module Square
|
|
|
12
12
|
field :query, -> { Square::Types::CatalogQuery }, optional: true, nullable: false
|
|
13
13
|
field :limit, -> { Integer }, optional: true, nullable: false
|
|
14
14
|
field :include_category_path_to_root, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
15
|
+
field :include_options, -> { Square::Types::IncludeOptions }, optional: true, nullable: false
|
|
15
16
|
end
|
|
16
17
|
end
|
|
17
18
|
end
|
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/
|
|
13
|
+
"User-Agent" => "square.rb/47.0.0.20260916",
|
|
14
14
|
"X-Fern-Language" => "Ruby",
|
|
15
15
|
Authorization: "Bearer #{token}"
|
|
16
16
|
}
|
|
@@ -296,31 +296,6 @@ module Square
|
|
|
296
296
|
end
|
|
297
297
|
end
|
|
298
298
|
|
|
299
|
-
# Returns the [InventoryTransfer](entity:InventoryTransfer) object
|
|
300
|
-
# with the provided `transfer_id`.
|
|
301
|
-
#
|
|
302
|
-
# @return [Square::Types::GetInventoryTransferResponse]
|
|
303
|
-
def get_transfer(request_options: {}, **params)
|
|
304
|
-
_request = Square::Internal::JSON::Request.new(
|
|
305
|
-
base_url: request_options[:base_url],
|
|
306
|
-
method: "GET",
|
|
307
|
-
path: "v2/inventory/transfers/#{params[:transfer_id]}",
|
|
308
|
-
request_options: request_options
|
|
309
|
-
)
|
|
310
|
-
begin
|
|
311
|
-
_response = @client.send(_request)
|
|
312
|
-
rescue Net::HTTPRequestTimeout
|
|
313
|
-
raise Square::Errors::TimeoutError
|
|
314
|
-
end
|
|
315
|
-
code = _response.code.to_i
|
|
316
|
-
if code.between?(200, 299)
|
|
317
|
-
Square::Types::GetInventoryTransferResponse.load(_response.body)
|
|
318
|
-
else
|
|
319
|
-
error_class = Square::Errors::ResponseError.subclass_for_code(code)
|
|
320
|
-
raise error_class.new(_response.body, code: code)
|
|
321
|
-
end
|
|
322
|
-
end
|
|
323
|
-
|
|
324
299
|
# Retrieves the current calculated stock count for a given
|
|
325
300
|
# [CatalogObject](entity:CatalogObject) at a given set of
|
|
326
301
|
# [Location](entity:Location)s. Responses are paginated and unsorted.
|
|
@@ -97,88 +97,6 @@ module Square
|
|
|
97
97
|
raise error_class.new(response.body, code: code)
|
|
98
98
|
end
|
|
99
99
|
end
|
|
100
|
-
|
|
101
|
-
# Captures a transaction that was created with the [Charge](api-endpoint:Transactions-Charge)
|
|
102
|
-
# endpoint with a `delay_capture` value of `true`.
|
|
103
|
-
#
|
|
104
|
-
#
|
|
105
|
-
# See [Delayed capture
|
|
106
|
-
# transactions](https://developer.squareup.com/docs/payments/transactions/overview#delayed-capture)
|
|
107
|
-
# for more information.
|
|
108
|
-
#
|
|
109
|
-
# @param request_options [Hash]
|
|
110
|
-
# @param params [Hash]
|
|
111
|
-
# @option request_options [String] :base_url
|
|
112
|
-
# @option request_options [Hash{String => Object}] :additional_headers
|
|
113
|
-
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
114
|
-
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
115
|
-
# @option request_options [Integer] :timeout_in_seconds
|
|
116
|
-
# @option params [String] :location_id
|
|
117
|
-
# @option params [String] :transaction_id
|
|
118
|
-
#
|
|
119
|
-
# @return [Square::Types::CaptureTransactionResponse]
|
|
120
|
-
def capture(request_options: {}, **params)
|
|
121
|
-
params = Square::Internal::Types::Utils.normalize_keys(params)
|
|
122
|
-
request = Square::Internal::JSON::Request.new(
|
|
123
|
-
base_url: request_options[:base_url],
|
|
124
|
-
method: "POST",
|
|
125
|
-
path: "v2/locations/#{params[:location_id]}/transactions/#{params[:transaction_id]}/capture",
|
|
126
|
-
request_options: request_options
|
|
127
|
-
)
|
|
128
|
-
begin
|
|
129
|
-
response = @client.send(request)
|
|
130
|
-
rescue Net::HTTPRequestTimeout
|
|
131
|
-
raise Square::Errors::TimeoutError
|
|
132
|
-
end
|
|
133
|
-
code = response.code.to_i
|
|
134
|
-
if code.between?(200, 299)
|
|
135
|
-
Square::Types::CaptureTransactionResponse.load(response.body)
|
|
136
|
-
else
|
|
137
|
-
error_class = Square::Errors::ResponseError.subclass_for_code(code)
|
|
138
|
-
raise error_class.new(response.body, code: code)
|
|
139
|
-
end
|
|
140
|
-
end
|
|
141
|
-
|
|
142
|
-
# Cancels a transaction that was created with the [Charge](api-endpoint:Transactions-Charge)
|
|
143
|
-
# endpoint with a `delay_capture` value of `true`.
|
|
144
|
-
#
|
|
145
|
-
#
|
|
146
|
-
# See [Delayed capture
|
|
147
|
-
# transactions](https://developer.squareup.com/docs/payments/transactions/overview#delayed-capture)
|
|
148
|
-
# for more information.
|
|
149
|
-
#
|
|
150
|
-
# @param request_options [Hash]
|
|
151
|
-
# @param params [Hash]
|
|
152
|
-
# @option request_options [String] :base_url
|
|
153
|
-
# @option request_options [Hash{String => Object}] :additional_headers
|
|
154
|
-
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
155
|
-
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
156
|
-
# @option request_options [Integer] :timeout_in_seconds
|
|
157
|
-
# @option params [String] :location_id
|
|
158
|
-
# @option params [String] :transaction_id
|
|
159
|
-
#
|
|
160
|
-
# @return [Square::Types::VoidTransactionResponse]
|
|
161
|
-
def void(request_options: {}, **params)
|
|
162
|
-
params = Square::Internal::Types::Utils.normalize_keys(params)
|
|
163
|
-
request = Square::Internal::JSON::Request.new(
|
|
164
|
-
base_url: request_options[:base_url],
|
|
165
|
-
method: "POST",
|
|
166
|
-
path: "v2/locations/#{params[:location_id]}/transactions/#{params[:transaction_id]}/void",
|
|
167
|
-
request_options: request_options
|
|
168
|
-
)
|
|
169
|
-
begin
|
|
170
|
-
response = @client.send(request)
|
|
171
|
-
rescue Net::HTTPRequestTimeout
|
|
172
|
-
raise Square::Errors::TimeoutError
|
|
173
|
-
end
|
|
174
|
-
code = response.code.to_i
|
|
175
|
-
if code.between?(200, 299)
|
|
176
|
-
Square::Types::VoidTransactionResponse.load(response.body)
|
|
177
|
-
else
|
|
178
|
-
error_class = Square::Errors::ResponseError.subclass_for_code(code)
|
|
179
|
-
raise error_class.new(response.body, code: code)
|
|
180
|
-
end
|
|
181
|
-
end
|
|
182
100
|
end
|
|
183
101
|
end
|
|
184
102
|
end
|
data/lib/square/orders/client.rb
CHANGED
|
@@ -170,8 +170,9 @@ module Square
|
|
|
170
170
|
#
|
|
171
171
|
# Note that details for orders processed with Square Point of Sale while in
|
|
172
172
|
# offline mode might not be transmitted to Square for up to 72 hours. Offline
|
|
173
|
-
# orders have a `created_at` value that reflects the time the order was
|
|
174
|
-
# not the time
|
|
173
|
+
# orders have a `created_at` value that reflects the time the order was
|
|
174
|
+
# transmitted to Square and created server-side, not the time the order was
|
|
175
|
+
# created on the Point of Sale device.
|
|
175
176
|
#
|
|
176
177
|
# @param request_options [Hash]
|
|
177
178
|
# @param params [Square::Orders::Types::SearchOrdersRequest]
|
|
@@ -6,6 +6,7 @@ module Square
|
|
|
6
6
|
field :errors, -> { Internal::Types::Array[Square::Types::Error] }, optional: true, nullable: false
|
|
7
7
|
field :objects, -> { Internal::Types::Array[Square::Types::CatalogObject] }, optional: true, nullable: false
|
|
8
8
|
field :related_objects, -> { Internal::Types::Array[Square::Types::CatalogObject] }, optional: true, nullable: false
|
|
9
|
+
field :included_resources, -> { Square::Types::IncludedResources }, optional: true, nullable: false
|
|
9
10
|
end
|
|
10
11
|
end
|
|
11
12
|
end
|
|
@@ -14,6 +14,7 @@ module Square
|
|
|
14
14
|
field :kitchen_name, -> { String }, optional: true, nullable: false
|
|
15
15
|
field :image_id, -> { String }, optional: true, nullable: false
|
|
16
16
|
field :hidden_online, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
17
|
+
field :child_modifier_list_ids, -> { Internal::Types::Array[String] }, optional: true, nullable: false
|
|
17
18
|
end
|
|
18
19
|
end
|
|
19
20
|
end
|
|
@@ -43,6 +43,7 @@ module Square
|
|
|
43
43
|
field :items_for_modifier_list_query, -> { Square::Types::CatalogQueryItemsForModifierList }, optional: true, nullable: false
|
|
44
44
|
field :items_for_item_options_query, -> { Square::Types::CatalogQueryItemsForItemOptions }, optional: true, nullable: false
|
|
45
45
|
field :item_variations_for_item_option_values_query, -> { Square::Types::CatalogQueryItemVariationsForItemOptionValues }, optional: true, nullable: false
|
|
46
|
+
field :modifiers_for_child_list_query, -> { Square::Types::CatalogQueryModifiersForChildList }, optional: true, nullable: false
|
|
46
47
|
end
|
|
47
48
|
end
|
|
48
49
|
end
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Square
|
|
4
|
+
module Types
|
|
5
|
+
# Query to find `CatalogModifier` objects that reference a given `CatalogModifierList` in their
|
|
6
|
+
# `child_modifier_list_ids` field.
|
|
7
|
+
class CatalogQueryModifiersForChildList < Internal::Types::Model
|
|
8
|
+
field :child_modifier_list_ids, -> { Internal::Types::Array[String] }, optional: false, nullable: false
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
@@ -103,6 +103,7 @@ module Square
|
|
|
103
103
|
CARD_TOKEN_EXPIRED = "CARD_TOKEN_EXPIRED"
|
|
104
104
|
CARD_TOKEN_USED = "CARD_TOKEN_USED"
|
|
105
105
|
AMOUNT_TOO_HIGH = "AMOUNT_TOO_HIGH"
|
|
106
|
+
AMOUNT_TOO_LOW = "AMOUNT_TOO_LOW"
|
|
106
107
|
UNSUPPORTED_INSTRUMENT_TYPE = "UNSUPPORTED_INSTRUMENT_TYPE"
|
|
107
108
|
REFUND_AMOUNT_INVALID = "REFUND_AMOUNT_INVALID"
|
|
108
109
|
REFUND_ALREADY_PENDING = "REFUND_ALREADY_PENDING"
|
|
@@ -133,6 +134,13 @@ module Square
|
|
|
133
134
|
PLAID_ERROR = "PLAID_ERROR"
|
|
134
135
|
PLAID_ERROR_ITEM_LOGIN_REQUIRED = "PLAID_ERROR_ITEM_LOGIN_REQUIRED"
|
|
135
136
|
PLAID_ERROR_RATE_LIMIT = "PLAID_ERROR_RATE_LIMIT"
|
|
137
|
+
PLAID_ERROR_INVALID_ACCESS_TOKEN = "PLAID_ERROR_INVALID_ACCESS_TOKEN"
|
|
138
|
+
PLAID_ERROR_INVALID_ACCOUNT_ID = "PLAID_ERROR_INVALID_ACCOUNT_ID"
|
|
139
|
+
PLAID_ERROR_NO_ACCOUNTS = "PLAID_ERROR_NO_ACCOUNTS"
|
|
140
|
+
PLAID_ERROR_ITEM_NOT_FOUND = "PLAID_ERROR_ITEM_NOT_FOUND"
|
|
141
|
+
PLAID_ERROR_INSUFFICIENT_CREDENTIALS = "PLAID_ERROR_INSUFFICIENT_CREDENTIALS"
|
|
142
|
+
PLAID_ERROR_ITEM_NOT_SUPPORTED = "PLAID_ERROR_ITEM_NOT_SUPPORTED"
|
|
143
|
+
PLAID_ERROR_PRODUCT_NOT_READY = "PLAID_ERROR_PRODUCT_NOT_READY"
|
|
136
144
|
PAYMENT_SOURCE_NOT_ENABLED_FOR_TARGET = "PAYMENT_SOURCE_NOT_ENABLED_FOR_TARGET"
|
|
137
145
|
CARD_DECLINED = "CARD_DECLINED"
|
|
138
146
|
VERIFY_CVV_FAILURE = "VERIFY_CVV_FAILURE"
|
|
@@ -144,6 +152,7 @@ module Square
|
|
|
144
152
|
ALLOWABLE_PIN_TRIES_EXCEEDED = "ALLOWABLE_PIN_TRIES_EXCEEDED"
|
|
145
153
|
RESERVATION_DECLINED = "RESERVATION_DECLINED"
|
|
146
154
|
UNKNOWN_BODY_PARAMETER = "UNKNOWN_BODY_PARAMETER"
|
|
155
|
+
CART_INELIGIBLE_FOR_EBT = "CART_INELIGIBLE_FOR_EBT"
|
|
147
156
|
NOT_FOUND = "NOT_FOUND"
|
|
148
157
|
APPLE_PAYMENT_PROCESSING_CERTIFICATE_HASH_NOT_FOUND = "APPLE_PAYMENT_PROCESSING_CERTIFICATE_HASH_NOT_FOUND"
|
|
149
158
|
METHOD_NOT_ALLOWED = "METHOD_NOT_ALLOWED"
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Square
|
|
4
|
+
module Types
|
|
5
|
+
# Options to include related resources of the requested `CatalogObject`s. Related resources will be included in
|
|
6
|
+
# `IncludedResources` in the response.
|
|
7
|
+
class IncludeOptions < Internal::Types::Model
|
|
8
|
+
field :include, -> { Internal::Types::Array[Square::Types::IncludeType] }, optional: true, nullable: false
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Square
|
|
4
|
+
module Types
|
|
5
|
+
module IncludeType
|
|
6
|
+
extend Square::Internal::Types::Enum
|
|
7
|
+
|
|
8
|
+
INCLUDE_NESTED_MODIFIERS = "INCLUDE_NESTED_MODIFIERS"
|
|
9
|
+
INCLUDE_ANCESTOR_MODIFIERS = "INCLUDE_ANCESTOR_MODIFIERS"
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Square
|
|
4
|
+
module Types
|
|
5
|
+
# Related resources of the response `CatalogObject`s requested using `IncludeOptions`
|
|
6
|
+
class IncludedResources < Internal::Types::Model
|
|
7
|
+
field :nested_modifiers, -> { Internal::Types::Array[Square::Types::CatalogObject] }, optional: true, nullable: false
|
|
8
|
+
field :ancestor_modifiers, -> { Internal::Types::Array[Square::Types::CatalogObject] }, optional: true, nullable: false
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
@@ -31,6 +31,8 @@ module Square
|
|
|
31
31
|
field :mcc, -> { String }, optional: true, nullable: false
|
|
32
32
|
field :full_format_logo_url, -> { String }, optional: true, nullable: false
|
|
33
33
|
field :tax_ids, -> { Square::Types::TaxIds }, optional: true, nullable: false
|
|
34
|
+
field :custom_receipt_text, -> { String }, optional: true, nullable: false
|
|
35
|
+
field :return_policy, -> { String }, optional: true, nullable: false
|
|
34
36
|
end
|
|
35
37
|
end
|
|
36
38
|
end
|
|
@@ -9,6 +9,7 @@ module Square
|
|
|
9
9
|
field :items, -> { Internal::Types::Array[Square::Types::CatalogObject] }, optional: true, nullable: false
|
|
10
10
|
field :cursor, -> { String }, optional: true, nullable: false
|
|
11
11
|
field :matched_variation_ids, -> { Internal::Types::Array[String] }, optional: true, nullable: false
|
|
12
|
+
field :included_resources, -> { Square::Types::IncludedResources }, optional: true, nullable: false
|
|
12
13
|
end
|
|
13
14
|
end
|
|
14
15
|
end
|
|
@@ -8,6 +8,7 @@ module Square
|
|
|
8
8
|
field :objects, -> { Internal::Types::Array[Square::Types::CatalogObject] }, optional: true, nullable: false
|
|
9
9
|
field :related_objects, -> { Internal::Types::Array[Square::Types::CatalogObject] }, optional: true, nullable: false
|
|
10
10
|
field :latest_time, -> { String }, optional: true, nullable: false
|
|
11
|
+
field :included_resources, -> { Square::Types::IncludedResources }, optional: true, nullable: false
|
|
11
12
|
end
|
|
12
13
|
end
|
|
13
14
|
end
|
data/lib/square/version.rb
CHANGED
data/lib/square.rb
CHANGED
|
@@ -196,6 +196,7 @@ require_relative "square/types/catalog_object"
|
|
|
196
196
|
require_relative "square/types/catalog_modifier_list"
|
|
197
197
|
require_relative "square/types/catalog_item_option"
|
|
198
198
|
require_relative "square/types/catalog_item"
|
|
199
|
+
require_relative "square/types/included_resources"
|
|
199
200
|
require_relative "square/types/batch_get_catalog_objects_response"
|
|
200
201
|
require_relative "square/types/batch_retrieve_inventory_changes_sort_field"
|
|
201
202
|
require_relative "square/types/sort_order"
|
|
@@ -482,7 +483,6 @@ require_relative "square/types/transfer_order_line"
|
|
|
482
483
|
require_relative "square/types/transfer_order_status"
|
|
483
484
|
require_relative "square/types/transfer_order"
|
|
484
485
|
require_relative "square/types/cancel_transfer_order_response"
|
|
485
|
-
require_relative "square/types/capture_transaction_response"
|
|
486
486
|
require_relative "square/types/card_automatically_updated_event_object"
|
|
487
487
|
require_relative "square/types/card_automatically_updated_event_data"
|
|
488
488
|
require_relative "square/types/card_automatically_updated_event"
|
|
@@ -516,6 +516,7 @@ require_relative "square/types/catalog_query_item_variations_for_item_option_val
|
|
|
516
516
|
require_relative "square/types/catalog_query_items_for_item_options"
|
|
517
517
|
require_relative "square/types/catalog_query_items_for_modifier_list"
|
|
518
518
|
require_relative "square/types/catalog_query_items_for_tax"
|
|
519
|
+
require_relative "square/types/catalog_query_modifiers_for_child_list"
|
|
519
520
|
require_relative "square/types/catalog_query_prefix"
|
|
520
521
|
require_relative "square/types/catalog_query_range"
|
|
521
522
|
require_relative "square/types/catalog_query_set"
|
|
@@ -830,6 +831,8 @@ require_relative "square/types/gift_card_customer_unlinked_event"
|
|
|
830
831
|
require_relative "square/types/gift_card_updated_event_object"
|
|
831
832
|
require_relative "square/types/gift_card_updated_event_data"
|
|
832
833
|
require_relative "square/types/gift_card_updated_event"
|
|
834
|
+
require_relative "square/types/include_type"
|
|
835
|
+
require_relative "square/types/include_options"
|
|
833
836
|
require_relative "square/types/inventory_count_updated_event_object"
|
|
834
837
|
require_relative "square/types/inventory_count_updated_event_data"
|
|
835
838
|
require_relative "square/types/inventory_count_updated_event"
|
|
@@ -1374,7 +1377,6 @@ require_relative "square/types/vendor_updated_event_object"
|
|
|
1374
1377
|
require_relative "square/types/vendor_updated_event_data"
|
|
1375
1378
|
require_relative "square/types/vendor_updated_event"
|
|
1376
1379
|
require_relative "square/types/visibility_filter"
|
|
1377
|
-
require_relative "square/types/void_transaction_response"
|
|
1378
1380
|
require_relative "square/types/get_loyalty_account_request"
|
|
1379
1381
|
require_relative "square/types/get_loyalty_program_request"
|
|
1380
1382
|
require_relative "square/types/get_loyalty_promotion_request"
|
|
@@ -1534,7 +1536,6 @@ require_relative "square/inventory/types/deprecated_get_physical_count_inventory
|
|
|
1534
1536
|
require_relative "square/inventory/types/get_physical_count_inventory_request"
|
|
1535
1537
|
require_relative "square/inventory/types/get_inventory_request"
|
|
1536
1538
|
require_relative "square/inventory/types/changes_inventory_request"
|
|
1537
|
-
require_relative "square/inventory/types/get_transfer_inventory_request"
|
|
1538
1539
|
require_relative "square/invoices/client"
|
|
1539
1540
|
require_relative "square/invoices/types/list_invoices_request"
|
|
1540
1541
|
require_relative "square/invoices/types/create_invoice_request"
|
|
@@ -1758,8 +1759,6 @@ require_relative "square/locations/custom_attributes/types/delete_custom_attribu
|
|
|
1758
1759
|
require_relative "square/locations/transactions/client"
|
|
1759
1760
|
require_relative "square/locations/transactions/types/list_transactions_request"
|
|
1760
1761
|
require_relative "square/locations/transactions/types/get_transactions_request"
|
|
1761
|
-
require_relative "square/locations/transactions/types/capture_transactions_request"
|
|
1762
|
-
require_relative "square/locations/transactions/types/void_transactions_request"
|
|
1763
1762
|
require_relative "square/loyalty/accounts/client"
|
|
1764
1763
|
require_relative "square/loyalty/accounts/types/create_loyalty_account_request"
|
|
1765
1764
|
require_relative "square/loyalty/accounts/types/search_loyalty_accounts_request"
|