square.rb 38.0.0.20240515 → 38.1.1.20240717

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/lib/square/api/apple_pay_api.rb +14 -10
  3. data/lib/square/api/bank_accounts_api.rb +9 -9
  4. data/lib/square/api/base_api.rb +1 -1
  5. data/lib/square/api/booking_custom_attributes_api.rb +33 -33
  6. data/lib/square/api/bookings_api.rb +39 -39
  7. data/lib/square/api/cards_api.rb +12 -12
  8. data/lib/square/api/cash_drawers_api.rb +9 -9
  9. data/lib/square/api/catalog_api.rb +42 -42
  10. data/lib/square/api/checkout_api.rb +30 -30
  11. data/lib/square/api/customer_custom_attributes_api.rb +30 -30
  12. data/lib/square/api/customer_groups_api.rb +15 -15
  13. data/lib/square/api/customer_segments_api.rb +6 -6
  14. data/lib/square/api/customers_api.rb +42 -42
  15. data/lib/square/api/devices_api.rb +15 -15
  16. data/lib/square/api/disputes_api.rb +27 -27
  17. data/lib/square/api/employees_api.rb +6 -6
  18. data/lib/square/api/events_api.rb +84 -0
  19. data/lib/square/api/gift_card_activities_api.rb +6 -6
  20. data/lib/square/api/gift_cards_api.rb +21 -21
  21. data/lib/square/api/inventory_api.rb +39 -39
  22. data/lib/square/api/invoices_api.rb +37 -38
  23. data/lib/square/api/labor_api.rb +48 -48
  24. data/lib/square/api/location_custom_attributes_api.rb +33 -33
  25. data/lib/square/api/locations_api.rb +12 -12
  26. data/lib/square/api/loyalty_api.rb +54 -54
  27. data/lib/square/api/merchant_custom_attributes_api.rb +33 -33
  28. data/lib/square/api/merchants_api.rb +6 -6
  29. data/lib/square/api/mobile_authorization_api.rb +3 -3
  30. data/lib/square/api/o_auth_api.rb +9 -9
  31. data/lib/square/api/order_custom_attributes_api.rb +33 -33
  32. data/lib/square/api/orders_api.rb +24 -24
  33. data/lib/square/api/payments_api.rb +21 -21
  34. data/lib/square/api/payouts_api.rb +9 -9
  35. data/lib/square/api/refunds_api.rb +9 -9
  36. data/lib/square/api/sites_api.rb +3 -3
  37. data/lib/square/api/snippets_api.rb +9 -9
  38. data/lib/square/api/subscriptions_api.rb +36 -36
  39. data/lib/square/api/team_api.rb +24 -24
  40. data/lib/square/api/terminal_api.rb +45 -45
  41. data/lib/square/api/transactions_api.rb +12 -12
  42. data/lib/square/api/v1_transactions_api.rb +10 -10
  43. data/lib/square/api/vendors_api.rb +21 -21
  44. data/lib/square/api/webhook_subscriptions_api.rb +24 -24
  45. data/lib/square/client.rb +8 -2
  46. data/lib/square/configuration.rb +3 -3
  47. data/lib/square.rb +1 -0
  48. data/test/webhooks/test_webhooks_helper.rb +17 -0
  49. metadata +9 -8
@@ -20,9 +20,9 @@ module Square
20
20
  .header_param(new_parameter('application/json', key: 'accept'))
21
21
  .auth(Single.new('global')))
22
22
  .response(new_response_handler
23
- .deserializer(APIHelper.method(:json_deserialize))
24
- .is_api_response(true)
25
- .convertor(ApiResponse.method(:create)))
23
+ .deserializer(APIHelper.method(:json_deserialize))
24
+ .is_api_response(true)
25
+ .convertor(ApiResponse.method(:create)))
26
26
  .execute
27
27
  end
28
28
 
@@ -41,9 +41,9 @@ module Square
41
41
  .header_param(new_parameter('application/json', key: 'accept'))
