square.rb 38.1.0.20240604 → 38.1.1.20240717

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) 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 +12 -12
  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 +2 -2
  46. data/lib/square/configuration.rb +1 -1
  47. data/test/webhooks/test_webhooks_helper.rb +17 -0
  48. metadata +8 -8
@@ -14,9 +14,9 @@ module Square
14
14
  .header_param(new_parameter('application/json', key: 'accept'))
15
15
  .auth(Single.new('global')))
16
16
  .response(new_response_handler
17
- .deserializer(APIHelper.method(:json_deserialize))
18
- .is_api_response(true)
19
- .convertor(ApiResponse.method(:create)))
17
+ .deserializer(APIHelper.method(:json_deserialize))
18
+ .is_api_response(true)
19
+ .convertor(ApiResponse.method(:create)))
20
20
  .execute
21
21
  end
22
22
 
@@ -45,9 +45,9 @@ module Square
45
45
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
46
46
  .auth(Single.new('global')))
47
47
  .response(new_response_handler
48
- .deserializer(APIHelper.method(:json_deserialize))
49
- .is_api_response(true)
50
- .convertor(ApiResponse.method(:create)))
48
+ .deserializer(APIHelper.method(:json_deserialize))
49
+ .is_api_response(true)
50
+ .convertor(ApiResponse.method(:create)))
51
51
  .execute
52
52
  end
53
53
 
@@ -68,9 +68,9 @@ module Square
68
68
  .header_param(new_parameter('application/json', key: 'accept'))
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
  end
@@ -18,9 +18,9 @@ module Square
18
18
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
19
19
  .auth(Single.new('global')))
20
20
  .response(new_response_handler
21
- .deserializer(APIHelper.method(:json_deserialize))
22
- .is_api_response(true)
23
- .convertor(ApiResponse.method(:create)))
21
+ .deserializer(APIHelper.method(:json_deserialize))
22
+ .is_api_response(true)
23
+ .convertor(ApiResponse.method(:create)))
24
24
  .execute
25
25
  end
26
26
 
@@ -44,9 +44,9 @@ module Square
44
44
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
45
45
  .auth(Single.new('global')))
46
46
  .response(new_response_handler
47
- .deserializer(APIHelper.method(:json_deserialize))
48
- .is_api_response(true)
49
- .convertor(ApiResponse.method(:create)))
47
+ .deserializer(APIHelper.method(:json_deserialize))
48
+ .is_api_response(true)
49
+ .convertor(ApiResponse.method(:create)))
50
50
  .execute
51
51
  end
52
52
 
@@ -64,9 +64,9 @@ module Square
64
64
  .header_param(new_parameter('application/json', key: 'accept'))
65
65
  .auth(Single.new('global')))
66
66
  .response(new_response_handler
67
- .deserializer(APIHelper.method(:json_deserialize))
68
- .is_api_response(true)
69
- .convertor(ApiResponse.method(:create)))
67
+ .deserializer(APIHelper.method(:json_deserialize))
68
+ .is_api_response(true)
69
+ .convertor(ApiResponse.method(:create)))
70
70
  .execute
71
71
  end
72
72
 
@@ -115,9 +115,9 @@ module Square
115
115
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
116
116
  .auth(Single.new('global')))
117
117
  .response(new_response_handler
118
- .deserializer(APIHelper.method(:json_deserialize))
119
- .is_api_response(true)
120
- .convertor(ApiResponse.method(:create)))
118
+ .deserializer(APIHelper.method(:json_deserialize))
119
+ .is_api_response(true)
120
+ .convertor(ApiResponse.method(:create)))
121
121
  .execute
122
122
  end
123
123
 
@@ -146,9 +146,9 @@ module Square
146
146
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
147
147
  .auth(Single.new('global')))
148
148
  .response(new_response_handler
149
- .deserializer(APIHelper.method(:json_deserialize))
150
- .is_api_response(true)
151
- .convertor(ApiResponse.method(:create)))
149
+ .deserializer(APIHelper.method(:json_deserialize))
150
+ .is_api_response(true)
151
+ .convertor(ApiResponse.method(:create)))
152
152
  .execute
153
153
  end
154
154
 
@@ -175,9 +175,9 @@ module Square
175
175
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
176
176
  .auth(Single.new('global')))
177
177
  .response(new_response_handler
178
- .deserializer(APIHelper.method(:json_deserialize))
179
- .is_api_response(true)
180
- .convertor(ApiResponse.method(:create)))
178
+ .deserializer(APIHelper.method(:json_deserialize))
179
+ .is_api_response(true)
180
+ .convertor(ApiResponse.method(:create)))
181
181
  .execute
