square.rb 45.0.1.20260122 → 45.0.2.20260122

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 056af038668564ff8d7f1860bcc35e44449e21f4784d91846121c139d4c139d5
4
- data.tar.gz: 357823902c08c710857fe636e58f92cc223ef2269e1795b888077cea2d79114b
3
+ metadata.gz: 1e506fae3204a54b98b16f8817d33fea18cac87b012434d5449bb56d97e02f2d
4
+ data.tar.gz: b682a755ca225d072abbbac96de639e4570deca0905ce00e574f624c602ee40f
5
5
  SHA512:
6
- metadata.gz: 86385d14a820fcc51363fad79429b7f543b80329559128f3c609ced4c30cbcb06c4e5bce954b379f628ea34ffe69163e1231bedd7b41c12f3e46162f479694ec
7
- data.tar.gz: e93cc124da8f72be75e60cf8e7401ad706edcde4efe464579081a684fafb86c28792dc6e46728eb2bf5531b4c02d4eac68e53ecb6204b597e15489013f4ffccd
6
+ metadata.gz: 5930231f88ec1fc0e4724dfcdfdb0afa3cb16f67fa85650265e52cfab9d749458dcc83e2631e8f5730714c0113079113fbd73a858ec6033041a062af348bad87
7
+ data.tar.gz: 8dca15b554b1fd0a3f0c0ff46dae36eb61a78e2732e1ac655fee6bc34fe806375a6172deba3b1db477fda411bf01dae1f11ba3867bfa48cc98f1e5be803ae742
data/.fern/metadata.json CHANGED
@@ -5,5 +5,5 @@
5
5
  "generatorConfig": {
6
6
  "enableWireTests": true
7
7
  },
8
- "sdkVersion": "45.0.1.20260122"
8
+ "sdkVersion": "45.0.2.20260122"
9
9
  }
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.0.1.20260122",
13
+ "User-Agent" => "square.rb/45.0.2.20260122",
14
14
  "X-Fern-Language" => "Ruby",
15
15
  Authorization: "Bearer #{token}"
16
16
  }
@@ -14,9 +14,10 @@ module Square
14
14
  # @return [Square::Types::GetInventoryAdjustmentResponse]
15
15
  def deprecated_get_adjustment(request_options: {}, **params)
16
16
  _request = Square::Internal::JSON::Request.new(
17
- base_url: request_options[:base_url] || Square::Environment::PRODUCTION,
17
+ base_url: request_options[:base_url],
18
18
  method: "GET",
19
- path: "v2/inventory/adjustment/#{params[:adjustment_id]}"
19
+ path: "v2/inventory/adjustment/#{params[:adjustment_id]}",
20
+ request_options: request_options
20
21
  )
21
22
  begin
22
23
  _response = @client.send(_request)
@@ -38,9 +39,10 @@ module Square
38
39
  # @return [Square::Types::GetInventoryAdjustmentResponse]
39
40
  def get_adjustment(request_options: {}, **params)
40
41
  _request = Square::Internal::JSON::Request.new(
41
- base_url: request_options[:base_url] || Square::Environment::PRODUCTION,
42
+ base_url: request_options[:base_url],
42
43
  method: "GET",
43
- path: "v2/inventory/adjustments/#{params[:adjustment_id]}"
44
+ path: "v2/inventory/adjustments/#{params[:adjustment_id]}",
45
+ request_options: request_options
44
46
  )
45
47
  begin
46
48
  _response = @client.send(_request)
@@ -62,10 +64,11 @@ module Square
62
64
  # @return [Square::Types::BatchChangeInventoryResponse]
63
65
  def deprecated_batch_change(request_options: {}, **params)
64
66
  _request = Square::Internal::JSON::Request.new(
65
- base_url: request_options[:base_url] || Square::Environment::PRODUCTION,
67
+ base_url: request_options[:base_url],
66
68
  method: "POST",
67
69
  path: "v2/inventory/batch-change",
68
- body: Square::Types::BatchChangeInventoryRequest.new(params).to_h
70
+ body: Square::Types::BatchChangeInventoryRequest.new(params).to_h,
71
+ request_options: request_options
69
72
  )
70
73
  begin
