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
@@ -24,9 +24,9 @@ module Square
24
24
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
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
 
@@ -48,9 +48,9 @@ module Square
48
48
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
49
49
  .auth(Single.new('global')))
50
50
  .response(new_response_handler
51
- .deserializer(APIHelper.method(:json_deserialize))
52
- .is_api_response(true)
53
- .convertor(ApiResponse.method(:create)))
51
+ .deserializer(APIHelper.method(:json_deserialize))
52
+ .is_api_response(true)
53
+ .convertor(ApiResponse.method(:create)))
54
54
  .execute
55
55
  end
56
56
 
@@ -70,9 +70,9 @@ module Square
70
70
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
71
71
  .auth(Single.new('global')))
72
72
  .response(new_response_handler
73
- .deserializer(APIHelper.method(:json_deserialize))
74
- .is_api_response(true)
75
- .convertor(ApiResponse.method(:create)))
73
+ .deserializer(APIHelper.method(:json_deserialize))
74
+ .is_api_response(true)
75
+ .convertor(ApiResponse.method(:create)))
76
76
  .execute
77
77
  end
78
78
 
@@ -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
 
@@ -133,9 +133,9 @@ module Square
133
133
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
134
134
  .auth(Single.new('global')))
135
135
  .response(new_response_handler
136
- .deserializer(APIHelper.method(:json_deserialize))
137
- .is_api_response(true)
138
- .convertor(ApiResponse.method(:create)))
136
+ .deserializer(APIHelper.method(:json_deserialize))
137
+ .is_api_response(true)
138
+ .convertor(ApiResponse.method(:create)))
139
139
  .execute
140
140
  end
141
141
 
@@ -153,9 +153,9 @@ module Square
153
153
  .header_param(new_parameter('application/json', key: 'accept'))
154
154
  .auth(Single.new('global')))
155
155
  .response(new_response_handler
156
- .deserializer(APIHelper.method(:json_deserialize))
157
- .is_api_response(true)
158
- .convertor(ApiResponse.method(:create)))
156
+ .deserializer(APIHelper.method(:json_deserialize))
157
+ .is_api_response(true)
158
+ .convertor(ApiResponse.method(:create)))
159
159
  .execute
160
160
  end
161
161
 
@@ -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
 
@@ -242,9 +242,9 @@ module Square
242
242
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
243
243
  .auth(Single.new('global')))
244
244
  .response(new_response_handler
245
- .deserializer(APIHelper.method(:json_deserialize))
246
- .is_api_response(true)
247
- .convertor(ApiResponse.method(:create)))
245
+ .deserializer(APIHelper.method(:json_deserialize))
246
+ .is_api_response(true)
247
+ .convertor(ApiResponse.method(:create)))
248
248
  .execute
249
249
  end
250
250
  end
@@ -63,9 +63,9 @@ module Square
63
63
  .header_param(new_parameter('application/json', key: 'accept'))
64
64
  .auth(Single.new('global')))
65
65
  .response(new_response_handler
66
- .deserializer(APIHelper.method(:json_deserialize))
67
- .is_api_response(true)
68
- .convertor(ApiResponse.method(:create)))
66
+ .deserializer(APIHelper.method(:json_deserialize))
67
+ .is_api_response(true)
68
+ .convertor(ApiResponse.method(:create)))
69
69
  .execute
70
70
  end
71
71
 
@@ -92,9 +92,9 @@ module Square
92
92
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
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
 
@@ -128,9 +128,9 @@ module Square
128
128
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
129
129
  .auth(Single.new('global')))
130
130
  .response(new_response_handler
131
- .deserializer(APIHelper.method(:json_deserialize))
132
- .is_api_response(true)
133
- .convertor(ApiResponse.method(:create)))
131
+ .deserializer(APIHelper.method(:json_deserialize))
132
+ .is_api_response(true)
133
+ .convertor(ApiResponse.method(:create)))
134
134
  .execute
135
135
  end
136
136
 
@@ -148,9 +148,9 @@ module Square
148
148
  .header_param(new_parameter('application/json', key: 'accept'))
149
149
  .auth(Single.new('global')))
150
150
  .response(new_response_handler
151
- .deserializer(APIHelper.method(:json_deserialize))
152
- .is_api_response(true)
153
- .convertor(ApiResponse.method(:create)))
151
+ .deserializer(APIHelper.method(:json_deserialize))
152
+ .is_api_response(true)
153
+ .convertor(ApiResponse.method(:create)))
154
154
  .execute