42
42
  .auth(Single.new('global')))
43
43
  .response(new_response_handler
44
- .deserializer(APIHelper.method(:json_deserialize))
45
- .is_api_response(true)
46
- .convertor(ApiResponse.method(:create)))
44
+ .deserializer(APIHelper.method(:json_deserialize))
45
+ .is_api_response(true)
46
+ .convertor(ApiResponse.method(:create)))
47
47
  .execute
48
48
  end
49
49
 
@@ -68,9 +68,9 @@ module Square
68
68
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
69
69
  .auth(Single.new('global')))
70
70
  .response(new_response_handler
71
- .deserializer(APIHelper.method(:json_deserialize))
72
- .is_api_response(true)
73
- .convertor(ApiResponse.method(:create)))
71
+ .deserializer(APIHelper.method(:json_deserialize))
72
+ .is_api_response(true)
73
+ .convertor(ApiResponse.method(:create)))
74
74
  .execute
75
75
  end
76
76
 
@@ -95,9 +95,9 @@ module Square
95
95
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
96
96
  .auth(Single.new('global')))
97
97
  .response(new_response_handler
98
- .deserializer(APIHelper.method(:json_deserialize))
99
- .is_api_response(true)
100
- .convertor(ApiResponse.method(:create)))
98
+ .deserializer(APIHelper.method(:json_deserialize))
99
+ .is_api_response(true)
100
+ .convertor(ApiResponse.method(:create)))
101
101
  .execute
102
102
  end
103
103
 
@@ -122,9 +122,9 @@ module Square
122
122
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
123
123
  .auth(Single.new('global')))
124
124
  .response(new_response_handler
125
- .deserializer(APIHelper.method(:json_deserialize))
126
- .is_api_response(true)
127
- .convertor(ApiResponse.method(:create)))
125
+ .deserializer(APIHelper.method(:json_deserialize))
126
+ .is_api_response(true)
127
+ .convertor(ApiResponse.method(:create)))
128
128
  .execute
129
129
  end
130
130
 
@@ -147,9 +147,9 @@ module Square
147
147
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
148
148
  .auth(Single.new('global')))
149
149
  .response(new_response_handler
150
- .deserializer(APIHelper.method(:json_deserialize))
151
- .is_api_response(true)
152
- .convertor(ApiResponse.method(:create)))
150
+ .deserializer(APIHelper.method(:json_deserialize))
151
+ .is_api_response(true)
152
+ .convertor(ApiResponse.method(:create)))
153
153
  .execute
154
154
  end
155
155
 
@@ -174,9 +174,9 @@ module Square
174
174
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
175
175
  .auth(Single.new('global')))
176
176
  .response(new_response_handler
177
- .deserializer(APIHelper.method(:json_deserialize))
178
- .is_api_response(true)
179
- .convertor(ApiResponse.method(:create)))
177
+ .deserializer(APIHelper.method(:json_deserialize))
178
+ .is_api_response(true)
179
+ .convertor(ApiResponse.method(:create)))
180
180
  .execute
181
181
  end
182
182
 
@@ -205,9 +205,9 @@ module Square
205
205
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
206
206
  .auth(Single.new('global')))
207
207
  .response(new_response_handler
208
- .deserializer(APIHelper.method(:json_deserialize))
209
- .is_api_response(true)
210
- .convertor(ApiResponse.method(:create)))
208
+ .deserializer(APIHelper.method(:json_deserialize))
209
+ .is_api_response(true)
210
+ .convertor(ApiResponse.method(:create)))
211
211
  .execute
212
212
  end
213
213
 
@@ -230,9 +230,9 @@ module Square
230
230
  .header_param(new_parameter('application/json', key: 'accept'))
231
231
  .auth(Single.new('global')))
232
232
  .response(new_response_handler
233
- .deserializer(APIHelper.method(:json_deserialize))
234
- .is_api_response(true)
235
- .convertor(ApiResponse.method(:create)))
233
+ .deserializer(APIHelper.method(:json_deserialize))
234
+ .is_api_response(true)
235
+ .convertor(ApiResponse.method(:create)))
236
236
  .execute