71
74
  _response = @client.send(_request)
@@ -87,10 +90,11 @@ module Square
87
90
  # @return [Square::Types::BatchGetInventoryChangesResponse]
88
91
  def deprecated_batch_get_changes(request_options: {}, **params)
89
92
  _request = Square::Internal::JSON::Request.new(
90
- base_url: request_options[:base_url] || Square::Environment::PRODUCTION,
93
+ base_url: request_options[:base_url],
91
94
  method: "POST",
92
95
  path: "v2/inventory/batch-retrieve-changes",
93
- body: Square::Types::BatchRetrieveInventoryChangesRequest.new(params).to_h
96
+ body: Square::Types::BatchRetrieveInventoryChangesRequest.new(params).to_h,
97
+ request_options: request_options
94
98
  )
95
99
  begin
96
100
  _response = @client.send(_request)
@@ -112,10 +116,11 @@ module Square
112
116
  # @return [Square::Types::BatchGetInventoryCountsResponse]
113
117
  def deprecated_batch_get_counts(request_options: {}, **params)
114
118
  _request = Square::Internal::JSON::Request.new(
115
- base_url: request_options[:base_url] || Square::Environment::PRODUCTION,
119
+ base_url: request_options[:base_url],
116
120
  method: "POST",
117
121
  path: "v2/inventory/batch-retrieve-counts",
118
- body: Square::Types::BatchGetInventoryCountsRequest.new(params).to_h
122
+ body: Square::Types::BatchGetInventoryCountsRequest.new(params).to_h,
123
+ request_options: request_options
119
124
  )
120
125
  begin
121
126
  _response = @client.send(_request)
@@ -140,10 +145,11 @@ module Square
140
145
  # @return [Square::Types::BatchChangeInventoryResponse]
141
146
  def batch_create_changes(request_options: {}, **params)
142
147
  _request = Square::Internal::JSON::Request.new(
143
- base_url: request_options[:base_url] || Square::Environment::PRODUCTION,
148
+ base_url: request_options[:base_url],
144
149
  method: "POST",
145
150
  path: "v2/inventory/changes/batch-create",
146
- body: Square::Types::BatchChangeInventoryRequest.new(params).to_h
151
+ body: Square::Types::BatchChangeInventoryRequest.new(params).to_h,
152
+ request_options: request_options
147
153
  )
148
154
  begin
149
155
  _response = @client.send(_request)
@@ -177,10 +183,11 @@ module Square
177
183
  ) do |next_cursor|
178
184
  params[:cursor] = next_cursor
179
185
  _request = Square::Internal::JSON::Request.new(
180
- base_url: request_options[:base_url] || Square::Environment::PRODUCTION,
186
+ base_url: request_options[:base_url],
181
187
  method: "POST",
182
188
  path: "v2/inventory/changes/batch-retrieve",
183
- body: Square::Types::BatchRetrieveInventoryChangesRequest.new(params).to_h
189
+ body: Square::Types::BatchRetrieveInventoryChangesRequest.new(params).to_h,
190
+ request_options: request_options
184
191
  )
185
192
  begin
186
193
  _response = @client.send(_request)
@@ -218,10 +225,11 @@ module Square
218
225
  ) do |next_cursor|
219
226
  params[:cursor] = next_cursor
220
227
  _request = Square::Internal::JSON::Request.new(
221
- base_url: request_options[:base_url] || Square::Environment::PRODUCTION,
228
+ base_url: request_options[:base_url],
222
229
  method: "POST",
223
230
  path: "v2/inventory/counts/batch-retrieve",
224
- body: Square::Types::BatchGetInventoryCountsRequest.new(params).to_h
231
+ body: Square::Types::BatchGetInventoryCountsRequest.new(params).to_h,
232
+ request_options: request_options
225
233
  )
226
234
  begin
227
235
  _response = @client.send(_request)
@@ -244,9 +252,10 @@ module Square
244
252
  # @return [Square::Types::GetInventoryPhysicalCountResponse]
245
253
  def deprecated_get_physical_count(request_options: {}, **params)
