clayful 1.0.0 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dd8eca17edd2cb1c58c4cf7939ab6b4dcbd74ee3
4
- data.tar.gz: 1f0b158a617fd77ba315dc9fec896719f8bc6c53
3
+ metadata.gz: d2726927e09136a6920abd2a6bf79f1ba353ddcf
4
+ data.tar.gz: 9cc4dd43421e454954fbd31b614f410be531cb10
5
5
  SHA512:
6
- metadata.gz: 18d378f9d201164cb874acf168a1025ebc0a4be04c667aec3c0b5d13b11477958c161f39740ffff03ee910bdc8d47edd9ed7f8b7e90ce458d2c66ff697d7ce8c
7
- data.tar.gz: 0dccd8469bd199982c73d63ae9fd7b628872fa9f92b544d3f642b264e735e85303c1dcc7c36c069dacfa0a35cf1e11e8cc583a1a55a1ae4b7cee94d7be45f848
6
+ metadata.gz: e5705a9a89851dd83319242fa306c894848fdfd2863827102fc388eca1d2b4e9145839896ec020acaaa8088deb8dc5da3832c7093de2f813f5fcbb3aded4f31d
7
+ data.tar.gz: aea0f8b95125724f441fef6b5d338cedf2ae52eb0d53637b5d348a80435f9635ad5ee13cefcacccb7069b32dc7aa4a7a8f8427bd0ae42cbc74945b9fb285c039
@@ -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
  }
@@ -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'
@@ -18,9 +17,10 @@ require_relative './product'
18
17
  require_relative './review'
19
18
  require_relative './review_comment'
20
19
  require_relative './shipping_method'
20
+ require_relative './shipping_policy'
21
21
  require_relative './store'
22
22
  require_relative './subscription'
23
23
  require_relative './subscription_plan'
24
24
  require_relative './tax_category'
25
- require_relative './tracker'
25
+ require_relative './vendor'
26
26
  require_relative './wish_list'
@@ -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/brands',
62
+ 'params' => [],
63
+ 'args' => args
64
+ })
65
+
66
+ end
67
+
68
+ def self.increase_metafield(*args)
69
+
70
+ Clayful.call_api({
71
+ 'model_name' => @@name,
72
+ 'method_name' => 'increase_metafield',
73
+ 'http_method' => 'POST',
74
+ 'path' => '/v1/brands/{brandId}/meta/{field}/inc',
75
+ 'params' => ['brandId', 'field', ],
76
+ 'args' => args
77
+ })
78
+
79
+ end
80
+
55
81
  def self.pull_from_metafield(*args)
56
82
 
57
83
  Clayful.call_api({
@@ -78,14 +104,27 @@ module Clayful
78
104
 
79
105
  end
80
106
 
81
- def self.increase_metafield(*args)
107
+ def self.update(*args)
82
108
 
83
109
  Clayful.call_api({
84
110
  'model_name' => @@name,
85
- 'method_name' => 'increase_metafield',
86
- 'http_method' => 'POST',
87
- 'path' => '/v1/brands/{brandId}/meta/{field}/inc',
88
- 'params' => ['brandId', 'field', ],
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', ],
89
128
  'args' => args
90
129
  })
91
130
 
@@ -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/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.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/catalogs/{catalogId}/meta/{field}/push',
87
+ 'path' => '/v1/catalogs/{catalogId}/meta/{field}/inc',
88
88
  'params' => ['catalogId', 'field', ],
89
89
  'args' => args
90
90
  })
