clayful 1.0.0 → 2.0.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: dd8eca17edd2cb1c58c4cf7939ab6b4dcbd74ee3
4
- data.tar.gz: 1f0b158a617fd77ba315dc9fec896719f8bc6c53
3
+ metadata.gz: 10f397fa265f6c886f1e24c7e4dfac0f92430355
4
+ data.tar.gz: d3b14c81dc8d343fb4d9771376eb91d7208f6eb4
5
5
  SHA512:
6
- metadata.gz: 18d378f9d201164cb874acf168a1025ebc0a4be04c667aec3c0b5d13b11477958c161f39740ffff03ee910bdc8d47edd9ed7f8b7e90ce458d2c66ff697d7ce8c
7
- data.tar.gz: 0dccd8469bd199982c73d63ae9fd7b628872fa9f92b544d3f642b264e735e85303c1dcc7c36c069dacfa0a35cf1e11e8cc583a1a55a1ae4b7cee94d7be45f848
6
+ metadata.gz: 44aa59772ebb757950bae3917c262128be1f007ee04ef9c77febdc2a52333e66af0156af514c28a54fd6c261eae2f3da3f14a5df8c09ba6fab88c02b724cc9aa
7
+ data.tar.gz: 2301867f029053aa8b932c4911707d19cf428651ed70c60af2ac1d7f1a322b6a81d1675f591d4e902ff950951cde171b56ea6b7dda6853fbe55ef8cff2084cd1
@@ -10,7 +10,6 @@ require_relative './discount'
10
10
  require_relative './downloadable'
11
11
  require_relative './group'
12
12
  require_relative './image'
13
- require_relative './impression'
14
13
  require_relative './order'
15
14
  require_relative './order_tag'
16
15
  require_relative './payment_method'
@@ -22,5 +21,5 @@ require_relative './store'
22
21
  require_relative './subscription'
23
22
  require_relative './subscription_plan'
24
23
  require_relative './tax_category'
25
- require_relative './tracker'
24
+ require_relative './vendor'
26
25
  require_relative './wish_list'
@@ -52,26 +52,26 @@ module Clayful
52
52
 
53
53
  end
54
54
 
55
- def self.pull_from_metafield(*args)
55
+ def self.push_to_metafield(*args)
56
56
 
57
57
  Clayful.call_api({
58
58
  'model_name' => @@name,
59
- 'method_name' => 'pull_from_metafield',
59
+ 'method_name' => 'push_to_metafield',
60
60
  'http_method' => 'POST',
61
- 'path' => '/v1/brands/{brandId}/meta/{field}/pull',
61
+ 'path' => '/v1/brands/{brandId}/meta/{field}/push',
62
62
  'params' => ['brandId', '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/brands/{brandId}/meta/{field}/push',
74
+ 'path' => '/v1/brands/{brandId}/meta/{field}/pull',
75
75
  'params' => ['brandId', 'field', ],
76
76
  'args' => args
77
77
  })
@@ -52,13 +52,13 @@ module Clayful
52
52
 
53
53
  end
54
54
 
55
- def self.pull_from_metafield(*args)
55
+ def self.push_to_metafield(*args)
56
56
 
57
57
  Clayful.call_api({
58
58
  'model_name' => @@name,
59
- 'method_name' => 'pull_from_metafield',
59
+ 'method_name' => 'push_to_metafield',
60
60
  'http_method' => 'POST',
61
- 'path' => '/v1/catalogs/{catalogId}/meta/{field}/pull',
61
+ 'path' => '/v1/catalogs/{catalogId}/meta/{field}/push',
62
62
  'params' => ['catalogId', 'field', ],
63
63
  'args' => args
64
64
  })
@@ -78,13 +78,13 @@ module Clayful
78
78
 
79
79
  end
80
80
 
81
- def self.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/catalogs/{catalogId}/meta/{field}/push',
87
+ 'path' => '/v1/catalogs/{catalogId}/meta/{field}/pull',
88
88
  'params' => ['catalogId', 'field', ],
89
89
  'args' => args
90
90
  })
@@ -52,13 +52,13 @@ module Clayful
52
52
 
53
53
  end
54
54
 
