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
@@ -32,9 +32,9 @@ module Square
32
32
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
33
33
  .auth(Single.new('global')))
34
34
  .response(new_response_handler
35
- .deserializer(APIHelper.method(:json_deserialize))
36
- .is_api_response(true)
37
- .convertor(ApiResponse.method(:create)))
35
+ .deserializer(APIHelper.method(:json_deserialize))
36
+ .is_api_response(true)
37
+ .convertor(ApiResponse.method(:create)))
38
38
  .execute
39
39
  end
40
40
 
@@ -59,9 +59,9 @@ module Square
59
59
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
60
60
  .auth(Single.new('global')))
61
61
  .response(new_response_handler
62
- .deserializer(APIHelper.method(:json_deserialize))
63
- .is_api_response(true)
64
- .convertor(ApiResponse.method(:create)))
62
+ .deserializer(APIHelper.method(:json_deserialize))
63
+ .is_api_response(true)
64
+ .convertor(ApiResponse.method(:create)))
65
65
  .execute
66
66
  end
67
67
 
@@ -99,9 +99,9 @@ module Square
99
99
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
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
 
@@ -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
  .header_param(new_parameter('application/json', key: 'accept'))
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
 
@@ -178,9 +178,9 @@ module Square
178
178
  .header_param(new_parameter('application/json', key: 'accept'))
179
179
  .auth(Single.new('global')))
180
180
  .response(new_response_handler
181
- .deserializer(APIHelper.method(:json_deserialize))
182
- .is_api_response(true)
183
- .convertor(ApiResponse.method(:create)))
181
+ .deserializer(APIHelper.method(:json_deserialize))
182
+ .is_api_response(true)
183
+ .convertor(ApiResponse.method(:create)))
184
184
  .execute
185
185
  end
186
186
 
@@ -232,9 +232,9 @@ module Square
232
232
  .header_param(new_parameter('application/json', key: 'accept'))
233
233
  .auth(Single.new('global')))
234
234
  .response(new_response_handler
235
- .deserializer(APIHelper.method(:json_deserialize))
236
- .is_api_response(true)
237
- .convertor(ApiResponse.method(:create)))
235
+ .deserializer(APIHelper.method(:json_deserialize))
236
+ .is_api_response(true)
237
+ .convertor(ApiResponse.method(:create)))
238
238
  .execute
239
239
  end
240
240
 
@@ -259,9 +259,9 @@ module Square
259
259
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
260
260
  .auth(Single.new('global')))
261
261
  .response(new_response_handler
262
- .deserializer(APIHelper.method(:json_deserialize))
263
- .is_api_response(true)
264
- .convertor(ApiResponse.method(:create)))
262
+ .deserializer(APIHelper.method(:json_deserialize))
263
+ .is_api_response(true)
264
+ .convertor(ApiResponse.method(:create)))
265
265
  .execute
266
266
  end
267
267
 
@@ -293,9 +293,9 @@ module Square
293
293
  .header_param(new_parameter('application/json', key: 'accept'))
294
294
  .auth(Single.new('global')))
295
295
  .response(new_response_handler
296
- .deserializer(APIHelper.method(:json_deserialize))
297
- .is_api_response(true)
298
- .convertor(ApiResponse.method(:create)))
296
+ .deserializer(APIHelper.method(:json_deserialize))
297
+ .is_api_response(true)
298
+ .convertor(ApiResponse.method(:create)))
299
299
  .execute
300
300
  end
301
301
 
@@ -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
 
@@ -391,9 +391,9 @@ module Square
391
391
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
392
392
  .auth(Single.new('global')))
393
393
  .response(new_response_handler
394
- .deserializer(APIHelper.method(:json_deserialize))
395
- .is_api_response(true)
396
- .convertor(ApiResponse.method(:create)))
394
+ .deserializer(APIHelper.method(:json_deserialize))
395
+ .is_api_response(true)
396
+ .convertor(ApiResponse.method(:create)))
397
397
  .execute
398
398
  end
399
399
 
