clayful 2.3.0 → 2.4.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: d2726927e09136a6920abd2a6bf79f1ba353ddcf
4
- data.tar.gz: 9cc4dd43421e454954fbd31b614f410be531cb10
3
+ metadata.gz: ad783f1cbf93e7cdcf0fc2cf5f45cb312bb3f9d8
4
+ data.tar.gz: c51d664dc29c78b06e7f846c1a15bf77f7be8f22
5
5
  SHA512:
6
- metadata.gz: e5705a9a89851dd83319242fa306c894848fdfd2863827102fc388eca1d2b4e9145839896ec020acaaa8088deb8dc5da3832c7093de2f813f5fcbb3aded4f31d
7
- data.tar.gz: aea0f8b95125724f441fef6b5d338cedf2ae52eb0d53637b5d348a80435f9635ad5ee13cefcacccb7069b32dc7aa4a7a8f8427bd0ae42cbc74945b9fb285c039
6
+ metadata.gz: fe35892d2731683f1c11c544d1df205eec9ac43193da080a566c1c62d9a59d6fb73c9d4dc57d722b2268426dede01a1814a7a1f4ebea53e4c6aa9358c21e4054
7
+ data.tar.gz: fc78e5f53c7f58feee983a9a241f3a940f8fd3d02857c9bb39b702859036ff8b0ef44794b8d6786fbf7a6c6c7170f00bb406b5b1487e24cad9c8809e307f935e
data/Gemfile CHANGED
File without changes
data/LICENSE CHANGED
File without changes
data/README.md CHANGED
File without changes
File without changes
File without changes
File without changes
@@ -65,13 +65,13 @@ 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/brands/{brandId}/meta/{field}/inc',
74
+ 'path' => '/v1/brands/{brandId}/meta/{field}/push',
75
75
  'params' => ['brandId', '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.increase_metafield(*args)
95
95
 
96
96
  Clayful.call_api({
97
97
  'model_name' => @@name,
98
- 'method_name' => 'push_to_metafield',
98
+ 'method_name' => 'increase_metafield',
99
99
  'http_method' => 'POST',
100
- 'path' => '/v1/brands/{brandId}/meta/{field}/push',
100
+ 'path' => '/v1/brands/{brandId}/meta/{field}/inc',
101
101
  'params' => ['brandId', 'field', ],
102
102
  'args' => args
103
103
  })
File without changes
@@ -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/catalogs',
62
+ 'params' => [],
63
+ 'args' => args
64
+ })
65
+
66
+ end
67
+
68
+ def self.increase_metafield(*args)
69
+
70
+ Clayful.call_api({
71
+ 'model_name' => @@name,
72
+ 'method_name' => 'increase_metafield',
73
+ 'http_method' => 'POST',
74
+ 'path' => '/v1/catalogs/{catalogId}/meta/{field}/inc',
75
+ 'params' => ['catalogId', 'field', ],
76
+ 'args' => args
77
+ })
78
+
79
+ end
80
+
55
81
  def self.pull_from_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.increase_metafield(*args)
107
+ def self.update(*args)
82
108
 
83
109
  Clayful.call_api({
84
110
  'model_name' => @@name,
85
- 'method_name' => 'increase_metafield',
86
- 'http_method' => 'POST',
87
- 'path' => '/v1/catalogs/{catalogId}/meta/{field}/inc',
88
- 'params' => ['catalogId', 'field', ],
111
+ 'method_name' => 'update',
112
+ 'http_method' => 'PUT',
113
+ 'path' => '/v1/catalogs/{catalogId}',
114
+ 'params' => ['catalogId', ],
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/catalogs/{catalogId}',
127
+ 'params' => ['catalogId', ],
89
128
  'args' => args
90
129
  })
91
130
 
@@ -78,26 +78,26 @@ module Clayful
78
78
 
79
79
  end
80
80
 
81
- def self.increase_metafield(*args)
81
+ def self.pull_from_metafield(*args)
82
82
 
83
83
  Clayful.call_api({
84
84
  'model_name' => @@name,
85
- 'method_name' => 'increase_metafield',
85
+ 'method_name' => 'pull_from_metafield',
86
86
  'http_method' => 'POST',
87
- 'path' => '/v1/collections/{collectionId}/meta/{field}/inc',
87
+ 'path' => '/v1/collections/{collectionId}/meta/{field}/pull',
88
88
  'params' => ['collectionId', 'field', ],
89
89
  'args' => args
90
90
  })
91
91
 
92
92
  end
93
93
 
94
- def self.pull_from_metafield(*args)
94
+ def self.increase_metafield(*args)
95
95
 
