clayful 2.0.0 → 2.1.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: 10f397fa265f6c886f1e24c7e4dfac0f92430355
4
- data.tar.gz: d3b14c81dc8d343fb4d9771376eb91d7208f6eb4
3
+ metadata.gz: 7a6a84ffbfe4354fc1c1135fc1d0bf7804f7d68b
4
+ data.tar.gz: 9fd9d965f98808058b57de964ae9ed6de87f5e07
5
5
  SHA512:
6
- metadata.gz: 44aa59772ebb757950bae3917c262128be1f007ee04ef9c77febdc2a52333e66af0156af514c28a54fd6c261eae2f3da3f14a5df8c09ba6fab88c02b724cc9aa
7
- data.tar.gz: 2301867f029053aa8b932c4911707d19cf428651ed70c60af2ac1d7f1a322b6a81d1675f591d4e902ff950951cde171b56ea6b7dda6853fbe55ef8cff2084cd1
6
+ metadata.gz: 4f037b3d3c436f57a5dc1d6cbf37a267917d1061fb5fbe1c3c91d3673e1e6ed0e9913e4e0696bd1a2127a6ad9c78e703a0e845f6ccd939a23aad09ceba94ac50
7
+ data.tar.gz: def5a79b124129e963db360884e16f279293f6ea70d725018052c680fb42c4c2da6ad45aa3ca52337c0310e7ecef6cb85375b111057a13878471ed88292f8022
@@ -52,39 +52,39 @@ module Clayful
52
52
 
53
53
  end
54
54
 
55
- def self.push_to_metafield(*args)
55
+ def self.pull_from_metafield(*args)
56
56
 
57
57
  Clayful.call_api({
58
58
  'model_name' => @@name,
59
- 'method_name' => 'push_to_metafield',
59
+ 'method_name' => 'pull_from_metafield',
60
60
  'http_method' => 'POST',
61
- 'path' => '/v1/brands/{brandId}/meta/{field}/push',
61
+ 'path' => '/v1/brands/{brandId}/meta/{field}/pull',
62
62
  'params' => ['brandId', 'field', ],
63
63
  'args' => args
64
64
  })
65
65
 
66
66
  end
67
67
 
68
- def self.pull_from_metafield(*args)
68
+ def self.increase_metafield(*args)
69
69
 
70
70
  Clayful.call_api({
71
71
  'model_name' => @@name,
72
- 'method_name' => 'pull_from_metafield',
72
+ 'method_name' => 'increase_metafield',
73
73
  'http_method' => 'POST',
74
- 'path' => '/v1/brands/{brandId}/meta/{field}/pull',
74
+ 'path' => '/v1/brands/{brandId}/meta/{field}/inc',
75
75
  'params' => ['brandId', 'field', ],
76
76
  'args' => args
77
77
  })
78
78
 
79
79
  end
80
80
 
81
- def self.increase_metafield(*args)
81
+ def self.push_to_metafield(*args)
82
82
 
83
83
  Clayful.call_api({
84
84
  'model_name' => @@name,
85
- 'method_name' => 'increase_metafield',
85
+ 'method_name' => 'push_to_metafield',
86
86
  'http_method' => 'POST',
87
- 'path' => '/v1/brands/{brandId}/meta/{field}/inc',
87
+ 'path' => '/v1/brands/{brandId}/meta/{field}/push',
88
88
  'params' => ['brandId', 'field', ],
89
89
  'args' => args
90
90
  })
@@ -52,13 +52,13 @@ module Clayful
52
52
 
53
53
  end
54
54
 
55
- def self.push_to_metafield(*args)
55
+ def self.pull_from_metafield(*args)
56
56
 
57
57
  Clayful.call_api({
58
58
  'model_name' => @@name,
59
- 'method_name' => 'push_to_metafield',
59
+ 'method_name' => 'pull_from_metafield',
60
60
  'http_method' => 'POST',
61
- 'path' => '/v1/catalogs/{catalogId}/meta/{field}/push',
61
+ 'path' => '/v1/catalogs/{catalogId}/meta/{field}/pull',
62
62
  'params' => ['catalogId', 'field', ],
63
63
  'args' => args
64
64
  })
@@ -78,13 +78,13 @@ module Clayful
78
78
 
79
79
  end
80
80
 
81
- def self.pull_from_metafield(*args)
81
+ def self.push_to_metafield(*args)
82
82
 
83
83
  Clayful.call_api({
84
84
  'model_name' => @@name,
85
- 'method_name' => 'pull_from_metafield',
85
+ 'method_name' => 'push_to_metafield',
86
86
  'http_method' => 'POST',
87
- 'path' => '/v1/catalogs/{catalogId}/meta/{field}/pull',
87
+ 'path' => '/v1/catalogs/{catalogId}/meta/{field}/push',
88
88
  'params' => ['catalogId', 'field', ],
89
89
  'args' => args
90
90
  })
@@ -52,13 +52,13 @@ module Clayful
52
52
 
53
53
  end
54
54
 
55
- def self.pull_from_metafield(*args)
55
+ def self.push_to_metafield(*args)
56
56
 
57
57
  Clayful.call_api({
58
58
  'model_name' => @@name,
59
- 'method_name' => 'pull_from_metafield',
59
+ 'method_name' => 'push_to_metafield',
60
60
  'http_method' => 'POST',
61
- 'path' => '/v1/coupons/{couponId}/meta/{field}/pull',
61
+ 'path' => '/v1/coupons/{couponId}/meta/{field}/push',
62
62
  'params' => ['couponId', 'field', ],
63
63
  'args' => args
64
64
  })
@@ -78,13 +78,13 @@ module Clayful
78
78
 
79
79
  end
80
80
 
81
- def self.push_to_metafield(*args)
81
+ def self.pull_from_metafield(*args)
82
82
 