@@ -429,9 +429,9 @@ module Square
429
429
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
430
430
  .auth(Single.new('global')))
431
431
  .response(new_response_handler
432
- .deserializer(APIHelper.method(:json_deserialize))
433
- .is_api_response(true)
434
- .convertor(ApiResponse.method(:create)))
432
+ .deserializer(APIHelper.method(:json_deserialize))
433
+ .is_api_response(true)
434
+ .convertor(ApiResponse.method(:create)))
435
435
  .execute
436
436
  end
437
437
 
@@ -453,9 +453,9 @@ module Square
453
453
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
454
454
  .auth(Single.new('global')))
455
455
  .response(new_response_handler
456
- .deserializer(APIHelper.method(:json_deserialize))
457
- .is_api_response(true)
458
- .convertor(ApiResponse.method(:create)))
456
+ .deserializer(APIHelper.method(:json_deserialize))
457
+ .is_api_response(true)
458
+ .convertor(ApiResponse.method(:create)))
459
459
  .execute
460
460
  end
461
461
 
@@ -477,9 +477,9 @@ module Square
477
477
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
478
478
  .auth(Single.new('global')))
479
479
  .response(new_response_handler
480
- .deserializer(APIHelper.method(:json_deserialize))
481
- .is_api_response(true)
482
- .convertor(ApiResponse.method(:create)))
480
+ .deserializer(APIHelper.method(:json_deserialize))
481
+ .is_api_response(true)
482
+ .convertor(ApiResponse.method(:create)))
483
483
  .execute
484
484
  end
485
485
  end
@@ -29,9 +29,9 @@ module Square
29
29
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
30
30
  .auth(Single.new('global')))
31
31
  .response(new_response_handler
32
- .deserializer(APIHelper.method(:json_deserialize))
33
- .is_api_response(true)
34
- .convertor(ApiResponse.method(:create)))
32
+ .deserializer(APIHelper.method(:json_deserialize))
33
+ .is_api_response(true)
34
+ .convertor(ApiResponse.method(:create)))
35
35
  .execute
36
36
  end
37
37
 
@@ -49,9 +49,9 @@ module Square
49
49
  .header_param(new_parameter('application/json', key: 'accept'))
50
50
  .auth(Single.new('global')))
51
51
  .response(new_response_handler
52
- .deserializer(APIHelper.method(:json_deserialize))
53
- .is_api_response(true)
54
- .convertor(ApiResponse.method(:create)))
52
+ .deserializer(APIHelper.method(:json_deserialize))
53
+ .is_api_response(true)
54
+ .convertor(ApiResponse.method(:create)))
55
55
  .execute
56
56
  end
57
57
 
@@ -76,9 +76,9 @@ module Square
76
76
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
77
77
  .auth(Single.new('global')))
78
78
  .response(new_response_handler
79
- .deserializer(APIHelper.method(:json_deserialize))
80
- .is_api_response(true)
81
- .convertor(ApiResponse.method(:create)))
79
+ .deserializer(APIHelper.method(:json_deserialize))
80
+ .is_api_response(true)
81
+ .convertor(ApiResponse.method(:create)))
82
82
  .execute
83
83
  end
84
84
 
@@ -92,9 +92,9 @@ module Square
92
92
  .header_param(new_parameter('application/json', key: 'accept'))
93
93
  .auth(Single.new('global')))
94
94
  .response(new_response_handler
95
- .deserializer(APIHelper.method(:json_deserialize))
96
- .is_api_response(true)
97
- .convertor(ApiResponse.method(:create)))
95
+ .deserializer(APIHelper.method(:json_deserialize))
96
+ .is_api_response(true)
97
+ .convertor(ApiResponse.method(:create)))
98
98
  .execute
99
99
  end
100
100
 
@@ -114,9 +114,9 @@ module Square
114
114
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
115
115
  .auth(Single.new('global')))