246
254
  _request = Square::Internal::JSON::Request.new(
247
- base_url: request_options[:base_url] || Square::Environment::PRODUCTION,
255
+ base_url: request_options[:base_url],
248
256
  method: "GET",
249
- path: "v2/inventory/physical-count/#{params[:physical_count_id]}"
257
+ path: "v2/inventory/physical-count/#{params[:physical_count_id]}",
258
+ request_options: request_options
250
259
  )
251
260
  begin
252
261
  _response = @client.send(_request)
@@ -268,9 +277,10 @@ module Square
268
277
  # @return [Square::Types::GetInventoryPhysicalCountResponse]
269
278
  def get_physical_count(request_options: {}, **params)
270
279
  _request = Square::Internal::JSON::Request.new(
271
- base_url: request_options[:base_url] || Square::Environment::PRODUCTION,
280
+ base_url: request_options[:base_url],
272
281
  method: "GET",
273
- path: "v2/inventory/physical-counts/#{params[:physical_count_id]}"
282
+ path: "v2/inventory/physical-counts/#{params[:physical_count_id]}",
283
+ request_options: request_options
274
284
  )
275
285
  begin
276
286
  _response = @client.send(_request)
@@ -292,9 +302,10 @@ module Square
292
302
  # @return [Square::Types::GetInventoryTransferResponse]
293
303
  def get_transfer(request_options: {}, **params)
294
304
  _request = Square::Internal::JSON::Request.new(
295
- base_url: request_options[:base_url] || Square::Environment::PRODUCTION,
305
+ base_url: request_options[:base_url],
296
306
  method: "GET",
297
- path: "v2/inventory/transfers/#{params[:transfer_id]}"
307
+ path: "v2/inventory/transfers/#{params[:transfer_id]}",
308
+ request_options: request_options
298
309
  )
299
310
  begin
300
311
  _response = @client.send(_request)
@@ -329,10 +340,11 @@ module Square
329
340
  ) do |next_cursor|
330
341
  _query[:cursor] = next_cursor
331
342
  _request = Square::Internal::JSON::Request.new(
332
- base_url: request_options[:base_url] || Square::Environment::PRODUCTION,
343
+ base_url: request_options[:base_url],
333
344
  method: "GET",
334
345
  path: "v2/inventory/#{params[:catalog_object_id]}",
335
- query: _query
346
+ query: _query,
347
+ request_options: request_options
336
348
  )
337
349
  begin
338
350
  _response = @client.send(_request)
@@ -377,10 +389,11 @@ module Square
377
389
  ) do |next_cursor|
378
390
  _query[:cursor] = next_cursor
379
391
  _request = Square::Internal::JSON::Request.new(
380
- base_url: request_options[:base_url] || Square::Environment::PRODUCTION,
392
+ base_url: request_options[:base_url],
381
393
  method: "GET",
382
394
  path: "v2/inventory/#{params[:catalog_object_id]}/changes",
383
- query: _query
395
+ query: _query,
396
+ request_options: request_options
384
397
  )
385
398
  begin
386
399
  _response = @client.send(_request)
@@ -32,10 +32,11 @@ module Square
32
32
  # @return [Square::Types::CreateTransferOrderResponse]
33
33
  def create(request_options: {}, **params)
34
34
  _request = Square::Internal::JSON::Request.new(
35
- base_url: request_options[:base_url] || Square::Environment::PRODUCTION,
35
+ base_url: request_options[:base_url],
36
36
  method: "POST",
37
37
  path: "v2/transfer-orders",
38
- body: params
38
+ body: params,
39
+ request_options: request_options
39
40
  )
40
41
  begin
41
42
  _response = @client.send(_request)
@@ -68,10 +69,11 @@ module Square
68
69
  ) do |next_cursor|
69
70
  params[:cursor] = next_cursor
70
71
  _request = Square::Internal::JSON::Request.new(
71
- base_url: request_options[:base_url] || Square::Environment::PRODUCTION,
72
+ base_url: request_options[:base_url],
72
73
  method: "POST",
73
74
  path: "v2/transfer-orders/search",
74
- body: params
75
+ body: params,
76
+ request_options: request_options
75
77
  )
76
78
  begin
77
79
  _response = @client.send(_request)
