clayful 2.4.0 → 2.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ad783f1cbf93e7cdcf0fc2cf5f45cb312bb3f9d8
4
- data.tar.gz: c51d664dc29c78b06e7f846c1a15bf77f7be8f22
3
+ metadata.gz: 77d310b3930ee03cb35ff999707aa039b81cf174
4
+ data.tar.gz: e3f90868e5ba939f73607a98f346e1e74a52b0ab
5
5
  SHA512:
6
- metadata.gz: fe35892d2731683f1c11c544d1df205eec9ac43193da080a566c1c62d9a59d6fb73c9d4dc57d722b2268426dede01a1814a7a1f4ebea53e4c6aa9358c21e4054
7
- data.tar.gz: fc78e5f53c7f58feee983a9a241f3a940f8fd3d02857c9bb39b702859036ff8b0ef44794b8d6786fbf7a6c6c7170f00bb406b5b1487e24cad9c8809e307f935e
6
+ metadata.gz: fda65ea891748d6668307cfca95cd89c018db73c831ed0461fe6050ccec8d87846ca1b07835bc12073eecd4b31a12bd323ccb506c4b9a3463b2a666242e8c78b
7
+ data.tar.gz: f5cbcf17962236ea5f66fe3b6c94e83859f08ed88946a661dd5acbfe2036228a205cad4c383efd2cfbf44ea2ec9d22073e9a683488997b0d7d59421ffa29935a
@@ -65,39 +65,39 @@ module Clayful
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/brands/{brandId}/meta/{field}/push',
74
+ 'path' => '/v1/brands/{brandId}/meta/{field}/pull',
75
75
  'params' => ['brandId', '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/brands/{brandId}/meta/{field}/pull',
87
+ 'path' => '/v1/brands/{brandId}/meta/{field}/inc',
88
88
  'params' => ['brandId', 'field', ],
89
89
  'args' => args
90
90
  })
91
91
 
92
92
  end
93
93
 
94
- def self.increase_metafield(*args)
94
+ def self.push_to_metafield(*args)
95
95
 
96
96
  Clayful.call_api({
97
97
  'model_name' => @@name,
98
- 'method_name' => 'increase_metafield',
98
+ 'method_name' => 'push_to_metafield',
99
99
  'http_method' => 'POST',
100
- 'path' => '/v1/brands/{brandId}/meta/{field}/inc',
100
+ 'path' => '/v1/brands/{brandId}/meta/{field}/push',
101
101
  'params' => ['brandId', 'field', ],
102
102
  'args' => args
103
103
  })
@@ -65,39 +65,39 @@ 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.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/catalogs/{catalogId}/meta/{field}/pull',
87
+ 'path' => '/v1/catalogs/{catalogId}/meta/{field}/inc',
88
88
  'params' => ['catalogId', 'field', ],
89
89
  'args' => args
90
90
  })
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/catalogs/{catalogId}/meta/{field}/push',
100
+ 'path' => '/v1/catalogs/{catalogId}/meta/{field}/pull',
101
101
  'params' => ['catalogId', 'field', ],
102
102
  'args' => args
103
103
  })
@@ -65,39 +65,39 @@ module Clayful
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/collections/{collectionId}/meta/{field}/push',
74
+ 'path' => '/v1/collections/{collectionId}/meta/{field}/pull',
75
75
  'params' => ['collectionId', '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/collections/{collectionId}/meta/{field}/pull',
87
+ 'path' => '/v1/collections/{collectionId}/meta/{field}/inc',
88
88
  'params' => ['collectionId', 'field', ],
89
89
  'args' => args
90
90
  })
91
91
 
92
92
  end
93
93
 
94
- def self.increase_metafield(*args)
94
+ def self.push_to_metafield(*args)
95
95
 
96
96
  Clayful.call_api({
97
97
  'model_name' => @@name,
98
- 'method_name' => 'increase_metafield',
98
+ 'method_name' => 'push_to_metafield',
99
99
  'http_method' => 'POST',
100
- 'path' => '/v1/collections/{collectionId}/meta/{field}/inc',
100
+ 'path' => '/v1/collections/{collectionId}/meta/{field}/push',
101
101
  'params' => ['collectionId', 'field', ],
102
102
  'args' => args
103
103
  })