155
155
  end
156
156
 
@@ -176,9 +176,9 @@ module Square
176
176
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
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
 
@@ -198,9 +198,9 @@ module Square
198
198
  .header_param(new_parameter('application/json', key: 'accept'))
199
199
  .auth(Single.new('global')))
200
200
  .response(new_response_handler
201
- .deserializer(APIHelper.method(:json_deserialize))
202
- .is_api_response(true)
203
- .convertor(ApiResponse.method(:create)))
201
+ .deserializer(APIHelper.method(:json_deserialize))
202
+ .is_api_response(true)
203
+ .convertor(ApiResponse.method(:create)))
204
204
  .execute
205
205
  end
206
206
 
@@ -229,9 +229,9 @@ module Square
229
229
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
230
230
  .auth(Single.new('global')))
231
231
  .response(new_response_handler
232
- .deserializer(APIHelper.method(:json_deserialize))
233
- .is_api_response(true)
234
- .convertor(ApiResponse.method(:create)))
232
+ .deserializer(APIHelper.method(:json_deserialize))
233
+ .is_api_response(true)
234
+ .convertor(ApiResponse.method(:create)))
235
235
  .execute
236
236
  end
237
237
  end
@@ -50,9 +50,9 @@ module Square
50
50
  .header_param(new_parameter('application/json', key: 'accept'))
51
51
  .auth(Single.new('global')))
52
52
  .response(new_response_handler
53
- .deserializer(APIHelper.method(:json_deserialize))
54
- .is_api_response(true)
55
- .convertor(ApiResponse.method(:create)))
53
+ .deserializer(APIHelper.method(:json_deserialize))
54
+ .is_api_response(true)
55
+ .convertor(ApiResponse.method(:create)))
56
56
  .execute
57
57
  end
58
58
 
@@ -71,9 +71,9 @@ module Square
71
71
  .header_param(new_parameter('application/json', key: 'accept'))
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
 
@@ -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
  end
@@ -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
 
@@ -92,9 +92,9 @@ module Square
92
92
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
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
 
@@ -112,9 +112,9 @@ module Square
112
112
  .header_param(new_parameter('application/json', key: 'accept'))
113
113
  .auth(Single.new('global')))
114
114
  .response(new_response_handler
115
- .deserializer(APIHelper.method(:json_deserialize))
116
- .is_api_response(true)
117
- .convertor(ApiResponse.method(:create)))
115
+ .deserializer(APIHelper.method(:json_deserialize))
116
+ .is_api_response(true)
117
+ .convertor(ApiResponse.method(:create)))
118
118
  .execute
119
119
  end
120
120
  end
@@ -17,9 +17,9 @@ module Square
17
17
  .header_param(new_parameter('application/json', key: 'accept'))
18
18
  .auth(Single.new('global')))
19
19
  .response(new_response_handler
20
- .deserializer(APIHelper.method(:json_deserialize))
21
- .is_api_response(true)
22
- .convertor(ApiResponse.method(:create)))
20
+ .deserializer(APIHelper.method(:json_deserialize))
21
+ .is_api_response(true)
22
+ .convertor(ApiResponse.method(:create)))
23
23
  .execute
24
24
  end
25
25
  end
@@ -22,9 +22,9 @@ module Square
22
22
  .header_param(new_parameter('application/json', key: 'accept'))
23
23
  .auth(Single.new('global')))
24
24
  .response(new_response_handler
25
- .deserializer(APIHelper.method(:json_deserialize))
26
- .is_api_response(true)
27
- .convertor(ApiResponse.method(:create)))
25
+ .deserializer(APIHelper.method(:json_deserialize))
26
+ .is_api_response(true)
27
+ .convertor(ApiResponse.method(:create)))
28
28
  .execute
29
29
  end
30
30
 
@@ -51,9 +51,9 @@ module Square
51
51
  .header_param(new_parameter('application/json', key: 'accept'))
52
52
  .auth(Single.new('global')))
53
53
  .response(new_response_handler
54
- .deserializer(APIHelper.method(:json_deserialize))
55
- .is_api_response(true)
56
- .convertor(ApiResponse.method(:create)))
54
+ .deserializer(APIHelper.method(:json_deserialize))
55
+ .is_api_response(true)
56
+ .convertor(ApiResponse.method(:create)))
57
57
  .execute
58
58
  end
59
59
 
@@ -89,9 +89,9 @@ module Square
89
89
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
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
  end