237
237
  end
238
238
 
@@ -251,9 +251,9 @@ module Square
251
251
  .header_param(new_parameter('application/json', key: 'accept'))
252
252
  .auth(Single.new('global')))
253
253
  .response(new_response_handler
254
- .deserializer(APIHelper.method(:json_deserialize))
255
- .is_api_response(true)
256
- .convertor(ApiResponse.method(:create)))
254
+ .deserializer(APIHelper.method(:json_deserialize))
255
+ .is_api_response(true)
256
+ .convertor(ApiResponse.method(:create)))
257
257
  .execute
258
258
  end
259
259
 
@@ -272,9 +272,9 @@ module Square
272
272
  .header_param(new_parameter('application/json', key: 'accept'))
273
273
  .auth(Single.new('global')))
274
274
  .response(new_response_handler
275
- .deserializer(APIHelper.method(:json_deserialize))
276
- .is_api_response(true)
277
- .convertor(ApiResponse.method(:create)))
275
+ .deserializer(APIHelper.method(:json_deserialize))
276
+ .is_api_response(true)
277
+ .convertor(ApiResponse.method(:create)))
278
278
  .execute
279
279
  end
280
280
 
@@ -307,9 +307,9 @@ module Square
307
307
  .header_param(new_parameter('application/json', key: 'accept'))
308
308
  .auth(Single.new('global')))
309
309
  .response(new_response_handler
310
- .deserializer(APIHelper.method(:json_deserialize))
311
- .is_api_response(true)
312
- .convertor(ApiResponse.method(:create)))
310
+ .deserializer(APIHelper.method(:json_deserialize))
311
+ .is_api_response(true)
312
+ .convertor(ApiResponse.method(:create)))
313
313
  .execute
314
314
  end
315
315
 
@@ -353,9 +353,9 @@ module Square
353
353
  .header_param(new_parameter('application/json', key: 'accept'))
354
354
  .auth(Single.new('global')))
355
355
  .response(new_response_handler
356
- .deserializer(APIHelper.method(:json_deserialize))
357
- .is_api_response(true)
358
- .convertor(ApiResponse.method(:create)))
356
+ .deserializer(APIHelper.method(:json_deserialize))
357
+ .is_api_response(true)
358
+ .convertor(ApiResponse.method(:create)))
359
359
  .execute
360
360
  end
361
361
  end
@@ -28,9 +28,9 @@ module Square
28
28
  .header_param(new_parameter('application/json', key: 'accept'))
29
29
  .auth(Single.new('global')))
30
30
  .response(new_response_handler
31
- .deserializer(APIHelper.method(:json_deserialize))
32
- .is_api_response(true)
33
- .convertor(ApiResponse.method(:create)))
31
+ .deserializer(APIHelper.method(:json_deserialize))
32
+ .is_api_response(true)
33
+ .convertor(ApiResponse.method(:create)))
34
34
  .execute
35
35
  end
36
36
 
@@ -54,9 +54,9 @@ module Square
54
54
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
55
55
  .auth(Single.new('global')))
56
56
  .response(new_response_handler
57
- .deserializer(APIHelper.method(:json_deserialize))
58
- .is_api_response(true)
59
- .convertor(ApiResponse.method(:create)))
57
+ .deserializer(APIHelper.method(:json_deserialize))
58
+ .is_api_response(true)
59
+ .convertor(ApiResponse.method(:create)))
60
60
  .execute
61
61
  end
62
62
 
@@ -82,9 +82,9 @@ module Square
82
82
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
83
83
  .auth(Single.new('global')))
84
84
  .response(new_response_handler
85
- .deserializer(APIHelper.method(:json_deserialize))
86
- .is_api_response(true)
87
- .convertor(ApiResponse.method(:create)))
85
+ .deserializer(APIHelper.method(:json_deserialize))
86
+ .is_api_response(true)
87
+ .convertor(ApiResponse.method(:create)))
88
88
  .execute
