clayful 2.4.1 → 2.5.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 +4 -4
- data/lib/models/brand.rb +40 -40
- data/lib/models/cart.rb +85 -85
- data/lib/models/catalog.rb +40 -40
- data/lib/models/collection.rb +40 -40
- data/lib/models/country.rb +11 -11
- data/lib/models/coupon.rb +68 -16
- data/lib/models/currency.rb +11 -11
- data/lib/models/customer.rb +153 -153
- data/lib/models/discount.rb +20 -20
- data/lib/models/downloadable.rb +14 -14
- data/lib/models/group.rb +20 -20
- data/lib/models/image.rb +72 -72
- data/lib/models/order.rb +255 -255
- data/lib/models/order_tag.rb +11 -11
- data/lib/models/payment_method.rb +11 -11
- data/lib/models/product.rb +92 -79
- data/lib/models/review.rb +104 -104
- data/lib/models/review_comment.rb +68 -68
- data/lib/models/shipping_method.rb +11 -11
- data/lib/models/shipping_policy.rb +11 -11
- data/lib/models/store.rb +14 -14
- data/lib/models/subscription.rb +112 -112
- data/lib/models/subscription_plan.rb +11 -11
- data/lib/models/tax_category.rb +11 -11
- data/lib/models/vendor.rb +40 -40
- data/lib/models/wish_list.rb +116 -116
- metadata +2 -2
data/lib/models/order.rb
CHANGED
@@ -13,713 +13,713 @@ module Clayful
|
|
13
13
|
@@path
|
14
14
|
end
|
15
15
|
|
16
|
-
def self.
|
16
|
+
def self.accept_refund(*args)
|
17
17
|
|
18
18
|
Clayful.call_api({
|
19
19
|
'model_name' => @@name,
|
20
|
-
'method_name' => '
|
21
|
-
'http_method' => '
|
22
|
-
'path' => '/v1/orders',
|
23
|
-
'params' => [],
|
20
|
+
'method_name' => 'accept_refund',
|
21
|
+
'http_method' => 'POST',
|
22
|
+
'path' => '/v1/orders/{orderId}/refunds/{refundId}/accepted',
|
23
|
+
'params' => ['orderId', 'refundId', ],
|
24
|
+
'without_payload' => true,
|
24
25
|
'args' => args
|
25
26
|
})
|
26
27
|
|
27
28
|
end
|
28
29
|
|
29
|
-
def self.
|
30
|
+
def self.authenticate(*args)
|
30
31
|
|
31
32
|
Clayful.call_api({
|
32
33
|
'model_name' => @@name,
|
33
|
-
'method_name' => '
|
34
|
-
'http_method' => '
|
35
|
-
'path' => '/v1/
|
36
|
-
'params' => [],
|
34
|
+
'method_name' => 'authenticate',
|
35
|
+
'http_method' => 'POST',
|
36
|
+
'path' => '/v1/orders/{orderId}/auth',
|
37
|
+
'params' => ['orderId', ],
|
37
38
|
'args' => args
|
38
39
|
})
|
39
40
|
|
40
41
|
end
|
41
42
|
|
42
|
-
def self.
|
43
|
+
def self.cancel(*args)
|
43
44
|
|
44
45
|
Clayful.call_api({
|
45
46
|
'model_name' => @@name,
|
46
|
-
'method_name' => '
|
47
|
-
'http_method' => '
|
48
|
-
'path' => '/v1/orders/
|
49
|
-
'params' => [],
|
47
|
+
'method_name' => 'cancel',
|
48
|
+
'http_method' => 'POST',
|
49
|
+
'path' => '/v1/orders/{orderId}/cancellation',
|
50
|
+
'params' => ['orderId', ],
|
50
51
|
'args' => args
|
51
52
|
})
|
52
53
|
|
53
54
|
end
|
54
55
|
|
55
|
-
def self.
|
56
|
+
def self.cancel_for_me(*args)
|
56
57
|
|
57
58
|
Clayful.call_api({
|
58
59
|
'model_name' => @@name,
|
59
|
-
'method_name' => '
|
60
|
-
'http_method' => '
|
61
|
-
'path' => '/v1/orders/{orderId}',
|
60
|
+
'method_name' => 'cancel_for_me',
|
61
|
+
'http_method' => 'POST',
|
62
|
+
'path' => '/v1/me/orders/{orderId}/cancellation',
|
62
63
|
'params' => ['orderId', ],
|
63
64
|
'args' => args
|
64
65
|
})
|
65
66
|
|
66
67
|
end
|
67
68
|
|
68
|
-
def self.
|
69
|
+
def self.cancel_refund(*args)
|
69
70
|
|
70
71
|
Clayful.call_api({
|
71
72
|
'model_name' => @@name,
|
72
|
-
'method_name' => '
|
73
|
-
'http_method' => '
|
74
|
-
'path' => '/v1/
|
75
|
-
'params' => [],
|
73
|
+
'method_name' => 'cancel_refund',
|
74
|
+
'http_method' => 'POST',
|
75
|
+
'path' => '/v1/orders/{orderId}/refunds/{refundId}/cancellation',
|
76
|
+
'params' => ['orderId', 'refundId', ],
|
76
77
|
'args' => args
|
77
78
|
})
|
78
79
|
|
79
80
|
end
|
80
81
|
|
81
|
-
def self.
|
82
|
+
def self.cancel_refund_for_me(*args)
|
82
83
|
|
83
84
|
Clayful.call_api({
|
84
85
|
'model_name' => @@name,
|
85
|
-
'method_name' => '
|
86
|
-
'http_method' => '
|
87
|
-
'path' => '/v1/me/orders/{orderId}',
|
88
|
-
'params' => ['orderId', ],
|
86
|
+
'method_name' => 'cancel_refund_for_me',
|
87
|
+
'http_method' => 'POST',
|
88
|
+
'path' => '/v1/me/orders/{orderId}/refunds/{refundId}/cancellation',
|
89
|
+
'params' => ['orderId', 'refundId', ],
|
89
90
|
'args' => args
|
90
91
|
})
|
91
92
|
|
92
93
|
end
|
93
94
|
|
94
|
-
def self.
|
95
|
+
def self.check_ticket(*args)
|
95
96
|
|
96
97
|
Clayful.call_api({
|
97
98
|
'model_name' => @@name,
|
98
|
-
'method_name' => '
|
99
|
-
'http_method' => '
|
100
|
-
'path' => '/v1/
|
101
|
-
'params' => ['
|
99
|
+
'method_name' => 'check_ticket',
|
100
|
+
'http_method' => 'POST',
|
101
|
+
'path' => '/v1/orders/tickets/{code}/validity',
|
102
|
+
'params' => ['code', ],
|
102
103
|
'args' => args
|
103
104
|
})
|
104
105
|
|
105
106
|
end
|
106
107
|
|
107
|
-
def self.
|
108
|
+
def self.count(*args)
|
108
109
|
|
109
110
|
Clayful.call_api({
|
110
111
|
'model_name' => @@name,
|
111
|
-
'method_name' => '
|
112
|
+
'method_name' => 'count',
|
112
113
|
'http_method' => 'GET',
|
113
|
-
'path' => '/v1/
|
114
|
-
'params' => [
|
114
|
+
'path' => '/v1/orders/count',
|
115
|
+
'params' => [],
|
115
116
|
'args' => args
|
116
117
|
})
|
117
118
|
|
118
119
|
end
|
119
120
|
|
120
|
-
def self.
|
121
|
+
def self.count_for_me(*args)
|
121
122
|
|
122
123
|
Clayful.call_api({
|
123
124
|
'model_name' => @@name,
|
124
|
-
'method_name' => '
|
125
|
+
'method_name' => 'count_for_me',
|
125
126
|
'http_method' => 'GET',
|
126
|
-
'path' => '/v1/orders/
|
127
|
-
'params' => [
|
127
|
+
'path' => '/v1/me/orders/count',
|
128
|
+
'params' => [],
|
128
129
|
'args' => args
|
129
130
|
})
|
130
131
|
|
131
132
|
end
|
132
133
|
|
133
|
-
def self.
|
134
|
+
def self.create_download_url(*args)
|
134
135
|
|
135
136
|
Clayful.call_api({
|
136
137
|
'model_name' => @@name,
|
137
|
-
'method_name' => '
|
138
|
+
'method_name' => 'create_download_url',
|
138
139
|
'http_method' => 'POST',
|
139
|
-
'path' => '/v1/orders/{orderId}/
|
140
|
-
'params' => ['orderId', ],
|
140
|
+
'path' => '/v1/orders/{orderId}/items/{itemId}/download/url',
|
141
|
+
'params' => ['orderId', 'itemId', ],
|
141
142
|
'without_payload' => true,
|
142
143
|
'args' => args
|
143
144
|
})
|
144
145
|
|
145
146
|
end
|
146
147
|
|
147
|
-
def self.
|
148
|
+
def self.create_download_url_for_me(*args)
|
148
149
|
|
149
150
|
Clayful.call_api({
|
150
151
|
'model_name' => @@name,
|
151
|
-
'method_name' => '
|
152
|
+
'method_name' => 'create_download_url_for_me',
|
152
153
|
'http_method' => 'POST',
|
153
|
-
'path' => '/v1/orders/{orderId}/
|
154
|
-
'params' => ['orderId', ],
|
154
|
+
'path' => '/v1/me/orders/{orderId}/items/{itemId}/download/url',
|
155
|
+
'params' => ['orderId', 'itemId', ],
|
156
|
+
'without_payload' => true,
|
155
157
|
'args' => args
|
156
158
|
})
|
157
159
|
|
158
160
|
end
|
159
161
|
|
160
|
-
def self.
|
162
|
+
def self.create_fulfillment(*args)
|
161
163
|
|
162
164
|
Clayful.call_api({
|
163
165
|
'model_name' => @@name,
|
164
|
-
'method_name' => '
|
166
|
+
'method_name' => 'create_fulfillment',
|
165
167
|
'http_method' => 'POST',
|
166
|
-
'path' => '/v1/orders/{orderId}/
|
168
|
+
'path' => '/v1/orders/{orderId}/fulfillments',
|
167
169
|
'params' => ['orderId', ],
|
168
|
-
'without_payload' => true,
|
169
170
|
'args' => args
|
170
171
|
})
|
171
172
|
|
172
173
|
end
|
173
174
|
|
174
|
-
def self.
|
175
|
+
def self.delete(*args)
|
175
176
|
|
176
177
|
Clayful.call_api({
|
177
178
|
'model_name' => @@name,
|
178
|
-
'method_name' => '
|
179
|
-
'http_method' => '
|
180
|
-
'path' => '/v1/orders/{orderId}
|
179
|
+
'method_name' => 'delete',
|
180
|
+
'http_method' => 'DELETE',
|
181
|
+
'path' => '/v1/orders/{orderId}',
|
181
182
|
'params' => ['orderId', ],
|
182
|
-
'without_payload' => true,
|
183
183
|
'args' => args
|
184
184
|
})
|
185
185
|
|
186
186
|
end
|
187
187
|
|
188
|
-
def self.
|
188
|
+
def self.delete_fulfillment(*args)
|
189
189
|
|
190
190
|
Clayful.call_api({
|
191
191
|
'model_name' => @@name,
|
192
|
-
'method_name' => '
|
193
|
-
'http_method' => '
|
194
|
-
'path' => '/v1/orders/{orderId}/
|
195
|
-
'params' => ['orderId', ],
|
192
|
+
'method_name' => 'delete_fulfillment',
|
193
|
+
'http_method' => 'DELETE',
|
194
|
+
'path' => '/v1/orders/{orderId}/fulfillments/{fulfillmentId}',
|
195
|
+
'params' => ['orderId', 'fulfillmentId', ],
|
196
196
|
'args' => args
|
197
197
|
})
|
198
198
|
|
199
199
|
end
|
200
200
|
|
201
|
-
def self.
|
201
|
+
def self.delete_inventory_operation(*args)
|
202
202
|
|
203
203
|
Clayful.call_api({
|
204
204
|
'model_name' => @@name,
|
205
|
-
'method_name' => '
|
206
|
-
'http_method' => '
|
207
|
-
'path' => '/v1/orders/{orderId}/
|
208
|
-
'params' => ['orderId', ],
|
205
|
+
'method_name' => 'delete_inventory_operation',
|
206
|
+
'http_method' => 'DELETE',
|
207
|
+
'path' => '/v1/orders/{orderId}/inventory/operations/{operationId}',
|
208
|
+
'params' => ['orderId', 'operationId', ],
|
209
209
|
'args' => args
|
210
210
|
})
|
211
211
|
|
212
212
|
end
|
213
213
|
|
214
|
-
def self.
|
214
|
+
def self.delete_metafield(*args)
|
215
215
|
|
216
216
|
Clayful.call_api({
|
217
217
|
'model_name' => @@name,
|
218
|
-
'method_name' => '
|
219
|
-
'http_method' => '
|
220
|
-
'path' => '/v1/orders/{orderId}/
|
221
|
-
'params' => ['orderId', ],
|
218
|
+
'method_name' => 'delete_metafield',
|
219
|
+
'http_method' => 'DELETE',
|
220
|
+
'path' => '/v1/orders/{orderId}/meta/{field}',
|
221
|
+
'params' => ['orderId', 'field', ],
|
222
222
|
'args' => args
|
223
223
|
})
|
224
224
|
|
225
225
|
end
|
226
226
|
|
227
|
-
def self.
|
227
|
+
def self.delete_refund(*args)
|
228
228
|
|
229
229
|
Clayful.call_api({
|
230
230
|
'model_name' => @@name,
|
231
|
-
'method_name' => '
|
232
|
-
'http_method' => '
|
233
|
-
'path' => '/v1/
|
234
|
-
'params' => ['orderId', ],
|
235
|
-
'without_payload' => true,
|
231
|
+
'method_name' => 'delete_refund',
|
232
|
+
'http_method' => 'DELETE',
|
233
|
+
'path' => '/v1/orders/{orderId}/refunds/{refundId}',
|
234
|
+
'params' => ['orderId', 'refundId', ],
|
236
235
|
'args' => args
|
237
236
|
})
|
238
237
|
|
239
238
|
end
|
240
239
|
|
241
|
-
def self.
|
240
|
+
def self.get(*args)
|
242
241
|
|
243
242
|
Clayful.call_api({
|
244
243
|
'model_name' => @@name,
|
245
|
-
'method_name' => '
|
246
|
-
'http_method' => '
|
247
|
-
'path' => '/v1/
|
244
|
+
'method_name' => 'get',
|
245
|
+
'http_method' => 'GET',
|
246
|
+
'path' => '/v1/orders/{orderId}',
|
248
247
|
'params' => ['orderId', ],
|
249
248
|
'args' => args
|
250
249
|
})
|
251
250
|
|
252
251
|
end
|
253
252
|
|
254
|
-
def self.
|
253
|
+
def self.get_for_me(*args)
|
255
254
|
|
256
255
|
Clayful.call_api({
|
257
256
|
'model_name' => @@name,
|
258
|
-
'method_name' => '
|
259
|
-
'http_method' => '
|
260
|
-
'path' => '/v1/me/orders/{orderId}
|
257
|
+
'method_name' => 'get_for_me',
|
258
|
+
'http_method' => 'GET',
|
259
|
+
'path' => '/v1/me/orders/{orderId}',
|
261
260
|
'params' => ['orderId', ],
|
262
261
|
'args' => args
|
263
262
|
})
|
264
263
|
|
265
264
|
end
|
266
265
|
|
267
|
-
def self.
|
266
|
+
def self.increase_metafield(*args)
|
268
267
|
|
269
268
|
Clayful.call_api({
|
270
269
|
'model_name' => @@name,
|
271
|
-
'method_name' => '
|
270
|
+
'method_name' => 'increase_metafield',
|
272
271
|
'http_method' => 'POST',
|
273
|
-
'path' => '/v1/orders/
|
274
|
-
'params' => ['
|
275
|
-
'without_payload' => true,
|
272
|
+
'path' => '/v1/orders/{orderId}/meta/{field}/inc',
|
273
|
+
'params' => ['orderId', 'field', ],
|
276
274
|
'args' => args
|
277
275
|
})
|
278
276
|
|
279
277
|
end
|
280
278
|
|
281
|
-
def self.
|
279
|
+
def self.list(*args)
|
282
280
|
|
283
281
|
Clayful.call_api({
|
284
282
|
'model_name' => @@name,
|
285
|
-
'method_name' => '
|
286
|
-
'http_method' => '
|
287
|
-
'path' => '/v1/orders
|
288
|
-
'params' => [
|
283
|
+
'method_name' => 'list',
|
284
|
+
'http_method' => 'GET',
|
285
|
+
'path' => '/v1/orders',
|
286
|
+
'params' => [],
|
289
287
|
'args' => args
|
290
288
|
})
|
291
289
|
|
292
290
|
end
|
293
291
|
|
294
|
-
def self.
|
292
|
+
def self.list_by_subscription(*args)
|
295
293
|
|
296
294
|
Clayful.call_api({
|
297
295
|
'model_name' => @@name,
|
298
|
-
'method_name' => '
|
299
|
-
'http_method' => '
|
300
|
-
'path' => '/v1/
|
301
|
-
'params' => ['
|
296
|
+
'method_name' => 'list_by_subscription',
|
297
|
+
'http_method' => 'GET',
|
298
|
+
'path' => '/v1/subscriptions/{subscriptionId}/orders',
|
299
|
+
'params' => ['subscriptionId', ],
|
302
300
|
'args' => args
|
303
301
|
})
|
304
302
|
|
305
303
|
end
|
306
304
|
|
307
|
-
def self.
|
305
|
+
def self.list_by_subscription_for_me(*args)
|
308
306
|
|
309
307
|
Clayful.call_api({
|
310
308
|
'model_name' => @@name,
|
311
|
-
'method_name' => '
|
312
|
-
'http_method' => '
|
313
|
-
'path' => '/v1/
|
314
|
-
'params' => ['
|
309
|
+
'method_name' => 'list_by_subscription_for_me',
|
310
|
+
'http_method' => 'GET',
|
311
|
+
'path' => '/v1/me/subscriptions/{subscriptionId}/orders',
|
312
|
+
'params' => ['subscriptionId', ],
|
315
313
|
'args' => args
|
316
314
|
})
|
317
315
|
|
318
316
|
end
|
319
317
|
|
320
|
-
def self.
|
318
|
+
def self.list_for_me(*args)
|
321
319
|
|
322
320
|
Clayful.call_api({
|
323
321
|
'model_name' => @@name,
|
324
|
-
'method_name' => '
|
325
|
-
'http_method' => '
|
326
|
-
'path' => '/v1/orders
|
327
|
-
'params' => [
|
322
|
+
'method_name' => 'list_for_me',
|
323
|
+
'http_method' => 'GET',
|
324
|
+
'path' => '/v1/me/orders',
|
325
|
+
'params' => [],
|
328
326
|
'args' => args
|
329
327
|
})
|
330
328
|
|
331
329
|
end
|
332
330
|
|
333
|
-
def self.
|
331
|
+
def self.list_inventory_operations(*args)
|
334
332
|
|
335
333
|
Clayful.call_api({
|
336
334
|
'model_name' => @@name,
|
337
|
-
'method_name' => '
|
338
|
-
'http_method' => '
|
339
|
-
'path' => '/v1/orders/{orderId}/
|
340
|
-
'params' => ['orderId',
|
335
|
+
'method_name' => 'list_inventory_operations',
|
336
|
+
'http_method' => 'GET',
|
337
|
+
'path' => '/v1/orders/{orderId}/inventory/operations',
|
338
|
+
'params' => ['orderId', ],
|
341
339
|
'args' => args
|
342
340
|
})
|
343
341
|
|
344
342
|
end
|
345
343
|
|
346
|
-
def self.
|
344
|
+
def self.mark_as_done(*args)
|
347
345
|
|
348
346
|
Clayful.call_api({
|
349
347
|
'model_name' => @@name,
|
350
|
-
'method_name' => '
|
348
|
+
'method_name' => 'mark_as_done',
|
351
349
|
'http_method' => 'POST',
|
352
|
-
'path' => '/v1/orders/{orderId}/
|
353
|
-
'params' => ['orderId',
|
350
|
+
'path' => '/v1/orders/{orderId}/done',
|
351
|
+
'params' => ['orderId', ],
|
352
|
+
'without_payload' => true,
|
354
353
|
'args' => args
|
355
354
|
})
|
356
355
|
|
357
356
|
end
|
358
357
|
|
359
|
-
def self.
|
358
|
+
def self.mark_as_not_received(*args)
|
360
359
|
|
361
360
|
Clayful.call_api({
|
362
361
|
'model_name' => @@name,
|
363
|
-
'method_name' => '
|
364
|
-
'http_method' => '
|
365
|
-
'path' => '/v1/orders/{orderId}/
|
366
|
-
'params' => ['orderId',
|
367
|
-
'without_payload' => true,
|
362
|
+
'method_name' => 'mark_as_not_received',
|
363
|
+
'http_method' => 'DELETE',
|
364
|
+
'path' => '/v1/orders/{orderId}/received',
|
365
|
+
'params' => ['orderId', ],
|
368
366
|
'args' => args
|
369
367
|
})
|
370
368
|
|
371
369
|
end
|
372
370
|
|
373
|
-
def self.
|
371
|
+
def self.mark_as_not_received_for_me(*args)
|
374
372
|
|
375
373
|
Clayful.call_api({
|
376
374
|
'model_name' => @@name,
|
377
|
-
'method_name' => '
|
378
|
-
'http_method' => '
|
379
|
-
'path' => '/v1/orders/{orderId}/
|
380
|
-
'params' => ['orderId',
|
375
|
+
'method_name' => 'mark_as_not_received_for_me',
|
376
|
+
'http_method' => 'DELETE',
|
377
|
+
'path' => '/v1/me/orders/{orderId}/received',
|
378
|
+
'params' => ['orderId', ],
|
381
379
|
'args' => args
|
382
380
|
})
|
383
381
|
|
384
382
|
end
|
385
383
|
|
386
|
-
def self.
|
384
|
+
def self.mark_as_received(*args)
|
387
385
|
|
388
386
|
Clayful.call_api({
|
389
387
|
'model_name' => @@name,
|
390
|
-
'method_name' => '
|
388
|
+
'method_name' => 'mark_as_received',
|
391
389
|
'http_method' => 'POST',
|
392
|
-
'path' => '/v1/
|
393
|
-
'params' => ['orderId',
|
390
|
+
'path' => '/v1/orders/{orderId}/received',
|
391
|
+
'params' => ['orderId', ],
|
392
|
+
'without_payload' => true,
|
394
393
|
'args' => args
|
395
394
|
})
|
396
395
|
|
397
396
|
end
|
398
397
|
|
399
|
-
def self.
|
398
|
+
def self.mark_as_received_for_me(*args)
|
400
399
|
|
401
400
|
Clayful.call_api({
|
402
401
|
'model_name' => @@name,
|
403
|
-
'method_name' => '
|
402
|
+
'method_name' => 'mark_as_received_for_me',
|
404
403
|
'http_method' => 'POST',
|
405
|
-
'path' => '/v1/orders/{orderId}/
|
406
|
-
'params' => ['orderId',
|
404
|
+
'path' => '/v1/me/orders/{orderId}/received',
|
405
|
+
'params' => ['orderId', ],
|
407
406
|
'without_payload' => true,
|
408
407
|
'args' => args
|
409
408
|
})
|
410
409
|
|
411
410
|
end
|
412
411
|
|
413
|
-
def self.
|
412
|
+
def self.mark_as_undone(*args)
|
414
413
|
|
415
414
|
Clayful.call_api({
|
416
415
|
'model_name' => @@name,
|
417
|
-
'method_name' => '
|
418
|
-
'http_method' => '
|
419
|
-
'path' => '/v1/orders/{orderId}/
|
420
|
-
'params' => ['orderId',
|
421
|
-
'without_payload' => true,
|
416
|
+
'method_name' => 'mark_as_undone',
|
417
|
+
'http_method' => 'DELETE',
|
418
|
+
'path' => '/v1/orders/{orderId}/done',
|
419
|
+
'params' => ['orderId', ],
|
422
420
|
'args' => args
|
423
421
|
})
|
424
422
|
|
425
423
|
end
|
426
424
|
|
427
|
-
def self.
|
425
|
+
def self.pull_from_metafield(*args)
|
428
426
|
|
429
427
|
Clayful.call_api({
|
430
428
|
'model_name' => @@name,
|
431
|
-
'method_name' => '
|
429
|
+
'method_name' => 'pull_from_metafield',
|
432
430
|
'http_method' => 'POST',
|
433
|
-
'path' => '/v1/
|
434
|
-
'params' => ['orderId', '
|
435
|
-
'without_payload' => true,
|
431
|
+
'path' => '/v1/orders/{orderId}/meta/{field}/pull',
|
432
|
+
'params' => ['orderId', 'field', ],
|
436
433
|
'args' => args
|
437
434
|
})
|
438
435
|
|
439
436
|
end
|
440
437
|
|
441
|
-
def self.
|
438
|
+
def self.push_to_metafield(*args)
|
442
439
|
|
443
440
|
Clayful.call_api({
|
444
441
|
'model_name' => @@name,
|
445
|
-
'method_name' => '
|
446
|
-
'http_method' => '
|
447
|
-
'path' => '/v1/orders/{orderId}',
|
448
|
-
'params' => ['orderId', ],
|
442
|
+
'method_name' => 'push_to_metafield',
|
443
|
+
'http_method' => 'POST',
|
444
|
+
'path' => '/v1/orders/{orderId}/meta/{field}/push',
|
445
|
+
'params' => ['orderId', 'field', ],
|
449
446
|
'args' => args
|
450
447
|
})
|
451
448
|
|
452
449
|
end
|
453
450
|
|
454
|
-
def self.
|
451
|
+
def self.register_payment_method(*args)
|
455
452
|
|
456
453
|
Clayful.call_api({
|
457
454
|
'model_name' => @@name,
|
458
|
-
'method_name' => '
|
459
|
-
'http_method' => '
|
460
|
-
'path' => '/v1/
|
455
|
+
'method_name' => 'register_payment_method',
|
456
|
+
'http_method' => 'POST',
|
457
|
+
'path' => '/v1/orders/{orderId}/transactions/payments/methods',
|
461
458
|
'params' => ['orderId', ],
|
462
459
|
'args' => args
|
463
460
|
})
|
464
461
|
|
465
462
|
end
|
466
463
|
|
467
|
-
def self.
|
464
|
+
def self.request_refund(*args)
|
468
465
|
|
469
466
|
Clayful.call_api({
|
470
467
|
'model_name' => @@name,
|
471
|
-
'method_name' => '
|
472
|
-
'http_method' => '
|
473
|
-
'path' => '/v1/orders/{orderId}/
|
468
|
+
'method_name' => 'request_refund',
|
469
|
+
'http_method' => 'POST',
|
470
|
+
'path' => '/v1/orders/{orderId}/refunds',
|
474
471
|
'params' => ['orderId', ],
|
475
472
|
'args' => args
|
476
473
|
})
|
477
474
|
|
478
475
|
end
|
479
476
|
|
480
|
-
def self.
|
477
|
+
def self.request_refund_for_me(*args)
|
481
478
|
|
482
479
|
Clayful.call_api({
|
483
480
|
'model_name' => @@name,
|
484
|
-
'method_name' => '
|
485
|
-
'http_method' => '
|
486
|
-
'path' => '/v1/orders/{orderId}/
|
481
|
+
'method_name' => 'request_refund_for_me',
|
482
|
+
'http_method' => 'POST',
|
483
|
+
'path' => '/v1/me/orders/{orderId}/refunds',
|
487
484
|
'params' => ['orderId', ],
|
488
485
|
'args' => args
|
489
486
|
})
|
490
487
|
|
491
488
|
end
|
492
489
|
|
493
|
-
def self.
|
490
|
+
def self.restock_all_refund_items(*args)
|
494
491
|
|
495
492
|
Clayful.call_api({
|
496
493
|
'model_name' => @@name,
|
497
|
-
'method_name' => '
|
498
|
-
'http_method' => '
|
499
|
-
'path' => '/v1/
|
500
|
-
'params' => ['orderId', ],
|
494
|
+
'method_name' => 'restock_all_refund_items',
|
495
|
+
'http_method' => 'POST',
|
496
|
+
'path' => '/v1/orders/{orderId}/refunds/{refundId}/restock/all',
|
497
|
+
'params' => ['orderId', 'refundId', ],
|
498
|
+
'without_payload' => true,
|
501
499
|
'args' => args
|
502
500
|
})
|
503
501
|
|
504
502
|
end
|
505
503
|
|
506
|
-
def self.
|
504
|
+
def self.restock_refund_items(*args)
|
507
505
|
|
508
506
|
Clayful.call_api({
|
509
507
|
'model_name' => @@name,
|
510
|
-
'method_name' => '
|
511
|
-
'http_method' => '
|
512
|
-
'path' => '/v1/
|
513
|
-
'params' => ['orderId', ],
|
514
|
-
'without_payload' => true,
|
508
|
+
'method_name' => 'restock_refund_items',
|
509
|
+
'http_method' => 'POST',
|
510
|
+
'path' => '/v1/orders/{orderId}/refunds/{refundId}/restock',
|
511
|
+
'params' => ['orderId', 'refundId', ],
|
515
512
|
'args' => args
|
516
513
|
})
|
517
514
|
|
518
515
|
end
|
519
516
|
|
520
|
-
def self.
|
517
|
+
def self.sync_inventory(*args)
|
521
518
|
|
522
519
|
Clayful.call_api({
|
523
520
|
'model_name' => @@name,
|
524
|
-
'method_name' => '
|
525
|
-
'http_method' => '
|
526
|
-
'path' => '/v1/orders/{orderId}/
|
527
|
-
'params' => ['orderId',
|
521
|
+
'method_name' => 'sync_inventory',
|
522
|
+
'http_method' => 'POST',
|
523
|
+
'path' => '/v1/orders/{orderId}/synced',
|
524
|
+
'params' => ['orderId', ],
|
525
|
+
'without_payload' => true,
|
528
526
|
'args' => args
|
529
527
|
})
|
530
528
|
|
531
529
|
end
|
532
530
|
|
533
|
-
def self.
|
531
|
+
def self.unaccept_refund(*args)
|
534
532
|
|
535
533
|
Clayful.call_api({
|
536
534
|
'model_name' => @@name,
|
537
|
-
'method_name' => '
|
538
|
-
'http_method' => '
|
539
|
-
'path' => '/v1/orders/{orderId}/
|
540
|
-
'params' => ['orderId', '
|
535
|
+
'method_name' => 'unaccept_refund',
|
536
|
+
'http_method' => 'DELETE',
|
537
|
+
'path' => '/v1/orders/{orderId}/refunds/{refundId}/accepted',
|
538
|
+
'params' => ['orderId', 'refundId', ],
|
541
539
|
'args' => args
|
542
540
|
})
|
543
541
|
|
544
542
|
end
|
545
543
|
|
546
|
-
def self.
|
544
|
+
def self.unregister_payment_method(*args)
|
547
545
|
|
548
546
|
Clayful.call_api({
|
549
547
|
'model_name' => @@name,
|
550
|
-
'method_name' => '
|
551
|
-
'http_method' => '
|
552
|
-
'path' => '/v1/orders/{orderId}/
|
553
|
-
'params' => ['orderId', '
|
548
|
+
'method_name' => 'unregister_payment_method',
|
549
|
+
'http_method' => 'DELETE',
|
550
|
+
'path' => '/v1/orders/{orderId}/transactions/payments/methods/{paymentMethodId}',
|
551
|
+
'params' => ['orderId', 'paymentMethodId', ],
|
554
552
|
'args' => args
|
555
553
|
})
|
556
554
|
|
557
555
|
end
|
558
556
|
|
559
|
-
def self.
|
557
|
+
def self.update(*args)
|
560
558
|
|
561
559
|
Clayful.call_api({
|
562
560
|
'model_name' => @@name,
|
563
|
-
'method_name' => '
|
561
|
+
'method_name' => 'update',
|
564
562
|
'http_method' => 'PUT',
|
565
|
-
'path' => '/v1/
|
566
|
-
'params' => ['orderId',
|
563
|
+
'path' => '/v1/orders/{orderId}',
|
564
|
+
'params' => ['orderId', ],
|
567
565
|
'args' => args
|
568
566
|
})
|
569
567
|
|
570
568
|
end
|
571
569
|
|
572
|
-
def self.
|
570
|
+
def self.update_cancellation(*args)
|
573
571
|
|
574
572
|
Clayful.call_api({
|
575
573
|
'model_name' => @@name,
|
576
|
-
'method_name' => '
|
574
|
+
'method_name' => 'update_cancellation',
|
577
575
|
'http_method' => 'PUT',
|
578
|
-
'path' => '/v1/orders/{orderId}/
|
579
|
-
'params' => ['orderId',
|
576
|
+
'path' => '/v1/orders/{orderId}/cancellation',
|
577
|
+
'params' => ['orderId', ],
|
580
578
|
'args' => args
|
581
579
|
})
|
582
580
|
|
583
581
|
end
|
584
582
|
|
585
|
-
def self.
|
583
|
+
def self.update_cancellation_for_me(*args)
|
586
584
|
|
587
585
|
Clayful.call_api({
|
588
586
|
'model_name' => @@name,
|
589
|
-
'method_name' => '
|
587
|
+
'method_name' => 'update_cancellation_for_me',
|
590
588
|
'http_method' => 'PUT',
|
591
|
-
'path' => '/v1/me/orders/{orderId}/
|
592
|
-
'params' => ['orderId',
|
589
|
+
'path' => '/v1/me/orders/{orderId}/cancellation',
|
590
|
+
'params' => ['orderId', ],
|
593
591
|
'args' => args
|
594
592
|
})
|
595
593
|
|
596
594
|
end
|
597
595
|
|
598
|
-
def self.
|
596
|
+
def self.update_for_me(*args)
|
599
597
|
|
600
598
|
Clayful.call_api({
|
601
599
|
'model_name' => @@name,
|
602
|
-
'method_name' => '
|
603
|
-
'http_method' => '
|
604
|
-
'path' => '/v1/orders/{orderId}',
|
600
|
+
'method_name' => 'update_for_me',
|
601
|
+
'http_method' => 'PUT',
|
602
|
+
'path' => '/v1/me/orders/{orderId}',
|
605
603
|
'params' => ['orderId', ],
|
606
604
|
'args' => args
|
607
605
|
})
|
608
606
|
|
609
607
|
end
|
610
608
|
|
611
|
-
def self.
|
609
|
+
def self.update_fulfillment(*args)
|
612
610
|
|
613
611
|
Clayful.call_api({
|
614
612
|
'model_name' => @@name,
|
615
|
-
'method_name' => '
|
616
|
-
'http_method' => '
|
617
|
-
'path' => '/v1/orders/{orderId}/
|
618
|
-
'params' => ['orderId', ],
|
613
|
+
'method_name' => 'update_fulfillment',
|
614
|
+
'http_method' => 'PUT',
|
615
|
+
'path' => '/v1/orders/{orderId}/fulfillments/{fulfillmentId}',
|
616
|
+
'params' => ['orderId', 'fulfillmentId', ],
|
619
617
|
'args' => args
|
620
618
|
})
|
621
619
|
|
622
620
|
end
|
623
621
|
|
624
|
-
def self.
|
622
|
+
def self.update_item(*args)
|
625
623
|
|
626
624
|
Clayful.call_api({
|
627
625
|
'model_name' => @@name,
|
628
|
-
'method_name' => '
|
629
|
-
'http_method' => '
|
630
|
-
'path' => '/v1/orders/{orderId}/
|
631
|
-
'params' => ['orderId', ],
|
626
|
+
'method_name' => 'update_item',
|
627
|
+
'http_method' => 'PUT',
|
628
|
+
'path' => '/v1/orders/{orderId}/items/{itemId}',
|
629
|
+
'params' => ['orderId', 'itemId', ],
|
632
630
|
'args' => args
|
633
631
|
})
|
634
632
|
|
635
633
|
end
|
636
634
|
|
637
|
-
def self.
|
635
|
+
def self.update_refund(*args)
|
638
636
|
|
639
637
|
Clayful.call_api({
|
640
638
|
'model_name' => @@name,
|
641
|
-
'method_name' => '
|
642
|
-
'http_method' => '
|
643
|
-
'path' => '/v1/
|
644
|
-
'params' => ['orderId', ],
|
639
|
+
'method_name' => 'update_refund',
|
640
|
+
'http_method' => 'PUT',
|
641
|
+
'path' => '/v1/orders/{orderId}/refunds/{refundId}',
|
642
|
+
'params' => ['orderId', 'refundId', ],
|
645
643
|
'args' => args
|
646
644
|
})
|
647
645
|
|
648
646
|
end
|
649
647
|
|
650
|
-
def self.
|
648
|
+
def self.update_refund_cancellation(*args)
|
651
649
|
|
652
650
|
Clayful.call_api({
|
653
651
|
'model_name' => @@name,
|
654
|
-
'method_name' => '
|
655
|
-
'http_method' => '
|
656
|
-
'path' => '/v1/orders/{orderId}/
|
657
|
-
'params' => ['orderId', '
|
652
|
+
'method_name' => 'update_refund_cancellation',
|
653
|
+
'http_method' => 'PUT',
|
654
|
+
'path' => '/v1/orders/{orderId}/refunds/{refundId}/cancellation',
|
655
|
+
'params' => ['orderId', 'refundId', ],
|
658
656
|
'args' => args
|
659
657
|
})
|
660
658
|
|
661
659
|
end
|
662
660
|
|
663
|
-
def self.
|
661
|
+
def self.update_refund_cancellation_for_me(*args)
|
664
662
|
|
665
663
|
Clayful.call_api({
|
666
664
|
'model_name' => @@name,
|
667
|
-
'method_name' => '
|
668
|
-
'http_method' => '
|
669
|
-
'path' => '/v1/orders/{orderId}/
|
670
|
-
'params' => ['orderId', '
|
665
|
+
'method_name' => 'update_refund_cancellation_for_me',
|
666
|
+
'http_method' => 'PUT',
|
667
|
+
'path' => '/v1/me/orders/{orderId}/refunds/{refundId}/cancellation',
|
668
|
+
'params' => ['orderId', 'refundId', ],
|
671
669
|
'args' => args
|
672
670
|
})
|
673
671
|
|
674
672
|
end
|
675
673
|
|
676
|
-
def self.
|
674
|
+
def self.update_refund_for_me(*args)
|
677
675
|
|
678
676
|
Clayful.call_api({
|
679
677
|
'model_name' => @@name,
|
680
|
-
'method_name' => '
|
681
|
-
'http_method' => '
|
682
|
-
'path' => '/v1/orders/{orderId}/refunds/{refundId}',
|
678
|
+
'method_name' => 'update_refund_for_me',
|
679
|
+
'http_method' => 'PUT',
|
680
|
+
'path' => '/v1/me/orders/{orderId}/refunds/{refundId}',
|
683
681
|
'params' => ['orderId', 'refundId', ],
|
684
682
|
'args' => args
|
685
683
|
})
|
686
684
|
|
687
685
|
end
|
688
686
|
|
689
|
-
def self.
|
687
|
+
def self.update_transactions(*args)
|
690
688
|
|
691
689
|
Clayful.call_api({
|
692
690
|
'model_name' => @@name,
|
693
|
-
'method_name' => '
|
694
|
-
'http_method' => '
|
695
|
-
'path' => '/v1/orders/{orderId}/
|
696
|
-
'params' => ['orderId',
|
691
|
+
'method_name' => 'update_transactions',
|
692
|
+
'http_method' => 'PUT',
|
693
|
+
'path' => '/v1/orders/{orderId}/transactions',
|
694
|
+
'params' => ['orderId', ],
|
697
695
|
'args' => args
|
698
696
|
})
|
699
697
|
|
700
698
|
end
|
701
699
|
|
702
|
-
def self.
|
700
|
+
def self.update_transactions_for_me(*args)
|
703
701
|
|
704
702
|
Clayful.call_api({
|
705
703
|
'model_name' => @@name,
|
706
|
-
'method_name' => '
|
707
|
-
'http_method' => '
|
708
|
-
'path' => '/v1/orders/{orderId}/
|
709
|
-
'params' => ['orderId',
|
704
|
+
'method_name' => 'update_transactions_for_me',
|
705
|
+
'http_method' => 'PUT',
|
706
|
+
'path' => '/v1/me/orders/{orderId}/transactions',
|
707
|
+
'params' => ['orderId', ],
|
708
|
+
'without_payload' => true,
|
710
709
|
'args' => args
|
711
710
|
})
|
712
711
|
|
713
712
|
end
|
714
713
|
|
715
|
-
def self.
|
714
|
+
def self.use_ticket(*args)
|
716
715
|
|
717
716
|
Clayful.call_api({
|
718
717
|
'model_name' => @@name,
|
719
|
-
'method_name' => '
|
720
|
-
'http_method' => '
|
721
|
-
'path' => '/v1/orders/{
|
722
|
-
'params' => ['
|
718
|
+
'method_name' => 'use_ticket',
|
719
|
+
'http_method' => 'POST',
|
720
|
+
'path' => '/v1/orders/tickets/{code}/used',
|
721
|
+
'params' => ['code', ],
|
722
|
+
'without_payload' => true,
|
723
723
|
'args' => args
|
724
724
|
})
|
725
725
|
|