96
96
  Clayful.call_api({
97
97
  'model_name' => @@name,
98
- 'method_name' => 'pull_from_metafield',
98
+ 'method_name' => 'increase_metafield',
99
99
  'http_method' => 'POST',
100
- 'path' => '/v1/collections/{collectionId}/meta/{field}/pull',
100
+ 'path' => '/v1/collections/{collectionId}/meta/{field}/inc',
101
101
  'params' => ['collectionId', 'field', ],
102
102
  'args' => args
103
103
  })
File without changes
@@ -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/coupons/{couponId}/meta/{field}/push',
61
+ 'path' => '/v1/coupons/{couponId}/meta/{field}/pull',
62
62
  'params' => ['couponId', 'field', ],
63
63
  'args' => args
64
64
  })
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/coupons/{couponId}/meta/{field}/inc',
74
+ 'path' => '/v1/coupons/{couponId}/meta/{field}/push',
75
75
  'params' => ['couponId', 'field', ],
76
76
  'args' => args
77
77
  })
78
78
 
79
79
  end
80
80
 
81
- def self.pull_from_metafield(*args)
81
+ def self.increase_metafield(*args)
82
82
 
83
83
  Clayful.call_api({
84
84
  'model_name' => @@name,
85
- 'method_name' => 'pull_from_metafield',
85
+ 'method_name' => 'increase_metafield',
86
86
  'http_method' => 'POST',
87
- 'path' => '/v1/coupons/{couponId}/meta/{field}/pull',
87
+ 'path' => '/v1/coupons/{couponId}/meta/{field}/inc',
88
88
  'params' => ['couponId', 'field', ],
89
89
  'args' => args
90
90
  })
File without changes
@@ -300,14 +300,14 @@ module Clayful
300
300
 
301
301
  end
302
302
 
303
- def self.push_to_metafield(*args)
303
+ def self.recover_credential(*args)
304
304
 
305
305
  Clayful.call_api({
306
306
  'model_name' => @@name,
307
- 'method_name' => 'push_to_metafield',
307
+ 'method_name' => 'recover_credential',
308
308
  'http_method' => 'POST',
309
- 'path' => '/v1/customers/{customerId}/meta/{field}/push',
310
- 'params' => ['customerId', 'field', ],
309
+ 'path' => '/v1/customers/credentials/{credentialField}/recoveries/{recoveryMethod}',
310
+ 'params' => ['credentialField', 'recoveryMethod', ],
311
311
  'args' => args
312
312
  })
313
313
 
@@ -326,6 +326,19 @@ module Clayful
326
326
 
327
327
  end
328
328
 
329
+ def self.push_to_metafield(*args)
330
+
331
+ Clayful.call_api({
332
+ 'model_name' => @@name,
333
+ 'method_name' => 'push_to_metafield',
334
+ 'http_method' => 'POST',
335
+ 'path' => '/v1/customers/{customerId}/meta/{field}/push',
336
+ 'params' => ['customerId', 'field', ],
337
+ 'args' => args
338
+ })
339
+
340
+ end
341
+
329
342
  def self.pull_from_metafield(*args)
330
343
 
331
344
  Clayful.call_api({
@@ -378,26 +391,26 @@ module Clayful
378
391
 
379
392
  end
380
393
 
381
- def self.update_credentials(*args)
394
+ def self.reset_password(*args)
382
395
 
383
396
  Clayful.call_api({
384
397
  'model_name' => @@name,
385
- 'method_name' => 'update_credentials',
398
+ 'method_name' => 'reset_password',
386
399
  'http_method' => 'PUT',
387
- 'path' => '/v1/customers/{customerId}/credentials',
400
+ 'path' => '/v1/customers/{customerId}/password',
388
401
  'params' => ['customerId', ],
389
402
  'args' => args
390
403
  })
391
404
 
392
405
  end
393
406
 
394
- def self.reset_password(*args)
407
+ def self.update_credentials(*args)
395
408
 
396
409
  Clayful.call_api({
397
410
  'model_name' => @@name,
398
- 'method_name' => 'reset_password',
411
+ 'method_name' => 'update_credentials',
399
412
  'http_method' => 'PUT',
400
- 'path' => '/v1/customers/{customerId}/password',
413
+ 'path' => '/v1/customers/{customerId}/credentials',
401
414
  'params' => ['customerId', ],
402
415
  'args' => args
403
416
  })
@@ -52,39 +52,39 @@ module Clayful
52
52
 
53
53
  end
54
54
 
55
- def self.increase_metafield(*args)
55
+ def self.pull_from_metafield(*args)
56
56
 
57
57
  Clayful.call_api({
58
58
  'model_name' => @@name,
59
- 'method_name' => 'increase_metafield',
59
+ 'method_name' => 'pull_from_metafield',
60
60
  'http_method' => 'POST',
61
- 'path' => '/v1/discounts/{discountId}/meta/{field}/inc',
61
+ 'path' => '/v1/discounts/{discountId}/meta/{field}/pull',
62
62
  'params' => ['discountId', 'field', ],
63
63
  'args' => args
64
64
  })
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/discounts/{discountId}/meta/{field}/pull',
74
+ 'path' => '/v1/discounts/{discountId}/meta/{field}/push',
75
75
  'params' => ['discountId', '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/discounts/{discountId}/meta/{field}/push',
87
+ 'path' => '/v1/discounts/{discountId}/meta/{field}/inc',
88
88
  'params' => ['discountId', 'field', ],
89
89
  'args' => args
90
90
  })
File without changes
@@ -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/groups/{groupId}/meta/{field}/push',
61
+ 'path' => '/v1/groups/{groupId}/meta/{field}/inc',
62
62
  'params' => ['groupId', '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/groups/{groupId}/meta/{field}/inc',
87
+ 'path' => '/v1/groups/{groupId}/meta/{field}/push',
88
88
  'params' => ['groupId', 'field', ],
89
89
  'args' => args
90
90
  })