83
83
  Clayful.call_api({
84
84
  'model_name' => @@name,
85
- 'method_name' => 'push_to_metafield',
85
+ 'method_name' => 'pull_from_metafield',
86
86
  'http_method' => 'POST',
87
- 'path' => '/v1/coupons/{couponId}/meta/{field}/push',
87
+ 'path' => '/v1/coupons/{couponId}/meta/{field}/pull',
88
88
  'params' => ['couponId', 'field', ],
89
89
  'args' => args
90
90
  })
@@ -300,39 +300,39 @@ module Clayful
300
300
 
301
301
  end
302
302
 
303
- def self.increase_metafield(*args)
303
+ def self.push_to_metafield(*args)
304
304
 
305
305
  Clayful.call_api({
306
306
  'model_name' => @@name,
307
- 'method_name' => 'increase_metafield',
307
+ 'method_name' => 'push_to_metafield',
308
308
  'http_method' => 'POST',
309
- 'path' => '/v1/customers/{customerId}/meta/{field}/inc',
309
+ 'path' => '/v1/customers/{customerId}/meta/{field}/push',
310
310
  'params' => ['customerId', 'field', ],
311
311
  'args' => args
312
312
  })
313
313
 
314
314
  end
315
315
 
316
- def self.push_to_metafield(*args)
316
+ def self.pull_from_metafield(*args)
317
317
 
318
318
  Clayful.call_api({
319
319
  'model_name' => @@name,
320
- 'method_name' => 'push_to_metafield',
320
+ 'method_name' => 'pull_from_metafield',
321
321
  'http_method' => 'POST',
322
- 'path' => '/v1/customers/{customerId}/meta/{field}/push',
322
+ 'path' => '/v1/customers/{customerId}/meta/{field}/pull',
323
323
  'params' => ['customerId', 'field', ],
324
324
  'args' => args
325
325
  })
326
326
 
327
327
  end
328
328
 
329
- def self.pull_from_metafield(*args)
329
+ def self.increase_metafield(*args)
330
330
 
