clayful 2.4.1 → 2.5.0

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.
data/lib/models/order.rb CHANGED
@@ -13,713 +13,713 @@ module Clayful
13
13
  @@path
14
14
  end
15
15
 
16
- def self.list(*args)
16
+ def self.accept_refund(*args)
17
17
 
18
18
  Clayful.call_api({
19
19
  'model_name' => @@name,
20
- 'method_name' => 'list',
21
- 'http_method' => 'GET',
22
- 'path' => '/v1/orders',
23
- 'params' => [],
20
+ 'method_name' => 'accept_refund',
21
+ 'http_method' => 'POST',
22
+ 'path' => '/v1/orders/{orderId}/refunds/{refundId}/accepted',
23
+ 'params' => ['orderId', 'refundId', ],
24
+ 'without_payload' => true,
24
25
  'args' => args
25
26
  })
26
27
 
27
28
  end
28
29
 
29
- def self.list_for_me(*args)
30
+ def self.authenticate(*args)
30
31
 
31
32
  Clayful.call_api({
32
33
  'model_name' => @@name,
33
- 'method_name' => 'list_for_me',
34
- 'http_method' => 'GET',
35
- 'path' => '/v1/me/orders',
36
- 'params' => [],
34
+ 'method_name' => 'authenticate',
35
+ 'http_method' => 'POST',
36
+ 'path' => '/v1/orders/{orderId}/auth',
37
+ 'params' => ['orderId', ],
37
38
  'args' => args
38
39
  })
39
40
 
40
41
  end
41
42
 
42
- def self.count(*args)
43
+ def self.cancel(*args)
43
44
 
44
45
  Clayful.call_api({
45
46
  'model_name' => @@name,
46
- 'method_name' => 'count',
47
- 'http_method' => 'GET',
48
- 'path' => '/v1/orders/count',
49
- 'params' => [],
47
+ 'method_name' => 'cancel',
48
+ 'http_method' => 'POST',
49
+ 'path' => '/v1/orders/{orderId}/cancellation',
50
+ 'params' => ['orderId', ],
50
51
  'args' => args
51
52
  })
52
53
 
53
54
  end
54
55
 
55
- def self.get(*args)
56
+ def self.cancel_for_me(*args)
56
57
 
57
58
  Clayful.call_api({
58
59
  'model_name' => @@name,
59
- 'method_name' => 'get',
60
- 'http_method' => 'GET',
61
- 'path' => '/v1/orders/{orderId}',
60
+ 'method_name' => 'cancel_for_me',
61
+ 'http_method' => 'POST',
62
+ 'path' => '/v1/me/orders/{orderId}/cancellation',
62
63
  'params' => ['orderId', ],
63
64
  'args' => args
64
65
  })
65
66
 
66
67
  end
67
68
 
68
- def self.count_for_me(*args)
69
+ def self.cancel_refund(*args)
69
70
 
70
71
  Clayful.call_api({
71
72
  'model_name' => @@name,
72
- 'method_name' => 'count_for_me',
73
- 'http_method' => 'GET',
74
- 'path' => '/v1/me/orders/count',
75
- 'params' => [],
73
+ 'method_name' => 'cancel_refund',
74
+ 'http_method' => 'POST',
75
+ 'path' => '/v1/orders/{orderId}/refunds/{refundId}/cancellation',
76
+ 'params' => ['orderId', 'refundId', ],
76
77
  'args' => args
77
78
  })
78
79
 
79
80
  end
80
81
 
81
- def self.get_for_me(*args)
82
+ def self.cancel_refund_for_me(*args)
82
83
 
83
84
  Clayful.call_api({
84
85
  'model_name' => @@name,
85
- 'method_name' => 'get_for_me',
86
- 'http_method' => 'GET',
87
- 'path' => '/v1/me/orders/{orderId}',
88
- 'params' => ['orderId', ],
86
+ 'method_name' => 'cancel_refund_for_me',
87
+ 'http_method' => 'POST',
88
+ 'path' => '/v1/me/orders/{orderId}/refunds/{refundId}/cancellation',
89
+ 'params' => ['orderId', 'refundId', ],
89
90
  'args' => args
90
91
  })
91
92
 
92
93
  end
93
94
 
94
- def self.list_by_subscription(*args)
95
+ def self.check_ticket(*args)
95
96
 
96
97
  Clayful.call_api({
97
98
  'model_name' => @@name,
98
- 'method_name' => 'list_by_subscription',
99
- 'http_method' => 'GET',
100
- 'path' => '/v1/subscriptions/{subscriptionId}/orders',
101
- 'params' => ['subscriptionId', ],
99
+ 'method_name' => 'check_ticket',
100
+ 'http_method' => 'POST',
101
+ 'path' => '/v1/orders/tickets/{code}/validity',
102
+ 'params' => ['code', ],
102
103
  'args' => args
103
104
  })