116
116
  .response(new_response_handler
117
- .deserializer(APIHelper.method(:json_deserialize))
118
- .is_api_response(true)
119
- .convertor(ApiResponse.method(:create)))
117
+ .deserializer(APIHelper.method(:json_deserialize))
118
+ .is_api_response(true)
119
+ .convertor(ApiResponse.method(:create)))
120
120
  .execute
121
121
  end
122
122
 
@@ -144,9 +144,9 @@ module Square
144
144
  .header_param(new_parameter('application/json', key: 'accept'))
145
145
  .auth(Single.new('global')))
146
146
  .response(new_response_handler
147
- .deserializer(APIHelper.method(:json_deserialize))
148
- .is_api_response(true)
149
- .convertor(ApiResponse.method(:create)))
147
+ .deserializer(APIHelper.method(:json_deserialize))
148
+ .is_api_response(true)
149
+ .convertor(ApiResponse.method(:create)))
150
150
  .execute
151
151
  end
152
152
 
@@ -167,9 +167,9 @@ module Square
167
167
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
168
168
  .auth(Single.new('global')))
169
169
  .response(new_response_handler
170
- .deserializer(APIHelper.method(:json_deserialize))
171
- .is_api_response(true)
172
- .convertor(ApiResponse.method(:create)))
170
+ .deserializer(APIHelper.method(:json_deserialize))
171
+ .is_api_response(true)
172
+ .convertor(ApiResponse.method(:create)))
173
173
  .execute
174
174
  end
175
175
 
@@ -187,9 +187,9 @@ module Square
187
187
  .header_param(new_parameter('application/json', key: 'accept'))
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
 
@@ -206,9 +206,9 @@ module Square
206
206
  .header_param(new_parameter('application/json', key: 'accept'))
207
207
  .auth(Single.new('global')))
208
208
  .response(new_response_handler
209
- .deserializer(APIHelper.method(:json_deserialize))
210
- .is_api_response(true)
211
- .convertor(ApiResponse.method(:create)))
209
+ .deserializer(APIHelper.method(:json_deserialize))
210
+ .is_api_response(true)
211
+ .convertor(ApiResponse.method(:create)))
212
212
  .execute
213
213
  end
214
214
 
@@ -236,9 +236,9 @@ module Square
236
236
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
237
237
  .auth(Single.new('global')))
238
238
  .response(new_response_handler
239
- .deserializer(APIHelper.method(:json_deserialize))
240
- .is_api_response(true)
241
- .convertor(ApiResponse.method(:create)))
239
+ .deserializer(APIHelper.method(:json_deserialize))
240
+ .is_api_response(true)
241
+ .convertor(ApiResponse.method(:create)))
242
242
  .execute
243
243
  end
244
244
  end
@@ -36,9 +36,9 @@ module Square
36
36
  .header_param(new_parameter('application/json', key: 'accept'))
37
37
  .auth(Single.new('global')))
38
38
  .response(new_response_handler
39
- .deserializer(APIHelper.method(:json_deserialize))
40
- .is_api_response(true)
41
- .convertor(ApiResponse.method(:create)))
39
+ .deserializer(APIHelper.method(:json_deserialize))
40
+ .is_api_response(true)
41
+ .convertor(ApiResponse.method(:create)))
42
42
  .execute
43
43
  end
44
44
 
@@ -73,9 +73,9 @@ module Square
73
73
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
74
74
  .auth(Single.new('global')))
75
75
  .response(new_response_handler
76
- .deserializer(APIHelper.method(:json_deserialize))
77
- .is_api_response(true)
78
- .convertor(ApiResponse.method(:create)))
76
+ .deserializer(APIHelper.method(:json_deserialize))
77
+ .is_api_response(true)
78
+ .convertor(ApiResponse.method(:create)))
79
79
  .execute
80
80
  end
81
81
 
@@ -98,9 +98,9 @@ module Square
98
98
  .header_param(new_parameter('application/json', key: 'accept'))
99
99
  .auth(Single.new('global')))