@@ -65,26 +65,26 @@ module Clayful
65
65
 
66
66
  end
67
67
 
68
- def self.push_to_metafield(*args)
68
+ def self.increase_metafield(*args)
69
69
 
70
70
  Clayful.call_api({
71
71
  'model_name' => @@name,
72
- 'method_name' => 'push_to_metafield',
72
+ 'method_name' => 'increase_metafield',
73
73
  'http_method' => 'POST',
74
- 'path' => '/v1/coupons/{couponId}/meta/{field}/push',
74
+ 'path' => '/v1/coupons/{couponId}/meta/{field}/inc',
75
75
  'params' => ['couponId', '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/coupons/{couponId}/meta/{field}/inc',
87
+ 'path' => '/v1/coupons/{couponId}/meta/{field}/push',
88
88
  'params' => ['couponId', 'field', ],
89
89
  'args' => args
90
90
  })
@@ -143,27 +143,27 @@ module Clayful
143
143
 
144
144
  end
145
145
 
146
- def self.list_by_flag_votes(*args)
146
+ def self.list_by_help_votes(*args)
147
147
 
148
148
  Clayful.call_api({
149
149
  'model_name' => @@name,
150
- 'method_name' => 'list_by_flag_votes',
150
+ 'method_name' => 'list_by_help_votes',
151
151
  'http_method' => 'GET',
152
- 'path' => '/v1/{voteModel}/{voteModelId}/flags/customers',
153
- 'params' => ['voteModel', 'voteModelId', ],
152
+ 'path' => '/v1/{voteModel}/{voteModelId}/helped/{upDown}/customers',
153
+ 'params' => ['voteModel', 'voteModelId', 'upDown', ],
154
154
  'args' => args
155
155
  })
156
156
 
157
157
  end
158
158
 
159
- def self.list_by_help_votes(*args)
159
+ def self.list_by_flag_votes(*args)
160
160
 
161
161
  Clayful.call_api({
162
162
  'model_name' => @@name,
163
- 'method_name' => 'list_by_help_votes',
163
+ 'method_name' => 'list_by_flag_votes',
164
164
  'http_method' => 'GET',
165
- 'path' => '/v1/{voteModel}/{voteModelId}/helped/{upDown}/customers',
166
- 'params' => ['voteModel', 'voteModelId', 'upDown', ],
165
+ 'path' => '/v1/{voteModel}/{voteModelId}/flags/customers',
166
+ 'params' => ['voteModel', 'voteModelId', ],
167
167
  'args' => args
168
168
  })
169
169
 
@@ -242,7 +242,6 @@ module Clayful
242
242
  'http_method' => 'POST',
243
243
  'path' => '/v1/customers/auth/{vendor}',
244
244
  'params' => ['vendor', ],
245
- 'without_payload' => true,
246
245
  'args' => args
247
246
  })
248
247
 
@@ -274,26 +273,26 @@ module Clayful
274
273
 
275
274
  end
276
275
 
277
- def self.verify(*args)
276
+ def self.add_coupon(*args)
278
277
 
279
278
  Clayful.call_api({
280
279
  'model_name' => @@name,
281
- 'method_name' => 'verify',
280
+ 'method_name' => 'add_coupon',
282
281
  'http_method' => 'POST',
283
- 'path' => '/v1/customers/{customerId}/verified',
282
+ 'path' => '/v1/customers/{customerId}/coupons',
284
283
  'params' => ['customerId', ],
285
284
  'args' => args
286
285
  })
287
286
 
288
287
  end
289
288
 
290
- def self.add_coupon(*args)
289
+ def self.verify(*args)
291
290
 
292
291
  Clayful.call_api({
293
292
  'model_name' => @@name,
294
- 'method_name' => 'add_coupon',
293
+ 'method_name' => 'verify',
295
294
  'http_method' => 'POST',
296
- 'path' => '/v1/customers/{customerId}/coupons',
295
+ 'path' => '/v1/customers/{customerId}/verified',
297
296
  'params' => ['customerId', ],
298
297
  'args' => args
299
298
  })