@@ -26,9 +26,9 @@ module Square
26
26
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
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
 
@@ -52,9 +52,9 @@ module Square
52
52
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
53
53
  .auth(Single.new('global')))
54
54
  .response(new_response_handler
55
- .deserializer(APIHelper.method(:json_deserialize))
56
- .is_api_response(true)
57
- .convertor(ApiResponse.method(:create)))
55
+ .deserializer(APIHelper.method(:json_deserialize))
56
+ .is_api_response(true)
57
+ .convertor(ApiResponse.method(:create)))
58
58
  .execute
59
59
  end
60
60
 
@@ -86,9 +86,9 @@ module Square
86
86
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
87
87
  .auth(Single.new('global')))
88
88
  .response(new_response_handler
89
- .deserializer(APIHelper.method(:json_deserialize))
90
- .is_api_response(true)
91
- .convertor(ApiResponse.method(:create)))
89
+ .deserializer(APIHelper.method(:json_deserialize))
90
+ .is_api_response(true)
91
+ .convertor(ApiResponse.method(:create)))
92
92
  .execute
93
93
  end
94
94
 
@@ -112,9 +112,9 @@ module Square
112
112
  .header_param(new_parameter('application/json', key: 'accept'))
113
113
  .auth(Single.new('global')))
114
114
  .response(new_response_handler
115
- .deserializer(APIHelper.method(:json_deserialize))
116
- .is_api_response(true)
117
- .convertor(ApiResponse.method(:create)))
115
+ .deserializer(APIHelper.method(:json_deserialize))
116
+ .is_api_response(true)
117
+ .convertor(ApiResponse.method(:create)))
118
118
  .execute
119
119
  end
120
120
 
@@ -141,9 +141,9 @@ module Square
141
141
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
142
142
  .auth(Single.new('global')))
143
143
  .response(new_response_handler
144
- .deserializer(APIHelper.method(:json_deserialize))
145
- .is_api_response(true)
146
- .convertor(ApiResponse.method(:create)))
144
+ .deserializer(APIHelper.method(:json_deserialize))
145
+ .is_api_response(true)
146
+ .convertor(ApiResponse.method(:create)))
147
147
  .execute
148
148
  end
149
149
 
@@ -166,9 +166,9 @@ module Square
166
166
  .header_param(new_parameter('application/json', key: 'accept'))
167
167
  .auth(Single.new('global')))
168
168
  .response(new_response_handler
169
- .deserializer(APIHelper.method(:json_deserialize))
170
- .is_api_response(true)
171
- .convertor(ApiResponse.method(:create)))
169
+ .deserializer(APIHelper.method(:json_deserialize))
170
+ .is_api_response(true)
171
+ .convertor(ApiResponse.method(:create)))
172
172
  .execute
173
173
  end
174
174
 
@@ -196,9 +196,9 @@ module Square
196
196
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
197
197
  .auth(Single.new('global')))
198
198
  .response(new_response_handler
199
- .deserializer(APIHelper.method(:json_deserialize))
200
- .is_api_response(true)
201
- .convertor(ApiResponse.method(:create)))
199
+ .deserializer(APIHelper.method(:json_deserialize))
200
+ .is_api_response(true)
201
+ .convertor(ApiResponse.method(:create)))
202
202
  .execute
203
203
  end
204
204
 
@@ -219,9 +219,9 @@ module Square
219
219
  .header_param(new_parameter('application/json', key: 'accept'))
220
220
  .auth(Single.new('global')))
221
221
  .response(new_response_handler
222
- .deserializer(APIHelper.method(:json_deserialize))
223
- .is_api_response(true)
224
- .convertor(ApiResponse.method(:create)))
222
+ .deserializer(APIHelper.method(:json_deserialize))
223
+ .is_api_response(true)
224
+ .convertor(ApiResponse.method(:create)))
225
225
  .execute
226
226
  end
227
227
 
@@ -254,9 +254,9 @@ module Square
254
254
  .header_param(new_parameter('application/json', key: 'accept'))
255
255
  .auth(Single.new('global')))
256
256
  .response(new_response_handler
257
- .deserializer(APIHelper.method(:json_deserialize))
258
- .is_api_response(true)
259
- .convertor(ApiResponse.method(:create)))
257
+ .deserializer(APIHelper.method(:json_deserialize))
258
+ .is_api_response(true)
259
+ .convertor(ApiResponse.method(:create)))
260
260
  .execute