89
89
  end
90
90
 
@@ -111,9 +111,9 @@ module Square
111
111
  .header_param(new_parameter('application/json', key: 'accept'))
112
112
  .auth(Single.new('global')))
113
113
  .response(new_response_handler
114
- .deserializer(APIHelper.method(:json_deserialize))
115
- .is_api_response(true)
116
- .convertor(ApiResponse.method(:create)))
114
+ .deserializer(APIHelper.method(:json_deserialize))
115
+ .is_api_response(true)
116
+ .convertor(ApiResponse.method(:create)))
117
117
  .execute
118
118
  end
119
119
 
@@ -131,20 +131,19 @@ module Square
131
131
  .header_param(new_parameter('application/json', key: 'accept'))
132
132
  .auth(Single.new('global')))
133
133
  .response(new_response_handler
134
- .deserializer(APIHelper.method(:json_deserialize))
135
- .is_api_response(true)
136
- .convertor(ApiResponse.method(:create)))
134
+ .deserializer(APIHelper.method(:json_deserialize))
135
+ .is_api_response(true)
136
+ .convertor(ApiResponse.method(:create)))
137
137
  .execute
138
138
  end
139
139
 
140
- # Updates an invoice by modifying fields, clearing fields, or both. For most
141
- # updates, you can use a sparse
142
- # `Invoice` object to add fields or change values and use the
143
- # `fields_to_clear` field to specify fields to clear.
144
- # However, some restrictions apply. For example, you cannot change the
145
- # `order_id` or `location_id` field and you
146
- # must provide the complete `custom_fields` list to update a custom field.
147
- # Published invoices have additional restrictions.
140
+ # Updates an invoice. This endpoint supports sparse updates, so you only
141
+ # need
142
+ # to specify the fields you want to change along with the required `version`
143
+ # field.
144
+ # Some restrictions apply to updating invoices. For example, you cannot
145
+ # change the
146
+ # `order_id` or `location_id` field.
148
147
  # @param [String] invoice_id Required parameter: The ID of the invoice to
149
148
  # update.
150
149
  # @param [UpdateInvoiceRequest] body Required parameter: An object
@@ -165,9 +164,9 @@ module Square
165
164
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
166
165
  .auth(Single.new('global')))
167
166
  .response(new_response_handler
168
- .deserializer(APIHelper.method(:json_deserialize))
169
- .is_api_response(true)
170
- .convertor(ApiResponse.method(:create)))
167
+ .deserializer(APIHelper.method(:json_deserialize))
168
+ .is_api_response(true)
169
+ .convertor(ApiResponse.method(:create)))
171
170
  .execute
172
171
  end
173
172
 
@@ -202,9 +201,9 @@ module Square
202
201
  .header_param(new_parameter('application/json', key: 'accept'))
203
202
  .auth(Single.new('global')))
204
203
  .response(new_response_handler
205
- .deserializer(APIHelper.method(:json_deserialize))
206
- .is_api_response(true)
207
- .convertor(ApiResponse.method(:create)))
204
+ .deserializer(APIHelper.method(:json_deserialize))
205
+ .is_api_response(true)
206
+ .convertor(ApiResponse.method(:create)))
208
207
  .execute
209
208
  end
210
209
 
@@ -230,9 +229,9 @@ module Square
230
229
  .header_param(new_parameter('application/json', key: 'accept'))
231
230
  .auth(Single.new('global')))
232
231
  .response(new_response_handler
233
- .deserializer(APIHelper.method(:json_deserialize))
234
- .is_api_response(true)
235
- .convertor(ApiResponse.method(:create)))
232
+ .deserializer(APIHelper.method(:json_deserialize))
233
+ .is_api_response(true)
234
+ .convertor(ApiResponse.method(:create)))
236
235
  .execute
237
236
  end
238
237
 
@@ -260,9 +259,9 @@ module Square
260
259
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
261
260
  .auth(Single.new('global')))
