clayful 2.0.0 → 2.4.0

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: 10f397fa265f6c886f1e24c7e4dfac0f92430355
4
- data.tar.gz: d3b14c81dc8d343fb4d9771376eb91d7208f6eb4
3
+ metadata.gz: ad783f1cbf93e7cdcf0fc2cf5f45cb312bb3f9d8
4
+ data.tar.gz: c51d664dc29c78b06e7f846c1a15bf77f7be8f22
5
5
  SHA512:
6
- metadata.gz: 44aa59772ebb757950bae3917c262128be1f007ee04ef9c77febdc2a52333e66af0156af514c28a54fd6c261eae2f3da3f14a5df8c09ba6fab88c02b724cc9aa
7
- data.tar.gz: 2301867f029053aa8b932c4911707d19cf428651ed70c60af2ac1d7f1a322b6a81d1675f591d4e902ff950951cde171b56ea6b7dda6853fbe55ef8cff2084cd1
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
@@ -8,7 +8,7 @@ module Clayful
8
8
  @@base_url = 'https://api.clayful.io'
9
9
 
10
10
  @@default_headers = {
11
- 'Accept-Encoding' => 'gzip',
11
+ 'Accept-Encoding' => '*',
12
12
  'User-Agent' => 'clayful-ruby',
13
13
  'Clayful-SDK' => 'clayful-ruby'
14
14
  }
File without changes
@@ -17,6 +17,7 @@ require_relative './product'
17
17
  require_relative './review'
18
18
  require_relative './review_comment'
19
19
  require_relative './shipping_method'
20
+ require_relative './shipping_policy'
20
21
  require_relative './store'
21
22
  require_relative './subscription'
22
23
  require_relative './subscription_plan'
@@ -52,6 +52,19 @@ 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/brands',
62
+ 'params' => [],
63
+ 'args' => args
64
+ })
65
+
66
+ end
67
+
55
68
  def self.push_to_metafield(*args)
56
69
 