55
- def self.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/collections/{collectionId}/meta/{field}/push',
61
+ 'path' => '/v1/collections/{collectionId}/meta/{field}/pull',
62
62
  'params' => ['collectionId', '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/collections/{collectionId}/meta/{field}/pull',
87
+ 'path' => '/v1/collections/{collectionId}/meta/{field}/push',
88
88
  'params' => ['collectionId', '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_help_votes(*args)
146
+ def self.list_by_flag_votes(*args)
147
147
 
148
148
  Clayful.call_api({
149
149
  'model_name' => @@name,
150
- 'method_name' => 'list_by_help_votes',
150
+ 'method_name' => 'list_by_flag_votes',
151
151
  'http_method' => 'GET',
152
- 'path' => '/v1/{voteModel}/{voteModelId}/helped/{upDown}/customers',
153
- 'params' => ['voteModel', 'voteModelId', 'upDown', ],
152
+ 'path' => '/v1/{voteModel}/{voteModelId}/flags/customers',
153
+ 'params' => ['voteModel', 'voteModelId', ],
154
154
  'args' => args
155
155
  })
156
156
 
157
157
  end
158
158
 
159
- def self.list_by_flag_votes(*args)
159
+ def self.list_by_help_votes(*args)
160
160
 
161
161
  Clayful.call_api({
162
162
  'model_name' => @@name,
163
- 'method_name' => 'list_by_flag_votes',
163
+ 'method_name' => 'list_by_help_votes',
164
164
  'http_method' => 'GET',
165
- 'path' => '/v1/{voteModel}/{voteModelId}/flags/customers',
166
- 'params' => ['voteModel', 'voteModelId', ],
165
+ 'path' => '/v1/{voteModel}/{voteModelId}/helped/{upDown}/customers',
166
+ 'params' => ['voteModel', 'voteModelId', 'upDown', ],
167
167
  'args' => args
168
168
  })
169
169
 
@@ -261,6 +261,19 @@ module Clayful
261
261
 
262
262
  end
263
263
 
264
+ def self.request_verification(*args)
265
+
266
+ Clayful.call_api({
267
+ 'model_name' => @@name,
268
+ 'method_name' => 'request_verification',
269
+ 'http_method' => 'POST',
270
+ 'path' => '/v1/customers/verifications/{channelSlug}',
271
+ 'params' => ['channelSlug', ],
272
+ 'args' => args
273
+ })
274
+
275
+ end
276
+
264
277
  def self.add_coupon(*args)
265
278
 
266
279
  Clayful.call_api({
@@ -287,26 +300,26 @@ module Clayful
287
300
 
288
301
  end
289
302
 
290
- def self.push_to_metafield(*args)
303
+ def self.increase_metafield(*args)
291
304
 
292
305
  Clayful.call_api({
293
306
  'model_name' => @@name,
294
- 'method_name' => 'push_to_metafield',
307
+ 'method_name' => 'increase_metafield',
295
308
  'http_method' => 'POST',
296
- 'path' => '/v1/customers/{customerId}/meta/{field}/push',
309
+ 'path' => '/v1/customers/{customerId}/meta/{field}/inc',
297
310
  'params' => ['customerId', 'field', ],
298
311
  'args' => args
299
312
  })
300
313
 
301
314
  end
302
315
 
303
- def self.increase_metafield(*args)
316
+ def self.push_to_metafield(*args)
304
317
 
305
318
  Clayful.call_api({
306
319
  'model_name' => @@name,
307
- 'method_name' => 'increase_metafield',
320
+ 'method_name' => 'push_to_metafield',
308
321
  'http_method' => 'POST',
309
- 'path' => '/v1/customers/{customerId}/meta/{field}/inc',
322
+ 'path' => '/v1/customers/{customerId}/meta/{field}/push',
310
323
  'params' => ['customerId', 'field', ],
311
324
  'args' => args
312
325
  })
@@ -365,26 +378,26 @@ module Clayful
365
378
 
366
379
  end
367
380
 
368
- def self.reset_password(*args)
381
+ def self.update_credentials(*args)
369
382
 
370
383
  Clayful.call_api({
371
384
  'model_name' => @@name,
372
- 'method_name' => 'reset_password',
385
+ 'method_name' => 'update_credentials',
373
386
  'http_method' => 'PUT',
374
- 'path' => '/v1/customers/{customerId}/password',
387
+ 'path' => '/v1/customers/{customerId}/credentials',
375
388
  'params' => ['customerId', ],
376
389
  'args' => args
377
390
  })
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
  })
@@ -65,26 +65,26 @@ module Clayful
65
65
 
66
66
  end
67
67
 
68
- def self.increase_metafield(*args)
68
+ def self.pull_from_metafield(*args)
69
69
 
70
70
  Clayful.call_api({
71
71
  'model_name' => @@name,
72
- 'method_name' => 'increase_metafield',
72
+ 'method_name' => 'pull_from_metafield',
73
73
  'http_method' => 'POST',
74
- 'path' => '/v1/discounts/{discountId}/meta/{field}/inc',
74
+ 'path' => '/v1/discounts/{discountId}/meta/{field}/pull',
75
75
  'params' => ['discountId', '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/discounts/{discountId}/meta/{field}/pull',
87
+ 'path' => '/v1/discounts/{discountId}/meta/{field}/inc',
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.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/groups/{groupId}/meta/{field}/inc',
61
+ 'path' => '/v1/groups/{groupId}/meta/{field}/pull',
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.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/groups/{groupId}/meta/{field}/pull',
74
+ 'path' => '/v1/groups/{groupId}/meta/{field}/push',
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.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/groups/{groupId}/meta/{field}/push',
87
+ 'path' => '/v1/groups/{groupId}/meta/{field}/inc',
88
88
  'params' => ['groupId', 'field', ],
89
89
  'args' => args
90
90
  })
@@ -130,26 +130,27 @@ module Clayful
130
130
 
131
131
  end
132
132
 
133
- def self.authenticate(*args)
133
+ def self.mark_as_received(*args)
134
134
 
135
135
  Clayful.call_api({
136
136
  'model_name' => @@name,
137
- 'method_name' => 'authenticate',
137
+ 'method_name' => 'mark_as_received',
138
138
  'http_method' => 'POST',
139
- 'path' => '/v1/orders/{orderId}/auth',
139
+ 'path' => '/v1/orders/{orderId}/received',
140
140
  'params' => ['orderId', ],
141
+ 'without_payload' => true,
141
142
  'args' => args
142
143
  })
143
144
 
144
145
  end
145
146
 
146
- def self.mark_as_received(*args)
147
+ def self.sync_inventory(*args)
147
148
 
148
149
  Clayful.call_api({
149
150
  'model_name' => @@name,
150
- 'method_name' => 'mark_as_received',
151
+ 'method_name' => 'sync_inventory',
151
152
  'http_method' => 'POST',
152
- 'path' => '/v1/orders/{orderId}/received',
153
+ 'path' => '/v1/orders/{orderId}/synced',
153
154
  'params' => ['orderId', ],
154
155
  'without_payload' => true,
155
156
  'args' => args
@@ -157,41 +158,39 @@ module Clayful
157
158
 
158
159
  end
159
160
 
160
- def self.mark_as_done(*args)
161
+ def self.cancel(*args)
161
162
 
162
163
  Clayful.call_api({
163
164
  'model_name' => @@name,
164
- 'method_name' => 'mark_as_done',
165
+ 'method_name' => 'cancel',
165
166
  'http_method' => 'POST',
166
- 'path' => '/v1/orders/{orderId}/done',
167
+ 'path' => '/v1/orders/{orderId}/cancellation',
167
168
  'params' => ['orderId', ],
168
- 'without_payload' => true,
169
169
  'args' => args
170
170
  })
171
171
 
172
172
  end
173
173
 
174
- def self.sync_inventory(*args)
174
+ def self.create_fulfillment(*args)
175
175
 
176
176
  Clayful.call_api({
177
177
  'model_name' => @@name,
178
- 'method_name' => 'sync_inventory',
178
+ 'method_name' => 'create_fulfillment',
179
179
  'http_method' => 'POST',
180
- 'path' => '/v1/orders/{orderId}/synced',
180
+ 'path' => '/v1/orders/{orderId}/fulfillments',
181
181
  'params' => ['orderId', ],
182
- 'without_payload' => true,
183
182
  'args' => args
184
183
  })
185
184
 
186
185
  end
187
186
 
188
- def self.create_fulfillment(*args)
187
+ def self.authenticate(*args)
189
188
 
190
189
  Clayful.call_api({
191
190
  'model_name' => @@name,
192
- 'method_name' => 'create_fulfillment',
191
+ 'method_name' => 'authenticate',
193
192
  'http_method' => 'POST',
194
- 'path' => '/v1/orders/{orderId}/fulfillments',
193
+ 'path' => '/v1/orders/{orderId}/auth',
195
194
  'params' => ['orderId', ],
196
195
  'args' => args
197
196
  })
@@ -211,26 +210,27 @@ module Clayful
211
210
 
212
211
  end
213
212
 
214
- def self.cancel(*args)
213
+ def self.mark_as_done(*args)
215
214
 
216
215
  Clayful.call_api({
217
216
  'model_name' => @@name,
218
- 'method_name' => 'cancel',
217
+ 'method_name' => 'mark_as_done',
219
218
  'http_method' => 'POST',
220
- 'path' => '/v1/orders/{orderId}/cancellation',
219
+ 'path' => '/v1/orders/{orderId}/done',
221
220
  '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
  })
@@ -305,27 +305,27 @@ module Clayful
305
305
 
306
306
  end
307
307
 
308
- def self.restock_refund_items(*args)
308
+ def self.push_to_metafield(*args)
309
309
 
310
310
  Clayful.call_api({
311
311
  'model_name' => @@name,
312
- 'method_name' => 'restock_refund_items',
312
+ 'method_name' => 'push_to_metafield',
313
313
  'http_method' => 'POST',
314
- 'path' => '/v1/orders/{orderId}/refunds/{refundId}/restock',
315
- 'params' => ['orderId', 'refundId', ],
314
+ 'path' => '/v1/orders/{orderId}/meta/{field}/push',
315
+ 'params' => ['orderId', 'field', ],
316
316
  'args' => args
317
317
  })
318
318
 
319
319
  end
320
320
 
321
- def self.increase_metafield(*args)
321
+ def self.cancel_refund(*args)
322
322
 
323
323
  Clayful.call_api({
324
324
  'model_name' => @@name,
325
- 'method_name' => 'increase_metafield',
325
+ 'method_name' => 'cancel_refund',
326
326
  'http_method' => 'POST',
327
- 'path' => '/v1/orders/{orderId}/meta/{field}/inc',
328
- 'params' => ['orderId', 'field', ],
327
+ 'path' => '/v1/orders/{orderId}/refunds/{refundId}/cancellation',
328
+ 'params' => ['orderId', 'refundId', ],
329
329
  'args' => args
330
330
  })
331
331
 
@@ -344,40 +344,40 @@ module Clayful
344
344
 
345
345
  end
346
346
 
347
- def self.cancel_refund(*args)
347
+ def self.increase_metafield(*args)
348
348
 
349
349
  Clayful.call_api({
350
350
  'model_name' => @@name,
351
- 'method_name' => 'cancel_refund',
351
+ 'method_name' => 'increase_metafield',
352
352
  'http_method' => 'POST',
353
- 'path' => '/v1/orders/{orderId}/refunds/{refundId}/cancellation',
354
- 'params' => ['orderId', 'refundId', ],
353
+ 'path' => '/v1/orders/{orderId}/meta/{field}/inc',
354
+ 'params' => ['orderId', 'field', ],
355
355
  'args' => args
356
356
  })
357
357
 
358
358
  end
359
359
 
360
- def self.register_payment_method(*args)
360
+ def self.restock_refund_items(*args)
361
361
 
362
362
  Clayful.call_api({
363
363
  'model_name' => @@name,
364
- 'method_name' => 'register_payment_method',
364
+ 'method_name' => 'restock_refund_items',
365
365
  'http_method' => 'POST',
366
- 'path' => '/v1/orders/{orderId}/transactions/payments/methods',
367
- 'params' => ['orderId', ],
366
+ 'path' => '/v1/orders/{orderId}/refunds/{refundId}/restock',
367
+ 'params' => ['orderId', 'refundId', ],
368
368
  'args' => args
369
369
  })
370
370
 
371
371
  end
372
372
 
373
- def self.push_to_metafield(*args)
373
+ def self.register_payment_method(*args)
374
374
 
375
375
  Clayful.call_api({
376
376
  'model_name' => @@name,
377
- 'method_name' => 'push_to_metafield',
377
+ 'method_name' => 'register_payment_method',
378
378
  'http_method' => 'POST',
379
- 'path' => '/v1/orders/{orderId}/meta/{field}/push',
380
- 'params' => ['orderId', 'field', ],
379
+ 'path' => '/v1/orders/{orderId}/transactions/payments/methods',
380
+ 'params' => ['orderId', ],
381
381
  'args' => args
382
382
  })
383
383
 
@@ -472,7 +472,6 @@ module Clayful
472
472
  'http_method' => 'PUT',
473
473
  'path' => '/v1/orders/{orderId}/transactions',
474
474
  'params' => ['orderId', ],
475
- 'without_payload' => true,
476
475
  'args' => args
477
476
  })
478
477
 
@@ -491,54 +490,54 @@ module Clayful
491
490
 
492
491
  end
493
492
 
494
- def self.update_cancellation_for_me(*args)
493
+ def self.update_transactions_for_me(*args)
495
494
 
496
495
  Clayful.call_api({
497
496
  'model_name' => @@name,
498
- 'method_name' => 'update_cancellation_for_me',
497
+ 'method_name' => 'update_transactions_for_me',
499
498
  'http_method' => 'PUT',
500
- 'path' => '/v1/me/orders/{orderId}/cancellation',
499
+ 'path' => '/v1/me/orders/{orderId}/transactions',
501
500
  'params' => ['orderId', ],
501
+ 'without_payload' => true,
502
502
  'args' => args
503
503
  })
504
504
 
505
505
  end
506
506
 
507
- def self.update_transactions_for_me(*args)
507
+ def self.update_cancellation_for_me(*args)
508
508
 
509
509
  Clayful.call_api({
510
510
  'model_name' => @@name,
511
- 'method_name' => 'update_transactions_for_me',
511
+ 'method_name' => 'update_cancellation_for_me',
512
512
  'http_method' => 'PUT',
513
- 'path' => '/v1/me/orders/{orderId}/transactions',
513
+ 'path' => '/v1/me/orders/{orderId}/cancellation',
514
514
  'params' => ['orderId', ],
515
- 'without_payload' => true,
516
515
  'args' => args
517
516
  })
518
517
 
519
518
  end
520
519
 
521
- def self.update_refund(*args)
520
+ def self.update_fulfillment(*args)
522
521
 
523
522
  Clayful.call_api({
524
523
  'model_name' => @@name,
525
- 'method_name' => 'update_refund',
524
+ 'method_name' => 'update_fulfillment',
526
525
  'http_method' => 'PUT',
527
- 'path' => '/v1/orders/{orderId}/refunds/{refundId}',
528
- 'params' => ['orderId', 'refundId', ],
526
+ 'path' => '/v1/orders/{orderId}/fulfillments/{fulfillmentId}',
527
+ 'params' => ['orderId', 'fulfillmentId', ],
529
528
  'args' => args
530
529
  })
531
530
 
532
531
  end
533
532
 
534
- def self.update_fulfillment(*args)
533
+ def self.update_refund(*args)
535
534
 
536
535
  Clayful.call_api({
537
536
  'model_name' => @@name,
538
- 'method_name' => 'update_fulfillment',
537
+ 'method_name' => 'update_refund',
539
538
  'http_method' => 'PUT',
540
- 'path' => '/v1/orders/{orderId}/fulfillments/{fulfillmentId}',
541
- 'params' => ['orderId', 'fulfillmentId', ],
539
+ 'path' => '/v1/orders/{orderId}/refunds/{refundId}',
540
+ 'params' => ['orderId', 'refundId', ],
542
541
  'args' => args
543
542
  })
544
543
 
@@ -648,40 +647,40 @@ module Clayful
648
647
 
649
648
  end
650
649
 
651
- def self.delete_fulfillment(*args)
650
+ def self.delete_metafield(*args)
652
651
 
653
652
  Clayful.call_api({
654
653
  'model_name' => @@name,
655
- 'method_name' => 'delete_fulfillment',
654
+ 'method_name' => 'delete_metafield',
656
655
  'http_method' => 'DELETE',
657
- 'path' => '/v1/orders/{orderId}/fulfillments/{fulfillmentId}',
658
- 'params' => ['orderId', 'fulfillmentId', ],
656
+ 'path' => '/v1/orders/{orderId}/meta/{field}',
657
+ 'params' => ['orderId', 'field', ],
659
658
  'args' => args
660
659
  })
661
660
 
662
661
  end
663
662
 
664
- def self.delete_metafield(*args)
663
+ def self.delete_refund(*args)
665
664
 
666
665
  Clayful.call_api({
667
666
  'model_name' => @@name,
668
- 'method_name' => 'delete_metafield',
667
+ 'method_name' => 'delete_refund',
669
668
  'http_method' => 'DELETE',
670
- 'path' => '/v1/orders/{orderId}/meta/{field}',
671
- 'params' => ['orderId', 'field', ],
669
+ 'path' => '/v1/orders/{orderId}/refunds/{refundId}',
670
+ 'params' => ['orderId', 'refundId', ],
672
671
  'args' => args
673
672
  })
674
673
 
675
674
  end
676
675
 
677
- def self.delete_refund(*args)
676
+ def self.delete_fulfillment(*args)
678
677
 
679
678
  Clayful.call_api({
680
679
  'model_name' => @@name,
681
- 'method_name' => 'delete_refund',
680
+ 'method_name' => 'delete_fulfillment',
682
681
  'http_method' => 'DELETE',
683
- 'path' => '/v1/orders/{orderId}/refunds/{refundId}',
684
- 'params' => ['orderId', 'refundId', ],
682
+ 'path' => '/v1/orders/{orderId}/fulfillments/{fulfillmentId}',
683
+ 'params' => ['orderId', 'fulfillmentId', ],
685
684
  'args' => args
686
685
  })
687
686