@@ -326,26 +325,26 @@ module Clayful
326
325
 
327
326
  end
328
327
 
329
- def self.push_to_metafield(*args)
328
+ def self.pull_from_metafield(*args)
330
329
 
331
330
  Clayful.call_api({
332
331
  'model_name' => @@name,
333
- 'method_name' => 'push_to_metafield',
332
+ 'method_name' => 'pull_from_metafield',
334
333
  'http_method' => 'POST',
335
- 'path' => '/v1/customers/{customerId}/meta/{field}/push',
334
+ 'path' => '/v1/customers/{customerId}/meta/{field}/pull',
336
335
  'params' => ['customerId', 'field', ],
337
336
  'args' => args
338
337
  })
339
338
 
340
339
  end
341
340
 
342
- def self.pull_from_metafield(*args)
341
+ def self.push_to_metafield(*args)
343
342
 
344
343
  Clayful.call_api({
345
344
  'model_name' => @@name,
346
- 'method_name' => 'pull_from_metafield',
345
+ 'method_name' => 'push_to_metafield',
347
346
  'http_method' => 'POST',
348
- 'path' => '/v1/customers/{customerId}/meta/{field}/pull',
347
+ 'path' => '/v1/customers/{customerId}/meta/{field}/push',
349
348
  'params' => ['customerId', 'field', ],
350
349
  'args' => args
351
350
  })
@@ -52,39 +52,39 @@ 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/discounts/{discountId}/meta/{field}/pull',
61
+ 'path' => '/v1/discounts/{discountId}/meta/{field}/push',
62
62
  'params' => ['discountId', 'field', ],
63
63
  'args' => args
64
64
  })
65
65
 
66
66
  end
67
67
 
68
- def self.push_to_metafield(*args)
68
+ def self.increase_metafield(*args)
69
69
 
70
70
  Clayful.call_api({
71
71
  'model_name' => @@name,
72
- 'method_name' => 'push_to_metafield',
72
+ 'method_name' => 'increase_metafield',
73
73
  'http_method' => 'POST',
74
- 'path' => '/v1/discounts/{discountId}/meta/{field}/push',
74
+ 'path' => '/v1/discounts/{discountId}/meta/{field}/inc',
75
75
  'params' => ['discountId', 'field', ],
76
76
  'args' => args
77
77
  })
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/discounts/{discountId}/meta/{field}/inc',
87
+ 'path' => '/v1/discounts/{discountId}/meta/{field}/pull',
88
88
  'params' => ['discountId', 'field', ],
89
89
  'args' => args
90
90
  })
@@ -52,39 +52,39 @@ module Clayful
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/groups/{groupId}/meta/{field}/inc',
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.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/groups/{groupId}/meta/{field}/pull',
74
+ 'path' => '/v1/groups/{groupId}/meta/{field}/inc',
75
75
  'params' => ['groupId', 'field', ],
76
76
  'args' => args
77
77
  })
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/groups/{groupId}/meta/{field}/push',
87
+ 'path' => '/v1/groups/{groupId}/meta/{field}/pull',
88
88
  'params' => ['groupId', 'field', ],
89
89
  'args' => args
90
90
  })
@@ -144,6 +144,19 @@ module Clayful
144
144
 
145
145
  end
146
146
 
147
+ def self.create_fulfillment(*args)
148
+
149
+ Clayful.call_api({
150
+ 'model_name' => @@name,
151
+ 'method_name' => 'create_fulfillment',
152
+ 'http_method' => 'POST',
153
+ 'path' => '/v1/orders/{orderId}/fulfillments',
154
+ 'params' => ['orderId', ],
155
+ 'args' => args
156
+ })
157
+
158
+ end
159
+
147
160
  def self.sync_inventory(*args)
148
161
 