104
105
 
105
106
  end
106
107
 
107
- def self.list_by_subscription_for_me(*args)
108
+ def self.count(*args)
108
109
 
109
110
  Clayful.call_api({
110
111
  'model_name' => @@name,
111
- 'method_name' => 'list_by_subscription_for_me',
112
+ 'method_name' => 'count',
112
113
  'http_method' => 'GET',
113
- 'path' => '/v1/me/subscriptions/{subscriptionId}/orders',
114
- 'params' => ['subscriptionId', ],
114
+ 'path' => '/v1/orders/count',
115
+ 'params' => [],
115
116
  'args' => args
116
117
  })
117
118
 
118
119
  end
119
120
 
120
- def self.list_inventory_operations(*args)
121
+ def self.count_for_me(*args)
121
122
 
122
123
  Clayful.call_api({
123
124
  'model_name' => @@name,
124
- 'method_name' => 'list_inventory_operations',
125
+ 'method_name' => 'count_for_me',
125
126
  'http_method' => 'GET',
126
- 'path' => '/v1/orders/{orderId}/inventory/operations',
127
- 'params' => ['orderId', ],
127
+ 'path' => '/v1/me/orders/count',
128
+ 'params' => [],
128
129
  'args' => args
129
130
  })
130
131
 
131
132
  end
132
133
 
133
- def self.mark_as_received(*args)
134
+ def self.create_download_url(*args)
134
135
 
135
136
  Clayful.call_api({
136
137
  'model_name' => @@name,
137
- 'method_name' => 'mark_as_received',
138
+ 'method_name' => 'create_download_url',
138
139
  'http_method' => 'POST',
139
- 'path' => '/v1/orders/{orderId}/received',
140
- 'params' => ['orderId', ],
140
+ 'path' => '/v1/orders/{orderId}/items/{itemId}/download/url',
141
+ 'params' => ['orderId', 'itemId', ],
141
142
  'without_payload' => true,
142
143
  'args' => args
143
144
  })
144
145
 
145
146
  end
146
147
 
147
- def self.create_fulfillment(*args)
148
+ def self.create_download_url_for_me(*args)
148
149
 
149
150
  Clayful.call_api({
150
151
  'model_name' => @@name,
151
- 'method_name' => 'create_fulfillment',
152
+ 'method_name' => 'create_download_url_for_me',
152
153
  'http_method' => 'POST',
153
- 'path' => '/v1/orders/{orderId}/fulfillments',
154
- 'params' => ['orderId', ],
154
+ 'path' => '/v1/me/orders/{orderId}/items/{itemId}/download/url',
155
+ 'params' => ['orderId', 'itemId', ],
156
+ 'without_payload' => true,
155
157
  'args' => args
156
158
  })
157
159
 
158
160
  end
159
161
 
160
- def self.sync_inventory(*args)
162
+ def self.create_fulfillment(*args)
161
163
 
162
164
  Clayful.call_api({
163
165
  'model_name' => @@name,
164
- 'method_name' => 'sync_inventory',
166
+ 'method_name' => 'create_fulfillment',
165
167
  'http_method' => 'POST',
166
- 'path' => '/v1/orders/{orderId}/synced',
168
+ 'path' => '/v1/orders/{orderId}/fulfillments',
167
169
  'params' => ['orderId', ],
168
- 'without_payload' => true,
169
170
  'args' => args
170
171
  })
171
172
 
172
173
  end
173
174
 
174
- def self.mark_as_done(*args)
175
+ def self.delete(*args)
175
176
 
176
177
  Clayful.call_api({
177
178
  'model_name' => @@name,
178
- 'method_name' => 'mark_as_done',
179
- 'http_method' => 'POST',
180
- 'path' => '/v1/orders/{orderId}/done',
179
+ 'method_name' => 'delete',
180
+ 'http_method' => 'DELETE',
181
+ 'path' => '/v1/orders/{orderId}',
181
182
  'params' => ['orderId', ],
182
- 'without_payload' => true,
183
183
  'args' => args
184
184
  })
185
185
 
186
186
  end
187
187
 
188
- def self.request_refund(*args)
188
+ def self.delete_fulfillment(*args)
189
189
 
190
190
  Clayful.call_api({
191
191
  'model_name' => @@name,
192
- 'method_name' => 'request_refund',
193
- 'http_method' => 'POST',
194
- 'path' => '/v1/orders/{orderId}/refunds',
195
- 'params' => ['orderId', ],
192
+ 'method_name' => 'delete_fulfillment',
193
+ 'http_method' => 'DELETE',
194
+ 'path' => '/v1/orders/{orderId}/fulfillments/{fulfillmentId}',
195
+ 'params' => ['orderId', 'fulfillmentId', ],
196
196
  'args' => args
197
197
  })
198
198
 
199
199
  end
200
200
 