262
261
  .response(new_response_handler
263
- .deserializer(APIHelper.method(:json_deserialize))
264
- .is_api_response(true)
265
- .convertor(ApiResponse.method(:create)))
262
+ .deserializer(APIHelper.method(:json_deserialize))
263
+ .is_api_response(true)
264
+ .convertor(ApiResponse.method(:create)))
266
265
  .execute
267
266
  end
268
267
 
@@ -303,9 +302,9 @@ module Square
303
302
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
304
303
  .auth(Single.new('global')))
305
304
  .response(new_response_handler
306
- .deserializer(APIHelper.method(:json_deserialize))
307
- .is_api_response(true)
308
- .convertor(ApiResponse.method(:create)))
305
+ .deserializer(APIHelper.method(:json_deserialize))
306
+ .is_api_response(true)
307
+ .convertor(ApiResponse.method(:create)))
309
308
  .execute
310
309
  end
311
310
  end
@@ -24,9 +24,9 @@ module Square
24
24
  .header_param(new_parameter('application/json', key: 'accept'))
25
25
  .auth(Single.new('global')))
26
26
  .response(new_response_handler
27
- .deserializer(APIHelper.method(:json_deserialize))
28
- .is_api_response(true)
29
- .convertor(ApiResponse.method(:create)))
27
+ .deserializer(APIHelper.method(:json_deserialize))
28
+ .is_api_response(true)
29
+ .convertor(ApiResponse.method(:create)))
30
30
  .execute
31
31
  end
32
32
 
@@ -58,9 +58,9 @@ module Square
58
58
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
59
59
  .auth(Single.new('global')))
60
60
  .response(new_response_handler
61
- .deserializer(APIHelper.method(:json_deserialize))
62
- .is_api_response(true)
63
- .convertor(ApiResponse.method(:create)))
61
+ .deserializer(APIHelper.method(:json_deserialize))
62
+ .is_api_response(true)
63
+ .convertor(ApiResponse.method(:create)))
64
64
  .execute
65
65
  end
66
66
 
@@ -79,9 +79,9 @@ module Square
79
79
  .header_param(new_parameter('application/json', key: 'accept'))
80
80
  .auth(Single.new('global')))
81
81
  .response(new_response_handler
82
- .deserializer(APIHelper.method(:json_deserialize))
83
- .is_api_response(true)
84
- .convertor(ApiResponse.method(:create)))
82
+ .deserializer(APIHelper.method(:json_deserialize))
83
+ .is_api_response(true)
84
+ .convertor(ApiResponse.method(:create)))
85
85
  .execute
86
86
  end
87
87
 
@@ -99,9 +99,9 @@ module Square
99
99
  .header_param(new_parameter('application/json', key: 'accept'))
100
100
  .auth(Single.new('global')))
101
101
  .response(new_response_handler
102
- .deserializer(APIHelper.method(:json_deserialize))
103
- .is_api_response(true)
104
- .convertor(ApiResponse.method(:create)))
102
+ .deserializer(APIHelper.method(:json_deserialize))
103
+ .is_api_response(true)
104
+ .convertor(ApiResponse.method(:create)))
105
105
  .execute
106
106
  end
107
107
 
@@ -126,9 +126,9 @@ module Square
126
126
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
127
127
  .auth(Single.new('global')))
128
128
  .response(new_response_handler
129
- .deserializer(APIHelper.method(:json_deserialize))
130
- .is_api_response(true)
131
- .convertor(ApiResponse.method(:create)))
129
+ .deserializer(APIHelper.method(:json_deserialize))
130
+ .is_api_response(true)
131
+ .convertor(ApiResponse.method(:create)))
132
132
  .execute
133
133
  end
134
134
 
@@ -155,9 +155,9 @@ module Square
155
155
  .header_param(new_parameter('application/json', key: 'accept'))
156
156
  .auth(Single.new('global')))
