clayful 2.1.0 → 2.2.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7a6a84ffbfe4354fc1c1135fc1d0bf7804f7d68b
4
- data.tar.gz: 9fd9d965f98808058b57de964ae9ed6de87f5e07
3
+ metadata.gz: be82f0d41bb56dd841d7aa431a0064cf6a574d71
4
+ data.tar.gz: 690d94558828c3b4c571f2fd12a6e264f19082d2
5
5
  SHA512:
6
- metadata.gz: 4f037b3d3c436f57a5dc1d6cbf37a267917d1061fb5fbe1c3c91d3673e1e6ed0e9913e4e0696bd1a2127a6ad9c78e703a0e845f6ccd939a23aad09ceba94ac50
7
- data.tar.gz: def5a79b124129e963db360884e16f279293f6ea70d725018052c680fb42c4c2da6ad45aa3ca52337c0310e7ecef6cb85375b111057a13878471ed88292f8022
6
+ metadata.gz: 7bb19f6d24a38a40505a12d4a70a3a2350e8fc6cfc9d7908423d6167fcc3de743d3910826f53ca76735dcd6c84619bf79e2d26e579e95e4d01dfbc75f8f2ae07
7
+ data.tar.gz: 659dac8beee1ce1087d475c22dc70010d787282d11c43115a89bc42036f359df5700837138913690b15488e111a61721bf7d0741255790a3995e4b271e5fb3ac
data/lib/models/brand.rb CHANGED
@@ -52,14 +52,14 @@ module Clayful
52
52
 
53
53
  end
54
54
 
55
- def self.pull_from_metafield(*args)
55
+ def self.create(*args)
56
56
 
57
57
  Clayful.call_api({
58
58
  'model_name' => @@name,
59
- 'method_name' => 'pull_from_metafield',
59
+ 'method_name' => 'create',
60
60
  'http_method' => 'POST',
61
- 'path' => '/v1/brands/{brandId}/meta/{field}/pull',
62
- 'params' => ['brandId', 'field', ],
61
+ 'path' => '/v1/brands',
62
+ 'params' => [],
63
63
  'args' => args
64
64
  })
65
65
 
@@ -78,6 +78,19 @@ module Clayful
78
78
 
79
79
  end
80
80
 
81
+ def self.pull_from_metafield(*args)
82
+
83
+ Clayful.call_api({
84
+ 'model_name' => @@name,
85
+ 'method_name' => 'pull_from_metafield',
86
+ 'http_method' => 'POST',
87
+ 'path' => '/v1/brands/{brandId}/meta/{field}/pull',
88
+ 'params' => ['brandId', 'field', ],
89
+ 'args' => args
90
+ })
91
+
92
+ end
93
+
81
94
  def self.push_to_metafield(*args)
82
95
 