261
261
  end
262
262
 
@@ -281,9 +281,9 @@ module Square
281
281
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
282
282
  .auth(Single.new('global')))
283
283
  .response(new_response_handler
284
- .deserializer(APIHelper.method(:json_deserialize))
285
- .is_api_response(true)
286
- .convertor(ApiResponse.method(:create)))
284
+ .deserializer(APIHelper.method(:json_deserialize))
285
+ .is_api_response(true)
286
+ .convertor(ApiResponse.method(:create)))
287
287
  .execute
288
288
  end
289
289
 
@@ -309,9 +309,9 @@ module Square
309
309
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
310
310
  .auth(Single.new('global')))
311
311
  .response(new_response_handler
312
- .deserializer(APIHelper.method(:json_deserialize))
313
- .is_api_response(true)
314
- .convertor(ApiResponse.method(:create)))
312
+ .deserializer(APIHelper.method(:json_deserialize))
313
+ .is_api_response(true)
314
+ .convertor(ApiResponse.method(:create)))
315
315
  .execute
316
316
  end
317
317
 
@@ -340,9 +340,9 @@ module Square
340
340
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
341
341
  .auth(Single.new('global')))
342
342
  .response(new_response_handler
343
- .deserializer(APIHelper.method(:json_deserialize))
344
- .is_api_response(true)
345
- .convertor(ApiResponse.method(:create)))
343
+ .deserializer(APIHelper.method(:json_deserialize))
344
+ .is_api_response(true)
345
+ .convertor(ApiResponse.method(:create)))
346
346
  .execute
347
347
  end
348
348
  end
@@ -24,9 +24,9 @@ module Square
24
24
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
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
 
@@ -55,9 +55,9 @@ module Square
55
55
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
56
56
  .auth(Single.new('global')))
57
57
  .response(new_response_handler
58
- .deserializer(APIHelper.method(:json_deserialize))
59
- .is_api_response(true)
60
- .convertor(ApiResponse.method(:create)))
58
+ .deserializer(APIHelper.method(:json_deserialize))
59
+ .is_api_response(true)
60
+ .convertor(ApiResponse.method(:create)))
61
61
  .execute
62
62
  end
63
63
 
@@ -86,9 +86,9 @@ module Square
86
86
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
87
87
  .auth(Single.new('global')))
88
88
  .response(new_response_handler
89
- .deserializer(APIHelper.method(:json_deserialize))
90
- .is_api_response(true)
91
- .convertor(ApiResponse.method(:create)))
89
+ .deserializer(APIHelper.method(:json_deserialize))
90
+ .is_api_response(true)
91
+ .convertor(ApiResponse.method(:create)))
92
92
  .execute
93
93
  end
94
94
 
@@ -111,9 +111,9 @@ module Square
111
111
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
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
 
@@ -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
 
@@ -165,9 +165,9 @@ module Square
165
165
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
166
166
  .auth(Single.new('global')))
167
167
  .response(new_response_handler
168
- .deserializer(APIHelper.method(:json_deserialize))
169
- .is_api_response(true)
170
- .convertor(ApiResponse.method(:create)))
168
+ .deserializer(APIHelper.method(:json_deserialize))
169
+ .is_api_response(true)
170
+ .convertor(ApiResponse.method(:create)))
171
171
  .execute
172
172
  end
173
173
 
@@ -189,9 +189,9 @@ module Square
189
189
  .header_param(new_parameter('application/json', key: 'accept'))
190
190
  .auth(Single.new('global')))
191
191
  .response(new_response_handler
192
- .deserializer(APIHelper.method(:json_deserialize))
193
- .is_api_response(true)
194
- .convertor(ApiResponse.method(:create)))
192
+ .deserializer(APIHelper.method(:json_deserialize))
193
+ .is_api_response(true)
194
+ .convertor(ApiResponse.method(:create)))
195
195
  .execute
196
196
  end
197
197
 
@@ -223,9 +223,9 @@ module Square
223
223
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
224
224
  .auth(Single.new('global')))
225
225
  .response(new_response_handler
226
- .deserializer(APIHelper.method(:json_deserialize))
227
- .is_api_response(true)
228
- .convertor(ApiResponse.method(:create)))
226
+ .deserializer(APIHelper.method(:json_deserialize))
227
+ .is_api_response(true)
228
+ .convertor(ApiResponse.method(:create)))
229
229
  .execute
230
230
  end
231
231
  end