201
- def self.cancel(*args)
201
+ def self.delete_inventory_operation(*args)
202
202
 
203
203
  Clayful.call_api({
204
204
  'model_name' => @@name,
205
- 'method_name' => 'cancel',
206
- 'http_method' => 'POST',
207
- 'path' => '/v1/orders/{orderId}/cancellation',
208
- 'params' => ['orderId', ],
205
+ 'method_name' => 'delete_inventory_operation',
206
+ 'http_method' => 'DELETE',
207
+ 'path' => '/v1/orders/{orderId}/inventory/operations/{operationId}',
208
+ 'params' => ['orderId', 'operationId', ],
209
209
  'args' => args
210
210
  })
211
211
 
212
212
  end
213
213
 
214
- def self.authenticate(*args)
214
+ def self.delete_metafield(*args)
215
215
 
216
216
  Clayful.call_api({
217
217
  'model_name' => @@name,
218
- 'method_name' => 'authenticate',
219
- 'http_method' => 'POST',
220
- 'path' => '/v1/orders/{orderId}/auth',
221
- 'params' => ['orderId', ],
218
+ 'method_name' => 'delete_metafield',
219
+ 'http_method' => 'DELETE',
220
+ 'path' => '/v1/orders/{orderId}/meta/{field}',
221
+ 'params' => ['orderId', 'field', ],
222
222
  'args' => args
223
223
  })
224
224
 
225
225
  end
226
226
 
227
- def self.mark_as_received_for_me(*args)
227
+ def self.delete_refund(*args)
228
228
 
229
229
  Clayful.call_api({
230
230
  'model_name' => @@name,
231
- 'method_name' => 'mark_as_received_for_me',
232
- 'http_method' => 'POST',
233
- 'path' => '/v1/me/orders/{orderId}/received',
234
- 'params' => ['orderId', ],
235
- 'without_payload' => true,
231
+ 'method_name' => 'delete_refund',
232
+ 'http_method' => 'DELETE',
233
+ 'path' => '/v1/orders/{orderId}/refunds/{refundId}',
234
+ 'params' => ['orderId', 'refundId', ],
236
235
  'args' => args
237
236
  })
238
237
 
239
238
  end
240
239
 
241
- def self.request_refund_for_me(*args)
240
+ def self.get(*args)
242
241
 
243
242
  Clayful.call_api({
244
243
  'model_name' => @@name,
245
- 'method_name' => 'request_refund_for_me',
246
- 'http_method' => 'POST',
247
- 'path' => '/v1/me/orders/{orderId}/refunds',
244
+ 'method_name' => 'get',
245
+ 'http_method' => 'GET',
246
+ 'path' => '/v1/orders/{orderId}',
248
247
  'params' => ['orderId', ],
249
248
  'args' => args
250
249
  })
251
250
 
252
251
  end
253
252
 
254
- def self.cancel_for_me(*args)
253
+ def self.get_for_me(*args)
255
254
 
256
255
  Clayful.call_api({
257
256
  'model_name' => @@name,
258
- 'method_name' => 'cancel_for_me',
259
- 'http_method' => 'POST',
260
- 'path' => '/v1/me/orders/{orderId}/cancellation',
257
+ 'method_name' => 'get_for_me',
258
+ 'http_method' => 'GET',
259
+ 'path' => '/v1/me/orders/{orderId}',
261
260
  'params' => ['orderId', ],
262
261
  'args' => args
263
262
  })
264
263
 
265
264
  end
266
265
 
267
- def self.use_ticket(*args)
266
+ def self.increase_metafield(*args)
268
267
 
269
268
  Clayful.call_api({
270
269
  'model_name' => @@name,
271
- 'method_name' => 'use_ticket',
270
+ 'method_name' => 'increase_metafield',
272
271
  'http_method' => 'POST',
273
- 'path' => '/v1/orders/tickets/{code}/used',
274
- 'params' => ['code', ],
275
- 'without_payload' => true,
272
+ 'path' => '/v1/orders/{orderId}/meta/{field}/inc',
273
+ 'params' => ['orderId', 'field', ],
276
274
  'args' => args
277
275
  })
278
276
 
279
277
  end
280
278
 
281
- def self.check_ticket(*args)
279
+ def self.list(*args)
282
280
 
283
281
  Clayful.call_api({
284
282
  'model_name' => @@name,
285
- 'method_name' => 'check_ticket',
286
- 'http_method' => 'POST',
287
- 'path' => '/v1/orders/tickets/{code}/validity',
288
- 'params' => ['code', ],
283
+ 'method_name' => 'list',
284
+ 'http_method' => 'GET',
285
+ 'path' => '/v1/orders',
286
+ 'params' => [],
289
287
  'args' => args
290
288
  })
291
289
 
292
290
  end
293
291
 
294
- def self.push_to_metafield(*args)
292
+ def self.list_by_subscription(*args)
295
293
 