157
157
  .response(new_response_handler
158
- .deserializer(APIHelper.method(:json_deserialize))
159
- .is_api_response(true)
160
- .convertor(ApiResponse.method(:create)))
158
+ .deserializer(APIHelper.method(:json_deserialize))
159
+ .is_api_response(true)
160
+ .convertor(ApiResponse.method(:create)))
161
161
  .execute
162
162
  end
163
163
 
@@ -176,9 +176,9 @@ module Square
176
176
  .header_param(new_parameter('application/json', key: 'accept'))
177
177
  .auth(Single.new('global')))
178
178
  .response(new_response_handler
179
- .deserializer(APIHelper.method(:json_deserialize))
180
- .is_api_response(true)
181
- .convertor(ApiResponse.method(:create)))
179
+ .deserializer(APIHelper.method(:json_deserialize))
180
+ .is_api_response(true)
181
+ .convertor(ApiResponse.method(:create)))
182
182
  .execute
183
183
  end
184
184
 
@@ -215,9 +215,9 @@ module Square
215
215
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
216
216
  .auth(Single.new('global')))
217
217
  .response(new_response_handler
218
- .deserializer(APIHelper.method(:json_deserialize))
219
- .is_api_response(true)
220
- .convertor(ApiResponse.method(:create)))
218
+ .deserializer(APIHelper.method(:json_deserialize))
219
+ .is_api_response(true)
220
+ .convertor(ApiResponse.method(:create)))
221
221
  .execute
222
222
  end
223
223
 
@@ -249,9 +249,9 @@ module Square
249
249
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
250
250
  .auth(Single.new('global')))
251
251
  .response(new_response_handler
252
- .deserializer(APIHelper.method(:json_deserialize))
253
- .is_api_response(true)
254
- .convertor(ApiResponse.method(:create)))
252
+ .deserializer(APIHelper.method(:json_deserialize))
253
+ .is_api_response(true)
254
+ .convertor(ApiResponse.method(:create)))
255
255
  .execute
256
256
  end
257
257
 
@@ -269,9 +269,9 @@ module Square
269
269
  .header_param(new_parameter('application/json', key: 'accept'))
270
270
  .auth(Single.new('global')))
271
271
  .response(new_response_handler
272
- .deserializer(APIHelper.method(:json_deserialize))
273
- .is_api_response(true)
274
- .convertor(ApiResponse.method(:create)))
272
+ .deserializer(APIHelper.method(:json_deserialize))
273
+ .is_api_response(true)
274
+ .convertor(ApiResponse.method(:create)))
275
275
  .execute
276
276
  end
277
277
 
@@ -289,9 +289,9 @@ module Square
289
289
  .header_param(new_parameter('application/json', key: 'accept'))
290
290
  .auth(Single.new('global')))
291
291
  .response(new_response_handler
292
- .deserializer(APIHelper.method(:json_deserialize))
293
- .is_api_response(true)
294
- .convertor(ApiResponse.method(:create)))
292
+ .deserializer(APIHelper.method(:json_deserialize))
293
+ .is_api_response(true)
294
+ .convertor(ApiResponse.method(:create)))
295
295
  .execute
296
296
  end
297
297
 
@@ -322,9 +322,9 @@ module Square
322
322
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
323
323
  .auth(Single.new('global')))
324
324
  .response(new_response_handler
325
- .deserializer(APIHelper.method(:json_deserialize))
326
- .is_api_response(true)
327
- .convertor(ApiResponse.method(:create)))
325
+ .deserializer(APIHelper.method(:json_deserialize))
326
+ .is_api_response(true)
327
+ .convertor(ApiResponse.method(:create)))
328
328
  .execute
329
329
  end
330
330
 
@@ -350,9 +350,9 @@ module Square
350
350
  .header_param(new_parameter('application/json', key: 'accept'))
351
351
  .auth(Single.new('global')))
352
352
  .response(new_response_handler
353
- .deserializer(APIHelper.method(:json_deserialize))
354
- .is_api_response(true)
355
- .convertor(ApiResponse.method(:create)))
353
+ .deserializer(APIHelper.method(:json_deserialize))
354
+ .is_api_response(true)
355
+ .convertor(ApiResponse.method(:create)))
356
356
  .execute