182
182
  end
183
183
 
@@ -200,9 +200,9 @@ module Square
200
200
  .header_param(new_parameter('application/json', key: 'accept'))
201
201
  .auth(Single.new('global')))
202
202
  .response(new_response_handler
203
- .deserializer(APIHelper.method(:json_deserialize))
204
- .is_api_response(true)
205
- .convertor(ApiResponse.method(:create)))
203
+ .deserializer(APIHelper.method(:json_deserialize))
204
+ .is_api_response(true)
205
+ .convertor(ApiResponse.method(:create)))
206
206
  .execute
207
207
  end
208
208
 
@@ -227,9 +227,9 @@ module Square
227
227
  .header_param(new_parameter('application/json', key: 'accept'))
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
 
@@ -278,9 +278,9 @@ module Square
278
278
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
279
279
  .auth(Single.new('global')))
280
280
  .response(new_response_handler
281
- .deserializer(APIHelper.method(:json_deserialize))
282
- .is_api_response(true)
283
- .convertor(ApiResponse.method(:create)))
281
+ .deserializer(APIHelper.method(:json_deserialize))
282
+ .is_api_response(true)
283
+ .convertor(ApiResponse.method(:create)))
284
284
  .execute
285
285
  end
286
286
 
@@ -324,9 +324,9 @@ module Square
324
324
  .header_param(new_parameter('application/json', key: 'accept'))
325
325
  .auth(Single.new('global')))
326
326
  .response(new_response_handler
327
- .deserializer(APIHelper.method(:json_deserialize))
328
- .is_api_response(true)
329
- .convertor(ApiResponse.method(:create)))
327
+ .deserializer(APIHelper.method(:json_deserialize))
328
+ .is_api_response(true)
329
+ .convertor(ApiResponse.method(:create)))
330
330
  .execute
331
331
  end
332
332
 
@@ -362,9 +362,9 @@ module Square
362
362
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
363
363
  .auth(Single.new('global')))
364
364
  .response(new_response_handler
365
- .deserializer(APIHelper.method(:json_deserialize))
366
- .is_api_response(true)
367
- .convertor(ApiResponse.method(:create)))
365
+ .deserializer(APIHelper.method(:json_deserialize))
366
+ .is_api_response(true)
367
+ .convertor(ApiResponse.method(:create)))
368
368
  .execute
369
369
  end
370
370
 
@@ -389,9 +389,9 @@ module Square
389
389
  .header_param(new_parameter('application/json', key: 'accept'))
390
390
  .auth(Single.new('global')))
391
391
  .response(new_response_handler
392
- .deserializer(APIHelper.method(:json_deserialize))
393
- .is_api_response(true)
394
- .convertor(ApiResponse.method(:create)))
392
+ .deserializer(APIHelper.method(:json_deserialize))
393
+ .is_api_response(true)
394
+ .convertor(ApiResponse.method(:create)))
395
395
  .execute
396
396
  end
397
397
 
@@ -422,9 +422,9 @@ module Square
422
422
  .header_param(new_parameter('application/json', key: 'accept'))
423
423
  .auth(Single.new('global')))
424
424
  .response(new_response_handler
425
- .deserializer(APIHelper.method(:json_deserialize))
426
- .is_api_response(true)
427
- .convertor(ApiResponse.method(:create)))
425
+ .deserializer(APIHelper.method(:json_deserialize))
426
+ .is_api_response(true)
427
+ .convertor(ApiResponse.method(:create)))
428
428
  .execute
429
429
  end
430
430
 
@@ -451,9 +451,9 @@ module Square
451
451
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
452
452
  .auth(Single.new('global')))
453
453
  .response(new_response_handler
454
- .deserializer(APIHelper.method(:json_deserialize))
455
- .is_api_response(true)
456
- .convertor(ApiResponse.method(:create)))
454
+ .deserializer(APIHelper.method(:json_deserialize))
455
+ .is_api_response(true)
456
+ .convertor(ApiResponse.method(:create)))
457
457
  .execute
458
458
  end
459
459
 
@@ -479,9 +479,9 @@ module Square
479
479
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
480
480
  .auth(Single.new('global')))
481
481
  .response(new_response_handler
482
- .deserializer(APIHelper.method(:json_deserialize))
483
- .is_api_response(true)
484
- .convertor(ApiResponse.method(:create)))
482
+ .deserializer(APIHelper.method(:json_deserialize))
483
+ .is_api_response(true)
484
+ .convertor(ApiResponse.method(:create)))
485
485
  .execute
486
486
  end
487
487
 
