square.rb 33.0.0.20231018 → 42.1.0.20250416

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/lib/square/api/apple_pay_api.rb +15 -11
  4. data/lib/square/api/bank_accounts_api.rb +12 -12
  5. data/lib/square/api/base_api.rb +2 -1
  6. data/lib/square/api/booking_custom_attributes_api.rb +44 -44
  7. data/lib/square/api/bookings_api.rb +53 -53
  8. data/lib/square/api/cards_api.rb +16 -16
  9. data/lib/square/api/cash_drawers_api.rb +12 -12
  10. data/lib/square/api/catalog_api.rb +67 -57
  11. data/lib/square/api/checkout_api.rb +111 -26
  12. data/lib/square/api/customer_custom_attributes_api.rb +40 -40
  13. data/lib/square/api/customer_groups_api.rb +20 -20
  14. data/lib/square/api/customer_segments_api.rb +8 -8
  15. data/lib/square/api/customers_api.rb +144 -54
  16. data/lib/square/api/devices_api.rb +20 -20
  17. data/lib/square/api/disputes_api.rb +36 -36
  18. data/lib/square/api/employees_api.rb +8 -8
  19. data/lib/square/api/events_api.rb +84 -0
  20. data/lib/square/api/gift_card_activities_api.rb +10 -11
  21. data/lib/square/api/gift_cards_api.rb +36 -33
  22. data/lib/square/api/inventory_api.rb +52 -52
  23. data/lib/square/api/invoices_api.rb +109 -41
  24. data/lib/square/api/labor_api.rb +81 -80
  25. data/lib/square/api/location_custom_attributes_api.rb +44 -44
  26. data/lib/square/api/locations_api.rb +18 -17
  27. data/lib/square/api/loyalty_api.rb +72 -72
  28. data/lib/square/api/merchant_custom_attributes_api.rb +44 -44
  29. data/lib/square/api/merchants_api.rb +8 -8
  30. data/lib/square/api/mobile_authorization_api.rb +4 -4
  31. data/lib/square/api/o_auth_api.rb +15 -69
  32. data/lib/square/api/order_custom_attributes_api.rb +44 -44
  33. data/lib/square/api/orders_api.rb +32 -32
  34. data/lib/square/api/payments_api.rb +67 -31
  35. data/lib/square/api/payouts_api.rb +12 -12
  36. data/lib/square/api/refunds_api.rb +31 -13
  37. data/lib/square/api/sites_api.rb +4 -4
  38. data/lib/square/api/snippets_api.rb +12 -12
  39. data/lib/square/api/subscriptions_api.rb +48 -48
  40. data/lib/square/api/team_api.rb +146 -40
  41. data/lib/square/api/terminal_api.rb +95 -53
  42. data/lib/square/api/transactions_api.rb +16 -16
  43. data/lib/square/api/v1_transactions_api.rb +13 -292
  44. data/lib/square/api/vendors_api.rb +28 -28
  45. data/lib/square/api/webhook_subscriptions_api.rb +32 -32
  46. data/lib/square/client.rb +32 -24
  47. data/lib/square/configuration.rb +43 -15
  48. data/lib/square/http/api_response.rb +1 -1
  49. data/lib/square/http/auth/o_auth2.rb +21 -2
  50. data/lib/square.rb +4 -3
  51. data/test/api/api_test_base.rb +1 -1
  52. data/test/api/test_locations_api.rb +1 -1
  53. data/test/api/test_refunds_api.rb +4 -1
  54. data/test/webhooks/test_webhooks_helper.rb +17 -0
  55. metadata +12 -17
@@ -26,7 +26,7 @@ module Square
26
26
  # @param [String] start_at_max Optional parameter: The RFC 3339 timestamp
27
27
  # specifying the latest of the start time. If this is not set, the time of
28
28
  # 31 days after `start_at_min` is used.