296
294
  Clayful.call_api({
297
295
  'model_name' => @@name,
298
- 'method_name' => 'push_to_metafield',
299
- 'http_method' => 'POST',
300
- 'path' => '/v1/orders/{orderId}/meta/{field}/push',
301
- 'params' => ['orderId', 'field', ],
296
+ 'method_name' => 'list_by_subscription',
297
+ 'http_method' => 'GET',
298
+ 'path' => '/v1/subscriptions/{subscriptionId}/orders',
299
+ 'params' => ['subscriptionId', ],
302
300
  'args' => args
303
301
  })
304
302
 
305
303
  end
306
304
 
307
- def self.register_payment_method(*args)
305
+ def self.list_by_subscription_for_me(*args)
308
306
 
309
307
  Clayful.call_api({
310
308
  'model_name' => @@name,
311
- 'method_name' => 'register_payment_method',
312
- 'http_method' => 'POST',
313
- 'path' => '/v1/orders/{orderId}/transactions/payments/methods',
314
- 'params' => ['orderId', ],
309
+ 'method_name' => 'list_by_subscription_for_me',
310
+ 'http_method' => 'GET',
311
+ 'path' => '/v1/me/subscriptions/{subscriptionId}/orders',
312
+ 'params' => ['subscriptionId', ],
315
313
  'args' => args
316
314
  })
317
315
 
318
316
  end
319
317
 
320
- def self.increase_metafield(*args)
318
+ def self.list_for_me(*args)
321
319
 
322
320
  Clayful.call_api({
323
321
  'model_name' => @@name,
324
- 'method_name' => 'increase_metafield',
325
- 'http_method' => 'POST',
326
- 'path' => '/v1/orders/{orderId}/meta/{field}/inc',
327
- 'params' => ['orderId', 'field', ],
322
+ 'method_name' => 'list_for_me',
323
+ 'http_method' => 'GET',
324
+ 'path' => '/v1/me/orders',
325
+ 'params' => [],
328
326
  'args' => args
329
327
  })
330
328
 
331
329
  end
332
330
 
333
- def self.restock_refund_items(*args)
331
+ def self.list_inventory_operations(*args)
334
332
 
335
333
  Clayful.call_api({
336
334
  'model_name' => @@name,
337
- 'method_name' => 'restock_refund_items',
338
- 'http_method' => 'POST',
339
- 'path' => '/v1/orders/{orderId}/refunds/{refundId}/restock',
340
- 'params' => ['orderId', 'refundId', ],
335
+ 'method_name' => 'list_inventory_operations',
336
+ 'http_method' => 'GET',
337
+ 'path' => '/v1/orders/{orderId}/inventory/operations',
338
+ 'params' => ['orderId', ],
341
339
  'args' => args
342
340
  })
343
341
 
344
342
  end
345
343
 
346
- def self.pull_from_metafield(*args)
344
+ def self.mark_as_done(*args)
347
345
 
348
346
  Clayful.call_api({
349
347
  'model_name' => @@name,
350
- 'method_name' => 'pull_from_metafield',
348
+ 'method_name' => 'mark_as_done',
351
349
  'http_method' => 'POST',
352
- 'path' => '/v1/orders/{orderId}/meta/{field}/pull',
353
- 'params' => ['orderId', 'field', ],
350
+ 'path' => '/v1/orders/{orderId}/done',
351
+ 'params' => ['orderId', ],
352
+ 'without_payload' => true,
354
353
  'args' => args
355
354
  })
356
355
 
357
356
  end
358
357
 
359
- def self.accept_refund(*args)
358
+ def self.mark_as_not_received(*args)
360
359
 
361
360
  Clayful.call_api({
362
361
  'model_name' => @@name,
363
- 'method_name' => 'accept_refund',
364
- 'http_method' => 'POST',
365
- 'path' => '/v1/orders/{orderId}/refunds/{refundId}/accepted',
366
- 'params' => ['orderId', 'refundId', ],
367
- 'without_payload' => true,
362
+ 'method_name' => 'mark_as_not_received',
363
+ 'http_method' => 'DELETE',
364
+ 'path' => '/v1/orders/{orderId}/received',
365
+ 'params' => ['orderId', ],
368
366
  'args' => args
369
367
  })
370
368
 
371
369
  end
372
370
 
373
- def self.cancel_refund(*args)
371
+ def self.mark_as_not_received_for_me(*args)
374
372
 
375
373
  Clayful.call_api({
376
374
  'model_name' => @@name,
377
- 'method_name' => 'cancel_refund',
378
- 'http_method' => 'POST',
379
- 'path' => '/v1/orders/{orderId}/refunds/{refundId}/cancellation',
380
- 'params' => ['orderId', 'refundId', ],
375
+ 'method_name' => 'mark_as_not_received_for_me',
376
+ 'http_method' => 'DELETE',
377
+ 'path' => '/v1/me/orders/{orderId}/received',
378
+ 'params' => ['orderId', ],
381
379
  'args' => args
382
380
  })