@@ -505,9 +505,9 @@ module Square
505
505
  .header_param(new_parameter('application/json', key: 'accept'))
506
506
  .auth(Single.new('global')))
507
507
  .response(new_response_handler
508
- .deserializer(APIHelper.method(:json_deserialize))
509
- .is_api_response(true)
510
- .convertor(ApiResponse.method(:create)))
508
+ .deserializer(APIHelper.method(:json_deserialize))
509
+ .is_api_response(true)
510
+ .convertor(ApiResponse.method(:create)))
511
511
  .execute
512
512
  end
513
513
 
@@ -525,9 +525,9 @@ module Square
525
525
  .header_param(new_parameter('application/json', key: 'accept'))
526
526
  .auth(Single.new('global')))
527
527
  .response(new_response_handler
528
- .deserializer(APIHelper.method(:json_deserialize))
529
- .is_api_response(true)
530
- .convertor(ApiResponse.method(:create)))
528
+ .deserializer(APIHelper.method(:json_deserialize))
529
+ .is_api_response(true)
530
+ .convertor(ApiResponse.method(:create)))
531
531
  .execute
532
532
  end
533
533
 
@@ -559,9 +559,9 @@ module Square
559
559
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
560
560
  .auth(Single.new('global')))
561
561
  .response(new_response_handler
562
- .deserializer(APIHelper.method(:json_deserialize))
563
- .is_api_response(true)
564
- .convertor(ApiResponse.method(:create)))
562
+ .deserializer(APIHelper.method(:json_deserialize))
563
+ .is_api_response(true)
564
+ .convertor(ApiResponse.method(:create)))
565
565
  .execute
566
566
  end
567
567
  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
@@ -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
 
@@ -45,9 +45,9 @@ module Square
45
45
  .header_param(new_parameter('application/json', key: 'accept'))
46
46
  .auth(Single.new('global')))
47
47
  .response(new_response_handler
48
- .deserializer(APIHelper.method(:json_deserialize))
49
- .is_api_response(true)
50
- .convertor(ApiResponse.method(:create)))
48
+ .deserializer(APIHelper.method(:json_deserialize))
49
+ .is_api_response(true)
50
+ .convertor(ApiResponse.method(:create)))
51
51
  .execute
52
52
  end
53
53
  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
  end
@@ -30,9 +30,9 @@ module Square
30
30
  .header_param(new_parameter('application/json', key: 'accept'))
31
31
  .body_serializer(proc do |param| param.to_json unless param.nil? end))
32
32
  .response(new_response_handler
33
- .deserializer(APIHelper.method(:json_deserialize))
34
- .is_api_response(true)
35
- .convertor(ApiResponse.method(:create)))
33
+ .deserializer(APIHelper.method(:json_deserialize))
34
+ .is_api_response(true)
35
+ .convertor(ApiResponse.method(:create)))
36
36
  .execute
37
37
  end
38
38
 
@@ -66,9 +66,9 @@ module Square
66
66
  .header_param(new_parameter('application/json', key: 'accept'))
67
67
  .body_serializer(proc do |param| param.to_json unless param.nil? end))
68
68
  .response(new_response_handler
69
- .deserializer(APIHelper.method(:json_deserialize))
70
- .is_api_response(true)
71
- .convertor(ApiResponse.method(:create)))
69
+ .deserializer(APIHelper.method(:json_deserialize))
70
+ .is_api_response(true)
71
+ .convertor(ApiResponse.method(:create)))
72
72
  .execute
73
73
  end
74
74
 
@@ -100,9 +100,9 @@ module Square
100
100
  .header_param(new_parameter(authorization, key: 'Authorization'))
101
101
  .header_param(new_parameter('application/json', key: 'accept')))
102
102
  .response(new_response_handler
103
- .deserializer(APIHelper.method(:json_deserialize))
104
- .is_api_response(true)
105
- .convertor(ApiResponse.method(:create)))
103
+ .deserializer(APIHelper.method(:json_deserialize))
104
+ .is_api_response(true)
105
+ .convertor(ApiResponse.method(:create)))
106
106
  .execute
107
107
  end
108
108
  end
@@ -42,9 +42,9 @@ module Square
42
42
  .header_param(new_parameter('application/json', key: 'accept'))
43
43
  .auth(Single.new('global')))
44
44
  .response(new_response_handler
45
- .deserializer(APIHelper.method(:json_deserialize))
46
- .is_api_response(true)
47
- .convertor(ApiResponse.method(:create)))
45
+ .deserializer(APIHelper.method(:json_deserialize))
46
+ .is_api_response(true)
47
+ .convertor(ApiResponse.method(:create)))
48
48
  .execute