File without changes
@@ -130,13 +130,13 @@ module Clayful
130
130
 
131
131
  end
132
132
 
133
- def self.mark_as_done(*args)
133
+ def self.mark_as_received(*args)
134
134
 
135
135
  Clayful.call_api({
136
136
  'model_name' => @@name,
137
- 'method_name' => 'mark_as_done',
137
+ 'method_name' => 'mark_as_received',
138
138
  'http_method' => 'POST',
139
- 'path' => '/v1/orders/{orderId}/done',
139
+ 'path' => '/v1/orders/{orderId}/received',
140
140
  'params' => ['orderId', ],
141
141
  'without_payload' => true,
142
142
  'args' => args
@@ -158,79 +158,79 @@ module Clayful
158
158
 
159
159
  end
160
160
 
161
- def self.authenticate(*args)
161
+ def self.mark_as_done(*args)
162
162
 
163
163
  Clayful.call_api({
164
164
  'model_name' => @@name,
165
- 'method_name' => 'authenticate',
165
+ 'method_name' => 'mark_as_done',
166
166
  'http_method' => 'POST',
167
- 'path' => '/v1/orders/{orderId}/auth',
167
+ 'path' => '/v1/orders/{orderId}/done',
168
168
  'params' => ['orderId', ],
169
+ 'without_payload' => true,
169
170
  'args' => args
170
171
  })
171
172
 
172
173
  end
173
174
 
174
- def self.cancel(*args)
175
+ def self.request_refund(*args)
175
176
 
176
177
  Clayful.call_api({
177
178
  'model_name' => @@name,
178
- 'method_name' => 'cancel',
179
+ 'method_name' => 'request_refund',
179
180
  'http_method' => 'POST',
180
- 'path' => '/v1/orders/{orderId}/cancellation',
181
+ 'path' => '/v1/orders/{orderId}/refunds',
181
182
  'params' => ['orderId', ],
182
183
  'args' => args
183
184
  })
184
185
 
185
186
  end
186
187
 
187
- def self.request_refund(*args)
188
+ def self.authenticate(*args)
188
189
 
189
190
  Clayful.call_api({
190
191
  'model_name' => @@name,
191
- 'method_name' => 'request_refund',
192
+ 'method_name' => 'authenticate',
192
193
  'http_method' => 'POST',
193
- 'path' => '/v1/orders/{orderId}/refunds',
194
+ 'path' => '/v1/orders/{orderId}/auth',
194
195
  'params' => ['orderId', ],
195
196
  'args' => args
196
197
  })
197
198
 
198
199
  end
199
200
 
200
- def self.create_fulfillment(*args)
201
+ def self.cancel(*args)
201
202
 
202
203
  Clayful.call_api({
203
204
  'model_name' => @@name,
204
- 'method_name' => 'create_fulfillment',
205
+ 'method_name' => 'cancel',
205
206
  'http_method' => 'POST',
206
- 'path' => '/v1/orders/{orderId}/fulfillments',
207
+ 'path' => '/v1/orders/{orderId}/cancellation',
207
208
  'params' => ['orderId', ],
208
209
  'args' => args
209
210
  })
210
211
 
211
212
  end
212
213
 
213
- def self.mark_as_received(*args)
214
+ def self.create_fulfillment(*args)
214
215
 
215
216
  Clayful.call_api({
216
217
  'model_name' => @@name,
217
- 'method_name' => 'mark_as_received',
218
+ 'method_name' => 'create_fulfillment',
218
219
  'http_method' => 'POST',
219
- 'path' => '/v1/orders/{orderId}/received',
220
+ 'path' => '/v1/orders/{orderId}/fulfillments',
220
221
  'params' => ['orderId', ],
221
- 'without_payload' => true,
222
222
  'args' => args
223
223
  })
224
224
 
225
225
  end
226
226
 
227
- def self.cancel_for_me(*args)
227
+ def self.request_refund_for_me(*args)
228
228
 
229
229
  Clayful.call_api({
230
230
  'model_name' => @@name,
231
- 'method_name' => 'cancel_for_me',
231
+ 'method_name' => 'request_refund_for_me',
232
232
  'http_method' => 'POST',
233
- 'path' => '/v1/me/orders/{orderId}/cancellation',
233
+ 'path' => '/v1/me/orders/{orderId}/refunds',
234
234
  'params' => ['orderId', ],
235
235
  'args' => args
236
236
  })
@@ -251,13 +251,13 @@ module Clayful
251
251
 
252
252
  end
253
253
 
254
- def self.request_refund_for_me(*args)
254
+ def self.cancel_for_me(*args)
255
255
 
256
256
  Clayful.call_api({
257
257
  'model_name' => @@name,
258
- 'method_name' => 'request_refund_for_me',
258
+ 'method_name' => 'cancel_for_me',
259
259
  'http_method' => 'POST',
260
- 'path' => '/v1/me/orders/{orderId}/refunds',
260
+ 'path' => '/v1/me/orders/{orderId}/cancellation',
261
261
  'params' => ['orderId', ],
262
262
  'args' => args
263
263
  })
@@ -317,67 +317,67 @@ module Clayful
317
317
 
318
318
  end
319
319
 
320
- def self.pull_from_metafield(*args)
320
+ def self.cancel_refund(*args)
321
321
 
322
322
  Clayful.call_api({
323
323
  'model_name' => @@name,
324
- 'method_name' => 'pull_from_metafield',
324
+ 'method_name' => 'cancel_refund',
325
325
  'http_method' => 'POST',
326
- 'path' => '/v1/orders/{orderId}/meta/{field}/pull',
327
- 'params' => ['orderId', 'field', ],
326
+ 'path' => '/v1/orders/{orderId}/refunds/{refundId}/cancellation',
327
+ 'params' => ['orderId', 'refundId', ],
328
328
  'args' => args
329
329
  })
330
330
 
331
331
  end
332
332
 
333
- def self.accept_refund(*args)
333
+ def self.pull_from_metafield(*args)
334
334
 
335
335
  Clayful.call_api({
336
336
  'model_name' => @@name,
337
- 'method_name' => 'accept_refund',
337
+ 'method_name' => 'pull_from_metafield',
338
338
  'http_method' => 'POST',
339
- 'path' => '/v1/orders/{orderId}/refunds/{refundId}/accepted',
340
- 'params' => ['orderId', 'refundId', ],
341
- 'without_payload' => true,
339
+ 'path' => '/v1/orders/{orderId}/meta/{field}/pull',
340
+ 'params' => ['orderId', 'field', ],
342
341
  'args' => args
343
342
  })
344
343
 
345
344
  end
346
345
 
347
- def self.cancel_refund(*args)
346
+ def self.register_payment_method(*args)
348
347
 
349
348
  Clayful.call_api({
350
349
  'model_name' => @@name,
351
- 'method_name' => 'cancel_refund',
350
+ 'method_name' => 'register_payment_method',
352
351
  'http_method' => 'POST',
353
- 'path' => '/v1/orders/{orderId}/refunds/{refundId}/cancellation',
354
- 'params' => ['orderId', 'refundId', ],
352
+ 'path' => '/v1/orders/{orderId}/transactions/payments/methods',
353
+ 'params' => ['orderId', ],
355
354
  'args' => args
356
355
  })
357
356
 
358
357
  end
359
358
 
360
- def self.push_to_metafield(*args)
359
+ def self.accept_refund(*args)
361
360
 
362
361
  Clayful.call_api({
363
362
  'model_name' => @@name,
364
- 'method_name' => 'push_to_metafield',
363
+ 'method_name' => 'accept_refund',
365
364
  'http_method' => 'POST',
366
- 'path' => '/v1/orders/{orderId}/meta/{field}/push',
367
- 'params' => ['orderId', 'field', ],
365
+ 'path' => '/v1/orders/{orderId}/refunds/{refundId}/accepted',
366
+ 'params' => ['orderId', 'refundId', ],
367
+ 'without_payload' => true,
368
368
  'args' => args
369
369
  })
370
370
 
371
371
  end
372
372
 
373
- def self.register_payment_method(*args)
373
+ def self.push_to_metafield(*args)
374
374
 
375
375
  Clayful.call_api({
376
376
  'model_name' => @@name,
377
- 'method_name' => 'register_payment_method',
377
+ 'method_name' => 'push_to_metafield',
378
378
  'http_method' => 'POST',
379
- 'path' => '/v1/orders/{orderId}/transactions/payments/methods',
380
- 'params' => ['orderId', ],
379
+ 'path' => '/v1/orders/{orderId}/meta/{field}/push',
380
+ 'params' => ['orderId', 'field', ],
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
  })
@@ -490,54 +490,54 @@ module Clayful
490
490
 
491
491
  end
492
492
 
493
- def self.update_transactions_for_me(*args)
493
+ def self.update_cancellation_for_me(*args)
494
494
 
495
495
  Clayful.call_api({
496
496
  'model_name' => @@name,
497
- 'method_name' => 'update_transactions_for_me',
497
+ 'method_name' => 'update_cancellation_for_me',
498
498
  'http_method' => 'PUT',
499
- 'path' => '/v1/me/orders/{orderId}/transactions',
499
+ 'path' => '/v1/me/orders/{orderId}/cancellation',
500
500
  'params' => ['orderId', ],
501
- 'without_payload' => true,
502
501
  'args' => args
503
502
  })
504
503
 
505
504
  end
506
505
 
507
- def self.update_cancellation_for_me(*args)
506
+ def self.update_transactions_for_me(*args)
508
507
 
509
508
  Clayful.call_api({
510
509
  'model_name' => @@name,
511
- 'method_name' => 'update_cancellation_for_me',
510
+ 'method_name' => 'update_transactions_for_me',
512
511
  'http_method' => 'PUT',
513
- 'path' => '/v1/me/orders/{orderId}/cancellation',
512
+ 'path' => '/v1/me/orders/{orderId}/transactions',
514
513
  'params' => ['orderId', ],
514
+ 'without_payload' => true,
515
515
  'args' => args
516
516
  })
517
517
 
518
518
  end
519
519
 
520
- def self.update_item(*args)
520
+ def self.update_refund(*args)
521
521
 
522
522
  Clayful.call_api({
523
523
  'model_name' => @@name,
524
- 'method_name' => 'update_item',
524
+ 'method_name' => 'update_refund',
525
525
  'http_method' => 'PUT',
526
- 'path' => '/v1/orders/{orderId}/items/{itemId}',
527
- 'params' => ['orderId', 'itemId', ],
526
+ 'path' => '/v1/orders/{orderId}/refunds/{refundId}',
527
+ 'params' => ['orderId', 'refundId', ],
528
528
  'args' => args
529
529
  })
530
530
 
531
531
  end
532
532
 
533
- def self.update_refund(*args)
533
+ def self.update_item(*args)
534
534
 
535
535
  Clayful.call_api({
536
536
  'model_name' => @@name,
537
- 'method_name' => 'update_refund',
537
+ 'method_name' => 'update_item',
538
538
  'http_method' => 'PUT',
539
- 'path' => '/v1/orders/{orderId}/refunds/{refundId}',
540
- 'params' => ['orderId', 'refundId', ],
539
+ 'path' => '/v1/orders/{orderId}/items/{itemId}',
540
+ 'params' => ['orderId', 'itemId', ],
541
541
  'args' => args
542
542
  })
543
543
 
@@ -608,26 +608,26 @@ module Clayful
608
608
 
609
609
  end
610
610
 
611
- def self.mark_as_not_received(*args)
611
+ def self.mark_as_undone(*args)
612
612
 
613
613
  Clayful.call_api({
614
614
  'model_name' => @@name,
615
- 'method_name' => 'mark_as_not_received',
615
+ 'method_name' => 'mark_as_undone',
616
616
  'http_method' => 'DELETE',
617
- 'path' => '/v1/orders/{orderId}/received',
617
+ 'path' => '/v1/orders/{orderId}/done',
618
618
  'params' => ['orderId', ],
619
619
  'args' => args
620
620
  })
621
621
 
622
622
  end
623
623
 
624
- def self.mark_as_undone(*args)
624
+ def self.mark_as_not_received(*args)
625
625
 
626
626
  Clayful.call_api({
627
627
  'model_name' => @@name,
628
- 'method_name' => 'mark_as_undone',
628
+ 'method_name' => 'mark_as_not_received',
629
629
  'http_method' => 'DELETE',
630
- 'path' => '/v1/orders/{orderId}/done',
630
+ 'path' => '/v1/orders/{orderId}/received',
631
631
  'params' => ['orderId', ],
632
632
  'args' => args
633
633
  })
@@ -660,53 +660,53 @@ module Clayful
660
660
 
661
661
  end
662
662
 
663
- def self.delete_metafield(*args)
663
+ def self.delete_refund(*args)
664
664
 
665
665
  Clayful.call_api({
666
666
  'model_name' => @@name,
667
- 'method_name' => 'delete_metafield',
667
+ 'method_name' => 'delete_refund',
668
668
  'http_method' => 'DELETE',
669
- 'path' => '/v1/orders/{orderId}/meta/{field}',
670
- 'params' => ['orderId', 'field', ],
669
+ 'path' => '/v1/orders/{orderId}/refunds/{refundId}',
670
+ 'params' => ['orderId', 'refundId', ],
671
671
  'args' => args
672
672
  })
673
673
 
674
674
  end
675
675
 
676
- def self.delete_refund(*args)
676
+ def self.delete_metafield(*args)
677
677
 
678
678
  Clayful.call_api({
679
679
  'model_name' => @@name,
680
- 'method_name' => 'delete_refund',
680
+ 'method_name' => 'delete_metafield',
681
681
  'http_method' => 'DELETE',
682
- 'path' => '/v1/orders/{orderId}/refunds/{refundId}',
683
- 'params' => ['orderId', 'refundId', ],
682
+ 'path' => '/v1/orders/{orderId}/meta/{field}',
683
+ 'params' => ['orderId', 'field', ],
684
684
  'args' => args
685
685
  })
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
 
File without changes
File without changes
@@ -78,14 +78,14 @@ module Clayful
78
78
 
79
79
  end
80
80
 
81
- def self.create_variation(*args)
81
+ def self.mark_as_censored(*args)
82
82
 
83
83
  Clayful.call_api({
84
84
  'model_name' => @@name,
85
- 'method_name' => 'create_variation',
85
+ 'method_name' => 'mark_as_censored',
86
86
  'http_method' => 'POST',
87
- 'path' => '/v1/products/{productId}/options/{optionId}/variations',
88
- 'params' => ['productId', 'optionId', ],
87
+ 'path' => '/v1/products/{productId}/censored',
88
+ 'params' => ['productId', ],
89
89
  'args' => args
90
90
  })
91
91
 
@@ -104,14 +104,14 @@ module Clayful
104
104
 
105
105
  end
106
106
 
107
- def self.push_to_metafield(*args)
107
+ def self.create_variation(*args)
108
108
 
109
109
  Clayful.call_api({
110
110
  'model_name' => @@name,
111
- 'method_name' => 'push_to_metafield',
111
+ 'method_name' => 'create_variation',
112
112
  'http_method' => 'POST',
113
- 'path' => '/v1/products/{productId}/meta/{field}/push',
114
- 'params' => ['productId', 'field', ],
113
+ 'path' => '/v1/products/{productId}/options/{optionId}/variations',
114
+ 'params' => ['productId', 'optionId', ],
115
115
  'args' => args
116
116
  })
117
117
 
@@ -130,6 +130,19 @@ module Clayful
130
130
 
131
131
  end
132
132
 
133
+ def self.push_to_metafield(*args)
134
+
135
+ Clayful.call_api({
136
+ 'model_name' => @@name,
137
+ 'method_name' => 'push_to_metafield',
138
+ 'http_method' => 'POST',
139
+ 'path' => '/v1/products/{productId}/meta/{field}/push',
140
+ 'params' => ['productId', 'field', ],
141
+ 'args' => args
142
+ })
143
+
144
+ end
145
+
133
146
  def self.update(*args)
134
147
 
135
148
  Clayful.call_api({
@@ -195,6 +208,19 @@ module Clayful
195
208
 
196
209
  end
197
210
 
211
+ def self.mark_as_uncensored(*args)
212
+
213
+ Clayful.call_api({
214
+ 'model_name' => @@name,
215
+ 'method_name' => 'mark_as_uncensored',
216
+ 'http_method' => 'DELETE',
217
+ 'path' => '/v1/products/{productId}/censored',
218
+ 'params' => ['productId', ],
219
+ 'args' => args
220
+ })
221
+
222
+ end
223
+
198
224
  def self.delete_metafield(*args)
199
225
 
200
226
  Clayful.call_api({
@@ -171,39 +171,39 @@ module Clayful
171
171
 
172
172
  end
173
173
 
174
- def self.increase_metafield(*args)
174
+ def self.push_to_metafield(*args)
175
175
 
176
176
  Clayful.call_api({
177
177
  'model_name' => @@name,
178
- 'method_name' => 'increase_metafield',
178
+ 'method_name' => 'push_to_metafield',
179
179
  'http_method' => 'POST',
180
- 'path' => '/v1/products/reviews/{reviewId}/meta/{field}/inc',
180
+ 'path' => '/v1/products/reviews/{reviewId}/meta/{field}/push',
181
181
  'params' => ['reviewId', 'field', ],
182
182
  'args' => args
183
183
  })
184
184
 
185
185
  end
186
186
 
187
- def self.push_to_metafield(*args)
187
+ def self.pull_from_metafield(*args)
188
188
 
189
189
  Clayful.call_api({
190
190
  'model_name' => @@name,
191
- 'method_name' => 'push_to_metafield',
191
+ 'method_name' => 'pull_from_metafield',
192
192
  'http_method' => 'POST',
193
- 'path' => '/v1/products/reviews/{reviewId}/meta/{field}/push',
193
+ 'path' => '/v1/products/reviews/{reviewId}/meta/{field}/pull',
194
194
  'params' => ['reviewId', 'field', ],
195
195
  'args' => args
196
196
  })
197
197
 
198
198
  end
199
199
 
200
- def self.pull_from_metafield(*args)
200
+ def self.increase_metafield(*args)
201
201
 
202
202
  Clayful.call_api({
203
203
  'model_name' => @@name,
204
- 'method_name' => 'pull_from_metafield',
204
+ 'method_name' => 'increase_metafield',
205
205
  'http_method' => 'POST',
206
- 'path' => '/v1/products/reviews/{reviewId}/meta/{field}/pull',
206
+ 'path' => '/v1/products/reviews/{reviewId}/meta/{field}/inc',
207
207
  'params' => ['reviewId', 'field', ],
208
208
  'args' => args
209
209
  })
@@ -105,13 +105,13 @@ module Clayful
105
105
 
106
106
  end
107
107
 
108
- def self.pull_from_metafield(*args)
108
+ def self.push_to_metafield(*args)
109
109
 
110
110
  Clayful.call_api({
111
111
  'model_name' => @@name,
112
- 'method_name' => 'pull_from_metafield',
112
+ 'method_name' => 'push_to_metafield',
113
113
  'http_method' => 'POST',
114
- 'path' => '/v1/products/reviews/comments/{reviewCommentId}/meta/{field}/pull',
114
+ 'path' => '/v1/products/reviews/comments/{reviewCommentId}/meta/{field}/push',
115
115
  'params' => ['reviewCommentId', 'field', ],
116
116
  'args' => args
117
117
  })
@@ -131,13 +131,13 @@ module Clayful
131
131
 
132
132
  end
133
133
 
134
- def self.push_to_metafield(*args)
134
+ def self.pull_from_metafield(*args)
135
135
 
136
136
  Clayful.call_api({
137
137
  'model_name' => @@name,
138
- 'method_name' => 'push_to_metafield',
138
+ 'method_name' => 'pull_from_metafield',
139
139
  'http_method' => 'POST',
140
- 'path' => '/v1/products/reviews/comments/{reviewCommentId}/meta/{field}/push',
140
+ 'path' => '/v1/products/reviews/comments/{reviewCommentId}/meta/{field}/pull',
141
141
  'params' => ['reviewCommentId', 'field', ],
142
142
  'args' => args
143
143
  })
File without changes
File without changes
@@ -26,26 +26,26 @@ module Clayful
26
26
 
27
27
  end
28
28
 
29
- def self.pull_from_metafield(*args)
29
+ def self.increase_metafield(*args)
30
30
 
31
31
  Clayful.call_api({
32
32
  'model_name' => @@name,
33
- 'method_name' => 'pull_from_metafield',
33
+ 'method_name' => 'increase_metafield',
34
34
  'http_method' => 'POST',
35
- 'path' => '/v1/store/meta/{field}/pull',
35
+ 'path' => '/v1/store/meta/{field}/inc',
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
  })
@@ -104,6 +104,20 @@ module Clayful
104
104
 
105
105
  end
106
106
 
107
+ def self.sync_inventory(*args)
108
+
109
+ Clayful.call_api({
110
+ 'model_name' => @@name,
111
+ 'method_name' => 'sync_inventory',
112
+ 'http_method' => 'POST',
113
+ 'path' => '/v1/subscriptions/{subscriptionId}/synced',
114
+ 'params' => ['subscriptionId', ],
115
+ 'without_payload' => true,
116
+ 'args' => args
117
+ })
118
+
119
+ end
120
+
107
121
  def self.mark_as_done(*args)
108
122
 
109
123
  Clayful.call_api({
@@ -131,15 +145,14 @@ module Clayful
131
145
 
132
146
  end
133
147
 
134
- def self.sync_inventory(*args)
148
+ def self.cancel(*args)
135
149
 
136
150
  Clayful.call_api({
137
151
  'model_name' => @@name,
138
- 'method_name' => 'sync_inventory',
152
+ 'method_name' => 'cancel',
139
153
  'http_method' => 'POST',
140
- 'path' => '/v1/subscriptions/{subscriptionId}/synced',
154
+ 'path' => '/v1/subscriptions/{subscriptionId}/cancellation',
141
155
  'params' => ['subscriptionId', ],
142
- 'without_payload' => true,
143
156
  'args' => args
144
157
  })
145
158
 
@@ -158,13 +171,13 @@ module Clayful
158
171
 
159
172
  end
160
173
 
161
- def self.cancel(*args)
174
+ def self.schedule_for_me(*args)
162
175
 
163
176
  Clayful.call_api({
164
177
  'model_name' => @@name,
165
- 'method_name' => 'cancel',
178
+ 'method_name' => 'schedule_for_me',
166
179
  'http_method' => 'POST',
167
- 'path' => '/v1/subscriptions/{subscriptionId}/cancellation',
180
+ 'path' => '/v1/me/subscriptions/{subscriptionId}/scheduled',
168
181
  'params' => ['subscriptionId', ],
169
182
  'args' => args
170
183
  })
@@ -184,19 +197,6 @@ module Clayful
184
197
 
185
198
  end
186
199
 
187
- def self.schedule_for_me(*args)
188
-
189
- Clayful.call_api({
190
- 'model_name' => @@name,
191
- 'method_name' => 'schedule_for_me',
192
- 'http_method' => 'POST',
193
- 'path' => '/v1/me/subscriptions/{subscriptionId}/scheduled',
194
- 'params' => ['subscriptionId', ],
195
- 'args' => args
196
- })
197
-
198
- end
199
-
200
200
  def self.fulfill_schedule(*args)
201
201
 
202
202
  Clayful.call_api({
@@ -223,26 +223,26 @@ module Clayful
223
223
 
224
224
  end
225
225
 
226
- def self.increase_metafield(*args)
226
+ def self.push_to_metafield(*args)
227
227
 
228
228
  Clayful.call_api({
229
229
  'model_name' => @@name,
230
- 'method_name' => 'increase_metafield',
230
+ 'method_name' => 'push_to_metafield',
231
231
  'http_method' => 'POST',
232
- 'path' => '/v1/subscriptions/{subscriptionId}/meta/{field}/inc',
232
+ 'path' => '/v1/subscriptions/{subscriptionId}/meta/{field}/push',
233
233
  'params' => ['subscriptionId', 'field', ],
234
234
  'args' => args
235
235
  })
236
236
 
237
237
  end
238
238
 
239
- def self.push_to_metafield(*args)
239
+ def self.increase_metafield(*args)
240
240
 
241
241
  Clayful.call_api({
242
242
  'model_name' => @@name,
243
- 'method_name' => 'push_to_metafield',
243
+ 'method_name' => 'increase_metafield',
244
244
  'http_method' => 'POST',
245
- 'path' => '/v1/subscriptions/{subscriptionId}/meta/{field}/push',
245
+ 'path' => '/v1/subscriptions/{subscriptionId}/meta/{field}/inc',
246
246
  'params' => ['subscriptionId', 'field', ],
247
247
  'args' => args
248
248
  })
@@ -301,6 +301,19 @@ module Clayful
301
301
 
302
302
  end
303
303
 
304
+ def self.update_item(*args)
305
+
306
+ Clayful.call_api({
307
+ 'model_name' => @@name,
308
+ 'method_name' => 'update_item',
309
+ 'http_method' => 'PUT',
310
+ 'path' => '/v1/subscriptions/{subscriptionId}/items/{itemId}',
311
+ 'params' => ['subscriptionId', 'itemId', ],
312
+ 'args' => args
313
+ })
314
+
315
+ end
316
+
304
317
  def self.delete(*args)
305
318
 
306
319
  Clayful.call_api({
File without changes
File without changes
File without changes
@@ -312,27 +312,27 @@ module Clayful
312
312
 
313
313
  end
314
314
 
315
- def self.delete_item(*args)
315
+ def self.delete_metafield(*args)
316
316
 
317
317
  Clayful.call_api({
318
318
  'model_name' => @@name,
319
- 'method_name' => 'delete_item',
319
+ 'method_name' => 'delete_metafield',
320
320
  'http_method' => 'DELETE',
321
- 'path' => '/v1/wishlists/{wishListId}/items/{productId}',
322
- 'params' => ['wishListId', 'productId', ],
321
+ 'path' => '/v1/wishlists/{wishListId}/meta/{field}',
322
+ 'params' => ['wishListId', 'field', ],
323
323
  'args' => args
324
324
  })
325
325
 
326
326
  end
327
327
 
328
- def self.delete_metafield(*args)
328
+ def self.delete_item(*args)
329
329
 
330
330
  Clayful.call_api({
331
331
  'model_name' => @@name,
332
- 'method_name' => 'delete_metafield',
332
+ 'method_name' => 'delete_item',
333
333
  'http_method' => 'DELETE',
334
- 'path' => '/v1/wishlists/{wishListId}/meta/{field}',
335
- 'params' => ['wishListId', 'field', ],
334
+ 'path' => '/v1/wishlists/{wishListId}/items/{productId}',
335
+ 'params' => ['wishListId', 'productId', ],
336
336
  'args' => args
337
337
  })
338
338
 
File without changes
File without changes
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.3.0
4
+ version: 2.4.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-06-01 00:00:00.000000000 Z
11
+ date: 2020-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -127,7 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
127
127
  version: '0'
128
128
  requirements: []
129
129
  rubyforge_project:
130
- rubygems_version: 2.6.14.1
130
+ rubygems_version: 2.6.14.4
131
131
  signing_key:
132
132
  specification_version: 4
133
133
  summary: Ruby SDK for Clayful API