@@ -99,9 +101,10 @@ module Square
99
101
  # @return [Square::Types::RetrieveTransferOrderResponse]
100
102
  def get(request_options: {}, **params)
101
103
  _request = Square::Internal::JSON::Request.new(
102
- base_url: request_options[:base_url] || Square::Environment::PRODUCTION,
104
+ base_url: request_options[:base_url],
103
105
  method: "GET",
104
- path: "v2/transfer-orders/#{params[:transfer_order_id]}"
106
+ path: "v2/transfer-orders/#{params[:transfer_order_id]}",
107
+ request_options: request_options
105
108
  )
106
109
  begin
107
110
  _response = @client.send(_request)
@@ -127,10 +130,11 @@ module Square
127
130
  _path_param_names = ["transfer_order_id"]
128
131
 
129
132
  _request = Square::Internal::JSON::Request.new(
130
- base_url: request_options[:base_url] || Square::Environment::PRODUCTION,
133
+ base_url: request_options[:base_url],
131
134
  method: "PUT",
132
135
  path: "v2/transfer-orders/#{params[:transfer_order_id]}",
133
- body: params.except(*_path_param_names)
136
+ body: params.except(*_path_param_names),
137
+ request_options: request_options
134
138
  )
135
139
  begin
136
140
  _response = @client.send(_request)
@@ -160,10 +164,11 @@ module Square
160
164
  params = params.except(*_query_param_names)
161
165
 
162
166
  _request = Square::Internal::JSON::Request.new(
163
- base_url: request_options[:base_url] || Square::Environment::PRODUCTION,
167
+ base_url: request_options[:base_url],
164
168
  method: "DELETE",
165
169
  path: "v2/transfer-orders/#{params[:transfer_order_id]}",
166
- query: _query
170
+ query: _query,
171
+ request_options: request_options
167
172
  )
168
173
  begin
169
174
  _response = @client.send(_request)
@@ -195,10 +200,11 @@ module Square
195
200
  _path_param_names = ["transfer_order_id"]
196
201
 
197
202
  _request = Square::Internal::JSON::Request.new(
198
- base_url: request_options[:base_url] || Square::Environment::PRODUCTION,
203
+ base_url: request_options[:base_url],
199
204
  method: "POST",
200
205
  path: "v2/transfer-orders/#{params[:transfer_order_id]}/cancel",
201
- body: params.except(*_path_param_names)
206
+ body: params.except(*_path_param_names),
207
+ request_options: request_options
202
208
  )
203
209
  begin
204
210
  _response = @client.send(_request)
@@ -236,10 +242,11 @@ module Square
236
242
  _path_param_names = ["transfer_order_id"]
237
243
 
238
244
  _request = Square::Internal::JSON::Request.new(
239
- base_url: request_options[:base_url] || Square::Environment::PRODUCTION,
245
+ base_url: request_options[:base_url],
240
246
  method: "POST",
241
247
  path: "v2/transfer-orders/#{params[:transfer_order_id]}/receive",
242
- body: params.except(*_path_param_names)
248
+ body: params.except(*_path_param_names),
249
+ request_options: request_options
243
250
  )
244
251
  begin
245
252
  _response = @client.send(_request)
@@ -269,10 +276,11 @@ module Square
269
276
  _path_param_names = ["transfer_order_id"]
270
277
 
271
278
  _request = Square::Internal::JSON::Request.new(
272
- base_url: request_options[:base_url] || Square::Environment::PRODUCTION,
279
+ base_url: request_options[:base_url],
273
280
  method: "POST",
274
281
  path: "v2/transfer-orders/#{params[:transfer_order_id]}/start",
275
- body: params.except(*_path_param_names)
282
+ body: params.except(*_path_param_names),
283
+ request_options: request_options
276
284
  )
277
285
  begin
278
286
  _response = @client.send(_request)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Square
4
- VERSION = "45.0.1.20260122"
4
+ VERSION = "45.0.2.20260122"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: square.rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 45.0.1.20260122
4
+ version: 45.0.2.20260122
5
5
  platform: ruby
6
6
  authors:
7
7
  - Square Developer Platform
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-01-28 00:00:00.000000000 Z
11
+ date: 2026-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: apimatic_core_interfaces