clayful 2.1.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: 7a6a84ffbfe4354fc1c1135fc1d0bf7804f7d68b
4
- data.tar.gz: 9fd9d965f98808058b57de964ae9ed6de87f5e07
3
+ metadata.gz: 77d310b3930ee03cb35ff999707aa039b81cf174
4
+ data.tar.gz: e3f90868e5ba939f73607a98f346e1e74a52b0ab
5
5
  SHA512:
6
- metadata.gz: 4f037b3d3c436f57a5dc1d6cbf37a267917d1061fb5fbe1c3c91d3673e1e6ed0e9913e4e0696bd1a2127a6ad9c78e703a0e845f6ccd939a23aad09ceba94ac50
7
- data.tar.gz: def5a79b124129e963db360884e16f279293f6ea70d725018052c680fb42c4c2da6ad45aa3ca52337c0310e7ecef6cb85375b111057a13878471ed88292f8022
6
+ metadata.gz: fda65ea891748d6668307cfca95cd89c018db73c831ed0461fe6050ccec8d87846ca1b07835bc12073eecd4b31a12bd323ccb506c4b9a3463b2a666242e8c78b
7
+ data.tar.gz: f5cbcf17962236ea5f66fe3b6c94e83859f08ed88946a661dd5acbfe2036228a205cad4c383efd2cfbf44ea2ec9d22073e9a683488997b0d7d59421ffa29935a
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.pull_from_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,13 +52,26 @@ module Clayful
52
52
 
53
53
  end
54
54
 
55
- def self.pull_from_metafield(*args)
55
+ def self.create(*args)
56
56
 
57
57
  Clayful.call_api({
58
58
  'model_name' => @@name,
59
- 'method_name' => 'pull_from_metafield',
59
+ 'method_name' => 'create',
60
60
  'http_method' => 'POST',
61
- 'path' => '/v1/catalogs/{catalogId}/meta/{field}/pull',
61
+ 'path' => '/v1/catalogs',
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/catalogs/{catalogId}/meta/{field}/push',
62
75
  'params' => ['catalogId', 'field', ],
63
76
  'args' => args
64
77
  })
@@ -78,19 +91,45 @@ module Clayful
78
91
 
79
92
  end
80
93
 
81
- def self.push_to_metafield(*args)
94
+ def self.pull_from_metafield(*args)
82
95
 
83
96
  Clayful.call_api({
84
97
  'model_name' => @@name,
85
- 'method_name' => 'push_to_metafield',
98
+ 'method_name' => 'pull_from_metafield',
86
99
  'http_method' => 'POST',
87
- 'path' => '/v1/catalogs/{catalogId}/meta/{field}/push',
100
+ 'path' => '/v1/catalogs/{catalogId}/meta/{field}/pull',
88
101
  'params' => ['catalogId', 'field', ],
89
102
  'args' => args
90
103
  })
91
104
 
92
105
  end
93
106
 
107
+ def self.update(*args)
108
+
109
+ Clayful.call_api({
110
+ 'model_name' => @@name,
111
+ 'method_name' => 'update',
112
+ 'http_method' => 'PUT',
113
+ 'path' => '/v1/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,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/collections',
62
+ 'params' => [],
63
+ 'args' => args
64
+ })
65
+
66
+ end
67
+
55
68
  def self.pull_from_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/collections/{collectionId}',
114
+ 'params' => ['collectionId', ],
115
+ 'args' => args
116
+ })
117
+
118
+ end
119
+
120
+ def self.delete(*args)
121
+
122
+ Clayful.call_api({
123
+ 'model_name' => @@name,
124
+ 'method_name' => 'delete',
125
+ 'http_method' => 'DELETE',
126
+ 'path' => '/v1/collections/{collectionId}',
127
+ 'params' => ['collectionId', ],
128
+ 'args' => args
129
+ })
130
+
131
+ end
132
+
94
133
  def self.delete_metafield(*args)
95
134
 
96
135
  Clayful.call_api({
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.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
  })
@@ -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/coupons/{couponId}/meta/{field}/pull',
87
+ 'path' => '/v1/coupons/{couponId}/meta/{field}/push',
88
88
  'params' => ['couponId', 'field', ],
89
89
  'args' => args
90
90
  })
File without changes
@@ -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
 
@@ -300,13 +299,26 @@ module Clayful
300
299
 
301
300
  end
302
301
 
303
- def self.push_to_metafield(*args)
302
+ def self.recover_credential(*args)
304
303
 