100
100
  .response(new_response_handler
101
- .deserializer(APIHelper.method(:json_deserialize))
102
- .is_api_response(true)
103
- .convertor(ApiResponse.method(:create)))
101
+ .deserializer(APIHelper.method(:json_deserialize))
102
+ .is_api_response(true)
103
+ .convertor(ApiResponse.method(:create)))
104
104
  .execute
105
105
  end
106
106
 
@@ -134,9 +134,9 @@ module Square
134
134
  .header_param(new_parameter('application/json', key: 'accept'))
135
135
  .auth(Single.new('global')))
136
136
  .response(new_response_handler
137
- .deserializer(APIHelper.method(:json_deserialize))
138
- .is_api_response(true)
139
- .convertor(ApiResponse.method(:create)))
137
+ .deserializer(APIHelper.method(:json_deserialize))
138
+ .is_api_response(true)
139
+ .convertor(ApiResponse.method(:create)))
140
140
  .execute
141
141
  end
142
142
 
@@ -169,9 +169,9 @@ module Square
169
169
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
170
170
  .auth(Single.new('global')))
171
171
  .response(new_response_handler
172
- .deserializer(APIHelper.method(:json_deserialize))
173
- .is_api_response(true)
174
- .convertor(ApiResponse.method(:create)))
172
+ .deserializer(APIHelper.method(:json_deserialize))
173
+ .is_api_response(true)
174
+ .convertor(ApiResponse.method(:create)))
175
175
  .execute
176
176
  end
177
177
 
@@ -212,9 +212,9 @@ module Square
212
212
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
213
213
  .auth(Single.new('global')))
214
214
  .response(new_response_handler
215
- .deserializer(APIHelper.method(:json_deserialize))
216
- .is_api_response(true)
217
- .convertor(ApiResponse.method(:create)))
215
+ .deserializer(APIHelper.method(:json_deserialize))
216
+ .is_api_response(true)
217
+ .convertor(ApiResponse.method(:create)))
218
218
  .execute
219
219
  end
220
220
 
@@ -265,9 +265,9 @@ module Square
265
265
  .header_param(new_parameter('application/json', key: 'accept'))
266
266
  .auth(Single.new('global')))
267
267
  .response(new_response_handler
268
- .deserializer(APIHelper.method(:json_deserialize))
269
- .is_api_response(true)
270
- .convertor(ApiResponse.method(:create)))
268
+ .deserializer(APIHelper.method(:json_deserialize))
269
+ .is_api_response(true)
270
+ .convertor(ApiResponse.method(:create)))
271
271
  .execute
272
272
  end
273
273
 
@@ -298,9 +298,9 @@ module Square
298
298
  .header_param(new_parameter('application/json', key: 'accept'))
299
299
  .auth(Single.new('global')))
300
300
  .response(new_response_handler
301
- .deserializer(APIHelper.method(:json_deserialize))
302
- .is_api_response(true)
303
- .convertor(ApiResponse.method(:create)))
301
+ .deserializer(APIHelper.method(:json_deserialize))
302
+ .is_api_response(true)
303
+ .convertor(ApiResponse.method(:create)))
304
304
  .execute
305
305
  end
306
306
 
@@ -351,9 +351,9 @@ module Square
351
351
  .header_param(new_parameter('application/json', key: 'accept'))
352
352
  .auth(Single.new('global')))
353
353
  .response(new_response_handler
354
- .deserializer(APIHelper.method(:json_deserialize))
355
- .is_api_response(true)
356
- .convertor(ApiResponse.method(:create)))
354
+ .deserializer(APIHelper.method(:json_deserialize))
355
+ .is_api_response(true)
356
+ .convertor(ApiResponse.method(:create)))
357
357
  .execute
358
358
  end
359
359
 
@@ -399,9 +399,9 @@ module Square
399
399
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
400
400
  .auth(Single.new('global')))
401
401
  .response(new_response_handler
402
- .deserializer(APIHelper.method(:json_deserialize))
403
- .is_api_response(true)
404
- .convertor(ApiResponse.method(:create)))
402
+ .deserializer(APIHelper.method(:json_deserialize))
403
+ .is_api_response(true)
404
+ .convertor(ApiResponse.method(:create)))
405
405
  .execute