357
357
  end
358
358
 
@@ -370,9 +370,9 @@ module Square
370
370
  .header_param(new_parameter('application/json', key: 'accept'))
371
371
  .auth(Single.new('global')))
372
372
  .response(new_response_handler
373
- .deserializer(APIHelper.method(:json_deserialize))
374
- .is_api_response(true)
375
- .convertor(ApiResponse.method(:create)))
373
+ .deserializer(APIHelper.method(:json_deserialize))
374
+ .is_api_response(true)
375
+ .convertor(ApiResponse.method(:create)))
376
376
  .execute
377
377
  end
378
378
 
@@ -393,9 +393,9 @@ module Square
393
393
  .header_param(new_parameter('application/json', key: 'accept'))
394
394
  .auth(Single.new('global')))
395
395
  .response(new_response_handler
396
- .deserializer(APIHelper.method(:json_deserialize))
397
- .is_api_response(true)
398
- .convertor(ApiResponse.method(:create)))
396
+ .deserializer(APIHelper.method(:json_deserialize))
397
+ .is_api_response(true)
398
+ .convertor(ApiResponse.method(:create)))
399
399
  .execute
400
400
  end
401
401
 
@@ -420,9 +420,9 @@ module Square
420
420
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
421
421
  .auth(Single.new('global')))
422
422
  .response(new_response_handler
423
- .deserializer(APIHelper.method(:json_deserialize))
424
- .is_api_response(true)
425
- .convertor(ApiResponse.method(:create)))
423
+ .deserializer(APIHelper.method(:json_deserialize))
424
+ .is_api_response(true)
425
+ .convertor(ApiResponse.method(:create)))
426
426
  .execute
427
427
  end
428
428
  end
@@ -38,9 +38,9 @@ module Square
38
38
  .header_param(new_parameter('application/json', key: 'accept'))
39
39
  .auth(Single.new('global')))
40
40
  .response(new_response_handler
41
- .deserializer(APIHelper.method(:json_deserialize))
42
- .is_api_response(true)
43
- .convertor(ApiResponse.method(:create)))
41
+ .deserializer(APIHelper.method(:json_deserialize))
42
+ .is_api_response(true)
43
+ .convertor(ApiResponse.method(:create)))
44
44
  .execute
45
45
  end
46
46
 
@@ -71,9 +71,9 @@ module Square
71
71
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
72
72
  .auth(Single.new('global')))
73
73
  .response(new_response_handler
74
- .deserializer(APIHelper.method(:json_deserialize))
75
- .is_api_response(true)
76
- .convertor(ApiResponse.method(:create)))
74
+ .deserializer(APIHelper.method(:json_deserialize))
75
+ .is_api_response(true)
76
+ .convertor(ApiResponse.method(:create)))
77
77
  .execute
78
78
  end
79
79
 
@@ -96,9 +96,9 @@ module Square
96
96
  .header_param(new_parameter('application/json', key: 'accept'))
97
97
  .auth(Single.new('global')))
98
98
  .response(new_response_handler
99
- .deserializer(APIHelper.method(:json_deserialize))
100
- .is_api_response(true)
101
- .convertor(ApiResponse.method(:create)))
99
+ .deserializer(APIHelper.method(:json_deserialize))
100
+ .is_api_response(true)
101
+ .convertor(ApiResponse.method(:create)))
102
102
  .execute
103
103
  end
104
104
 
@@ -129,9 +129,9 @@ module Square
129
129
  .header_param(new_parameter('application/json', key: 'accept'))
130
130
  .auth(Single.new('global')))
131
131
  .response(new_response_handler
132
- .deserializer(APIHelper.method(:json_deserialize))
133
- .is_api_response(true)
134
- .convertor(ApiResponse.method(:create)))
132
+ .deserializer(APIHelper.method(:json_deserialize))
133
+ .is_api_response(true)
134
+ .convertor(ApiResponse.method(:create)))
135
135
  .execute