305
304
  Clayful.call_api({
306
305
  'model_name' => @@name,
307
- 'method_name' => 'push_to_metafield',
306
+ 'method_name' => 'recover_credential',
308
307
  'http_method' => 'POST',
309
- 'path' => '/v1/customers/{customerId}/meta/{field}/push',
308
+ 'path' => '/v1/customers/credentials/{credentialField}/recoveries/{recoveryMethod}',
309
+ 'params' => ['credentialField', 'recoveryMethod', ],
310
+ 'args' => args
311
+ })
312
+
313
+ end
314
+
315
+ def self.increase_metafield(*args)
316
+
317
+ Clayful.call_api({
318
+ 'model_name' => @@name,
319
+ 'method_name' => 'increase_metafield',
320
+ 'http_method' => 'POST',
321
+ 'path' => '/v1/customers/{customerId}/meta/{field}/inc',
310
322
  'params' => ['customerId', 'field', ],
311
323
  'args' => args
312
324
  })
@@ -326,13 +338,13 @@ module Clayful
326
338
 
327
339
  end
328
340
 
329
- def self.increase_metafield(*args)
341
+ def self.push_to_metafield(*args)
330
342
 
331
343
  Clayful.call_api({
332
344
  'model_name' => @@name,
333
- 'method_name' => 'increase_metafield',
345
+ 'method_name' => 'push_to_metafield',
334
346
  'http_method' => 'POST',
335
- 'path' => '/v1/customers/{customerId}/meta/{field}/inc',
347
+ 'path' => '/v1/customers/{customerId}/meta/{field}/push',
336
348
  'params' => ['customerId', 'field', ],
337
349
  'args' => args
338
350
  })
@@ -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/discounts/{discountId}/meta/{field}/inc',
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.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/discounts/{discountId}/meta/{field}/pull',
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.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/discounts/{discountId}/meta/{field}/push',
87
+ 'path' => '/v1/discounts/{discountId}/meta/{field}/pull',
88
88
  'params' => ['discountId', 'field', ],
89
89
  'args' => args
90
90
  })
File without changes
@@ -65,26 +65,26 @@ module Clayful
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.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/groups/{groupId}/meta/{field}/inc',
87
+ 'path' => '/v1/groups/{groupId}/meta/{field}/pull',
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
@@ -144,41 +144,42 @@ module Clayful
144
144
 
145
145
  end
146
146
 
147
- def self.mark_as_received(*args)
147
+ def self.create_fulfillment(*args)
148
148
 
149
149
  Clayful.call_api({
150
150
  'model_name' => @@name,
151
- 'method_name' => 'mark_as_received',
151
+ 'method_name' => 'create_fulfillment',
152
152
  'http_method' => 'POST',
153
- 'path' => '/v1/orders/{orderId}/received',
153
+ 'path' => '/v1/orders/{orderId}/fulfillments',
154
154
  'params' => ['orderId', ],
155
- 'without_payload' => true,
156
155
  'args' => args
157
156
  })
158
157
 
159
158
  end
160
159
 
161
- def self.authenticate(*args)
160
+ def self.sync_inventory(*args)
162
161
 
163
162
  Clayful.call_api({
164
163
  'model_name' => @@name,
165
- 'method_name' => 'authenticate',
164
+ 'method_name' => 'sync_inventory',
166
165
  'http_method' => 'POST',
167
- 'path' => '/v1/orders/{orderId}/auth',
166
+ 'path' => '/v1/orders/{orderId}/synced',
168
167
  'params' => ['orderId', ],
168
+ 'without_payload' => true,
169
169
  'args' => args
170
170
  })
171
171
 
172
172
  end
173
173
 
174
- def self.cancel(*args)
174
+ def self.mark_as_done(*args)
175
175
 
176
176
  Clayful.call_api({
177
177
  'model_name' => @@name,
178
- 'method_name' => 'cancel',
178
+ 'method_name' => 'mark_as_done',
179
179
  'http_method' => 'POST',
180
- 'path' => '/v1/orders/{orderId}/cancellation',
180
+ 'path' => '/v1/orders/{orderId}/done',
181
181
  'params' => ['orderId', ],
182
+ 'without_payload' => true,
182
183
  'args' => args
183
184
  })
184
185
 
@@ -197,28 +198,27 @@ module Clayful
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.sync_inventory(*args)
214
+ def self.authenticate(*args)
214
215
 