383
381
 
384
382
  end
385
383
 
386
- def self.cancel_refund_for_me(*args)
384
+ def self.mark_as_received(*args)
387
385
 
388
386
  Clayful.call_api({
389
387
  'model_name' => @@name,
390
- 'method_name' => 'cancel_refund_for_me',
388
+ 'method_name' => 'mark_as_received',
391
389
  'http_method' => 'POST',
392
- 'path' => '/v1/me/orders/{orderId}/refunds/{refundId}/cancellation',
393
- 'params' => ['orderId', 'refundId', ],
390
+ 'path' => '/v1/orders/{orderId}/received',
391
+ 'params' => ['orderId', ],
392
+ 'without_payload' => true,
394
393
  'args' => args
395
394
  })
396
395
 
397
396
  end
398
397
 
399
- def self.create_download_url(*args)
398
+ def self.mark_as_received_for_me(*args)
400
399
 
401
400
  Clayful.call_api({
402
401
  'model_name' => @@name,
403
- 'method_name' => 'create_download_url',
402
+ 'method_name' => 'mark_as_received_for_me',
404
403
  'http_method' => 'POST',
405
- 'path' => '/v1/orders/{orderId}/items/{itemId}/download/url',
406
- 'params' => ['orderId', 'itemId', ],
404
+ 'path' => '/v1/me/orders/{orderId}/received',
405
+ 'params' => ['orderId', ],
407
406
  'without_payload' => true,
408
407
  'args' => args
409
408
  })
410
409
 
411
410
  end
412
411
 
413
- def self.restock_all_refund_items(*args)
412
+ def self.mark_as_undone(*args)
414
413
 
415
414
  Clayful.call_api({
416
415
  'model_name' => @@name,
417
- 'method_name' => 'restock_all_refund_items',
418
- 'http_method' => 'POST',
419
- 'path' => '/v1/orders/{orderId}/refunds/{refundId}/restock/all',
420
- 'params' => ['orderId', 'refundId', ],
421
- 'without_payload' => true,
416
+ 'method_name' => 'mark_as_undone',
417
+ 'http_method' => 'DELETE',
418
+ 'path' => '/v1/orders/{orderId}/done',
419
+ 'params' => ['orderId', ],
422
420
  'args' => args
423
421
  })
424
422
 
425
423
  end
426
424
 
427
- def self.create_download_url_for_me(*args)
425
+ def self.pull_from_metafield(*args)
428
426
 
429
427
  Clayful.call_api({
430
428
  'model_name' => @@name,
431
- 'method_name' => 'create_download_url_for_me',
429
+ 'method_name' => 'pull_from_metafield',
432
430
  'http_method' => 'POST',
433
- 'path' => '/v1/me/orders/{orderId}/items/{itemId}/download/url',
434
- 'params' => ['orderId', 'itemId', ],
435
- 'without_payload' => true,
431
+ 'path' => '/v1/orders/{orderId}/meta/{field}/pull',
432
+ 'params' => ['orderId', 'field', ],
436
433
  'args' => args
437
434
  })
438
435
 
439
436
  end
440
437
 
441
- def self.update(*args)
438
+ def self.push_to_metafield(*args)
442
439
 
443
440
  Clayful.call_api({
444
441
  'model_name' => @@name,
445
- 'method_name' => 'update',
446
- 'http_method' => 'PUT',
447
- 'path' => '/v1/orders/{orderId}',
448
- 'params' => ['orderId', ],
442
+ 'method_name' => 'push_to_metafield',
443
+ 'http_method' => 'POST',
444
+ 'path' => '/v1/orders/{orderId}/meta/{field}/push',
445
+ 'params' => ['orderId', 'field', ],
449
446
  'args' => args
450
447
  })
451
448
 
452
449
  end
453
450
 
454
- def self.update_for_me(*args)
451
+ def self.register_payment_method(*args)
455
452
 
456
453
  Clayful.call_api({
457
454
  'model_name' => @@name,
458
- 'method_name' => 'update_for_me',
459
- 'http_method' => 'PUT',
460
- 'path' => '/v1/me/orders/{orderId}',
455
+ 'method_name' => 'register_payment_method',
456
+ 'http_method' => 'POST',
457
+ 'path' => '/v1/orders/{orderId}/transactions/payments/methods',
461
458
  'params' => ['orderId', ],
462
459
  'args' => args
463
460
  })
464
461
 
465
462
  end
466
463
 
467
- def self.update_transactions(*args)
464
+ def self.request_refund(*args)
468
465
 