57
70
  Clayful.call_api({
@@ -91,6 +104,32 @@ module Clayful
91
104
 
92
105
  end
93
106
 
107
+ def self.update(*args)
108
+
109
+ Clayful.call_api({
110
+ 'model_name' => @@name,
111
+ 'method_name' => 'update',
112
+ 'http_method' => 'PUT',
113
+ 'path' => '/v1/brands/{brandId}',
114
+ 'params' => ['brandId', ],
115
+ 'args' => args
116
+ })
117
+
118
+ end
119
+
120
+ def self.delete(*args)
121
+
122
+ Clayful.call_api({
123
+ 'model_name' => @@name,
124
+ 'method_name' => 'delete',
125
+ 'http_method' => 'DELETE',
126
+ 'path' => '/v1/brands/{brandId}',
127
+ 'params' => ['brandId', ],
128
+ 'args' => args
129
+ })
130
+
131
+ end
132
+
94
133
  def self.delete_metafield(*args)
95
134
 
96
135
  Clayful.call_api({
File without changes
@@ -52,14 +52,14 @@ module Clayful
52
52
 
53
53
  end
54
54
 
55
- def self.push_to_metafield(*args)
55
+ def self.create(*args)
56
56
 
57
57
  Clayful.call_api({
58
58
  'model_name' => @@name,
59
- 'method_name' => 'push_to_metafield',
59
+ 'method_name' => 'create',
60
60
  'http_method' => 'POST',
61
- 'path' => '/v1/catalogs/{catalogId}/meta/{field}/push',
62
- 'params' => ['catalogId', 'field', ],
61
+ 'path' => '/v1/catalogs',
62
+ 'params' => [],
63
63
  'args' => args
64
64
  })
65
65
 
@@ -91,6 +91,45 @@ module Clayful
91
91
 
92
92
  end
93
93
 
94
+ def self.push_to_metafield(*args)
95
+
96
+ Clayful.call_api({
97
+ 'model_name' => @@name,
98
+ 'method_name' => 'push_to_metafield',
99
+ 'http_method' => 'POST',
100
+ 'path' => '/v1/catalogs/{catalogId}/meta/{field}/push',
101
+ 'params' => ['catalogId', 'field', ],
102
+ 'args' => args
103
+ })
104
+
105
+ end
106
+
107
+ def self.update(*args)
108
+
109
+ Clayful.call_api({
110
+ 'model_name' => @@name,
111
+ 'method_name' => 'update',
112
+ 'http_method' => 'PUT',
113
+ 'path' => '/v1/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', ],
128
+ 'args' => args
129
+ })
130
+
131
+ end
132
+
94
133
  def self.delete_metafield(*args)
95
134
 
96
135
  Clayful.call_api({
@@ -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/collections',
62
+ 'params' => [],
63
+ 'args' => args
64
+ })
65
+
66
+ end
67
+
68
+ def self.push_to_metafield(*args)
69
+
70
+ Clayful.call_api({
71
+ 'model_name' => @@name,
72
+ 'method_name' => 'push_to_metafield',
73
+ 'http_method' => 'POST',
74
+ 'path' => '/v1/collections/{collectionId}/meta/{field}/push',
75
+ 'params' => ['collectionId', '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.push_to_metafield(*args)
107
+ def self.update(*args)
82
108
 
83
109
  Clayful.call_api({
84
110
  'model_name' => @@name,
85
- 'method_name' => 'push_to_metafield',
86
- 'http_method' => 'POST',
87
- 'path' => '/v1/collections/{collectionId}/meta/{field}/push',
88
- 'params' => ['collectionId', 'field', ],
111
+ 'method_name' => 'update',
112
+ 'http_method' => 'PUT',
113
+ 'path' => '/v1/collections/{collectionId}',
114
+ 'params' => ['collectionId', ],
115
+ 'args' => args
116
+ })
117
+
118
+ end
119
+
120
+ def self.delete(*args)
121
+
122
+ Clayful.call_api({
123
+ 'model_name' => @@name,
124
+ 'method_name' => 'delete',
125
+ 'http_method' => 'DELETE',
126
+ 'path' => '/v1/collections/{collectionId}',
127
+ 'params' => ['collectionId', ],
89
128
  'args' => args
90
129
  })
91
130
 
File without changes
@@ -65,26 +65,26 @@ module Clayful
65
65
 
66
66
  end
67
67
 
68
- def self.increase_metafield(*args)
68
+ def self.push_to_metafield(*args)
69
69
 
70
70
  Clayful.call_api({
71
71
  'model_name' => @@name,
72
- 'method_name' => 'increase_metafield',
72
+ 'method_name' => 'push_to_metafield',
73
73
  'http_method' => 'POST',
74
- 'path' => '/v1/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.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/coupons/{couponId}/meta/{field}/push',
87
+ 'path' => '/v1/coupons/{couponId}/meta/{field}/inc',
88
88
  'params' => ['couponId', 'field', ],
89
89
  'args' => args
90
90
  })
File without changes
@@ -274,6 +274,19 @@ module Clayful
274
274
 
275
275
  end
276
276
 
277
+ def self.verify(*args)
278
+
279
+ Clayful.call_api({
280
+ 'model_name' => @@name,
281
+ 'method_name' => 'verify',
282
+ 'http_method' => 'POST',
283
+ 'path' => '/v1/customers/{customerId}/verified',
284
+ 'params' => ['customerId', ],
285
+ 'args' => args
286
+ })
287
+
288
+ end
289
+
277
290
  def self.add_coupon(*args)
278
291
 
279
292
  Clayful.call_api({
@@ -287,14 +300,14 @@ module Clayful
287
300
 
288
301
  end
289
302
 
290
- def self.verify(*args)
303
+ def self.recover_credential(*args)
291
304
 
292
305
  Clayful.call_api({
293
306
  'model_name' => @@name,
294
- 'method_name' => 'verify',
307
+ 'method_name' => 'recover_credential',
295
308
  'http_method' => 'POST',
296
- 'path' => '/v1/customers/{customerId}/verified',
297
- 'params' => ['customerId', ],
309
+ 'path' => '/v1/customers/credentials/{credentialField}/recoveries/{recoveryMethod}',
310
+ 'params' => ['credentialField', 'recoveryMethod', ],
298
311
  'args' => args
299
312
  })
300
313
 
@@ -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,26 +52,26 @@ 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/discounts/{discountId}/meta/{field}/push',
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
  })
File without changes
@@ -52,39 +52,39 @@ module Clayful
52
52
 
53
53
  end
54
54
 
55
- def self.pull_from_metafield(*args)
55
+ def self.increase_metafield(*args)
56
56
 
57
57
  Clayful.call_api({
58
58
  'model_name' => @@name,
59
- 'method_name' => 'pull_from_metafield',
59
+ 'method_name' => 'increase_metafield',
60
60
  'http_method' => 'POST',
61
- 'path' => '/v1/groups/{groupId}/meta/{field}/pull',
61
+ 'path' => '/v1/groups/{groupId}/meta/{field}/inc',
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
  })
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
@@ -158,26 +158,27 @@ module Clayful
158
158
 
159
159
  end
160
160
 
161
- def self.cancel(*args)
161
+ def self.mark_as_done(*args)
162
162
 
163
163
  Clayful.call_api({
164
164
  'model_name' => @@name,
165
- 'method_name' => 'cancel',
165
+ 'method_name' => 'mark_as_done',
166
166
  'http_method' => 'POST',
167
- 'path' => '/v1/orders/{orderId}/cancellation',
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.create_fulfillment(*args)
175
+ def self.request_refund(*args)
175
176
 
176
177
  Clayful.call_api({
177
178
  'model_name' => @@name,
178
- 'method_name' => 'create_fulfillment',
179
+ 'method_name' => 'request_refund',
179
180
  'http_method' => 'POST',
180
- 'path' => '/v1/orders/{orderId}/fulfillments',
181
+ 'path' => '/v1/orders/{orderId}/refunds',
181
182
  'params' => ['orderId', ],
182
183
  'args' => args
183
184
  })
@@ -197,28 +198,27 @@ module Clayful
197
198
 
198
199
  end
199
200
 
200
- def self.request_refund(*args)
201
+ def self.cancel(*args)
201
202
 
202
203
  Clayful.call_api({
203
204
  'model_name' => @@name,
204
- 'method_name' => 'request_refund',
205
+ 'method_name' => 'cancel',
205
206
  'http_method' => 'POST',
206
- 'path' => '/v1/orders/{orderId}/refunds',
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_done(*args)
214
+ def self.create_fulfillment(*args)
214
215
 
215
216
  Clayful.call_api({
216
217
  'model_name' => @@name,
217
- 'method_name' => 'mark_as_done',
218
+ 'method_name' => 'create_fulfillment',
218
219
  'http_method' => 'POST',
219
- 'path' => '/v1/orders/{orderId}/done',
220
+ 'path' => '/v1/orders/{orderId}/fulfillments',
220
221
  'params' => ['orderId', ],
221
- 'without_payload' => true,
222
222
  'args' => args
223
223
  })
224
224
 
@@ -291,28 +291,27 @@ module Clayful
291
291
 
292
292
  end
293
293
 
294
- def self.accept_refund(*args)
294
+ def self.increase_metafield(*args)
295
295
 
296
296
  Clayful.call_api({
297
297
  'model_name' => @@name,
298
- 'method_name' => 'accept_refund',
298
+ 'method_name' => 'increase_metafield',
299
299
  'http_method' => 'POST',
300
- 'path' => '/v1/orders/{orderId}/refunds/{refundId}/accepted',
301
- 'params' => ['orderId', 'refundId', ],
302
- 'without_payload' => true,
300
+ 'path' => '/v1/orders/{orderId}/meta/{field}/inc',
301
+ 'params' => ['orderId', 'field', ],
303
302
  'args' => args
304
303
  })
305
304
 
306
305
  end
307
306
 
308
- def self.push_to_metafield(*args)
307
+ def self.restock_refund_items(*args)
309
308
 
310
309
  Clayful.call_api({
311
310
  'model_name' => @@name,
312
- 'method_name' => 'push_to_metafield',
311
+ 'method_name' => 'restock_refund_items',
313
312
  'http_method' => 'POST',
314
- 'path' => '/v1/orders/{orderId}/meta/{field}/push',
315
- 'params' => ['orderId', 'field', ],
313
+ 'path' => '/v1/orders/{orderId}/refunds/{refundId}/restock',
314
+ 'params' => ['orderId', 'refundId', ],
316
315
  'args' => args
317
316
  })
318
317
 
@@ -344,40 +343,41 @@ module Clayful
344
343
 
345
344
  end
346
345
 
347
- def self.increase_metafield(*args)
346
+ def self.register_payment_method(*args)
348
347
 
349
348
  Clayful.call_api({
350
349
  'model_name' => @@name,
351
- 'method_name' => 'increase_metafield',
350
+ 'method_name' => 'register_payment_method',
352
351
  'http_method' => 'POST',
353
- 'path' => '/v1/orders/{orderId}/meta/{field}/inc',
354
- 'params' => ['orderId', 'field', ],
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.restock_refund_items(*args)
359
+ def self.accept_refund(*args)
361
360
 
362
361
  Clayful.call_api({
363
362
  'model_name' => @@name,
364
- 'method_name' => 'restock_refund_items',
363
+ 'method_name' => 'accept_refund',
365
364
  'http_method' => 'POST',
366
- 'path' => '/v1/orders/{orderId}/refunds/{refundId}/restock',
365
+ 'path' => '/v1/orders/{orderId}/refunds/{refundId}/accepted',
367
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
  })
@@ -464,19 +464,6 @@ module Clayful
464
464
 
465
465
  end
466
466
 
467
- def self.update_transactions(*args)
468
-
469
- Clayful.call_api({
470
- 'model_name' => @@name,
471
- 'method_name' => 'update_transactions',
472
- 'http_method' => 'PUT',
473
- 'path' => '/v1/orders/{orderId}/transactions',
474
- 'params' => ['orderId', ],
475
- 'args' => args
476
- })
477
-
478
- end
479
-
480
467
  def self.update_cancellation(*args)
481
468
 
482
469
  Clayful.call_api({
@@ -490,15 +477,14 @@ module Clayful
490
477
 
491
478
  end
492
479
 
493
- def self.update_transactions_for_me(*args)
480
+ def self.update_transactions(*args)
494
481
 
495
482
  Clayful.call_api({
496
483
  'model_name' => @@name,
497
- 'method_name' => 'update_transactions_for_me',
484
+ 'method_name' => 'update_transactions',
498
485
  'http_method' => 'PUT',
499
- 'path' => '/v1/me/orders/{orderId}/transactions',
486
+ 'path' => '/v1/orders/{orderId}/transactions',
500
487
  'params' => ['orderId', ],
501
- 'without_payload' => true,
502
488
  'args' => args
503
489
  })
504
490
 
@@ -517,14 +503,15 @@ module Clayful
517
503
 
518
504
  end
519
505
 
520
- def self.update_fulfillment(*args)
506
+ def self.update_transactions_for_me(*args)
521
507
 
522
508
  Clayful.call_api({
523
509
  'model_name' => @@name,
524
- 'method_name' => 'update_fulfillment',
510
+ 'method_name' => 'update_transactions_for_me',
525
511
  'http_method' => 'PUT',
526
- 'path' => '/v1/orders/{orderId}/fulfillments/{fulfillmentId}',
527
- 'params' => ['orderId', 'fulfillmentId', ],
512
+ 'path' => '/v1/me/orders/{orderId}/transactions',
513
+ 'params' => ['orderId', ],
514
+ 'without_payload' => true,
528
515
  'args' => args
529
516
  })
530
517
 
@@ -556,6 +543,19 @@ module Clayful
556
543
 
557
544
  end
558
545
 
546
+ def self.update_fulfillment(*args)
547
+
548
+ Clayful.call_api({
549
+ 'model_name' => @@name,
550
+ 'method_name' => 'update_fulfillment',
551
+ 'http_method' => 'PUT',
552
+ 'path' => '/v1/orders/{orderId}/fulfillments/{fulfillmentId}',
553
+ 'params' => ['orderId', 'fulfillmentId', ],
554
+ 'args' => args
555
+ })
556
+
557
+ end
558
+
559
559
  def self.update_refund_for_me(*args)
560
560
 
561
561
  Clayful.call_api({
@@ -647,14 +647,14 @@ module Clayful
647
647
 
648
648
  end
649
649
 
650
- def self.delete_metafield(*args)
650
+ def self.delete_fulfillment(*args)
651
651
 
652
652
  Clayful.call_api({
653
653
  'model_name' => @@name,
654
- 'method_name' => 'delete_metafield',
654
+ 'method_name' => 'delete_fulfillment',
655
655
  'http_method' => 'DELETE',
656
- 'path' => '/v1/orders/{orderId}/meta/{field}',
657
- 'params' => ['orderId', 'field', ],
656
+ 'path' => '/v1/orders/{orderId}/fulfillments/{fulfillmentId}',
657
+ 'params' => ['orderId', 'fulfillmentId', ],
658
658
  'args' => args
659
659
  })
660
660
 
@@ -673,40 +673,40 @@ module Clayful
673
673
 
674
674
  end
675
675
 
676
- def self.delete_fulfillment(*args)
676
+ def self.delete_metafield(*args)
677
677
 
678
678
  Clayful.call_api({
679
679
  'model_name' => @@name,
680
- 'method_name' => 'delete_fulfillment',
680
+ 'method_name' => 'delete_metafield',
681
681
  'http_method' => 'DELETE',
682
- 'path' => '/v1/orders/{orderId}/fulfillments/{fulfillmentId}',
683
- 'params' => ['orderId', 'fulfillmentId', ],
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