331
331
  Clayful.call_api({
332
332
  'model_name' => @@name,
333
- 'method_name' => 'pull_from_metafield',
333
+ 'method_name' => 'increase_metafield',
334
334
  'http_method' => 'POST',
335
- 'path' => '/v1/customers/{customerId}/meta/{field}/pull',
335
+ 'path' => '/v1/customers/{customerId}/meta/{field}/inc',
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.update_credentials(*args)
381
+ def self.reset_password(*args)
382
382
 
383
383
  Clayful.call_api({
384
384
  'model_name' => @@name,
385
- 'method_name' => 'update_credentials',
385
+ 'method_name' => 'reset_password',
386
386
  'http_method' => 'PUT',
387
- 'path' => '/v1/customers/{customerId}/credentials',
387
+ 'path' => '/v1/customers/{customerId}/password',
388
388
  'params' => ['customerId', ],
389
389
  'args' => args
390
390
  })
391
391
 
392
392
  end
393
393
 
394
- def self.reset_password(*args)
394
+ def self.update_credentials(*args)
395
395
 
396
396
  Clayful.call_api({
397
397
  'model_name' => @@name,
398
- 'method_name' => 'reset_password',
398
+ 'method_name' => 'update_credentials',
399
399
  'http_method' => 'PUT',
400
- 'path' => '/v1/customers/{customerId}/password',
400
+ 'path' => '/v1/customers/{customerId}/credentials',
401
401
  'params' => ['customerId', ],
402
402
  'args' => args
403
403
  })
@@ -52,13 +52,13 @@ module Clayful
52
52
 
53
53
  end
54
54
 
55
- def self.push_to_metafield(*args)
55
+ def self.increase_metafield(*args)
56
56
 
57
57
  Clayful.call_api({
58
58
  'model_name' => @@name,
59
- 'method_name' => 'push_to_metafield',
59
+ 'method_name' => 'increase_metafield',
60
60
  'http_method' => 'POST',
61
- 'path' => '/v1/discounts/{discountId}/meta/{field}/push',
61
+ 'path' => '/v1/discounts/{discountId}/meta/{field}/inc',
62
62
  'params' => ['discountId', 'field', ],
63
63
  'args' => args
64
64
  })
@@ -78,13 +78,13 @@ module Clayful
78
78
 
79
79
  end
80
80
 
81
- def self.increase_metafield(*args)
81
+ def self.push_to_metafield(*args)
82
82
 
83
83
  Clayful.call_api({
84
84
  'model_name' => @@name,
85
- 'method_name' => 'increase_metafield',
85
+ 'method_name' => 'push_to_metafield',
86
86
  'http_method' => 'POST',
87
- 'path' => '/v1/discounts/{discountId}/meta/{field}/inc',
87
+ 'path' => '/v1/discounts/{discountId}/meta/{field}/push',
88
88
  'params' => ['discountId', 'field', ],
89
89
  'args' => args
90
90
  })
@@ -52,26 +52,26 @@ module Clayful
52
52
 
53
53
  end
54
54
 
55
- def self.pull_from_metafield(*args)
55
+ def self.push_to_metafield(*args)
56
56
 
57
57
  Clayful.call_api({
58
58
  'model_name' => @@name,
59
- 'method_name' => 'pull_from_metafield',
59
+ 'method_name' => 'push_to_metafield',
60
60
  'http_method' => 'POST',
61
- 'path' => '/v1/groups/{groupId}/meta/{field}/pull',
61
+ 'path' => '/v1/groups/{groupId}/meta/{field}/push',
62
62
  'params' => ['groupId', 'field', ],
63
63
  'args' => args
64
64
  })
65
65
 
66
66
  end
67
67
 
68
- def self.push_to_metafield(*args)
68
+ def self.pull_from_metafield(*args)
69
69
 
70
70
  Clayful.call_api({
71
71
  'model_name' => @@name,
72
- 'method_name' => 'push_to_metafield',
72
+ 'method_name' => 'pull_from_metafield',
73
73
  'http_method' => 'POST',
74
- 'path' => '/v1/groups/{groupId}/meta/{field}/push',
74
+ 'path' => '/v1/groups/{groupId}/meta/{field}/pull',
75
75
  'params' => ['groupId', 'field', ],
76
76
  'args' => args
77
77
  })
@@ -130,13 +130,13 @@ module Clayful
130
130
 
131
131
  end
132
132
 
133
- def self.mark_as_received(*args)
133
+ def self.mark_as_done(*args)
134
134
 
135
135
  Clayful.call_api({
136
136
  'model_name' => @@name,
137
- 'method_name' => 'mark_as_received',
137
+ 'method_name' => 'mark_as_done',
138
138
  'http_method' => 'POST',
139
- 'path' => '/v1/orders/{orderId}/received',
139
+ 'path' => '/v1/orders/{orderId}/done',
140
140
  'params' => ['orderId', ],
141
141
  'without_payload' => true,
142
142
  'args' => args
@@ -144,13 +144,13 @@ module Clayful
144
144
 
145
145
  end
146
146
 
147
- def self.sync_inventory(*args)
147
+ def self.mark_as_received(*args)
148
148
 
149
149
  Clayful.call_api({
150
150
  'model_name' => @@name,
151
- 'method_name' => 'sync_inventory',
151
+ 'method_name' => 'mark_as_received',
152
152
  'http_method' => 'POST',
153
- 'path' => '/v1/orders/{orderId}/synced',
153
+ 'path' => '/v1/orders/{orderId}/received',
154
154
  'params' => ['orderId', ],
155
155
  'without_payload' => true,
156
156
  'args' => args
@@ -158,65 +158,65 @@ module Clayful
158
158
 
159
159
  end
160
160
 
161
- def self.cancel(*args)
161
+ def self.authenticate(*args)
162
162
 
163
163
  Clayful.call_api({
164
164
  'model_name' => @@name,
165
- 'method_name' => 'cancel',
165
+ 'method_name' => 'authenticate',
166
166
  'http_method' => 'POST',
167
- 'path' => '/v1/orders/{orderId}/cancellation',
167
+ 'path' => '/v1/orders/{orderId}/auth',
168
168
  'params' => ['orderId', ],
169
169
  'args' => args
170
170
  })
171
171
 
172
172
  end
173
173
 
174
- def self.create_fulfillment(*args)
174
+ def self.cancel(*args)
175
175
 
176
176
  Clayful.call_api({
177
177
  'model_name' => @@name,
178
- 'method_name' => 'create_fulfillment',
178
+ 'method_name' => 'cancel',
179
179
  'http_method' => 'POST',
180
- 'path' => '/v1/orders/{orderId}/fulfillments',
180
+ 'path' => '/v1/orders/{orderId}/cancellation',
181
181
  'params' => ['orderId', ],
182
182
  'args' => args
183
183
  })
184
184
 
185
185
  end
186
186
 
187
- def self.authenticate(*args)
187
+ def self.request_refund(*args)
188
188
 
189
189
  Clayful.call_api({
190
190
  'model_name' => @@name,
191
- 'method_name' => 'authenticate',
191
+ 'method_name' => 'request_refund',
192
192
  'http_method' => 'POST',
193
- 'path' => '/v1/orders/{orderId}/auth',
193
+ 'path' => '/v1/orders/{orderId}/refunds',
194
194
  'params' => ['orderId', ],
195
195
  'args' => args
196
196
  })
197
197
 
198
198
  end
199
199
 
200
- def self.request_refund(*args)
200
+ def self.create_fulfillment(*args)
201
201
 
202
202
  Clayful.call_api({
203
203
  'model_name' => @@name,
204
- 'method_name' => 'request_refund',
204
+ 'method_name' => 'create_fulfillment',
205
205
  'http_method' => 'POST',
206
- 'path' => '/v1/orders/{orderId}/refunds',
206
+ 'path' => '/v1/orders/{orderId}/fulfillments',
207
207
  'params' => ['orderId', ],
208
208
  'args' => args
209
209
  })
210
210
 
211
211
  end
212
212
 
213
- def self.mark_as_done(*args)
213
+ def self.sync_inventory(*args)
214
214
 
215
215
  Clayful.call_api({
216
216
  'model_name' => @@name,
217
- 'method_name' => 'mark_as_done',
217
+ 'method_name' => 'sync_inventory',
218
218
  'http_method' => 'POST',
219
- 'path' => '/v1/orders/{orderId}/done',
219
+ 'path' => '/v1/orders/{orderId}/synced',
220
220
  'params' => ['orderId', ],
221
221
  'without_payload' => true,
222
222
  'args' => args
@@ -224,28 +224,28 @@ module Clayful
224
224
 
225
225
  end
226
226
 
227
- def self.request_refund_for_me(*args)
227
+ def self.mark_as_received_for_me(*args)
228
228
 
229
229
  Clayful.call_api({
230
230
  'model_name' => @@name,
231
- 'method_name' => 'request_refund_for_me',
231
+ 'method_name' => 'mark_as_received_for_me',
232
232
  'http_method' => 'POST',
233
- 'path' => '/v1/me/orders/{orderId}/refunds',
233
+ 'path' => '/v1/me/orders/{orderId}/received',
234
234
  'params' => ['orderId', ],
235
+ 'without_payload' => true,
235
236
  'args' => args
236
237
  })
237
238
 
238
239
  end
239
240
 
240
- def self.mark_as_received_for_me(*args)
241
+ def self.request_refund_for_me(*args)
241
242
 
242
243
  Clayful.call_api({
243
244
  'model_name' => @@name,
244
- 'method_name' => 'mark_as_received_for_me',
245
+ 'method_name' => 'request_refund_for_me',
245
246
  'http_method' => 'POST',
246
- 'path' => '/v1/me/orders/{orderId}/received',
247
+ 'path' => '/v1/me/orders/{orderId}/refunds',
247
248
  'params' => ['orderId', ],
248
- 'without_payload' => true,
249
249
  'args' => args
250
250
  })
251
251
 
@@ -305,79 +305,79 @@ module Clayful
305
305
 
306
306
  end
307
307
 
308
- def self.push_to_metafield(*args)
308
+ def self.cancel_refund(*args)
309
309
 
310
310
  Clayful.call_api({
311
311
  'model_name' => @@name,
312
- 'method_name' => 'push_to_metafield',
312
+ 'method_name' => 'cancel_refund',
313
313
  'http_method' => 'POST',
314
- 'path' => '/v1/orders/{orderId}/meta/{field}/push',
315
- 'params' => ['orderId', 'field', ],
314
+ 'path' => '/v1/orders/{orderId}/refunds/{refundId}/cancellation',
315
+ 'params' => ['orderId', 'refundId', ],
316
316
  'args' => args
317
317
  })
318
318
 
319
319
  end
320
320
 
321
- def self.cancel_refund(*args)
321
+ def self.register_payment_method(*args)
322
322
 
323
323
  Clayful.call_api({
324
324
  'model_name' => @@name,
325
- 'method_name' => 'cancel_refund',
325
+ 'method_name' => 'register_payment_method',
326
326
  'http_method' => 'POST',
327
- 'path' => '/v1/orders/{orderId}/refunds/{refundId}/cancellation',
328
- 'params' => ['orderId', 'refundId', ],
327
+ 'path' => '/v1/orders/{orderId}/transactions/payments/methods',
328
+ 'params' => ['orderId', ],
329
329
  'args' => args
330
330
  })
331
331
 
332
332
  end
333
333
 
334
- def self.pull_from_metafield(*args)
334
+ def self.increase_metafield(*args)
335
335
 
336
336
  Clayful.call_api({
337
337
  'model_name' => @@name,
338
- 'method_name' => 'pull_from_metafield',
338
+ 'method_name' => 'increase_metafield',
339
339
  'http_method' => 'POST',
340
- 'path' => '/v1/orders/{orderId}/meta/{field}/pull',
340
+ 'path' => '/v1/orders/{orderId}/meta/{field}/inc',
341
341
  'params' => ['orderId', 'field', ],
342
342
  'args' => args
343
343
  })
344
344
 
345
345
  end
346
346
 
347
- def self.increase_metafield(*args)
347
+ def self.push_to_metafield(*args)
348
348
 
349
349
  Clayful.call_api({
350
350
  'model_name' => @@name,
351
- 'method_name' => 'increase_metafield',
351
+ 'method_name' => 'push_to_metafield',
352
352
  'http_method' => 'POST',
353
- 'path' => '/v1/orders/{orderId}/meta/{field}/inc',
353
+ 'path' => '/v1/orders/{orderId}/meta/{field}/push',
354
354
  'params' => ['orderId', 'field', ],
355
355
  'args' => args
356
356
  })
357
357
 
358
358
  end
359
359
 
360
- def self.restock_refund_items(*args)
360
+ def self.pull_from_metafield(*args)
361
361
 
362
362
  Clayful.call_api({
363
363
  'model_name' => @@name,
364
- 'method_name' => 'restock_refund_items',
364
+ 'method_name' => 'pull_from_metafield',
365
365
  'http_method' => 'POST',
366
- 'path' => '/v1/orders/{orderId}/refunds/{refundId}/restock',
367
- 'params' => ['orderId', 'refundId', ],
366
+ 'path' => '/v1/orders/{orderId}/meta/{field}/pull',
367
+ 'params' => ['orderId', 'field', ],
368
368
  'args' => args
369
369
  })
370
370
 
371
371
  end
372
372
 
373
- def self.register_payment_method(*args)
373
+ def self.restock_refund_items(*args)
374
374
 
375
375
  Clayful.call_api({
376
376
  'model_name' => @@name,
377
- 'method_name' => 'register_payment_method',
377
+ 'method_name' => 'restock_refund_items',
378
378
  'http_method' => 'POST',
379
- 'path' => '/v1/orders/{orderId}/transactions/payments/methods',
380
- 'params' => ['orderId', ],
379
+ 'path' => '/v1/orders/{orderId}/refunds/{refundId}/restock',
380
+ 'params' => ['orderId', 'refundId', ],
381
381
  'args' => args
382
382
  })
383
383
 
@@ -396,28 +396,28 @@ module Clayful
396
396
 
397
397
  end
398
398
 
399
- def self.create_download_url(*args)
399
+ def self.restock_all_refund_items(*args)
400
400
 
401
401
  Clayful.call_api({
402
402
  'model_name' => @@name,
403
- 'method_name' => 'create_download_url',
403
+ 'method_name' => 'restock_all_refund_items',
404
404
  'http_method' => 'POST',
405
- 'path' => '/v1/orders/{orderId}/items/{itemId}/download/url',
406
- 'params' => ['orderId', 'itemId', ],
405
+ 'path' => '/v1/orders/{orderId}/refunds/{refundId}/restock/all',
406
+ 'params' => ['orderId', 'refundId', ],
407
407
  'without_payload' => true,
408
408
  'args' => args
409
409
  })
410
410
 
411
411
  end
412
412
 
413
- def self.restock_all_refund_items(*args)
413
+ def self.create_download_url(*args)
414
414
 
415
415
  Clayful.call_api({
416
416
  'model_name' => @@name,
417
- 'method_name' => 'restock_all_refund_items',
417
+ 'method_name' => 'create_download_url',
418
418
  'http_method' => 'POST',
419
- 'path' => '/v1/orders/{orderId}/refunds/{refundId}/restock/all',
420
- 'params' => ['orderId', 'refundId', ],
419
+ 'path' => '/v1/orders/{orderId}/items/{itemId}/download/url',
420
+ 'params' => ['orderId', 'itemId', ],
421
421
  'without_payload' => true,
422
422
  'args' => args
423
423
  })
@@ -517,40 +517,40 @@ module Clayful
517
517
 
518
518
  end
519
519
 
520
- def self.update_fulfillment(*args)
520
+ def self.update_item(*args)
521
521
 
522
522
  Clayful.call_api({
523
523
  'model_name' => @@name,
524
- 'method_name' => 'update_fulfillment',
524
+ 'method_name' => 'update_item',
525
525
  'http_method' => 'PUT',
526
- 'path' => '/v1/orders/{orderId}/fulfillments/{fulfillmentId}',
527
- 'params' => ['orderId', 'fulfillmentId', ],
526
+ 'path' => '/v1/orders/{orderId}/items/{itemId}',
527
+ 'params' => ['orderId', 'itemId', ],
528
528
  'args' => args
529
529
  })
530
530
 
531
531
  end
532
532
 
533
- def self.update_refund(*args)
533
+ def self.update_fulfillment(*args)
534
534
 
535
535
  Clayful.call_api({
536
536
  'model_name' => @@name,
537
- 'method_name' => 'update_refund',
537
+ 'method_name' => 'update_fulfillment',
538
538
  'http_method' => 'PUT',
539
- 'path' => '/v1/orders/{orderId}/refunds/{refundId}',
540
- 'params' => ['orderId', 'refundId', ],
539
+ 'path' => '/v1/orders/{orderId}/fulfillments/{fulfillmentId}',
540
+ 'params' => ['orderId', 'fulfillmentId', ],
541
541
  'args' => args
542
542
  })
543
543
 
544
544
  end
545
545
 
546
- def self.update_item(*args)
546
+ def self.update_refund(*args)
547
547
 
548
548
  Clayful.call_api({
549
549
  'model_name' => @@name,
550
- 'method_name' => 'update_item',
550
+ 'method_name' => 'update_refund',
551
551
  'http_method' => 'PUT',
552
- 'path' => '/v1/orders/{orderId}/items/{itemId}',
553
- 'params' => ['orderId', 'itemId', ],
552
+ 'path' => '/v1/orders/{orderId}/refunds/{refundId}',
553
+ 'params' => ['orderId', 'refundId', ],
554
554
  'args' => args
555
555
  })
556
556
 
@@ -647,27 +647,27 @@ module Clayful
647
647
 
648
648
  end
649
649
 
650
- def self.delete_metafield(*args)
650
+ def self.delete_refund(*args)
651
651
 
652
652
  Clayful.call_api({
653
653
  'model_name' => @@name,
654
- 'method_name' => 'delete_metafield',
654
+ 'method_name' => 'delete_refund',
655
655
  'http_method' => 'DELETE',
656
- 'path' => '/v1/orders/{orderId}/meta/{field}',
657
- 'params' => ['orderId', 'field', ],
656
+ 'path' => '/v1/orders/{orderId}/refunds/{refundId}',
657
+ 'params' => ['orderId', 'refundId', ],
658
658
  'args' => args
659
659
  })
660
660
 
661
661
  end
662
662
 
663
- def self.delete_refund(*args)
663
+ def self.delete_metafield(*args)
664
664
 
665
665
  Clayful.call_api({
666
666
  'model_name' => @@name,
667
- 'method_name' => 'delete_refund',
667
+ 'method_name' => 'delete_metafield',
668
668
  'http_method' => 'DELETE',
669
- 'path' => '/v1/orders/{orderId}/refunds/{refundId}',
670
- 'params' => ['orderId', 'refundId', ],
669
+ 'path' => '/v1/orders/{orderId}/meta/{field}',
670
+ 'params' => ['orderId', 'field', ],
671
671
  'args' => args
672
672
  })
673
673
 
@@ -686,27 +686,27 @@ module Clayful
686
686
 
687
687
  end
688
688
 
689
- def self.delete_inventory_operation(*args)
689
+ def self.unaccept_refund(*args)
690
690
 
691
691
  Clayful.call_api({
692
692
  'model_name' => @@name,
693
- 'method_name' => 'delete_inventory_operation',
693
+ 'method_name' => 'unaccept_refund',
694
694
  'http_method' => 'DELETE',
695
- 'path' => '/v1/orders/{orderId}/inventory/operations/{operationId}',
696
- 'params' => ['orderId', 'operationId', ],
695
+ 'path' => '/v1/orders/{orderId}/refunds/{refundId}/accepted',
696
+ 'params' => ['orderId', 'refundId', ],
697
697
  'args' => args
698
698
  })
699
699
 
700
700
  end
701
701
 
702
- def self.unaccept_refund(*args)
702
+ def self.delete_inventory_operation(*args)
703
703
 
704
704
  Clayful.call_api({
705
705
  'model_name' => @@name,
706
- 'method_name' => 'unaccept_refund',
706
+ 'method_name' => 'delete_inventory_operation',
707
707
  'http_method' => 'DELETE',
708
- 'path' => '/v1/orders/{orderId}/refunds/{refundId}/accepted',
709
- 'params' => ['orderId', 'refundId', ],
708
+ 'path' => '/v1/orders/{orderId}/inventory/operations/{operationId}',
709
+ 'params' => ['orderId', 'operationId', ],
710
710
  'args' => args
711
711
  })
712
712
 
@@ -52,6 +52,32 @@ module Clayful
52
52
 
53
53
  end
54
54
 
55
+ def self.create(*args)
56
+
57
+ Clayful.call_api({
58
+ 'model_name' => @@name,
59
+ 'method_name' => 'create',
60
+ 'http_method' => 'POST',
61
+ 'path' => '/v1/products',
62
+ 'params' => [],
63
+ 'args' => args
64
+ })
65
+
66
+ end
67
+
68
+ def self.create_variant(*args)
69
+
70
+ Clayful.call_api({
71
+ 'model_name' => @@name,
72
+ 'method_name' => 'create_variant',
73
+ 'http_method' => 'POST',
74
+ 'path' => '/v1/products/{productId}/variants',
75
+ 'params' => ['productId', ],
76
+ 'args' => args
77
+ })
78
+
79
+ end
80
+
55
81
  def self.increase_metafield(*args)
56
82
 
57
83
  Clayful.call_api({
@@ -78,6 +104,19 @@ module Clayful
78
104
 
79
105
  end
80
106
 
107
+ def self.create_variation(*args)
108
+
109
+ Clayful.call_api({
110
+ 'model_name' => @@name,
111
+ 'method_name' => 'create_variation',
112
+ 'http_method' => 'POST',
113
+ 'path' => '/v1/products/{productId}/options/{optionId}/variations',
114
+ 'params' => ['productId', 'optionId', ],
115
+ 'args' => args
116
+ })
117
+
118
+ end
119
+
81
120
  def self.push_to_metafield(*args)
82
121
 
83
122
  Clayful.call_api({
@@ -91,6 +130,71 @@ module Clayful
91
130
 
92
131
  end
93
132
 
133
+ def self.update(*args)
134
+
135
+ Clayful.call_api({
136
+ 'model_name' => @@name,
137
+ 'method_name' => 'update',
138
+ 'http_method' => 'PUT',
139
+ 'path' => '/v1/products/{productId}',
140
+ 'params' => ['productId', ],
141
+ 'args' => args
142
+ })
143
+
144
+ end
145
+
146
+ def self.update_option(*args)
147
+
148
+ Clayful.call_api({
149
+ 'model_name' => @@name,
150
+ 'method_name' => 'update_option',
151
+ 'http_method' => 'PUT',
152
+ 'path' => '/v1/products/{productId}/options/{optionId}',
153
+ 'params' => ['productId', 'optionId', ],
154
+ 'args' => args
155
+ })
156
+
157
+ end
158
+
159
+ def self.update_variant(*args)
160
+
161
+ Clayful.call_api({
162
+ 'model_name' => @@name,
163
+ 'method_name' => 'update_variant',
164
+ 'http_method' => 'PUT',
165
+ 'path' => '/v1/products/{productId}/variants/{variantId}',
166
+ 'params' => ['productId', 'variantId', ],
167
+ 'args' => args
168
+ })
169
+
170
+ end
171
+
172
+ def self.update_variation(*args)
173
+
174
+ Clayful.call_api({
175
+ 'model_name' => @@name,
176
+ 'method_name' => 'update_variation',
177
+ 'http_method' => 'PUT',
178
+ 'path' => '/v1/products/{productId}/options/{optionId}/variations/{variationId}',
179
+ 'params' => ['productId', 'optionId', 'variationId', ],
180
+ 'args' => args
181
+ })
182
+
183
+ end
184
+
185
+ def self.delete(*args)
186
+
187
+ Clayful.call_api({
188
+ 'model_name' => @@name,
189
+ 'method_name' => 'delete',
190
+ 'http_method' => 'DELETE',
191
+ 'path' => '/v1/products/{productId}',
192
+ 'params' => ['productId', ],
193
+ 'args' => args
194
+ })
195
+
196
+ end
197
+
94
198
  def self.delete_metafield(*args)
95
199
 
96
200
  Clayful.call_api({
@@ -104,6 +208,32 @@ module Clayful
104
208
 
105
209
  end
106
210
 
211
+ def self.delete_variant(*args)
212
+
213
+ Clayful.call_api({
214
+ 'model_name' => @@name,
215
+ 'method_name' => 'delete_variant',
216
+ 'http_method' => 'DELETE',
217
+ 'path' => '/v1/products/{productId}/variants/{variantId}',
218
+ 'params' => ['productId', 'variantId', ],
219
+ 'args' => args
220
+ })
221
+
222
+ end
223
+
224
+ def self.delete_variation(*args)
225
+
226
+ Clayful.call_api({
227
+ 'model_name' => @@name,
228
+ 'method_name' => 'delete_variation',
229
+ 'http_method' => 'DELETE',
230
+ 'path' => '/v1/products/{productId}/options/{optionId}/variations/{variationId}',
231
+ 'params' => ['productId', 'optionId', 'variationId', ],
232
+ 'args' => args
233
+ })
234
+
235
+ end
236
+
107
237
  end
108
238
 
109
239
  end
@@ -171,13 +171,13 @@ module Clayful
171
171
 
172
172
  end
173
173
 
174
- def self.push_to_metafield(*args)
174
+ def self.pull_from_metafield(*args)
175
175
 
176
176
  Clayful.call_api({
177
177
  'model_name' => @@name,
178
- 'method_name' => 'push_to_metafield',
178
+ 'method_name' => 'pull_from_metafield',
179
179
  'http_method' => 'POST',
180
- 'path' => '/v1/products/reviews/{reviewId}/meta/{field}/push',
180
+ 'path' => '/v1/products/reviews/{reviewId}/meta/{field}/pull',
181
181
  'params' => ['reviewId', 'field', ],
182
182
  'args' => args
183
183
  })
@@ -197,13 +197,13 @@ module Clayful
197
197
 
198
198
  end
199
199
 
200
- def self.pull_from_metafield(*args)
200
+ def self.push_to_metafield(*args)
201
201
 
202
202
  Clayful.call_api({
203
203
  'model_name' => @@name,
204
- 'method_name' => 'pull_from_metafield',
204
+ 'method_name' => 'push_to_metafield',
205
205
  'http_method' => 'POST',
206
- 'path' => '/v1/products/reviews/{reviewId}/meta/{field}/pull',
206
+ 'path' => '/v1/products/reviews/{reviewId}/meta/{field}/push',
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.delete_metafield(*args)
278
+ def self.cancel_flag(*args)
279
279
 
280
280
  Clayful.call_api({
281
281
  'model_name' => @@name,
282
- 'method_name' => 'delete_metafield',
282
+ 'method_name' => 'cancel_flag',
283
283
  'http_method' => 'DELETE',
284
- 'path' => '/v1/products/reviews/{reviewId}/meta/{field}',
285
- 'params' => ['reviewId', 'field', ],
284
+ 'path' => '/v1/products/reviews/{reviewId}/flags/{customerId}',
285
+ 'params' => ['reviewId', 'customerId', ],
286
286
  'args' => args
287
287
  })
288
288
 
289
289
  end
290
290
 
291
- def self.cancel_flag(*args)
291
+ def self.delete_metafield(*args)
292
292
 
293
293
  Clayful.call_api({
294
294
  'model_name' => @@name,
295
- 'method_name' => 'cancel_flag',
295
+ 'method_name' => 'delete_metafield',
296
296
  'http_method' => 'DELETE',
297
- 'path' => '/v1/products/reviews/{reviewId}/flags/{customerId}',
298
- 'params' => ['reviewId', 'customerId', ],
297
+ 'path' => '/v1/products/reviews/{reviewId}/meta/{field}',
298
+ 'params' => ['reviewId', 'field', ],
299
299
  'args' => args
300
300
  })
301
301
 
@@ -26,39 +26,39 @@ module Clayful
26
26
 
27
27
  end
28
28
 
29
- def self.pull_from_metafield(*args)
29
+ def self.push_to_metafield(*args)
30
30
 
31
31
  Clayful.call_api({
32
32
  'model_name' => @@name,
33
- 'method_name' => 'pull_from_metafield',
33
+ 'method_name' => 'push_to_metafield',
34
34
  'http_method' => 'POST',
35
- 'path' => '/v1/store/meta/{field}/pull',
35
+ 'path' => '/v1/store/meta/{field}/push',
36
36
  'params' => ['field', ],
37
37
  'args' => args
38
38
  })
39
39
 
40
40
  end
41
41
 
42
- def self.increase_metafield(*args)
42
+ def self.pull_from_metafield(*args)
43
43
 
44
44
  Clayful.call_api({
45
45
  'model_name' => @@name,
46
- 'method_name' => 'increase_metafield',
46
+ 'method_name' => 'pull_from_metafield',
47
47
  'http_method' => 'POST',
48
- 'path' => '/v1/store/meta/{field}/inc',
48
+ 'path' => '/v1/store/meta/{field}/pull',
49
49
  'params' => ['field', ],
50
50
  'args' => args
51
51
  })
52
52
 
53
53
  end
54
54
 
55
- def self.push_to_metafield(*args)
55
+ def self.increase_metafield(*args)
56
56
 
57
57
  Clayful.call_api({
58
58
  'model_name' => @@name,
59
- 'method_name' => 'push_to_metafield',
59
+ 'method_name' => 'increase_metafield',
60
60
  'http_method' => 'POST',
61
- 'path' => '/v1/store/meta/{field}/push',
61
+ 'path' => '/v1/store/meta/{field}/inc',
62
62
  'params' => ['field', ],
63
63
  'args' => args
64
64
  })
@@ -130,40 +130,40 @@ module Clayful
130
130
 
131
131
  end
132
132
 
133
- def self.schedule(*args)
133
+ def self.mark_as_done(*args)
134
134
 
135
135
  Clayful.call_api({
136
136
  'model_name' => @@name,
137
- 'method_name' => 'schedule',
137
+ 'method_name' => 'mark_as_done',
138
138
  'http_method' => 'POST',
139
- 'path' => '/v1/subscriptions/{subscriptionId}/scheduled',
139
+ 'path' => '/v1/subscriptions/{subscriptionId}/done',
140
140
  'params' => ['subscriptionId', ],
141
+ 'without_payload' => true,
141
142
  'args' => args
142
143
  })
143
144
 
144
145
  end
145
146
 
146
- def self.sync_inventory(*args)
147
+ def self.schedule(*args)
147
148
 
148
149
  Clayful.call_api({
149
150
  'model_name' => @@name,
150
- 'method_name' => 'sync_inventory',
151
+ 'method_name' => 'schedule',
151
152
  'http_method' => 'POST',
152
- 'path' => '/v1/subscriptions/{subscriptionId}/synced',
153
+ 'path' => '/v1/subscriptions/{subscriptionId}/scheduled',
153
154
  'params' => ['subscriptionId', ],
154
- 'without_payload' => true,
155
155
  'args' => args
156
156
  })
157
157
 
158
158
  end
159
159
 
160
- def self.mark_as_done(*args)
160
+ def self.sync_inventory(*args)
161
161
 
162
162
  Clayful.call_api({
163
163
  'model_name' => @@name,
164
- 'method_name' => 'mark_as_done',
164
+ 'method_name' => 'sync_inventory',
165
165
  'http_method' => 'POST',
166
- 'path' => '/v1/subscriptions/{subscriptionId}/done',
166
+ 'path' => '/v1/subscriptions/{subscriptionId}/synced',
167
167
  'params' => ['subscriptionId', ],
168
168
  'without_payload' => true,
169
169
  'args' => args
@@ -210,39 +210,39 @@ module Clayful
210
210
 
211
211
  end
212
212
 
213
- def self.increase_metafield(*args)
213
+ def self.push_to_metafield(*args)
214
214
 
215
215
  Clayful.call_api({
216
216
  'model_name' => @@name,
217
- 'method_name' => 'increase_metafield',
217
+ 'method_name' => 'push_to_metafield',
218
218
  'http_method' => 'POST',
219
- 'path' => '/v1/subscriptions/{subscriptionId}/meta/{field}/inc',
219
+ 'path' => '/v1/subscriptions/{subscriptionId}/meta/{field}/push',
220
220
  'params' => ['subscriptionId', 'field', ],
221
221
  'args' => args
222
222
  })
223
223
 
224
224
  end
225
225
 
226
- def self.push_to_metafield(*args)
226
+ def self.pull_from_metafield(*args)
227
227
 
228
228
  Clayful.call_api({
229
229
  'model_name' => @@name,
230
- 'method_name' => 'push_to_metafield',
230
+ 'method_name' => 'pull_from_metafield',
231
231
  'http_method' => 'POST',
232
- 'path' => '/v1/subscriptions/{subscriptionId}/meta/{field}/push',
232
+ 'path' => '/v1/subscriptions/{subscriptionId}/meta/{field}/pull',
233
233
  'params' => ['subscriptionId', 'field', ],
234
234
  'args' => args
235
235
  })
236
236
 
237
237
  end
238
238
 
239
- def self.pull_from_metafield(*args)
239
+ def self.increase_metafield(*args)
240
240
 
241
241
  Clayful.call_api({
242
242
  'model_name' => @@name,
243
- 'method_name' => 'pull_from_metafield',
243
+ 'method_name' => 'increase_metafield',
244
244
  'http_method' => 'POST',
245
- 'path' => '/v1/subscriptions/{subscriptionId}/meta/{field}/pull',
245
+ 'path' => '/v1/subscriptions/{subscriptionId}/meta/{field}/inc',
246
246
  'params' => ['subscriptionId', 'field', ],
247
247
  'args' => args
248
248
  })
@@ -52,6 +52,32 @@ module Clayful
52
52
 
53
53
  end
54
54
 
55
+ def self.create(*args)
56
+
57
+ Clayful.call_api({
58
+ 'model_name' => @@name,
59
+ 'method_name' => 'create',
60
+ 'http_method' => 'POST',
61
+ 'path' => '/v1/vendors',
62
+ 'params' => [],
63
+ 'args' => args
64
+ })
65
+
66
+ end
67
+
68
+ def self.pull_from_metafield(*args)
69
+
70
+ Clayful.call_api({
71
+ 'model_name' => @@name,
72
+ 'method_name' => 'pull_from_metafield',
73
+ 'http_method' => 'POST',
74
+ 'path' => '/v1/vendors/{vendorId}/meta/{field}/pull',
75
+ 'params' => ['vendorId', 'field', ],
76
+ 'args' => args
77
+ })
78
+
79
+ end
80
+
55
81
  def self.increase_metafield(*args)
56
82
 
57
83
  Clayful.call_api({
@@ -78,14 +104,27 @@ module Clayful
78
104
 
79
105
  end
80
106
 
81
- def self.pull_from_metafield(*args)
107
+ def self.update(*args)
82
108
 
83
109
  Clayful.call_api({
84
110
  'model_name' => @@name,
85
- 'method_name' => 'pull_from_metafield',
86
- 'http_method' => 'POST',
87
- 'path' => '/v1/vendors/{vendorId}/meta/{field}/pull',
88
- 'params' => ['vendorId', 'field', ],
111
+ 'method_name' => 'update',
112
+ 'http_method' => 'PUT',
113
+ 'path' => '/v1/vendors/{vendorId}',
114
+ 'params' => ['vendorId', ],
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/vendors/{vendorId}',
127
+ 'params' => ['vendorId', ],
89
128
  'args' => args
90
129
  })
91
130
 
@@ -195,26 +195,26 @@ module Clayful
195
195
 
196
196
  end
197
197
 
198
- def self.pull_from_metafield(*args)
198
+ def self.push_to_metafield(*args)
199
199
 
200
200
  Clayful.call_api({
201
201
  'model_name' => @@name,
202
- 'method_name' => 'pull_from_metafield',
202
+ 'method_name' => 'push_to_metafield',
203
203
  'http_method' => 'POST',
204
- 'path' => '/v1/wishlists/{wishListId}/meta/{field}/pull',
204
+ 'path' => '/v1/wishlists/{wishListId}/meta/{field}/push',
205
205
  'params' => ['wishListId', 'field', ],
206
206
  'args' => args
207
207
  })
208
208
 
209
209
  end
210
210
 
211
- def self.push_to_metafield(*args)
211
+ def self.pull_from_metafield(*args)
212
212
 
213
213
  Clayful.call_api({
214
214
  'model_name' => @@name,
215
- 'method_name' => 'push_to_metafield',
215
+ 'method_name' => 'pull_from_metafield',
216
216
  'http_method' => 'POST',
217
- 'path' => '/v1/wishlists/{wishListId}/meta/{field}/push',
217
+ 'path' => '/v1/wishlists/{wishListId}/meta/{field}/pull',
218
218
  'params' => ['wishListId', 'field', ],
219
219
  'args' => args
220
220
  })
@@ -312,27 +312,27 @@ module Clayful
312
312
 
313
313
  end
314
314
 
315
- def self.delete_metafield(*args)
315
+ def self.delete_item(*args)
316
316
 
317
317
  Clayful.call_api({
318
318
  'model_name' => @@name,
319
- 'method_name' => 'delete_metafield',
319
+ 'method_name' => 'delete_item',
320
320
  'http_method' => 'DELETE',
321
- 'path' => '/v1/wishlists/{wishListId}/meta/{field}',
322
- 'params' => ['wishListId', 'field', ],
321
+ 'path' => '/v1/wishlists/{wishListId}/items/{productId}',
322
+ 'params' => ['wishListId', 'productId', ],
323
323
  'args' => args
324
324
  })
325
325
 
326
326
  end
327
327
 
328
- def self.delete_item(*args)
328
+ def self.delete_metafield(*args)
329
329
 
330
330
  Clayful.call_api({
331
331
  'model_name' => @@name,
332
- 'method_name' => 'delete_item',
332
+ 'method_name' => 'delete_metafield',
333
333
  'http_method' => 'DELETE',
334
- 'path' => '/v1/wishlists/{wishListId}/items/{productId}',
335
- 'params' => ['wishListId', 'productId', ],
334
+ 'path' => '/v1/wishlists/{wishListId}/meta/{field}',
335
+ 'params' => ['wishListId', 'field', ],
336
336
  'args' => args
337
337
  })
338
338
 
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.0.0
4
+ version: 2.1.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-03 00:00:00.000000000 Z
11
+ date: 2020-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json