469
466
  Clayful.call_api({
470
467
  'model_name' => @@name,
471
- 'method_name' => 'update_transactions',
472
- 'http_method' => 'PUT',
473
- 'path' => '/v1/orders/{orderId}/transactions',
468
+ 'method_name' => 'request_refund',
469
+ 'http_method' => 'POST',
470
+ 'path' => '/v1/orders/{orderId}/refunds',
474
471
  'params' => ['orderId', ],
475
472
  'args' => args
476
473
  })
477
474
 
478
475
  end
479
476
 
480
- def self.update_cancellation(*args)
477
+ def self.request_refund_for_me(*args)
481
478
 
482
479
  Clayful.call_api({
483
480
  'model_name' => @@name,
484
- 'method_name' => 'update_cancellation',
485
- 'http_method' => 'PUT',
486
- 'path' => '/v1/orders/{orderId}/cancellation',
481
+ 'method_name' => 'request_refund_for_me',
482
+ 'http_method' => 'POST',
483
+ 'path' => '/v1/me/orders/{orderId}/refunds',
487
484
  'params' => ['orderId', ],
488
485
  'args' => args
489
486
  })
490
487
 
491
488
  end
492
489
 
493
- def self.update_cancellation_for_me(*args)
490
+ def self.restock_all_refund_items(*args)
494
491
 
495
492
  Clayful.call_api({
496
493
  'model_name' => @@name,
497
- 'method_name' => 'update_cancellation_for_me',
498
- 'http_method' => 'PUT',
499
- 'path' => '/v1/me/orders/{orderId}/cancellation',
500
- 'params' => ['orderId', ],
494
+ 'method_name' => 'restock_all_refund_items',
495
+ 'http_method' => 'POST',
496
+ 'path' => '/v1/orders/{orderId}/refunds/{refundId}/restock/all',
497
+ 'params' => ['orderId', 'refundId', ],
498
+ 'without_payload' => true,
501
499
  'args' => args
502
500
  })
503
501
 
504
502
  end
505
503
 
506
- def self.update_transactions_for_me(*args)
504
+ def self.restock_refund_items(*args)
507
505
 
508
506
  Clayful.call_api({
509
507
  'model_name' => @@name,
510
- 'method_name' => 'update_transactions_for_me',
511
- 'http_method' => 'PUT',
512
- 'path' => '/v1/me/orders/{orderId}/transactions',
513
- 'params' => ['orderId', ],
514
- 'without_payload' => true,
508
+ 'method_name' => 'restock_refund_items',
509
+ 'http_method' => 'POST',
510
+ 'path' => '/v1/orders/{orderId}/refunds/{refundId}/restock',
511
+ 'params' => ['orderId', 'refundId', ],
515
512
  'args' => args
516
513
  })
517
514
 
518
515
  end
519
516
 
520
- def self.update_fulfillment(*args)
517
+ def self.sync_inventory(*args)
521
518
 
522
519
  Clayful.call_api({
523
520
  'model_name' => @@name,
524
- 'method_name' => 'update_fulfillment',
525
- 'http_method' => 'PUT',
526
- 'path' => '/v1/orders/{orderId}/fulfillments/{fulfillmentId}',
527
- 'params' => ['orderId', 'fulfillmentId', ],
521
+ 'method_name' => 'sync_inventory',
522
+ 'http_method' => 'POST',
523
+ 'path' => '/v1/orders/{orderId}/synced',
524
+ 'params' => ['orderId', ],
525
+ 'without_payload' => true,
528
526
  'args' => args
529
527
  })
530
528
 
531
529
  end
532
530
 
533
- def self.update_item(*args)
531
+ def self.unaccept_refund(*args)
534
532
 
535
533
  Clayful.call_api({
536
534
  'model_name' => @@name,
537
- 'method_name' => 'update_item',
538
- 'http_method' => 'PUT',
539
- 'path' => '/v1/orders/{orderId}/items/{itemId}',
540
- 'params' => ['orderId', 'itemId', ],
535
+ 'method_name' => 'unaccept_refund',
536
+ 'http_method' => 'DELETE',
537
+ 'path' => '/v1/orders/{orderId}/refunds/{refundId}/accepted',
538
+ 'params' => ['orderId', 'refundId', ],
541
539
  'args' => args
542
540
  })
543
541
 
544
542
  end
545
543
 
546
- def self.update_refund(*args)
544
+ def self.unregister_payment_method(*args)
547
545
 
548
546
  Clayful.call_api({
549
547
  'model_name' => @@name,
550
- 'method_name' => 'update_refund',
551
- 'http_method' => 'PUT',
552
- 'path' => '/v1/orders/{orderId}/refunds/{refundId}',
553
- 'params' => ['orderId', 'refundId', ],
548
+ 'method_name' => 'unregister_payment_method',
549
+ 'http_method' => 'DELETE',
550
+ 'path' => '/v1/orders/{orderId}/transactions/payments/methods/{paymentMethodId}',
551
+ 'params' => ['orderId', 'paymentMethodId', ],
554
552
  'args' => args
555
553
  })