49
49
  end
50
50
 
@@ -69,9 +69,9 @@ module Square
69
69
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
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
 
@@ -91,9 +91,9 @@ module Square
91
91
  .header_param(new_parameter('application/json', key: 'accept'))
92
92
  .auth(Single.new('global')))
93
93
  .response(new_response_handler
94
- .deserializer(APIHelper.method(:json_deserialize))
95
- .is_api_response(true)
96
- .convertor(ApiResponse.method(:create)))
94
+ .deserializer(APIHelper.method(:json_deserialize))
95
+ .is_api_response(true)
96
+ .convertor(ApiResponse.method(:create)))
97
97
  .execute
98
98
  end
99
99
 
@@ -124,9 +124,9 @@ module Square
124
124
  .header_param(new_parameter('application/json', key: 'accept'))
125
125
  .auth(Single.new('global')))
126
126
  .response(new_response_handler
127
- .deserializer(APIHelper.method(:json_deserialize))
128
- .is_api_response(true)
129
- .convertor(ApiResponse.method(:create)))
127
+ .deserializer(APIHelper.method(:json_deserialize))
128
+ .is_api_response(true)
129
+ .convertor(ApiResponse.method(:create)))
130
130
  .execute
131
131
  end
132
132
 
@@ -155,9 +155,9 @@ module Square
155
155
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
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
 
@@ -197,9 +197,9 @@ module Square
197
197
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
198
198
  .auth(Single.new('global')))
199
199
  .response(new_response_handler
200
- .deserializer(APIHelper.method(:json_deserialize))
201
- .is_api_response(true)
202
- .convertor(ApiResponse.method(:create)))
200
+ .deserializer(APIHelper.method(:json_deserialize))
201
+ .is_api_response(true)
202
+ .convertor(ApiResponse.method(:create)))
203
203
  .execute
204
204
  end
205
205
 
@@ -240,9 +240,9 @@ module Square
240
240
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
241
241
  .auth(Single.new('global')))
242
242
  .response(new_response_handler
243
- .deserializer(APIHelper.method(:json_deserialize))
244
- .is_api_response(true)
245
- .convertor(ApiResponse.method(:create)))
243
+ .deserializer(APIHelper.method(:json_deserialize))
244
+ .is_api_response(true)
245
+ .convertor(ApiResponse.method(:create)))
246
246
  .execute
247
247
  end
248
248
 
@@ -299,9 +299,9 @@ module Square
299
299
  .header_param(new_parameter('application/json', key: 'accept'))
300
300
  .auth(Single.new('global')))
301
301
  .response(new_response_handler
302
- .deserializer(APIHelper.method(:json_deserialize))
303
- .is_api_response(true)
304
- .convertor(ApiResponse.method(:create)))
302
+ .deserializer(APIHelper.method(:json_deserialize))
303
+ .is_api_response(true)
304
+ .convertor(ApiResponse.method(:create)))
305
305
  .execute
306
306
  end
307
307
 
@@ -331,9 +331,9 @@ module Square
331
331
  .header_param(new_parameter('application/json', key: 'accept'))
332
332
  .auth(Single.new('global')))
333
333
  .response(new_response_handler
334
- .deserializer(APIHelper.method(:json_deserialize))
335
- .is_api_response(true)
336
- .convertor(ApiResponse.method(:create)))
334
+ .deserializer(APIHelper.method(:json_deserialize))
335
+ .is_api_response(true)
336
+ .convertor(ApiResponse.method(:create)))
337
337
  .execute
338
338
  end
339
339
 
@@ -381,9 +381,9 @@ module Square
381
381
  .header_param(new_parameter('application/json', key: 'accept'))
382
382
  .auth(Single.new('global')))
383
383
  .response(new_response_handler
384
- .deserializer(APIHelper.method(:json_deserialize))
385
- .is_api_response(true)
386
- .convertor(ApiResponse.method(:create)))
384
+ .deserializer(APIHelper.method(:json_deserialize))
385
+ .is_api_response(true)
386
+ .convertor(ApiResponse.method(:create)))
387
387
  .execute
388
388
  end
389
389
 
@@ -427,9 +427,9 @@ module Square
427
427
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
428
428
  .auth(Single.new('global')))
429
429
  .response(new_response_handler
430
- .deserializer(APIHelper.method(:json_deserialize))
431
- .is_api_response(true)
432
- .convertor(ApiResponse.method(:create)))
430
+ .deserializer(APIHelper.method(:json_deserialize))
431
+ .is_api_response(true)
432
+ .convertor(ApiResponse.method(:create)))
433
433
  .execute
434
434
  end
435
435
  end