215
216
  Clayful.call_api({
216
217
  'model_name' => @@name,
217
- 'method_name' => 'sync_inventory',
218
+ 'method_name' => 'authenticate',
218
219
  'http_method' => 'POST',
219
- 'path' => '/v1/orders/{orderId}/synced',
220
+ 'path' => '/v1/orders/{orderId}/auth',
220
221
  'params' => ['orderId', ],
221
- 'without_payload' => true,
222
222
  'args' => args
223
223
  })
224
224
 
@@ -264,19 +264,6 @@ module Clayful
264
264
 
265
265
  end
266
266
 
267
- def self.check_ticket(*args)
268
-
269
- Clayful.call_api({
270
- 'model_name' => @@name,
271
- 'method_name' => 'check_ticket',
272
- 'http_method' => 'POST',
273
- 'path' => '/v1/orders/tickets/{code}/validity',
274
- 'params' => ['code', ],
275
- 'args' => args
276
- })
277
-
278
- end
279
-
280
267
  def self.use_ticket(*args)
281
268
 
282
269
  Clayful.call_api({
@@ -291,28 +278,27 @@ module Clayful
291
278
 
292
279
  end
293
280
 
294
- def self.accept_refund(*args)
281
+ def self.check_ticket(*args)
295
282
 
296
283
  Clayful.call_api({
297
284
  'model_name' => @@name,
298
- 'method_name' => 'accept_refund',
285
+ 'method_name' => 'check_ticket',
299
286
  'http_method' => 'POST',
300
- 'path' => '/v1/orders/{orderId}/refunds/{refundId}/accepted',
301
- 'params' => ['orderId', 'refundId', ],
302
- 'without_payload' => true,
287
+ 'path' => '/v1/orders/tickets/{code}/validity',
288
+ 'params' => ['code', ],
303
289
  'args' => args
304
290
  })
305
291
 
306
292
  end
307
293
 
308
- def self.cancel_refund(*args)
294
+ def self.push_to_metafield(*args)
309
295
 
310
296
  Clayful.call_api({
311
297
  'model_name' => @@name,
312
- 'method_name' => 'cancel_refund',
298
+ 'method_name' => 'push_to_metafield',
313
299
  'http_method' => 'POST',
314
- 'path' => '/v1/orders/{orderId}/refunds/{refundId}/cancellation',
315
- 'params' => ['orderId', 'refundId', ],
300
+ 'path' => '/v1/orders/{orderId}/meta/{field}/push',
301
+ 'params' => ['orderId', 'field', ],
316
302
  'args' => args
317
303
  })
318
304
 
@@ -344,14 +330,14 @@ module Clayful
344
330
 
345
331
  end
346
332
 
347
- def self.push_to_metafield(*args)
333
+ def self.restock_refund_items(*args)
348
334
 
349
335
  Clayful.call_api({
350
336
  'model_name' => @@name,
351
- 'method_name' => 'push_to_metafield',
337
+ 'method_name' => 'restock_refund_items',
352
338
  'http_method' => 'POST',
353
- 'path' => '/v1/orders/{orderId}/meta/{field}/push',
354
- 'params' => ['orderId', 'field', ],
339
+ 'path' => '/v1/orders/{orderId}/refunds/{refundId}/restock',
340
+ 'params' => ['orderId', 'refundId', ],
355
341
  'args' => args
356
342
  })
357
343
 
@@ -370,41 +356,41 @@ module Clayful
370
356
 
371
357
  end
372
358
 
373
- def self.restock_refund_items(*args)
359
+ def self.accept_refund(*args)
374
360
 
375
361
  Clayful.call_api({
376
362
  'model_name' => @@name,
377
- 'method_name' => 'restock_refund_items',
363
+ 'method_name' => 'accept_refund',
378
364
  'http_method' => 'POST',
379
- 'path' => '/v1/orders/{orderId}/refunds/{refundId}/restock',
365
+ 'path' => '/v1/orders/{orderId}/refunds/{refundId}/accepted',
380
366
  'params' => ['orderId', 'refundId', ],
367
+ 'without_payload' => true,
381
368
  'args' => args
382
369
  })
383
370
 
384
371
  end
385
372
 
386
- def self.cancel_refund_for_me(*args)
373
+ def self.cancel_refund(*args)
387
374
 
388
375
  Clayful.call_api({
389
376
  'model_name' => @@name,
390
- 'method_name' => 'cancel_refund_for_me',
377
+ 'method_name' => 'cancel_refund',
391
378
  'http_method' => 'POST',
392
- 'path' => '/v1/me/orders/{orderId}/refunds/{refundId}/cancellation',
379
+ 'path' => '/v1/orders/{orderId}/refunds/{refundId}/cancellation',
393
380
  'params' => ['orderId', 'refundId', ],
394
381
  'args' => args
395
382
  })
396
383
 
397
384
  end
398
385
 
399
- def self.restock_all_refund_items(*args)
386
+ def self.cancel_refund_for_me(*args)
400
387
 
401
388
  Clayful.call_api({
402
389
  'model_name' => @@name,
403
- 'method_name' => 'restock_all_refund_items',
390
+ 'method_name' => 'cancel_refund_for_me',
404
391
  'http_method' => 'POST',
405
- 'path' => '/v1/orders/{orderId}/refunds/{refundId}/restock/all',
392
+ 'path' => '/v1/me/orders/{orderId}/refunds/{refundId}/cancellation',
406
393
  'params' => ['orderId', 'refundId', ],
407
- 'without_payload' => true,
408
394
  'args' => args
409
395
  })
410
396
 
@@ -424,6 +410,20 @@ module Clayful
424
410
 
425
411
  end
426
412
 
413
+ def self.restock_all_refund_items(*args)
414
+
415
+ Clayful.call_api({
416
+ 'model_name' => @@name,
417
+ 'method_name' => 'restock_all_refund_items',
418
+ 'http_method' => 'POST',
419
+ 'path' => '/v1/orders/{orderId}/refunds/{refundId}/restock/all',
420
+ 'params' => ['orderId', 'refundId', ],
421
+ 'without_payload' => true,
422
+ 'args' => args
423
+ })
424
+
425
+ end
426
+
427
427
  def self.create_download_url_for_me(*args)
428
428
 
429
429
  Clayful.call_api({
@@ -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_fulfillment(*args)
521
521
 
522
522
  Clayful.call_api({
523
523
  'model_name' => @@name,
524
- 'method_name' => 'update_item',
524
+ 'method_name' => 'update_fulfillment',
525
525
  'http_method' => 'PUT',
526
- 'path' => '/v1/orders/{orderId}/items/{itemId}',
527
- 'params' => ['orderId', 'itemId', ],
526
+ 'path' => '/v1/orders/{orderId}/fulfillments/{fulfillmentId}',
527
+ 'params' => ['orderId', 'fulfillmentId', ],
528
528
  'args' => args
529
529
  })
530
530
 
531
531
  end
532
532
 
533
- def self.update_fulfillment(*args)
533
+ def self.update_item(*args)
534
534
 
535
535
  Clayful.call_api({
536
536
  'model_name' => @@name,
537
- 'method_name' => 'update_fulfillment',
537
+ 'method_name' => 'update_item',
538
538
  'http_method' => 'PUT',
539
- 'path' => '/v1/orders/{orderId}/fulfillments/{fulfillmentId}',
540
- 'params' => ['orderId', 'fulfillmentId', ],
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_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_refund(*args)
650
+ def self.delete_metafield(*args)
651
651
 
652
652
  Clayful.call_api({
653
653
  'model_name' => @@name,
654
- 'method_name' => 'delete_refund',
654
+ 'method_name' => 'delete_metafield',
655
655
  'http_method' => 'DELETE',
656
- 'path' => '/v1/orders/{orderId}/refunds/{refundId}',
657
- 'params' => ['orderId', 'refundId', ],
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_metafield(*args)
663
+ def self.delete_fulfillment(*args)
664
664
 
665
665
  Clayful.call_api({
666
666
  'model_name' => @@name,
667
- 'method_name' => 'delete_metafield',
667
+ 'method_name' => 'delete_fulfillment',
668
668
  'http_method' => 'DELETE',
669
- 'path' => '/v1/orders/{orderId}/meta/{field}',
670
- 'params' => ['orderId', 'field', ],
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_fulfillment(*args)
676
+ def self.delete_refund(*args)
677
677
 
678
678
  Clayful.call_api({
679
679
  'model_name' => @@name,
680
- 'method_name' => 'delete_fulfillment',
680
+ 'method_name' => 'delete_refund',
681
681
  'http_method' => 'DELETE',
682
- 'path' => '/v1/orders/{orderId}/fulfillments/{fulfillmentId}',
683
- 'params' => ['orderId', 'fulfillmentId', ],
682
+ 'path' => '/v1/orders/{orderId}/refunds/{refundId}',
683
+ 'params' => ['orderId', 'refundId', ],
684
684
  'args' => args
685
685
  })
686
686