83
96
  Clayful.call_api({
@@ -91,6 +104,32 @@ module Clayful
91
104
 
92
105
  end
93
106
 
107
+ def self.update(*args)
108
+
109
+ Clayful.call_api({
110
+ 'model_name' => @@name,
111
+ 'method_name' => 'update',
112
+ 'http_method' => 'PUT',
113
+ 'path' => '/v1/brands/{brandId}',
114
+ 'params' => ['brandId', ],
115
+ 'args' => args
116
+ })
117
+
118
+ end
119
+
120
+ def self.delete(*args)
121
+
122
+ Clayful.call_api({
123
+ 'model_name' => @@name,
124
+ 'method_name' => 'delete',
125
+ 'http_method' => 'DELETE',
126
+ 'path' => '/v1/brands/{brandId}',
127
+ 'params' => ['brandId', ],
128
+ 'args' => args
129
+ })
130
+
131
+ end
132
+
94
133
  def self.delete_metafield(*args)
95
134
 
96
135
  Clayful.call_api({
@@ -65,26 +65,26 @@ module Clayful
65
65
 
66
66
  end
67
67
 
68
- def self.increase_metafield(*args)
68
+ def self.push_to_metafield(*args)
69
69
 
70
70
  Clayful.call_api({
71
71
  'model_name' => @@name,
72
- 'method_name' => 'increase_metafield',
72
+ 'method_name' => 'push_to_metafield',
73
73
  'http_method' => 'POST',
74
- 'path' => '/v1/catalogs/{catalogId}/meta/{field}/inc',
74
+ 'path' => '/v1/catalogs/{catalogId}/meta/{field}/push',
75
75
  'params' => ['catalogId', 'field', ],
76
76
  'args' => args
77
77
  })
78
78
 
79
79
  end
80
80
 
81
- def self.push_to_metafield(*args)
81
+ def self.increase_metafield(*args)
82
82
 
83
83
  Clayful.call_api({
84
84
  'model_name' => @@name,
85
- 'method_name' => 'push_to_metafield',
85
+ 'method_name' => 'increase_metafield',
86
86
  'http_method' => 'POST',
87
- 'path' => '/v1/catalogs/{catalogId}/meta/{field}/push',
87
+ 'path' => '/v1/catalogs/{catalogId}/meta/{field}/inc',
88
88
  'params' => ['catalogId', 'field', ],
89
89
  'args' => args
90
90
  })
@@ -52,13 +52,26 @@ module Clayful
52
52
 
53
53
  end
54
54
 
55
- def self.pull_from_metafield(*args)
55
+ def self.create(*args)
56
56
 
57
57
  Clayful.call_api({
58
58
  'model_name' => @@name,
59
- 'method_name' => 'pull_from_metafield',
59
+ 'method_name' => 'create',
60
60
  'http_method' => 'POST',
61
- 'path' => '/v1/collections/{collectionId}/meta/{field}/pull',
61
+ 'path' => '/v1/collections',
62
+ 'params' => [],
63
+ 'args' => args
64
+ })
65
+
66
+ end
67
+
68
+ def self.push_to_metafield(*args)
69
+
70
+ Clayful.call_api({
71
+ 'model_name' => @@name,
72
+ 'method_name' => 'push_to_metafield',
73
+ 'http_method' => 'POST',
74
+ 'path' => '/v1/collections/{collectionId}/meta/{field}/push',
62
75
  'params' => ['collectionId', 'field', ],
63
76
  'args' => args
64
77
  })
@@ -78,19 +91,45 @@ module Clayful
78
91
 
79
92
  end
80
93
 
81
- def self.push_to_metafield(*args)
94
+ def self.pull_from_metafield(*args)
82
95
 
83
96
  Clayful.call_api({
84
97
  'model_name' => @@name,
85
- 'method_name' => 'push_to_metafield',
98
+ 'method_name' => 'pull_from_metafield',
86
99
  'http_method' => 'POST',
87
- 'path' => '/v1/collections/{collectionId}/meta/{field}/push',
100
+ 'path' => '/v1/collections/{collectionId}/meta/{field}/pull',
88
101
  'params' => ['collectionId', 'field', ],
89
102
  'args' => args
90
103
  })
91
104
 
92
105
  end
93
106
 
107
+ def self.update(*args)
108
+
109
+ Clayful.call_api({
110
+ 'model_name' => @@name,
111
+ 'method_name' => 'update',
112
+ 'http_method' => 'PUT',
113
+ 'path' => '/v1/collections/{collectionId}',
114
+ 'params' => ['collectionId', ],
115
+ 'args' => args
116
+ })
117
+
118
+ end
119
+
120
+ def self.delete(*args)
121
+
122
+ Clayful.call_api({
123
+ 'model_name' => @@name,
124
+ 'method_name' => 'delete',
125
+ 'http_method' => 'DELETE',
126
+ 'path' => '/v1/collections/{collectionId}',
127
+ 'params' => ['collectionId', ],
128
+ 'args' => args
129
+ })
130
+
131
+ end
132
+
94
133
  def self.delete_metafield(*args)
95
134
 
96
135
  Clayful.call_api({
@@ -274,26 +274,26 @@ module Clayful
274
274
 
275
275
  end
276
276
 
277
- def self.add_coupon(*args)
277
+ def self.verify(*args)
278
278
 
279
279
  Clayful.call_api({
280
280
  'model_name' => @@name,
281
- 'method_name' => 'add_coupon',
281
+ 'method_name' => 'verify',
282
282
  'http_method' => 'POST',
283
- 'path' => '/v1/customers/{customerId}/coupons',
283
+ 'path' => '/v1/customers/{customerId}/verified',
284
284
  'params' => ['customerId', ],
285
285
  'args' => args
286
286
  })
287
287
 
288
288
  end
289
289
 
290
- def self.verify(*args)
290
+ def self.add_coupon(*args)
291
291
 
292
292
  Clayful.call_api({
293
293
  'model_name' => @@name,
294
- 'method_name' => 'verify',
294
+ 'method_name' => 'add_coupon',
295
295
  'http_method' => 'POST',
296
- 'path' => '/v1/customers/{customerId}/verified',
296
+ 'path' => '/v1/customers/{customerId}/coupons',
297
297
  'params' => ['customerId', ],
298
298
  'args' => args
299
299
  })
@@ -313,26 +313,26 @@ module Clayful
313
313
 
314
314
  end
315
315
 
316
- def self.pull_from_metafield(*args)
316
+ def self.increase_metafield(*args)
317
317
 
318
318
  Clayful.call_api({
319
319
  'model_name' => @@name,
320
- 'method_name' => 'pull_from_metafield',
320
+ 'method_name' => 'increase_metafield',
321
321
  'http_method' => 'POST',
322
- 'path' => '/v1/customers/{customerId}/meta/{field}/pull',
322
+ 'path' => '/v1/customers/{customerId}/meta/{field}/inc',
323
323
  'params' => ['customerId', 'field', ],
324
324
  'args' => args
325
325
  })
326
326
 
327
327
  end
328
328
 
329
- def self.increase_metafield(*args)
329
+ def self.pull_from_metafield(*args)
330
330
 
331
331
  Clayful.call_api({
332
332
  'model_name' => @@name,
333
- 'method_name' => 'increase_metafield',
333
+ 'method_name' => 'pull_from_metafield',
334
334
  'http_method' => 'POST',
335
- 'path' => '/v1/customers/{customerId}/meta/{field}/inc',
335
+ 'path' => '/v1/customers/{customerId}/meta/{field}/pull',
336
336
  'params' => ['customerId', 'field', ],
337
337
  'args' => args
338
338
  })
@@ -378,26 +378,26 @@ module Clayful
378
378
 
379
379
  end
380
380
 
381
- def self.reset_password(*args)
381
+ def self.update_credentials(*args)
382
382
 
383
383
  Clayful.call_api({
384
384
  'model_name' => @@name,
385
- 'method_name' => 'reset_password',
385
+ 'method_name' => 'update_credentials',
386
386
  'http_method' => 'PUT',
387
- 'path' => '/v1/customers/{customerId}/password',
387
+ 'path' => '/v1/customers/{customerId}/credentials',
388
388
  'params' => ['customerId', ],
389
389
  'args' => args
390
390
  })
391
391
 
392
392
  end
393
393
 
394
- def self.update_credentials(*args)
394
+ def self.reset_password(*args)
395
395
 
396
396
  Clayful.call_api({
397
397
  'model_name' => @@name,
398
- 'method_name' => 'update_credentials',
398
+ 'method_name' => 'reset_password',
399
399
  'http_method' => 'PUT',
400
- 'path' => '/v1/customers/{customerId}/credentials',
400
+ 'path' => '/v1/customers/{customerId}/password',
401
401
  'params' => ['customerId', ],
402
402
  'args' => args
403
403
  })
data/lib/models/order.rb CHANGED
@@ -144,13 +144,13 @@ module Clayful
144
144
 
145
145
  end
146
146
 
147
- def self.mark_as_received(*args)
147
+ def self.sync_inventory(*args)
148
148
 
149
149
  Clayful.call_api({
150
150
  'model_name' => @@name,
151
- 'method_name' => 'mark_as_received',
151
+ 'method_name' => 'sync_inventory',
152
152
  'http_method' => 'POST',
153
- 'path' => '/v1/orders/{orderId}/received',
153
+ 'path' => '/v1/orders/{orderId}/synced',
154
154
  'params' => ['orderId', ],
155
155
  'without_payload' => true,
156
156
  'args' => args
@@ -210,13 +210,13 @@ module Clayful
210
210
 
211
211
  end
212
212
 
213
- def self.sync_inventory(*args)
213
+ def self.mark_as_received(*args)
214
214
 
215
215
  Clayful.call_api({
216
216
  'model_name' => @@name,
217
- 'method_name' => 'sync_inventory',
217
+ 'method_name' => 'mark_as_received',
218
218
  'http_method' => 'POST',
219
- 'path' => '/v1/orders/{orderId}/synced',
219
+ 'path' => '/v1/orders/{orderId}/received',
220
220
  'params' => ['orderId', ],
221
221
  'without_payload' => true,
222
222
  'args' => args
@@ -224,40 +224,40 @@ module Clayful
224
224
 
225
225
  end
226
226
 
227
- def self.mark_as_received_for_me(*args)
227
+ def self.cancel_for_me(*args)
228
228
 
229
229
  Clayful.call_api({
230
230
  'model_name' => @@name,
231
- 'method_name' => 'mark_as_received_for_me',
231
+ 'method_name' => 'cancel_for_me',
232
232
  'http_method' => 'POST',
233
- 'path' => '/v1/me/orders/{orderId}/received',
233
+ 'path' => '/v1/me/orders/{orderId}/cancellation',
234
234
  'params' => ['orderId', ],
235
- 'without_payload' => true,
236
235
  'args' => args
237
236
  })
238
237
 
239
238
  end
240
239
 
241
- def self.request_refund_for_me(*args)
240
+ def self.mark_as_received_for_me(*args)
242
241
 
243
242
  Clayful.call_api({
244
243
  'model_name' => @@name,
245
- 'method_name' => 'request_refund_for_me',
244
+ 'method_name' => 'mark_as_received_for_me',
246
245
  'http_method' => 'POST',
247
- 'path' => '/v1/me/orders/{orderId}/refunds',
246
+ 'path' => '/v1/me/orders/{orderId}/received',
248
247
  'params' => ['orderId', ],
248
+ 'without_payload' => true,
249
249
  'args' => args
250
250
  })
251
251
 
252
252
  end
253
253
 
254
- def self.cancel_for_me(*args)
254
+ def self.request_refund_for_me(*args)
255
255
 
256
256
  Clayful.call_api({
257
257
  'model_name' => @@name,
258
- 'method_name' => 'cancel_for_me',
258
+ 'method_name' => 'request_refund_for_me',
259
259
  'http_method' => 'POST',
260
- 'path' => '/v1/me/orders/{orderId}/cancellation',
260
+ 'path' => '/v1/me/orders/{orderId}/refunds',
261
261
  'params' => ['orderId', ],
262
262
  'args' => args
263
263
  })
@@ -291,93 +291,93 @@ module Clayful
291
291
 
292
292
  end
293
293
 
294
- def self.accept_refund(*args)
294
+ def self.increase_metafield(*args)
295
295
 
296
296
  Clayful.call_api({
297
297
  'model_name' => @@name,
298
- 'method_name' => 'accept_refund',
298
+ 'method_name' => 'increase_metafield',
299
299
  'http_method' => 'POST',
300
- 'path' => '/v1/orders/{orderId}/refunds/{refundId}/accepted',
301
- 'params' => ['orderId', 'refundId', ],
302
- 'without_payload' => true,
300
+ 'path' => '/v1/orders/{orderId}/meta/{field}/inc',
301
+ 'params' => ['orderId', 'field', ],
303
302
  'args' => args
304
303
  })
305
304
 
306
305
  end
307
306
 
308
- def self.cancel_refund(*args)
307
+ def self.restock_refund_items(*args)
309
308
 
310
309
  Clayful.call_api({
311
310
  'model_name' => @@name,
312
- 'method_name' => 'cancel_refund',
311
+ 'method_name' => 'restock_refund_items',
313
312
  'http_method' => 'POST',
314
- 'path' => '/v1/orders/{orderId}/refunds/{refundId}/cancellation',
313
+ 'path' => '/v1/orders/{orderId}/refunds/{refundId}/restock',
315
314
  'params' => ['orderId', 'refundId', ],
316
315
  'args' => args
317
316
  })
318
317
 
319
318
  end
320
319
 
321
- def self.register_payment_method(*args)
320
+ def self.pull_from_metafield(*args)
322
321
 
323
322
  Clayful.call_api({
324
323
  'model_name' => @@name,
325
- 'method_name' => 'register_payment_method',
324
+ 'method_name' => 'pull_from_metafield',
326
325
  'http_method' => 'POST',
327
- 'path' => '/v1/orders/{orderId}/transactions/payments/methods',
328
- 'params' => ['orderId', ],
326
+ 'path' => '/v1/orders/{orderId}/meta/{field}/pull',
327
+ 'params' => ['orderId', 'field', ],
329
328
  'args' => args
330
329
  })
331
330
 
332
331
  end
333
332
 
334
- def self.increase_metafield(*args)
333
+ def self.accept_refund(*args)
335
334
 
336
335
  Clayful.call_api({
337
336
  'model_name' => @@name,
338
- 'method_name' => 'increase_metafield',
337
+ 'method_name' => 'accept_refund',
339
338
  'http_method' => 'POST',
340
- 'path' => '/v1/orders/{orderId}/meta/{field}/inc',
341
- 'params' => ['orderId', 'field', ],
339
+ 'path' => '/v1/orders/{orderId}/refunds/{refundId}/accepted',
340
+ 'params' => ['orderId', 'refundId', ],
341
+ 'without_payload' => true,
342
342
  'args' => args
343
343
  })
344
344
 
345
345
  end
346
346
 
347
- def self.push_to_metafield(*args)
347
+ def self.cancel_refund(*args)
348
348
 
349
349
  Clayful.call_api({
350
350
  'model_name' => @@name,
351
- 'method_name' => 'push_to_metafield',
351
+ 'method_name' => 'cancel_refund',
352
352
  'http_method' => 'POST',
353
- 'path' => '/v1/orders/{orderId}/meta/{field}/push',
354
- 'params' => ['orderId', 'field', ],
353
+ 'path' => '/v1/orders/{orderId}/refunds/{refundId}/cancellation',
354
+ 'params' => ['orderId', 'refundId', ],
355
355
  'args' => args
356
356
  })
357
357
 
358
358
  end
359
359
 
360
- def self.pull_from_metafield(*args)
360
+ def self.push_to_metafield(*args)
361
361
 
362
362
  Clayful.call_api({
363
363
  'model_name' => @@name,
364
- 'method_name' => 'pull_from_metafield',
364
+ 'method_name' => 'push_to_metafield',
365
365
  'http_method' => 'POST',
366
- 'path' => '/v1/orders/{orderId}/meta/{field}/pull',
366
+ 'path' => '/v1/orders/{orderId}/meta/{field}/push',
367
367
  'params' => ['orderId', 'field', ],
368
368
  'args' => args
369
369
  })
370
370
 
371
371
  end
372
372
 
373
- def self.restock_refund_items(*args)
373
+ def self.register_payment_method(*args)
374
374
 
375
375
  Clayful.call_api({
376
376
  'model_name' => @@name,
377
- 'method_name' => 'restock_refund_items',
377
+ 'method_name' => 'register_payment_method',
378
378
  'http_method' => 'POST',
379
- 'path' => '/v1/orders/{orderId}/refunds/{refundId}/restock',
380
- 'params' => ['orderId', 'refundId', ],
379
+ 'path' => '/v1/orders/{orderId}/transactions/payments/methods',
380
+ 'params' => ['orderId', ],
381
381
  'args' => args
382
382
  })
383
383
 
@@ -396,28 +396,28 @@ module Clayful
396
396
 
397
397
  end
398
398
 
399
- def self.restock_all_refund_items(*args)
399
+ def self.create_download_url(*args)
400
400
 
401
401
  Clayful.call_api({
402
402
  'model_name' => @@name,
403
- 'method_name' => 'restock_all_refund_items',
403
+ 'method_name' => 'create_download_url',
404
404
  'http_method' => 'POST',
405
- 'path' => '/v1/orders/{orderId}/refunds/{refundId}/restock/all',
406
- 'params' => ['orderId', 'refundId', ],
405
+ 'path' => '/v1/orders/{orderId}/items/{itemId}/download/url',
406
+ 'params' => ['orderId', 'itemId', ],
407
407
  'without_payload' => true,
408
408
  'args' => args
409
409
  })
410
410
 
411
411
  end
412
412
 
413
- def self.create_download_url(*args)
413
+ def self.restock_all_refund_items(*args)
414
414
 
415
415
  Clayful.call_api({
416
416
  'model_name' => @@name,
417
- 'method_name' => 'create_download_url',
417
+ 'method_name' => 'restock_all_refund_items',
418
418
  'http_method' => 'POST',
419
- 'path' => '/v1/orders/{orderId}/items/{itemId}/download/url',
420
- 'params' => ['orderId', 'itemId', ],
419
+ 'path' => '/v1/orders/{orderId}/refunds/{refundId}/restock/all',
420
+ 'params' => ['orderId', 'refundId', ],
421
421
  'without_payload' => true,
422
422
  'args' => args
423
423
  })
@@ -464,26 +464,26 @@ module Clayful
464
464
 
465
465
  end
466
466
 
467
- def self.update_transactions(*args)
467
+ def self.update_cancellation(*args)
468
468
 
469
469
  Clayful.call_api({
470
470
  'model_name' => @@name,
471
- 'method_name' => 'update_transactions',
471
+ 'method_name' => 'update_cancellation',
472
472
  'http_method' => 'PUT',
473
- 'path' => '/v1/orders/{orderId}/transactions',
473
+ 'path' => '/v1/orders/{orderId}/cancellation',
474
474
  'params' => ['orderId', ],
475
475
  'args' => args
476
476
  })
477
477
 
478
478
  end
479
479
 
480
- def self.update_cancellation(*args)
480
+ def self.update_transactions(*args)
481
481
 
482
482
  Clayful.call_api({
483
483
  'model_name' => @@name,
484
- 'method_name' => 'update_cancellation',
484
+ 'method_name' => 'update_transactions',
485
485
  'http_method' => 'PUT',
486
- 'path' => '/v1/orders/{orderId}/cancellation',
486
+ 'path' => '/v1/orders/{orderId}/transactions',
487
487
  'params' => ['orderId', ],
488
488
  'args' => args
489
489
  })
@@ -530,27 +530,27 @@ module Clayful
530
530
 
531
531
  end
532
532
 
533
- def self.update_fulfillment(*args)
533
+ def self.update_refund(*args)
534
534
 
535
535
  Clayful.call_api({
536
536
  'model_name' => @@name,
537
- 'method_name' => 'update_fulfillment',
537
+ 'method_name' => 'update_refund',
538
538
  'http_method' => 'PUT',
539
- 'path' => '/v1/orders/{orderId}/fulfillments/{fulfillmentId}',
540
- 'params' => ['orderId', 'fulfillmentId', ],
539
+ 'path' => '/v1/orders/{orderId}/refunds/{refundId}',
540
+ 'params' => ['orderId', 'refundId', ],
541
541
  'args' => args
542
542
  })
543
543
 
544
544
  end
545
545
 
546
- def self.update_refund(*args)
546
+ def self.update_fulfillment(*args)
547
547
 
548
548
  Clayful.call_api({
549
549
  'model_name' => @@name,
550
- 'method_name' => 'update_refund',
550
+ 'method_name' => 'update_fulfillment',
551
551
  'http_method' => 'PUT',
552
- 'path' => '/v1/orders/{orderId}/refunds/{refundId}',
553
- 'params' => ['orderId', 'refundId', ],
552
+ 'path' => '/v1/orders/{orderId}/fulfillments/{fulfillmentId}',
553
+ 'params' => ['orderId', 'fulfillmentId', ],
554
554
  'args' => args
555
555
  })
556
556
 
@@ -608,26 +608,26 @@ module Clayful
608
608
 
609
609
  end
610
610
 
611
- def self.mark_as_undone(*args)
611
+ def self.mark_as_not_received(*args)
612
612
 
613
613
  Clayful.call_api({
614
614
  'model_name' => @@name,
615
- 'method_name' => 'mark_as_undone',
615
+ 'method_name' => 'mark_as_not_received',
616
616
  'http_method' => 'DELETE',
617
- 'path' => '/v1/orders/{orderId}/done',
617
+ 'path' => '/v1/orders/{orderId}/received',
618
618
  'params' => ['orderId', ],
619
619
  'args' => args
620
620
  })
621
621
 
622
622
  end
623
623
 
624
- def self.mark_as_not_received(*args)
624
+ def self.mark_as_undone(*args)
625
625
 
626
626
  Clayful.call_api({
627
627
  'model_name' => @@name,
628
- 'method_name' => 'mark_as_not_received',
628
+ 'method_name' => 'mark_as_undone',
629
629
  'http_method' => 'DELETE',
630
- 'path' => '/v1/orders/{orderId}/received',
630
+ 'path' => '/v1/orders/{orderId}/done',
631
631
  'params' => ['orderId', ],
632
632
  'args' => args
633
633
  })
@@ -647,14 +647,14 @@ module Clayful
647
647
 
648
648
  end
649
649
 
650
- def self.delete_refund(*args)
650
+ def self.delete_fulfillment(*args)
651
651
 
652
652
  Clayful.call_api({
653
653
  'model_name' => @@name,
654
- 'method_name' => 'delete_refund',
654
+ 'method_name' => 'delete_fulfillment',
655
655
  'http_method' => 'DELETE',
656
- 'path' => '/v1/orders/{orderId}/refunds/{refundId}',
657
- 'params' => ['orderId', 'refundId', ],
656
+ 'path' => '/v1/orders/{orderId}/fulfillments/{fulfillmentId}',
657
+ 'params' => ['orderId', 'fulfillmentId', ],
658
658
  'args' => args
659
659
  })
660
660
 
@@ -673,40 +673,40 @@ module Clayful
673
673
 
674
674
  end
675
675
 
676
- def self.delete_fulfillment(*args)
676
+ def self.delete_refund(*args)
677
677
 
678
678
  Clayful.call_api({
679
679
  'model_name' => @@name,
680
- 'method_name' => 'delete_fulfillment',
680
+ 'method_name' => 'delete_refund',
681
681
  'http_method' => 'DELETE',
682
- 'path' => '/v1/orders/{orderId}/fulfillments/{fulfillmentId}',
683
- 'params' => ['orderId', 'fulfillmentId', ],
682
+ 'path' => '/v1/orders/{orderId}/refunds/{refundId}',
683
+ 'params' => ['orderId', 'refundId', ],
684
684
  'args' => args
685
685
  })
686
686
 
687
687
  end
688
688
 
689
- def self.unaccept_refund(*args)
689
+ def self.delete_inventory_operation(*args)
690
690
 
691
691
  Clayful.call_api({
692
692
  'model_name' => @@name,
693
- 'method_name' => 'unaccept_refund',
693
+ 'method_name' => 'delete_inventory_operation',
694
694
  'http_method' => 'DELETE',
695
- 'path' => '/v1/orders/{orderId}/refunds/{refundId}/accepted',
696
- 'params' => ['orderId', 'refundId', ],
695
+ 'path' => '/v1/orders/{orderId}/inventory/operations/{operationId}',
696
+ 'params' => ['orderId', 'operationId', ],
697
697
  'args' => args
698
698
  })
699
699
 
700
700
  end
701
701
 
702
- def self.delete_inventory_operation(*args)
702
+ def self.unaccept_refund(*args)
703
703
 
704
704
  Clayful.call_api({
705
705
  'model_name' => @@name,
706
- 'method_name' => 'delete_inventory_operation',
706
+ 'method_name' => 'unaccept_refund',
707
707
  'http_method' => 'DELETE',
708
- 'path' => '/v1/orders/{orderId}/inventory/operations/{operationId}',
709
- 'params' => ['orderId', 'operationId', ],
708
+ 'path' => '/v1/orders/{orderId}/refunds/{refundId}/accepted',
709
+ 'params' => ['orderId', 'refundId', ],
710
710
  'args' => args
711
711
  })
712
712
 
@@ -78,14 +78,14 @@ module Clayful
78
78
 
79
79
  end
80
80
 
81
- def self.increase_metafield(*args)
81
+ def self.create_variation(*args)
82
82
 
83
83
  Clayful.call_api({
84
84
  'model_name' => @@name,
85
- 'method_name' => 'increase_metafield',
85
+ 'method_name' => 'create_variation',
86
86
  'http_method' => 'POST',
87
- 'path' => '/v1/products/{productId}/meta/{field}/inc',
88
- 'params' => ['productId', 'field', ],
87
+ 'path' => '/v1/products/{productId}/options/{optionId}/variations',
88
+ 'params' => ['productId', 'optionId', ],
89
89
  'args' => args
90
90
  })
91
91
 
@@ -104,26 +104,26 @@ module Clayful
104
104
 
105
105
  end
106
106
 
107
- def self.create_variation(*args)
107
+ def self.push_to_metafield(*args)
108
108
 
109
109
  Clayful.call_api({
110
110
  'model_name' => @@name,
111
- 'method_name' => 'create_variation',
111
+ 'method_name' => 'push_to_metafield',
112
112
  'http_method' => 'POST',
113
- 'path' => '/v1/products/{productId}/options/{optionId}/variations',
114
- 'params' => ['productId', 'optionId', ],
113
+ 'path' => '/v1/products/{productId}/meta/{field}/push',
114
+ 'params' => ['productId', 'field', ],
115
115
  'args' => args
116
116
  })
117
117
 
118
118
  end
119
119
 
120
- def self.push_to_metafield(*args)
120
+ def self.increase_metafield(*args)
121
121
 
122
122
  Clayful.call_api({
123
123
  'model_name' => @@name,
124
- 'method_name' => 'push_to_metafield',
124
+ 'method_name' => 'increase_metafield',
125
125
  'http_method' => 'POST',
126
- 'path' => '/v1/products/{productId}/meta/{field}/push',
126
+ 'path' => '/v1/products/{productId}/meta/{field}/inc',
127
127
  'params' => ['productId', 'field', ],
128
128
  'args' => args
129
129
  })
data/lib/models/review.rb CHANGED
@@ -171,39 +171,39 @@ module Clayful
171
171
 
172
172
  end
173
173
 
174
- def self.pull_from_metafield(*args)
174
+ def self.increase_metafield(*args)
175
175
 
176
176
  Clayful.call_api({
177
177
  'model_name' => @@name,
178
- 'method_name' => 'pull_from_metafield',
178
+ 'method_name' => 'increase_metafield',
179
179
  'http_method' => 'POST',
180
- 'path' => '/v1/products/reviews/{reviewId}/meta/{field}/pull',
180
+ 'path' => '/v1/products/reviews/{reviewId}/meta/{field}/inc',
181
181
  'params' => ['reviewId', 'field', ],
182
182
  'args' => args
183
183
  })
184
184
 
185
185
  end
186
186
 
187
- def self.increase_metafield(*args)
187
+ def self.push_to_metafield(*args)
188
188
 
189
189
  Clayful.call_api({
190
190
  'model_name' => @@name,
191
- 'method_name' => 'increase_metafield',
191
+ 'method_name' => 'push_to_metafield',
192
192
  'http_method' => 'POST',
193
- 'path' => '/v1/products/reviews/{reviewId}/meta/{field}/inc',
193
+ 'path' => '/v1/products/reviews/{reviewId}/meta/{field}/push',
194
194
  'params' => ['reviewId', 'field', ],
195
195
  'args' => args
196
196
  })
197
197
 
198
198
  end
199
199
 
200
- def self.push_to_metafield(*args)
200
+ def self.pull_from_metafield(*args)
201
201
 
202
202
  Clayful.call_api({
203
203
  'model_name' => @@name,
204
- 'method_name' => 'push_to_metafield',
204
+ 'method_name' => 'pull_from_metafield',
205
205
  'http_method' => 'POST',
206
- 'path' => '/v1/products/reviews/{reviewId}/meta/{field}/push',
206
+ 'path' => '/v1/products/reviews/{reviewId}/meta/{field}/pull',
207
207
  'params' => ['reviewId', 'field', ],
208
208
  'args' => args
209
209
  })
@@ -275,27 +275,27 @@ module Clayful
275
275
 
276
276
  end
277
277
 
278
- def self.cancel_flag(*args)
278
+ def self.delete_metafield(*args)
279
279
 
280
280
  Clayful.call_api({
281
281
  'model_name' => @@name,
282
- 'method_name' => 'cancel_flag',
282
+ 'method_name' => 'delete_metafield',
283
283
  'http_method' => 'DELETE',
284
- 'path' => '/v1/products/reviews/{reviewId}/flags/{customerId}',
285
- 'params' => ['reviewId', 'customerId', ],
284
+ 'path' => '/v1/products/reviews/{reviewId}/meta/{field}',
285
+ 'params' => ['reviewId', 'field', ],
286
286
  'args' => args
287
287
  })
288
288
 
289
289
  end
290
290
 
291
- def self.delete_metafield(*args)
291
+ def self.cancel_flag(*args)
292
292
 
293
293
  Clayful.call_api({
294
294
  'model_name' => @@name,
295
- 'method_name' => 'delete_metafield',
295
+ 'method_name' => 'cancel_flag',
296
296
  'http_method' => 'DELETE',
297
- 'path' => '/v1/products/reviews/{reviewId}/meta/{field}',
298
- 'params' => ['reviewId', 'field', ],
297
+ 'path' => '/v1/products/reviews/{reviewId}/flags/{customerId}',
298
+ 'params' => ['reviewId', 'customerId', ],
299
299
  'args' => args
300
300
  })
301
301
 
@@ -105,26 +105,26 @@ module Clayful
105
105
 
106
106
  end
107
107
 
108
- def self.increase_metafield(*args)
108
+ def self.pull_from_metafield(*args)
109
109
 
110
110
  Clayful.call_api({
111
111
  'model_name' => @@name,
112
- 'method_name' => 'increase_metafield',
112
+ 'method_name' => 'pull_from_metafield',
113
113
  'http_method' => 'POST',
114
- 'path' => '/v1/products/reviews/comments/{reviewCommentId}/meta/{field}/inc',
114
+ 'path' => '/v1/products/reviews/comments/{reviewCommentId}/meta/{field}/pull',
115
115
  'params' => ['reviewCommentId', 'field', ],
116
116
  'args' => args
117
117
  })
118
118
 
119
119
  end
120
120
 
121
- def self.pull_from_metafield(*args)
121
+ def self.increase_metafield(*args)
122
122
 
123
123
  Clayful.call_api({
124
124
  'model_name' => @@name,
125
- 'method_name' => 'pull_from_metafield',
125
+ 'method_name' => 'increase_metafield',
126
126
  'http_method' => 'POST',
127
- 'path' => '/v1/products/reviews/comments/{reviewCommentId}/meta/{field}/pull',
127
+ 'path' => '/v1/products/reviews/comments/{reviewCommentId}/meta/{field}/inc',
128
128
  'params' => ['reviewCommentId', 'field', ],
129
129
  'args' => args
130
130
  })
@@ -209,27 +209,27 @@ module Clayful
209
209
 
210
210
  end
211
211
 
212
- def self.cancel_flag(*args)
212
+ def self.delete_metafield(*args)
213
213
 
214
214
  Clayful.call_api({
215
215
  'model_name' => @@name,
216
- 'method_name' => 'cancel_flag',
216
+ 'method_name' => 'delete_metafield',
217
217
  'http_method' => 'DELETE',
218
- 'path' => '/v1/products/reviews/comments/{reviewCommentId}/flags/{customerId}',
219
- 'params' => ['reviewCommentId', 'customerId', ],
218
+ 'path' => '/v1/products/reviews/comments/{reviewCommentId}/meta/{field}',
219
+ 'params' => ['reviewCommentId', 'field', ],
220
220
  'args' => args
221
221
  })
222
222
 
223
223
  end
224
224
 
225
- def self.delete_metafield(*args)
225
+ def self.cancel_flag(*args)
226
226
 
227
227
  Clayful.call_api({
228
228
  'model_name' => @@name,
229
- 'method_name' => 'delete_metafield',
229
+ 'method_name' => 'cancel_flag',
230
230
  'http_method' => 'DELETE',
231
- 'path' => '/v1/products/reviews/comments/{reviewCommentId}/meta/{field}',
232
- 'params' => ['reviewCommentId', 'field', ],
231
+ 'path' => '/v1/products/reviews/comments/{reviewCommentId}/flags/{customerId}',
232
+ 'params' => ['reviewCommentId', 'customerId', ],
233
233
  'args' => args
234
234
  })
235
235
 
data/lib/models/store.rb CHANGED
@@ -26,39 +26,39 @@ module Clayful
26
26
 
27
27
  end
28
28
 
29
- def self.push_to_metafield(*args)
29
+ def self.pull_from_metafield(*args)
30
30
 
31
31
  Clayful.call_api({
32
32
  'model_name' => @@name,
33
- 'method_name' => 'push_to_metafield',
33
+ 'method_name' => 'pull_from_metafield',
34
34
  'http_method' => 'POST',
35
- 'path' => '/v1/store/meta/{field}/push',
35
+ 'path' => '/v1/store/meta/{field}/pull',
36
36
  'params' => ['field', ],
37
37
  'args' => args
38
38
  })
39
39
 
40
40
  end
41
41
 
42
- def self.pull_from_metafield(*args)
42
+ def self.increase_metafield(*args)
43
43
 
44
44
  Clayful.call_api({
45
45
  'model_name' => @@name,
46
- 'method_name' => 'pull_from_metafield',
46
+ 'method_name' => 'increase_metafield',
47
47
  'http_method' => 'POST',
48
- 'path' => '/v1/store/meta/{field}/pull',
48
+ 'path' => '/v1/store/meta/{field}/inc',
49
49
  'params' => ['field', ],
50
50
  'args' => args
51
51
  })
52
52
 
53
53
  end
54
54
 
55
- def self.increase_metafield(*args)
55
+ def self.push_to_metafield(*args)
56
56
 
57
57
  Clayful.call_api({
58
58
  'model_name' => @@name,
59
- 'method_name' => 'increase_metafield',
59
+ 'method_name' => 'push_to_metafield',
60
60
  'http_method' => 'POST',
61
- 'path' => '/v1/store/meta/{field}/inc',
61
+ 'path' => '/v1/store/meta/{field}/push',
62
62
  'params' => ['field', ],
63
63
  'args' => args
64
64
  })
@@ -104,14 +104,15 @@ module Clayful
104
104
 
105
105
  end
106
106
 
107
- def self.cancel(*args)
107
+ def self.mark_as_done(*args)
108
108
 
109
109
  Clayful.call_api({
110
110
  'model_name' => @@name,
111
- 'method_name' => 'cancel',
111
+ 'method_name' => 'mark_as_done',
112
112
  'http_method' => 'POST',
113
- 'path' => '/v1/subscriptions/{subscriptionId}/cancellation',
113
+ 'path' => '/v1/subscriptions/{subscriptionId}/done',
114
114
  'params' => ['subscriptionId', ],
115
+ 'without_payload' => true,
115
116
  'args' => args
116
117
  })
117
118
 
@@ -130,13 +131,13 @@ module Clayful
130
131
 
131
132
  end
132
133
 
133
- def self.mark_as_done(*args)
134
+ def self.sync_inventory(*args)
134
135
 
135
136
  Clayful.call_api({
136
137
  'model_name' => @@name,
137
- 'method_name' => 'mark_as_done',
138
+ 'method_name' => 'sync_inventory',
138
139
  'http_method' => 'POST',
139
- 'path' => '/v1/subscriptions/{subscriptionId}/done',
140
+ 'path' => '/v1/subscriptions/{subscriptionId}/synced',
140
141
  'params' => ['subscriptionId', ],
141
142
  'without_payload' => true,
142
143
  'args' => args
@@ -157,40 +158,39 @@ module Clayful
157
158
 
158
159
  end
159
160
 
160
- def self.sync_inventory(*args)
161
+ def self.cancel(*args)
161
162
 
162
163
  Clayful.call_api({
163
164
  'model_name' => @@name,
164
- 'method_name' => 'sync_inventory',
165
+ 'method_name' => 'cancel',
165
166
  'http_method' => 'POST',
166
- 'path' => '/v1/subscriptions/{subscriptionId}/synced',
167
+ 'path' => '/v1/subscriptions/{subscriptionId}/cancellation',
167
168
  'params' => ['subscriptionId', ],
168
- 'without_payload' => true,
169
169
  'args' => args
170
170
  })
171
171
 
172
172
  end
173
173
 
174
- def self.schedule_for_me(*args)
174
+ def self.cancel_for_me(*args)
175
175
 
176
176
  Clayful.call_api({
177
177
  'model_name' => @@name,
178
- 'method_name' => 'schedule_for_me',
178
+ 'method_name' => 'cancel_for_me',
179
179
  'http_method' => 'POST',
180
- 'path' => '/v1/me/subscriptions/{subscriptionId}/scheduled',
180
+ 'path' => '/v1/me/subscriptions/{subscriptionId}/cancellation',
181
181
  'params' => ['subscriptionId', ],
182
182
  'args' => args
183
183
  })
184
184
 
185
185
  end
186
186
 
187
- def self.cancel_for_me(*args)
187
+ def self.schedule_for_me(*args)
188
188
 
189
189
  Clayful.call_api({
190
190
  'model_name' => @@name,
191
- 'method_name' => 'cancel_for_me',
191
+ 'method_name' => 'schedule_for_me',
192
192
  'http_method' => 'POST',
193
- 'path' => '/v1/me/subscriptions/{subscriptionId}/cancellation',
193
+ 'path' => '/v1/me/subscriptions/{subscriptionId}/scheduled',
194
194
  'params' => ['subscriptionId', ],
195
195
  'args' => args
196
196
  })
@@ -210,39 +210,39 @@ module Clayful
210
210
 
211
211
  end
212
212
 
213
- def self.push_to_metafield(*args)
213
+ def self.pull_from_metafield(*args)
214
214
 
215
215
  Clayful.call_api({
216
216
  'model_name' => @@name,
217
- 'method_name' => 'push_to_metafield',
217
+ 'method_name' => 'pull_from_metafield',
218
218
  'http_method' => 'POST',
219
- 'path' => '/v1/subscriptions/{subscriptionId}/meta/{field}/push',
219
+ 'path' => '/v1/subscriptions/{subscriptionId}/meta/{field}/pull',
220
220
  'params' => ['subscriptionId', 'field', ],
221
221
  'args' => args
222
222
  })
223
223
 
224
224
  end
225
225
 
226
- def self.pull_from_metafield(*args)
226
+ def self.increase_metafield(*args)
227
227
 
228
228
  Clayful.call_api({
229
229
  'model_name' => @@name,
230
- 'method_name' => 'pull_from_metafield',
230
+ 'method_name' => 'increase_metafield',
231
231
  'http_method' => 'POST',
232
- 'path' => '/v1/subscriptions/{subscriptionId}/meta/{field}/pull',
232
+ 'path' => '/v1/subscriptions/{subscriptionId}/meta/{field}/inc',
233
233
  'params' => ['subscriptionId', 'field', ],
234
234
  'args' => args
235
235
  })
236
236
 
237
237
  end
238
238
 
239
- def self.increase_metafield(*args)
239
+ def self.push_to_metafield(*args)
240
240
 
241
241
  Clayful.call_api({
242
242
  'model_name' => @@name,
243
- 'method_name' => 'increase_metafield',
243
+ 'method_name' => 'push_to_metafield',
244
244
  'http_method' => 'POST',
245
- 'path' => '/v1/subscriptions/{subscriptionId}/meta/{field}/inc',
245
+ 'path' => '/v1/subscriptions/{subscriptionId}/meta/{field}/push',
246
246
  'params' => ['subscriptionId', 'field', ],
247
247
  'args' => args
248
248
  })
data/lib/models/vendor.rb CHANGED
@@ -65,13 +65,13 @@ module Clayful
65
65
 
66
66
  end
67
67
 
68
- def self.pull_from_metafield(*args)
68
+ def self.push_to_metafield(*args)
69
69
 
70
70
  Clayful.call_api({
71
71
  'model_name' => @@name,
72
- 'method_name' => 'pull_from_metafield',
72
+ 'method_name' => 'push_to_metafield',
73
73
  'http_method' => 'POST',
74
- 'path' => '/v1/vendors/{vendorId}/meta/{field}/pull',
74
+ 'path' => '/v1/vendors/{vendorId}/meta/{field}/push',
75
75
  'params' => ['vendorId', 'field', ],
76
76
  'args' => args
77
77
  })
@@ -91,13 +91,13 @@ module Clayful
91
91
 
92
92
  end
93
93
 
94
- def self.push_to_metafield(*args)
94
+ def self.pull_from_metafield(*args)
95
95
 
96
96
  Clayful.call_api({
97
97
  'model_name' => @@name,
98
- 'method_name' => 'push_to_metafield',
98
+ 'method_name' => 'pull_from_metafield',
99
99
  'http_method' => 'POST',
100
- 'path' => '/v1/vendors/{vendorId}/meta/{field}/push',
100
+ 'path' => '/v1/vendors/{vendorId}/meta/{field}/pull',
101
101
  'params' => ['vendorId', 'field', ],
102
102
  'args' => args
103
103
  })
@@ -195,39 +195,39 @@ module Clayful
195
195
 
196
196
  end
197
197
 
198
- def self.push_to_metafield(*args)
198
+ def self.increase_metafield(*args)
199
199
 
200
200
  Clayful.call_api({
201
201
  'model_name' => @@name,
202
- 'method_name' => 'push_to_metafield',
202
+ 'method_name' => 'increase_metafield',
203
203
  'http_method' => 'POST',
204
- 'path' => '/v1/wishlists/{wishListId}/meta/{field}/push',
204
+ 'path' => '/v1/wishlists/{wishListId}/meta/{field}/inc',
205
205
  'params' => ['wishListId', 'field', ],
206
206
  'args' => args
207
207
  })
208
208
 
209
209
  end
210
210
 
211
- def self.pull_from_metafield(*args)
211
+ def self.push_to_metafield(*args)
212
212
 
213
213
  Clayful.call_api({
214
214
  'model_name' => @@name,
215
- 'method_name' => 'pull_from_metafield',
215
+ 'method_name' => 'push_to_metafield',
216
216
  'http_method' => 'POST',
217
- 'path' => '/v1/wishlists/{wishListId}/meta/{field}/pull',
217
+ 'path' => '/v1/wishlists/{wishListId}/meta/{field}/push',
218
218
  'params' => ['wishListId', 'field', ],
219
219
  'args' => args
220
220
  })
221
221
 
222
222
  end
223
223
 
224
- def self.increase_metafield(*args)
224
+ def self.pull_from_metafield(*args)
225
225
 
226
226
  Clayful.call_api({
227
227
  'model_name' => @@name,
228
- 'method_name' => 'increase_metafield',
228
+ 'method_name' => 'pull_from_metafield',
229
229
  'http_method' => 'POST',
230
- 'path' => '/v1/wishlists/{wishListId}/meta/{field}/inc',
230
+ 'path' => '/v1/wishlists/{wishListId}/meta/{field}/pull',
231
231
  'params' => ['wishListId', 'field', ],
232
232
  'args' => args
233
233
  })
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clayful
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daeik Kim
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-17 00:00:00.000000000 Z
11
+ date: 2020-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json