136
136
  end
137
137
 
@@ -161,9 +161,9 @@ module Square
161
161
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
162
162
  .auth(Single.new('global')))
163
163
  .response(new_response_handler
164
- .deserializer(APIHelper.method(:json_deserialize))
165
- .is_api_response(true)
166
- .convertor(ApiResponse.method(:create)))
164
+ .deserializer(APIHelper.method(:json_deserialize))
165
+ .is_api_response(true)
166
+ .convertor(ApiResponse.method(:create)))
167
167
  .execute
168
168
  end
169
169
 
@@ -187,9 +187,9 @@ module Square
187
187
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
188
188
  .auth(Single.new('global')))
189
189
  .response(new_response_handler
190
- .deserializer(APIHelper.method(:json_deserialize))
191
- .is_api_response(true)
192
- .convertor(ApiResponse.method(:create)))
190
+ .deserializer(APIHelper.method(:json_deserialize))
191
+ .is_api_response(true)
192
+ .convertor(ApiResponse.method(:create)))
193
193
  .execute
194
194
  end
195
195
 
@@ -227,9 +227,9 @@ module Square
227
227
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
228
228
  .auth(Single.new('global')))
229
229
  .response(new_response_handler
230
- .deserializer(APIHelper.method(:json_deserialize))
231
- .is_api_response(true)
232
- .convertor(ApiResponse.method(:create)))
230
+ .deserializer(APIHelper.method(:json_deserialize))
231
+ .is_api_response(true)
232
+ .convertor(ApiResponse.method(:create)))
233
233
  .execute
234
234
  end
235
235
 
@@ -284,9 +284,9 @@ module Square
284
284
  .header_param(new_parameter('application/json', key: 'accept'))
285
285
  .auth(Single.new('global')))
286
286
  .response(new_response_handler
287
- .deserializer(APIHelper.method(:json_deserialize))
288
- .is_api_response(true)
289
- .convertor(ApiResponse.method(:create)))
287
+ .deserializer(APIHelper.method(:json_deserialize))
288
+ .is_api_response(true)
289
+ .convertor(ApiResponse.method(:create)))
290
290
  .execute
291
291
  end
292
292
 
@@ -315,9 +315,9 @@ module Square
315
315
  .header_param(new_parameter('application/json', key: 'accept'))
316
316
  .auth(Single.new('global')))
317
317
  .response(new_response_handler
318
- .deserializer(APIHelper.method(:json_deserialize))
319
- .is_api_response(true)
320
- .convertor(ApiResponse.method(:create)))
318
+ .deserializer(APIHelper.method(:json_deserialize))
319
+ .is_api_response(true)
320
+ .convertor(ApiResponse.method(:create)))
321
321
  .execute
322
322
  end
323
323
 
@@ -365,9 +365,9 @@ module Square
365
365
  .header_param(new_parameter('application/json', key: 'accept'))
366
366
  .auth(Single.new('global')))
367
367
  .response(new_response_handler
368
- .deserializer(APIHelper.method(:json_deserialize))
369
- .is_api_response(true)
370
- .convertor(ApiResponse.method(:create)))
368
+ .deserializer(APIHelper.method(:json_deserialize))
369
+ .is_api_response(true)
370
+ .convertor(ApiResponse.method(:create)))
371
371
  .execute
372
372
  end
373
373
 
@@ -410,9 +410,9 @@ module Square
410
410
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
411
411
  .auth(Single.new('global')))
412
412
  .response(new_response_handler
413
- .deserializer(APIHelper.method(:json_deserialize))
414
- .is_api_response(true)
415
- .convertor(ApiResponse.method(:create)))
413
+ .deserializer(APIHelper.method(:json_deserialize))
414
+ .is_api_response(true)
415
+ .convertor(ApiResponse.method(:create)))
416
416
  .execute
417
417
  end
418
418
  end