556
554
 
557
555
  end
558
556
 
559
- def self.update_refund_for_me(*args)
557
+ def self.update(*args)
560
558
 
561
559
  Clayful.call_api({
562
560
  'model_name' => @@name,
563
- 'method_name' => 'update_refund_for_me',
561
+ 'method_name' => 'update',
564
562
  'http_method' => 'PUT',
565
- 'path' => '/v1/me/orders/{orderId}/refunds/{refundId}',
566
- 'params' => ['orderId', 'refundId', ],
563
+ 'path' => '/v1/orders/{orderId}',
564
+ 'params' => ['orderId', ],
567
565
  'args' => args
568
566
  })
569
567
 
570
568
  end
571
569
 
572
- def self.update_refund_cancellation(*args)
570
+ def self.update_cancellation(*args)
573
571
 
574
572
  Clayful.call_api({
575
573
  'model_name' => @@name,
576
- 'method_name' => 'update_refund_cancellation',
574
+ 'method_name' => 'update_cancellation',
577
575
  'http_method' => 'PUT',
578
- 'path' => '/v1/orders/{orderId}/refunds/{refundId}/cancellation',
579
- 'params' => ['orderId', 'refundId', ],
576
+ 'path' => '/v1/orders/{orderId}/cancellation',
577
+ 'params' => ['orderId', ],
580
578
  'args' => args
581
579
  })
582
580
 
583
581
  end
584
582
 
585
- def self.update_refund_cancellation_for_me(*args)
583
+ def self.update_cancellation_for_me(*args)
586
584
 
587
585
  Clayful.call_api({
588
586
  'model_name' => @@name,
589
- 'method_name' => 'update_refund_cancellation_for_me',
587
+ 'method_name' => 'update_cancellation_for_me',
590
588
  'http_method' => 'PUT',
591
- 'path' => '/v1/me/orders/{orderId}/refunds/{refundId}/cancellation',
592
- 'params' => ['orderId', 'refundId', ],
589
+ 'path' => '/v1/me/orders/{orderId}/cancellation',
590
+ 'params' => ['orderId', ],
593
591
  'args' => args
594
592
  })
595
593
 
596
594
  end
597
595
 
598
- def self.delete(*args)
596
+ def self.update_for_me(*args)
599
597
 
600
598
  Clayful.call_api({
601
599
  'model_name' => @@name,
602
- 'method_name' => 'delete',
603
- 'http_method' => 'DELETE',
604
- 'path' => '/v1/orders/{orderId}',
600
+ 'method_name' => 'update_for_me',
601
+ 'http_method' => 'PUT',
602
+ 'path' => '/v1/me/orders/{orderId}',
605
603
  'params' => ['orderId', ],
606
604
  'args' => args
607
605
  })
608
606
 
609
607
  end
610
608
 
611
- def self.mark_as_not_received(*args)
609
+ def self.update_fulfillment(*args)
612
610
 
613
611
  Clayful.call_api({
614
612
  'model_name' => @@name,
615
- 'method_name' => 'mark_as_not_received',
616
- 'http_method' => 'DELETE',
617
- 'path' => '/v1/orders/{orderId}/received',
618
- 'params' => ['orderId', ],
613
+ 'method_name' => 'update_fulfillment',
614
+ 'http_method' => 'PUT',
615
+ 'path' => '/v1/orders/{orderId}/fulfillments/{fulfillmentId}',
616
+ 'params' => ['orderId', 'fulfillmentId', ],
619
617
  'args' => args
620
618
  })
621
619
 
622
620
  end
623
621
 
624
- def self.mark_as_undone(*args)
622
+ def self.update_item(*args)
625
623
 
626
624
  Clayful.call_api({
627
625
  'model_name' => @@name,
628
- 'method_name' => 'mark_as_undone',
629
- 'http_method' => 'DELETE',
630
- 'path' => '/v1/orders/{orderId}/done',
631
- 'params' => ['orderId', ],
626
+ 'method_name' => 'update_item',
627
+ 'http_method' => 'PUT',
628
+ 'path' => '/v1/orders/{orderId}/items/{itemId}',
629
+ 'params' => ['orderId', 'itemId', ],
632
630
  'args' => args
633
631
  })
634
632
 
635
633
  end
636
634
 
637
- def self.mark_as_not_received_for_me(*args)
635
+ def self.update_refund(*args)
638
636
 
639
637
  Clayful.call_api({
640
638
  'model_name' => @@name,
641
- 'method_name' => 'mark_as_not_received_for_me',
642
- 'http_method' => 'DELETE',
643
- 'path' => '/v1/me/orders/{orderId}/received',
644
- 'params' => ['orderId', ],
639
+ 'method_name' => 'update_refund',
640
+ 'http_method' => 'PUT',
641
+ 'path' => '/v1/orders/{orderId}/refunds/{refundId}',
642
+ 'params' => ['orderId', 'refundId', ],
645
643
  'args' => args
646
644
  })
