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