406
406
  end
407
407
  end
@@ -26,9 +26,9 @@ module Square
26
26
  .header_param(new_parameter('application/json', key: 'accept'))
27
27
  .auth(Single.new('global')))
28
28
  .response(new_response_handler
29
- .deserializer(APIHelper.method(:json_deserialize))
30
- .is_api_response(true)
31
- .convertor(ApiResponse.method(:create)))
29
+ .deserializer(APIHelper.method(:json_deserialize))
30
+ .is_api_response(true)
31
+ .convertor(ApiResponse.method(:create)))
32
32
  .execute
33
33
  end
34
34
 
@@ -49,9 +49,9 @@ module Square
49
49
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
50
50
  .auth(Single.new('global')))
51
51
  .response(new_response_handler
52
- .deserializer(APIHelper.method(:json_deserialize))
53
- .is_api_response(true)
54
- .convertor(ApiResponse.method(:create)))
52
+ .deserializer(APIHelper.method(:json_deserialize))
53
+ .is_api_response(true)
54
+ .convertor(ApiResponse.method(:create)))
55
55
  .execute
56
56
  end
57
57
 
@@ -69,9 +69,9 @@ module Square
69
69
  .header_param(new_parameter('application/json', key: 'accept'))
70
70
  .auth(Single.new('global')))
71
71
  .response(new_response_handler
72
- .deserializer(APIHelper.method(:json_deserialize))
73
- .is_api_response(true)
74
- .convertor(ApiResponse.method(:create)))
72
+ .deserializer(APIHelper.method(:json_deserialize))
73
+ .is_api_response(true)
74
+ .convertor(ApiResponse.method(:create)))
75
75
  .execute
76
76
  end
77
77
 
@@ -89,9 +89,9 @@ module Square
89
89
  .header_param(new_parameter('application/json', key: 'accept'))
90
90
  .auth(Single.new('global')))
91
91
  .response(new_response_handler
92
- .deserializer(APIHelper.method(:json_deserialize))
93
- .is_api_response(true)
94
- .convertor(ApiResponse.method(:create)))
92
+ .deserializer(APIHelper.method(:json_deserialize))
93
+ .is_api_response(true)
94
+ .convertor(ApiResponse.method(:create)))
95
95
  .execute
96
96
  end
97
97
 
@@ -116,9 +116,9 @@ module Square
116
116
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
117
117
  .auth(Single.new('global')))
118
118
  .response(new_response_handler
119
- .deserializer(APIHelper.method(:json_deserialize))
120
- .is_api_response(true)
121
- .convertor(ApiResponse.method(:create)))
119
+ .deserializer(APIHelper.method(:json_deserialize))
120
+ .is_api_response(true)
121
+ .convertor(ApiResponse.method(:create)))
122
122
  .execute
123
123
  end
124
124
  end
@@ -26,9 +26,9 @@ module Square
26
26
  .header_param(new_parameter('application/json', key: 'accept'))
27
27
  .auth(Single.new('global')))
28
28
  .response(new_response_handler
29
- .deserializer(APIHelper.method(:json_deserialize))
30
- .is_api_response(true)
31
- .convertor(ApiResponse.method(:create)))
29
+ .deserializer(APIHelper.method(:json_deserialize))
30
+ .is_api_response(true)
31
+ .convertor(ApiResponse.method(:create)))
32
32
  .execute
33
33
  end
34
34
 
@@ -47,9 +47,9 @@ module Square
47
47
  .header_param(new_parameter('application/json', key: 'accept'))
48
48
  .auth(Single.new('global')))
49
49
  .response(new_response_handler
50
- .deserializer(APIHelper.method(:json_deserialize))
51
- .is_api_response(true)
52
- .convertor(ApiResponse.method(:create)))
50
+ .deserializer(APIHelper.method(:json_deserialize))
51
+ .is_api_response(true)
52
+ .convertor(ApiResponse.method(:create)))
53
53
  .execute
54
54
  end
55
55
  end