@@ -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.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/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({
@@ -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/coupons/{couponId}/meta/{field}/pull',
61
+ 'path' => '/v1/coupons/{couponId}/meta/{field}/push',
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.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/coupons/{couponId}/meta/{field}/push',
87
+ 'path' => '/v1/coupons/{couponId}/meta/{field}/pull',
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_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,14 +261,14 @@ module Clayful
261
261
 
262
262
  end
263
263
 
264
- def self.add_coupon(*args)
264
+ def self.request_verification(*args)
265
265
 
266
266
  Clayful.call_api({
267
267
  'model_name' => @@name,
268
- 'method_name' => 'add_coupon',
268
+ 'method_name' => 'request_verification',
269
269
  'http_method' => 'POST',
270
- 'path' => '/v1/customers/{customerId}/coupons',
271
- 'params' => ['customerId', ],
270
+ 'path' => '/v1/customers/verifications/{channelSlug}',
271
+ 'params' => ['channelSlug', ],
272
272
  'args' => args
273
273
  })
274
274
 
@@ -287,6 +287,19 @@ module Clayful
287
287
 
288
288
  end
289
289
 
290
+ def self.add_coupon(*args)
291
+
292
+ Clayful.call_api({
293
+ 'model_name' => @@name,
294
+ 'method_name' => 'add_coupon',
295
+ 'http_method' => 'POST',
296
+ 'path' => '/v1/customers/{customerId}/coupons',
297
+ 'params' => ['customerId', ],
298
+ 'args' => args
299
+ })
300
+
301
+ end
302
+
290
303
  def self.push_to_metafield(*args)
291
304
 
292
305
  Clayful.call_api({
@@ -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
  })
@@ -52,39 +52,39 @@ module Clayful
52
52
 
53
53
  end
54
54
 
55
- def self.push_to_metafield(*args)
55
+ def self.increase_metafield(*args)
56
56
 
57
57
  Clayful.call_api({
58
58
  'model_name' => @@name,
59
- 'method_name' => 'push_to_metafield',
59
+ 'method_name' => 'increase_metafield',
60
60
  'http_method' => 'POST',
61
- 'path' => '/v1/discounts/{discountId}/meta/{field}/push',
61
+ 'path' => '/v1/discounts/{discountId}/meta/{field}/inc',
62
62
  'params' => ['discountId', 'field', ],
63
63
  'args' => args
64
64
  })
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.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/discounts/{discountId}/meta/{field}/pull',
87
+ 'path' => '/v1/discounts/{discountId}/meta/{field}/push',
88
88
  'params' => ['discountId', 'field', ],
89
89
  'args' => args
90
90
  })
@@ -52,13 +52,13 @@ 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
  })
@@ -78,13 +78,13 @@ module Clayful
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_done(*args)
134
134
 