647
645
 
648
646
  end
649
647
 
650
- def self.delete_metafield(*args)
648
+ def self.update_refund_cancellation(*args)
651
649
 
652
650
  Clayful.call_api({
653
651
  'model_name' => @@name,
654
- 'method_name' => 'delete_metafield',
655
- 'http_method' => 'DELETE',
656
- 'path' => '/v1/orders/{orderId}/meta/{field}',
657
- 'params' => ['orderId', 'field', ],
652
+ 'method_name' => 'update_refund_cancellation',
653
+ 'http_method' => 'PUT',
654
+ 'path' => '/v1/orders/{orderId}/refunds/{refundId}/cancellation',
655
+ 'params' => ['orderId', 'refundId', ],
658
656
  'args' => args
659
657
  })
660
658
 
661
659
  end
662
660
 
663
- def self.delete_fulfillment(*args)
661
+ def self.update_refund_cancellation_for_me(*args)
664
662
 
665
663
  Clayful.call_api({
666
664
  'model_name' => @@name,
667
- 'method_name' => 'delete_fulfillment',
668
- 'http_method' => 'DELETE',
669
- 'path' => '/v1/orders/{orderId}/fulfillments/{fulfillmentId}',
670
- 'params' => ['orderId', 'fulfillmentId', ],
665
+ 'method_name' => 'update_refund_cancellation_for_me',
666
+ 'http_method' => 'PUT',
667
+ 'path' => '/v1/me/orders/{orderId}/refunds/{refundId}/cancellation',
668
+ 'params' => ['orderId', 'refundId', ],
671
669
  'args' => args
672
670
  })
673
671
 
674
672
  end
675
673
 
676
- def self.delete_refund(*args)
674
+ def self.update_refund_for_me(*args)
677
675
 
678
676
  Clayful.call_api({
679
677
  'model_name' => @@name,
680
- 'method_name' => 'delete_refund',
681
- 'http_method' => 'DELETE',
682
- 'path' => '/v1/orders/{orderId}/refunds/{refundId}',
678
+ 'method_name' => 'update_refund_for_me',
679
+ 'http_method' => 'PUT',
680
+ 'path' => '/v1/me/orders/{orderId}/refunds/{refundId}',
683
681
  'params' => ['orderId', 'refundId', ],
684
682
  'args' => args
685
683
  })
686
684
 
687
685
  end
688
686
 
689
- def self.unaccept_refund(*args)
687
+ def self.update_transactions(*args)
690
688
 
691
689
  Clayful.call_api({
692
690
  'model_name' => @@name,
693
- 'method_name' => 'unaccept_refund',
694
- 'http_method' => 'DELETE',
695
- 'path' => '/v1/orders/{orderId}/refunds/{refundId}/accepted',
696
- 'params' => ['orderId', 'refundId', ],
691
+ 'method_name' => 'update_transactions',
692
+ 'http_method' => 'PUT',
693
+ 'path' => '/v1/orders/{orderId}/transactions',
694
+ 'params' => ['orderId', ],
697
695
  'args' => args
698
696
  })
699
697
 
700
698
  end
701
699
 
702
- def self.delete_inventory_operation(*args)
700
+ def self.update_transactions_for_me(*args)
703
701
 
704
702
  Clayful.call_api({
705
703
  'model_name' => @@name,
706
- 'method_name' => 'delete_inventory_operation',
707
- 'http_method' => 'DELETE',
708
- 'path' => '/v1/orders/{orderId}/inventory/operations/{operationId}',
709
- 'params' => ['orderId', 'operationId', ],
704
+ 'method_name' => 'update_transactions_for_me',
705
+ 'http_method' => 'PUT',
706
+ 'path' => '/v1/me/orders/{orderId}/transactions',
707
+ 'params' => ['orderId', ],
708
+ 'without_payload' => true,
710
709
  'args' => args
711
710
  })
712
711
 
713
712
  end
714
713
 
715
- def self.unregister_payment_method(*args)
714
+ def self.use_ticket(*args)
716
715
 
717
716
  Clayful.call_api({
718
717
  'model_name' => @@name,
719
- 'method_name' => 'unregister_payment_method',
720
- 'http_method' => 'DELETE',
721
- 'path' => '/v1/orders/{orderId}/transactions/payments/methods/{paymentMethodId}',
722
- 'params' => ['orderId', 'paymentMethodId', ],
718
+ 'method_name' => 'use_ticket',
719
+ 'http_method' => 'POST',
720
+ 'path' => '/v1/orders/tickets/{code}/used',
721
+ 'params' => ['code', ],
722
+ 'without_payload' => true,
723
723
  'args' => args
724
724
  })
725
725