149
162
  Clayful.call_api({
@@ -185,40 +198,41 @@ module Clayful
185
198
 
186
199
  end
187
200
 
188
- def self.authenticate(*args)
201
+ def self.cancel(*args)
189
202
 
190
203
  Clayful.call_api({
191
204
  'model_name' => @@name,
192
- 'method_name' => 'authenticate',
205
+ 'method_name' => 'cancel',
193
206
  'http_method' => 'POST',
194
- 'path' => '/v1/orders/{orderId}/auth',
207
+ 'path' => '/v1/orders/{orderId}/cancellation',
195
208
  'params' => ['orderId', ],
196
209
  'args' => args
197
210
  })
198
211
 
199
212
  end
200
213
 
201
- def self.cancel(*args)
214
+ def self.authenticate(*args)
202
215
 
203
216
  Clayful.call_api({
204
217
  'model_name' => @@name,
205
- 'method_name' => 'cancel',
218
+ 'method_name' => 'authenticate',
206
219
  'http_method' => 'POST',
207
- 'path' => '/v1/orders/{orderId}/cancellation',
220
+ 'path' => '/v1/orders/{orderId}/auth',
208
221
  'params' => ['orderId', ],
209
222
  'args' => args
210
223
  })
211
224
 
212
225
  end
213
226
 
214
- def self.create_fulfillment(*args)
227
+ def self.mark_as_received_for_me(*args)
215
228
 
216
229
  Clayful.call_api({
217
230
  'model_name' => @@name,
218
- 'method_name' => 'create_fulfillment',
231
+ 'method_name' => 'mark_as_received_for_me',
219
232
  'http_method' => 'POST',
220
- 'path' => '/v1/orders/{orderId}/fulfillments',
233
+ 'path' => '/v1/me/orders/{orderId}/received',
221
234
  'params' => ['orderId', ],
235
+ 'without_payload' => true,
222
236
  'args' => args
223
237
  })
224
238
 
@@ -237,28 +251,28 @@ module Clayful
237
251
 
238
252
  end
239
253
 
240
- def self.mark_as_received_for_me(*args)
254
+ def self.cancel_for_me(*args)
241
255
 
242
256
  Clayful.call_api({
243
257
  'model_name' => @@name,
244
- 'method_name' => 'mark_as_received_for_me',
258
+ 'method_name' => 'cancel_for_me',
245
259
  'http_method' => 'POST',
246
- 'path' => '/v1/me/orders/{orderId}/received',
260
+ 'path' => '/v1/me/orders/{orderId}/cancellation',
247
261
  'params' => ['orderId', ],
248
- 'without_payload' => true,
249
262
  'args' => args
250
263
  })
251
264
 
252
265
  end
253
266
 
254
- def self.cancel_for_me(*args)
267
+ def self.use_ticket(*args)
255
268
 
256
269
  Clayful.call_api({
257
270
  'model_name' => @@name,
258
- 'method_name' => 'cancel_for_me',
271
+ 'method_name' => 'use_ticket',
259
272
  'http_method' => 'POST',
260
- 'path' => '/v1/me/orders/{orderId}/cancellation',
261
- 'params' => ['orderId', ],
273
+ 'path' => '/v1/orders/tickets/{code}/used',
274
+ 'params' => ['code', ],
275
+ 'without_payload' => true,
262
276
  'args' => args
263
277
  })
264
278
 
@@ -277,53 +291,52 @@ module Clayful
277
291
 
278
292
  end
279
293
 
280
- def self.use_ticket(*args)
294
+ def self.push_to_metafield(*args)
281
295
 
282
296
  Clayful.call_api({
283
297
  'model_name' => @@name,
284
- 'method_name' => 'use_ticket',
298
+ 'method_name' => 'push_to_metafield',
285
299
  'http_method' => 'POST',
286
- 'path' => '/v1/orders/tickets/{code}/used',
287
- 'params' => ['code', ],
288
- 'without_payload' => true,
300
+ 'path' => '/v1/orders/{orderId}/meta/{field}/push',
301
+ 'params' => ['orderId', 'field', ],
289
302
  'args' => args
290
303
  })
291
304
 
292
305
  end
293
306
 
294
- def self.increase_metafield(*args)
307
+ def self.register_payment_method(*args)
295
308
 
296
309
  Clayful.call_api({
297
310
  'model_name' => @@name,
298
- 'method_name' => 'increase_metafield',
311
+ 'method_name' => 'register_payment_method',
299
312
  'http_method' => 'POST',
300
- 'path' => '/v1/orders/{orderId}/meta/{field}/inc',
301
- 'params' => ['orderId', 'field', ],
313
+ 'path' => '/v1/orders/{orderId}/transactions/payments/methods',
314
+ 'params' => ['orderId', ],
302
315
  'args' => args
303
316
  })
304
317
 
305
318
  end
306
319
 
307
- def self.restock_refund_items(*args)
320
+ def self.increase_metafield(*args)
308
321
 
309
322
  Clayful.call_api({
310
323
  'model_name' => @@name,
311
- 'method_name' => 'restock_refund_items',
324
+ 'method_name' => 'increase_metafield',
312
325
  'http_method' => 'POST',
313
- 'path' => '/v1/orders/{orderId}/refunds/{refundId}/restock',
314
- 'params' => ['orderId', 'refundId', ],
326
+ 'path' => '/v1/orders/{orderId}/meta/{field}/inc',
327
+ 'params' => ['orderId', 'field', ],
315
328
  'args' => args
316
329
  })
317
330
 
318
331
  end
319
332
 
320
- def self.cancel_refund(*args)
333
+ def self.restock_refund_items(*args)
321
334
 
322
335
  Clayful.call_api({
323
336
  'model_name' => @@name,
324
- 'method_name' => 'cancel_refund',
337
+ 'method_name' => 'restock_refund_items',
325
338
  'http_method' => 'POST',
326
- 'path' => '/v1/orders/{orderId}/refunds/{refundId}/cancellation',
339
+ 'path' => '/v1/orders/{orderId}/refunds/{refundId}/restock',
327
340
  'params' => ['orderId', 'refundId', ],
328
341
  'args' => args
329
342
  })
@@ -343,19 +356,6 @@ module Clayful
343
356
 
344
357
  end
345
358
 
346
- def self.register_payment_method(*args)
347
-
348
- Clayful.call_api({
349
- 'model_name' => @@name,
350
- 'method_name' => 'register_payment_method',
351
- 'http_method' => 'POST',
352
- 'path' => '/v1/orders/{orderId}/transactions/payments/methods',
353
- 'params' => ['orderId', ],
354
- 'args' => args
355
- })
356
-
357
- end
358
-
359
359
  def self.accept_refund(*args)
360
360
 
361
361
  Clayful.call_api({
@@ -370,14 +370,14 @@ module Clayful
370
370
 
371
371
  end
372
372
 
373
- def self.push_to_metafield(*args)
373
+ def self.cancel_refund(*args)
374
374
 
375
375
  Clayful.call_api({
376
376
  'model_name' => @@name,
377
- 'method_name' => 'push_to_metafield',
377
+ 'method_name' => 'cancel_refund',
378
378
  'http_method' => 'POST',
379
- 'path' => '/v1/orders/{orderId}/meta/{field}/push',
380
- 'params' => ['orderId', 'field', ],
379
+ 'path' => '/v1/orders/{orderId}/refunds/{refundId}/cancellation',
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.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_cancellation(*args)
467
+ def self.update_transactions(*args)
468
468
 
469
469
  Clayful.call_api({
470
470
  'model_name' => @@name,
471
- 'method_name' => 'update_cancellation',
471
+ 'method_name' => 'update_transactions',
472
472
  'http_method' => 'PUT',
473
- 'path' => '/v1/orders/{orderId}/cancellation',
473
+ 'path' => '/v1/orders/{orderId}/transactions',
474
474
  'params' => ['orderId', ],
475
475
  'args' => args
476
476
  })
477
477
 
478
478
  end
479
479
 
480
- def self.update_transactions(*args)
480
+ def self.update_cancellation(*args)
481
481
 
482
482
  Clayful.call_api({
483
483
  'model_name' => @@name,
484
- 'method_name' => 'update_transactions',
484
+ 'method_name' => 'update_cancellation',
485
485
  'http_method' => 'PUT',
486
- 'path' => '/v1/orders/{orderId}/transactions',
486
+ 'path' => '/v1/orders/{orderId}/cancellation',
487
487
  'params' => ['orderId', ],
488
488
  'args' => args
489
489
  })
@@ -517,14 +517,14 @@ module Clayful
517
517
 
518
518
  end
519
519
 
520
- def self.update_refund(*args)
520
+ def self.update_fulfillment(*args)
521
521
 
522
522
  Clayful.call_api({
523
523
  'model_name' => @@name,
524
- 'method_name' => 'update_refund',
524
+ 'method_name' => 'update_fulfillment',
525
525
  'http_method' => 'PUT',
526
- 'path' => '/v1/orders/{orderId}/refunds/{refundId}',
527
- 'params' => ['orderId', 'refundId', ],
526
+ 'path' => '/v1/orders/{orderId}/fulfillments/{fulfillmentId}',
527
+ 'params' => ['orderId', 'fulfillmentId', ],
528
528
  'args' => args
529
529
  })
530
530
 
@@ -543,14 +543,14 @@ module Clayful
543
543
 
544
544
  end
545
545
 
546
- def self.update_fulfillment(*args)
546
+ def self.update_refund(*args)
547
547
 
548
548
  Clayful.call_api({
549
549
  'model_name' => @@name,
550
- 'method_name' => 'update_fulfillment',
550
+ 'method_name' => 'update_refund',
551
551
  'http_method' => 'PUT',
552
- 'path' => '/v1/orders/{orderId}/fulfillments/{fulfillmentId}',
553
- 'params' => ['orderId', 'fulfillmentId', ],
552
+ 'path' => '/v1/orders/{orderId}/refunds/{refundId}',
553
+ 'params' => ['orderId', 'refundId', ],
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,40 +647,40 @@ module Clayful
647
647
 
648
648
  end
649
649
 
650
- def self.delete_fulfillment(*args)
650
+ def self.delete_metafield(*args)
651
651
 
652
652
  Clayful.call_api({
653
653
  'model_name' => @@name,
654
- 'method_name' => 'delete_fulfillment',
654
+ 'method_name' => 'delete_metafield',
655
655
  'http_method' => 'DELETE',
656
- 'path' => '/v1/orders/{orderId}/fulfillments/{fulfillmentId}',
657
- 'params' => ['orderId', 'fulfillmentId', ],
656
+ 'path' => '/v1/orders/{orderId}/meta/{field}',
657
+ 'params' => ['orderId', 'field', ],
658
658
  'args' => args
659
659
  })
660
660
 
661
661
  end
662
662
 
663
- def self.delete_refund(*args)
663
+ def self.delete_fulfillment(*args)
664
664
 
665
665
  Clayful.call_api({
666
666
  'model_name' => @@name,
667
- 'method_name' => 'delete_refund',
667
+ 'method_name' => 'delete_fulfillment',
668
668
  'http_method' => 'DELETE',
669
- 'path' => '/v1/orders/{orderId}/refunds/{refundId}',
670
- 'params' => ['orderId', 'refundId', ],
669
+ 'path' => '/v1/orders/{orderId}/fulfillments/{fulfillmentId}',
670
+ 'params' => ['orderId', 'fulfillmentId', ],
671
671
  'args' => args
672
672
  })
673
673
 
674
674
  end
675
675
 
676
- def self.delete_metafield(*args)
676
+ def self.delete_refund(*args)
677
677
 
678
678
  Clayful.call_api({
679
679
  'model_name' => @@name,
680
- 'method_name' => 'delete_metafield',
680
+ 'method_name' => 'delete_refund',
681
681
  'http_method' => 'DELETE',
682
- 'path' => '/v1/orders/{orderId}/meta/{field}',
683
- 'params' => ['orderId', 'field', ],
682
+ 'path' => '/v1/orders/{orderId}/refunds/{refundId}',
683
+ 'params' => ['orderId', 'refundId', ],
684
684
  'args' => args
685
685
  })
686
686