135
135
  Clayful.call_api({
136
136
  'model_name' => @@name,
137
- 'method_name' => 'authenticate',
137
+ 'method_name' => 'mark_as_done',
138
138
  'http_method' => 'POST',
139
- 'path' => '/v1/orders/{orderId}/auth',
139
+ 'path' => '/v1/orders/{orderId}/done',
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,68 +158,67 @@ module Clayful
157
158
 
158
159
  end
159
160
 
160
- def self.mark_as_done(*args)
161
+ def self.authenticate(*args)
161
162
 
162
163
  Clayful.call_api({
163
164
  'model_name' => @@name,
164
- 'method_name' => 'mark_as_done',
165
+ 'method_name' => 'authenticate',
165
166
  'http_method' => 'POST',
166
- 'path' => '/v1/orders/{orderId}/done',
167
+ 'path' => '/v1/orders/{orderId}/auth',
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.cancel(*args)
175
175
 
176
176
  Clayful.call_api({
177
177
  'model_name' => @@name,
178
- 'method_name' => 'sync_inventory',
178
+ 'method_name' => 'cancel',
179
179
  'http_method' => 'POST',
180
- 'path' => '/v1/orders/{orderId}/synced',
180
+ 'path' => '/v1/orders/{orderId}/cancellation',
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.request_refund(*args)
189
188
 
190
189
  Clayful.call_api({
191
190
  'model_name' => @@name,
192
- 'method_name' => 'create_fulfillment',
191
+ 'method_name' => 'request_refund',
193
192
  'http_method' => 'POST',
194
- 'path' => '/v1/orders/{orderId}/fulfillments',
193
+ 'path' => '/v1/orders/{orderId}/refunds',
195
194
  'params' => ['orderId', ],
196
195
  'args' => args
197
196
  })
198
197
 
199
198
  end
200
199
 
201
- def self.request_refund(*args)
200
+ def self.create_fulfillment(*args)
202
201
 
203
202
  Clayful.call_api({
204
203
  'model_name' => @@name,
205
- 'method_name' => 'request_refund',
204
+ 'method_name' => 'create_fulfillment',
206
205
  'http_method' => 'POST',
207
- 'path' => '/v1/orders/{orderId}/refunds',
206
+ 'path' => '/v1/orders/{orderId}/fulfillments',
208
207
  'params' => ['orderId', ],
209
208
  'args' => args
210
209
  })
211
210
 
212
211
  end
213
212
 
214
- def self.cancel(*args)
213
+ def self.mark_as_received(*args)
215
214
 
216
215
  Clayful.call_api({
217
216
  'model_name' => @@name,
218
- 'method_name' => 'cancel',
217
+ 'method_name' => 'mark_as_received',
219
218
  'http_method' => 'POST',
220
- 'path' => '/v1/orders/{orderId}/cancellation',
219
+ 'path' => '/v1/orders/{orderId}/received',
221
220
  'params' => ['orderId', ],
221
+ 'without_payload' => true,
222
222
  'args' => args
223
223
  })
224
224
 
@@ -291,15 +291,14 @@ 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
 
@@ -318,27 +317,28 @@ module Clayful
318
317
 
319
318
  end
320
319
 
321
- def self.increase_metafield(*args)
320
+ def self.pull_from_metafield(*args)
322
321
 
323
322
  Clayful.call_api({
324
323
  'model_name' => @@name,
325
- 'method_name' => 'increase_metafield',
324
+ 'method_name' => 'pull_from_metafield',
326
325
  'http_method' => 'POST',
327
- 'path' => '/v1/orders/{orderId}/meta/{field}/inc',
326
+ 'path' => '/v1/orders/{orderId}/meta/{field}/pull',
328
327
  'params' => ['orderId', 'field', ],
329
328
  'args' => args
330
329
  })
331
330
 
332
331
  end
333
332
 
334
- def self.pull_from_metafield(*args)
333
+ def self.accept_refund(*args)
335
334
 
336
335
  Clayful.call_api({
337
336
  'model_name' => @@name,
338
- 'method_name' => 'pull_from_metafield',
337
+ 'method_name' => 'accept_refund',
339
338
  'http_method' => 'POST',
340
- 'path' => '/v1/orders/{orderId}/meta/{field}/pull',
341
- 'params' => ['orderId', 'field', ],
339
+ 'path' => '/v1/orders/{orderId}/refunds/{refundId}/accepted',
340
+ 'params' => ['orderId', 'refundId', ],
341
+ 'without_payload' => true,
342
342
  'args' => args
343
343
  })
344
344
 
@@ -357,27 +357,27 @@ module Clayful
357
357
 
358
358
  end
359
359
 
360
- def self.register_payment_method(*args)
360
+ def self.push_to_metafield(*args)
361
361
 
362
362
  Clayful.call_api({
363
363
  'model_name' => @@name,
364
- 'method_name' => 'register_payment_method',
364
+ 'method_name' => 'push_to_metafield',
365
365
  'http_method' => 'POST',
366
- 'path' => '/v1/orders/{orderId}/transactions/payments/methods',
367
- 'params' => ['orderId', ],
366
+ 'path' => '/v1/orders/{orderId}/meta/{field}/push',
367
+ 'params' => ['orderId', 'field', ],
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
 
@@ -464,6 +464,19 @@ module Clayful
464
464
 
465
465
  end
466
466
 
467
+ def self.update_cancellation(*args)
468
+
469
+ Clayful.call_api({
470
+ 'model_name' => @@name,
471
+ 'method_name' => 'update_cancellation',
472
+ 'http_method' => 'PUT',
473
+ 'path' => '/v1/orders/{orderId}/cancellation',
474
+ 'params' => ['orderId', ],
475
+ 'args' => args
476
+ })
477
+
478
+ end
479
+
467
480
  def self.update_transactions(*args)
468
481
 
469
482
  Clayful.call_api({
@@ -472,20 +485,20 @@ module Clayful
472
485
  'http_method' => 'PUT',
473
486
  'path' => '/v1/orders/{orderId}/transactions',
474
487
  'params' => ['orderId', ],
475
- 'without_payload' => true,
476
488
  'args' => args
477
489
  })
478
490
 
479
491
  end
480
492
 
481
- def self.update_cancellation(*args)
493
+ def self.update_transactions_for_me(*args)
482
494
 
483
495
  Clayful.call_api({
484
496
  'model_name' => @@name,
485
- 'method_name' => 'update_cancellation',
497
+ 'method_name' => 'update_transactions_for_me',
486
498
  'http_method' => 'PUT',
487
- 'path' => '/v1/orders/{orderId}/cancellation',
499
+ 'path' => '/v1/me/orders/{orderId}/transactions',
488
500
  'params' => ['orderId', ],
501
+ 'without_payload' => true,
489
502
  'args' => args
490
503
  })
491
504
 
@@ -504,15 +517,14 @@ module Clayful
504
517
 
505
518
  end
506
519
 
507
- def self.update_transactions_for_me(*args)
520
+ def self.update_item(*args)
508
521
 
509
522
  Clayful.call_api({
510
523
  'model_name' => @@name,
511
- 'method_name' => 'update_transactions_for_me',
524
+ 'method_name' => 'update_item',
512
525
  'http_method' => 'PUT',
513
- 'path' => '/v1/me/orders/{orderId}/transactions',
514
- 'params' => ['orderId', ],
515
- 'without_payload' => true,
526
+ 'path' => '/v1/orders/{orderId}/items/{itemId}',
527
+ 'params' => ['orderId', 'itemId', ],
516
528
  'args' => args
517
529
  })
518
530
 
@@ -544,19 +556,6 @@ module Clayful
544
556
 
545
557
  end
546
558
 
547
- def self.update_item(*args)
548
-
549
- Clayful.call_api({
550
- 'model_name' => @@name,
551
- 'method_name' => 'update_item',
552
- 'http_method' => 'PUT',
553
- 'path' => '/v1/orders/{orderId}/items/{itemId}',
554
- 'params' => ['orderId', 'itemId', ],
555
- 'args' => args
556
- })
557
-
558
- end
559
-
560
559
  def self.update_refund_for_me(*args)
561
560
 
562
561
  Clayful.call_api({
@@ -609,26 +608,26 @@ module Clayful
609
608
 
610
609
  end
611
610
 
612
- def self.mark_as_undone(*args)
611
+ def self.mark_as_not_received(*args)
613
612
 
614
613
  Clayful.call_api({
615
614
  'model_name' => @@name,
616
- 'method_name' => 'mark_as_undone',
615
+ 'method_name' => 'mark_as_not_received',
617
616
  'http_method' => 'DELETE',
618
- 'path' => '/v1/orders/{orderId}/done',
617
+ 'path' => '/v1/orders/{orderId}/received',
619
618
  'params' => ['orderId', ],
620
619
  'args' => args
621
620
  })
622
621
 
623
622
  end
624
623
 
625
- def self.mark_as_not_received(*args)
624
+ def self.mark_as_undone(*args)
626
625
 
627
626
  Clayful.call_api({
628
627
  'model_name' => @@name,
629
- 'method_name' => 'mark_as_not_received',
628
+ 'method_name' => 'mark_as_undone',
630
629
  'http_method' => 'DELETE',
631
- 'path' => '/v1/orders/{orderId}/received',
630
+ 'path' => '/v1/orders/{orderId}/done',
632
631
  'params' => ['orderId', ],
633
632
  'args' => args
634
633
  })