29
- # @return [ListBookingsResponse Hash] response from the API call
29
+ # @return [ApiResponse] the complete http response with raw body and status code.
30
30
  def list_bookings(limit: nil,
31
31
  cursor: nil,
32
32
  customer_id: nil,
@@ -48,9 +48,9 @@ module Square
48
48
  .header_param(new_parameter('application/json', key: 'accept'))
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
 
@@ -58,7 +58,7 @@ module Square
58
58
  # The required input must include the following:
59
59
  # - `Booking.location_id`
60
60
  # - `Booking.start_at`
61
- # - `Booking.team_member_id`
61
+ # - `Booking.AppointmentSegment.team_member_id`
62
62
  # - `Booking.AppointmentSegment.service_variation_id`
63
63
  # - `Booking.AppointmentSegment.service_variation_version`
64
64
  # To call this endpoint with buyer-level permissions, set
@@ -71,7 +71,7 @@ module Square
71
71
  # @param [CreateBookingRequest] body Required parameter: An object
72
72
  # containing the fields to POST for the request. See the corresponding
73
73
  # object definition for field details.
74
- # @return [CreateBookingResponse Hash] response from the API call
74
+ # @return [ApiResponse] the complete http response with raw body and status code.
75
75
  def create_booking(body:)
76
76
  new_api_call_builder
77
77
  .request(new_request_builder(HttpMethodEnum::POST,
@@ -83,9 +83,9 @@ module Square
83
83
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
84
84
  .auth(Single.new('global')))
85
85
  .response(new_response_handler
86
- .deserializer(APIHelper.method(:json_deserialize))
87
- .is_api_response(true)
88
- .convertor(ApiResponse.method(:create)))
86
+ .deserializer(APIHelper.method(:json_deserialize))
87
+ .is_api_response(true)
88
+ .convertor(ApiResponse.method(:create)))
89
89
  .execute
90
90
  end
91
91
 
@@ -97,7 +97,7 @@ module Square
97
97
  # @param [SearchAvailabilityRequest] body Required parameter: An object
98
98
  # containing the fields to POST for the request. See the corresponding
99
99
  # object definition for field details.
100
- # @return [SearchAvailabilityResponse Hash] response from the API call
100
+ # @return [ApiResponse] the complete http response with raw body and status code.
101
101
  def search_availability(body:)
102
102
  new_api_call_builder
103
103
  .request(new_request_builder(HttpMethodEnum::POST,
@@ -109,9 +109,9 @@ module Square
109
109
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
110
110
  .auth(Single.new('global')))
111
111
  .response(new_response_handler
112
- .deserializer(APIHelper.method(:json_deserialize))
113
- .is_api_response(true)
114
- .convertor(ApiResponse.method(:create)))
112
+ .deserializer(APIHelper.method(:json_deserialize))
113
+ .is_api_response(true)
114
+ .convertor(ApiResponse.method(:create)))
115
115
  .execute
116
116
  end
117
117
 
@@ -123,7 +123,7 @@ module Square
123
123
  # @param [BulkRetrieveBookingsRequest] body Required parameter: An object
124
124
  # containing the fields to POST for the request. See the corresponding
125
125
  # object definition for field details.
126
- # @return [BulkRetrieveBookingsResponse Hash] response from the API call
126
+ # @return [ApiResponse] the complete http response with raw body and status code.
127
127
  def bulk_retrieve_bookings(body:)
128
128
  new_api_call_builder
129
129
  .request(new_request_builder(HttpMethodEnum::POST,
@@ -135,14 +135,14 @@ module Square
135
135
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
136
136
  .auth(Single.new('global')))
137
137
  .response(new_response_handler
138
- .deserializer(APIHelper.method(:json_deserialize))
139
- .is_api_response(true)
140
- .convertor(ApiResponse.method(:create)))
138
+ .deserializer(APIHelper.method(:json_deserialize))
139
+ .is_api_response(true)
140
+ .convertor(ApiResponse.method(:create)))
141
141
  .execute
142
142
  end
143
143
 
144
144
  # Retrieves a seller's booking profile.
145
- # @return [RetrieveBusinessBookingProfileResponse Hash] response from the API call
145
+ # @return [ApiResponse] the complete http response with raw body and status code.
146
146
  def retrieve_business_booking_profile
147
147
  new_api_call_builder
148
148
  .request(new_request_builder(HttpMethodEnum::GET,
@@ -151,9 +151,9 @@ module Square
151
151
  .header_param(new_parameter('application/json', key: 'accept'))
152
152
  .auth(Single.new('global')))
153
153
  .response(new_response_handler
154
- .deserializer(APIHelper.method(:json_deserialize))
155
- .is_api_response(true)
156
- .convertor(ApiResponse.method(:create)))
154
+ .deserializer(APIHelper.method(:json_deserialize))
155
+ .is_api_response(true)
156
+ .convertor(ApiResponse.method(:create)))
157
157
  .execute
158
158
  end
159
159
 
@@ -163,7 +163,7 @@ module Square
163
163
  # @param [String] cursor Optional parameter: The pagination cursor from the
164
164
  # preceding response to return the next page of the results. Do not set this
165
165
  # when retrieving the first page of the results.
166
- # @return [ListLocationBookingProfilesResponse Hash] response from the API call
166
+ # @return [ApiResponse] the complete http response with raw body and status code.
167
167
  def list_location_booking_profiles(limit: nil,
168
168
  cursor: nil)
169
169
  new_api_call_builder
@@ -175,16 +175,16 @@ module Square
175
175
  .header_param(new_parameter('application/json', key: 'accept'))
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
 
184
184
  # Retrieves a seller's location booking profile.
185
185
  # @param [String] location_id Required parameter: The ID of the location to
186
186
  # retrieve the booking profile.
187
- # @return [RetrieveLocationBookingProfileResponse Hash] response from the API call
187
+ # @return [ApiResponse] the complete http response with raw body and status code.
188
188
  def retrieve_location_booking_profile(location_id:)
189
189
  new_api_call_builder
190
190
  .request(new_request_builder(HttpMethodEnum::GET,
@@ -195,9 +195,9 @@ module Square
195
195
  .header_param(new_parameter('application/json', key: 'accept'))
196
196
  .auth(Single.new('global')))
197
197
  .response(new_response_handler
198
- .deserializer(APIHelper.method(:json_deserialize))
199
- .is_api_response(true)
200
- .convertor(ApiResponse.method(:create)))
198
+ .deserializer(APIHelper.method(:json_deserialize))
199
+ .is_api_response(true)
200
+ .convertor(ApiResponse.method(:create)))
201
201
  .execute
202
202
  end
203
203
 
@@ -213,7 +213,7 @@ module Square
213
213
  # @param [String] location_id Optional parameter: Indicates whether to
214
214
  # include only team members enabled at the given location in the returned
215
215
  # result.
216
- # @return [ListTeamMemberBookingProfilesResponse Hash] response from the API call
216
+ # @return [ApiResponse] the complete http response with raw body and status code.
217
217
  def list_team_member_booking_profiles(bookable_only: false,
218
218
  limit: nil,
219
219
  cursor: nil,
@@ -229,9 +229,9 @@ module Square
229
229
  .header_param(new_parameter('application/json', key: 'accept'))
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
 
@@ -239,7 +239,7 @@ module Square
239
239
  # @param [BulkRetrieveTeamMemberBookingProfilesRequest] body Required
240
240
  # parameter: An object containing the fields to POST for the request. See
241
241
  # the corresponding object definition for field details.
242
- # @return [BulkRetrieveTeamMemberBookingProfilesResponse Hash] response from the API call
242
+ # @return [ApiResponse] the complete http response with raw body and status code.
243
243
  def bulk_retrieve_team_member_booking_profiles(body:)
244
244
  new_api_call_builder
245
245
  .request(new_request_builder(HttpMethodEnum::POST,
@@ -251,16 +251,16 @@ module Square
251
251
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
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
 
260
260
  # Retrieves a team member's booking profile.
261
261
  # @param [String] team_member_id Required parameter: The ID of the team
262
262
  # member to retrieve.
263
- # @return [RetrieveTeamMemberBookingProfileResponse Hash] response from the API call
263
+ # @return [ApiResponse] the complete http response with raw body and status code.
264
264
  def retrieve_team_member_booking_profile(team_member_id:)
265
265
  new_api_call_builder
266
266
  .request(new_request_builder(HttpMethodEnum::GET,
@@ -271,9 +271,9 @@ module Square
271
271
  .header_param(new_parameter('application/json', key: 'accept'))
272
272
  .auth(Single.new('global')))
273
273
  .response(new_response_handler
274
- .deserializer(APIHelper.method(:json_deserialize))
275
- .is_api_response(true)
276
- .convertor(ApiResponse.method(:create)))
274
+ .deserializer(APIHelper.method(:json_deserialize))
275
+ .is_api_response(true)
276
+ .convertor(ApiResponse.method(:create)))
277
277
  .execute
278
278
  end
279
279
 
@@ -285,7 +285,7 @@ module Square
285
285
  # @param [String] booking_id Required parameter: The ID of the
286
286
  # [Booking](entity:Booking) object representing the to-be-retrieved
287
287
  # booking.
288
- # @return [RetrieveBookingResponse Hash] response from the API call
288
+ # @return [ApiResponse] the complete http response with raw body and status code.
289
289
  def retrieve_booking(booking_id:)
290
290
  new_api_call_builder
291
291
  .request(new_request_builder(HttpMethodEnum::GET,
@@ -296,9 +296,9 @@ module Square
296
296
  .header_param(new_parameter('application/json', key: 'accept'))
297
297
  .auth(Single.new('global')))
298
298
  .response(new_response_handler
299
- .deserializer(APIHelper.method(:json_deserialize))
300
- .is_api_response(true)
301
- .convertor(ApiResponse.method(:create)))
299
+ .deserializer(APIHelper.method(:json_deserialize))
300
+ .is_api_response(true)
301
+ .convertor(ApiResponse.method(:create)))
302
302
  .execute
303
303
  end
304
304
 
@@ -315,7 +315,7 @@ module Square
315
315
  # @param [UpdateBookingRequest] body Required parameter: An object
316
316
  # containing the fields to POST for the request. See the corresponding
317
317
  # object definition for field details.
318
- # @return [UpdateBookingResponse Hash] response from the API call
318
+ # @return [ApiResponse] the complete http response with raw body and status code.
319
319
  def update_booking(booking_id:,
320
320
  body:)
321
321
  new_api_call_builder
@@ -330,9 +330,9 @@ module Square
330
330
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
331
331
  .auth(Single.new('global')))
332
332
  .response(new_response_handler
333
- .deserializer(APIHelper.method(:json_deserialize))
334
- .is_api_response(true)
335
- .convertor(ApiResponse.method(:create)))
333
+ .deserializer(APIHelper.method(:json_deserialize))
334
+ .is_api_response(true)
335
+ .convertor(ApiResponse.method(:create)))
336
336
  .execute
337
337
  end
338
338
 
@@ -350,7 +350,7 @@ module Square
350
350
  # @param [CancelBookingRequest] body Required parameter: An object
351
351
  # containing the fields to POST for the request. See the corresponding
352
352
  # object definition for field details.
353
- # @return [CancelBookingResponse Hash] response from the API call
353
+ # @return [ApiResponse] the complete http response with raw body and status code.
354
354
  def cancel_booking(booking_id:,
355
355
  body:)
356
356
  new_api_call_builder
@@ -365,9 +365,9 @@ module Square
365
365
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
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
  end
@@ -19,7 +19,7 @@ module Square
19
19
  # @param [SortOrder] sort_order Optional parameter: Sorts the returned list
20
20
  # by when the card was created with the specified order. This field defaults
21
21
  # to ASC.
22
- # @return [ListCardsResponse Hash] response from the API call
22
+ # @return [ApiResponse] the complete http response with raw body and status code.
23
23
  def list_cards(cursor: nil,
24
24
  customer_id: nil,
25
25
  include_disabled: false,
@@ -37,9 +37,9 @@ module Square
37
37
  .header_param(new_parameter('application/json', key: 'accept'))
38
38
  .auth(Single.new('global')))
39
39
  .response(new_response_handler
40
- .deserializer(APIHelper.method(:json_deserialize))
41
- .is_api_response(true)
42
- .convertor(ApiResponse.method(:create)))
40
+ .deserializer(APIHelper.method(:json_deserialize))
41
+ .is_api_response(true)
42
+ .convertor(ApiResponse.method(:create)))
43
43
  .execute
44
44
  end
45
45
 
@@ -47,7 +47,7 @@ module Square
47
47
  # @param [CreateCardRequest] body Required parameter: An object containing
48
48
  # the fields to POST for the request. See the corresponding object
49
49
  # definition for field details.
50
- # @return [CreateCardResponse Hash] response from the API call
50
+ # @return [ApiResponse] the complete http response with raw body and status code.
51
51
  def create_card(body:)
52
52
  new_api_call_builder
53
53
  .request(new_request_builder(HttpMethodEnum::POST,
@@ -59,16 +59,16 @@ 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
 
68
68
  # Retrieves details for a specific Card.
69
69
  # @param [String] card_id Required parameter: Unique ID for the desired
70
70
  # Card.
71
- # @return [RetrieveCardResponse Hash] response from the API call
71
+ # @return [ApiResponse] the complete http response with raw body and status code.
72
72
  def retrieve_card(card_id:)
73
73
  new_api_call_builder
74
74
  .request(new_request_builder(HttpMethodEnum::GET,
@@ -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
 
@@ -89,7 +89,7 @@ module Square
89
89
  # Disabling an already disabled card is allowed but has no effect.
90
90
  # @param [String] card_id Required parameter: Unique ID for the desired
91
91
  # Card.
92
- # @return [DisableCardResponse Hash] response from the API call
92
+ # @return [ApiResponse] the complete http response with raw body and status code.
93
93
  def disable_card(card_id:)
94
94
  new_api_call_builder
95
95
  .request(new_request_builder(HttpMethodEnum::POST,
@@ -100,9 +100,9 @@ module Square
100
100
  .header_param(new_parameter('application/json', key: 'accept'))
101
101
  .auth(Single.new('global')))
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
@@ -16,7 +16,7 @@ module Square
16
16
  # events in a page of results (200 by default, 1000 max).
17
17
  # @param [String] cursor Optional parameter: Opaque cursor for fetching the
18
18
  # next page of results.
19
- # @return [ListCashDrawerShiftsResponse Hash] response from the API call
19
+ # @return [ApiResponse] the complete http response with raw body and status code.
20
20
  def list_cash_drawer_shifts(location_id:,
21
21
  sort_order: nil,
22
22
  begin_time: nil,
@@ -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
 
@@ -48,7 +48,7 @@ module Square
48
48
  # @param [String] location_id Required parameter: The ID of the location to
49
49
  # retrieve cash drawer shifts from.
50
50
  # @param [String] shift_id Required parameter: The shift ID.
51
- # @return [RetrieveCashDrawerShiftResponse Hash] response from the API call
51
+ # @return [ApiResponse] the complete http response with raw body and status code.
52
52
  def retrieve_cash_drawer_shift(location_id:,
53
53
  shift_id:)
54
54
  new_api_call_builder
@@ -61,9 +61,9 @@ module Square
61
61
  .header_param(new_parameter('application/json', key: 'accept'))
62
62
  .auth(Single.new('global')))
63
63
  .response(new_response_handler
64
- .deserializer(APIHelper.method(:json_deserialize))
65
- .is_api_response(true)
66
- .convertor(ApiResponse.method(:create)))
64
+ .deserializer(APIHelper.method(:json_deserialize))
65
+ .is_api_response(true)
66
+ .convertor(ApiResponse.method(:create)))
67
67
  .execute
68
68
  end
69
69
 
@@ -75,7 +75,7 @@ module Square
75
75
  # returned in a page of results (200 by default, 1000 max).
76
76
  # @param [String] cursor Optional parameter: Opaque cursor for fetching the
77
77
  # next page of results.
78
- # @return [ListCashDrawerShiftEventsResponse Hash] response from the API call
78
+ # @return [ApiResponse] the complete http response with raw body and status code.
79
79
  def list_cash_drawer_shift_events(location_id:,
80
80
  shift_id:,
81
81
  limit: nil,
@@ -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
  end