clayful 0.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,240 @@
1
+ module Clayful
2
+
3
+ class ReviewComment
4
+
5
+ @@name = 'ReviewComment'
6
+ @@path = 'products/reviews/comments'
7
+
8
+ def self.name
9
+ @@name
10
+ end
11
+
12
+ def self.path
13
+ @@path
14
+ end
15
+
16
+ def self.list(*args)
17
+
18
+ Clayful.call_api({
19
+ 'model_name' => @@name,
20
+ 'method_name' => 'list',
21
+ 'http_method' => 'GET',
22
+ 'path' => '/v1/products/reviews/comments',
23
+ 'params' => [],
24
+ 'args' => args
25
+ })
26
+
27
+ end
28
+
29
+ def self.count(*args)
30
+
31
+ Clayful.call_api({
32
+ 'model_name' => @@name,
33
+ 'method_name' => 'count',
34
+ 'http_method' => 'GET',
35
+ 'path' => '/v1/products/reviews/comments/count',
36
+ 'params' => [],
37
+ 'args' => args
38
+ })
39
+
40
+ end
41
+
42
+ def self.get(*args)
43
+
44
+ Clayful.call_api({
45
+ 'model_name' => @@name,
46
+ 'method_name' => 'get',
47
+ 'http_method' => 'GET',
48
+ 'path' => '/v1/products/reviews/comments/{reviewCommentId}',
49
+ 'params' => ['reviewCommentId', ],
50
+ 'args' => args
51
+ })
52
+
53
+ end
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/products/reviews/comments',
62
+ 'params' => [],
63
+ 'args' => args
64
+ })
65
+
66
+ end
67
+
68
+ def self.create_for_me(*args)
69
+
70
+ Clayful.call_api({
71
+ 'model_name' => @@name,
72
+ 'method_name' => 'create_for_me',
73
+ 'http_method' => 'POST',
74
+ 'path' => '/v1/me/products/reviews/comments',
75
+ 'params' => [],
76
+ 'args' => args
77
+ })
78
+
79
+ end
80
+
81
+ def self.flag(*args)
82
+
83
+ Clayful.call_api({
84
+ 'model_name' => @@name,
85
+ 'method_name' => 'flag',
86
+ 'http_method' => 'POST',
87
+ 'path' => '/v1/products/reviews/comments/{reviewCommentId}/flags',
88
+ 'params' => ['reviewCommentId', ],
89
+ 'args' => args
90
+ })
91
+
92
+ end
93
+
94
+ def self.flag_for_me(*args)
95
+
96
+ Clayful.call_api({
97
+ 'model_name' => @@name,
98
+ 'method_name' => 'flag_for_me',
99
+ 'http_method' => 'POST',
100
+ 'path' => '/v1/me/products/reviews/comments/{reviewCommentId}/flags',
101
+ 'params' => ['reviewCommentId', ],
102
+ 'without_payload' => true,
103
+ 'args' => args
104
+ })
105
+
106
+ end
107
+
108
+ def self.push_to_metafield(*args)
109
+
110
+ Clayful.call_api({
111
+ 'model_name' => @@name,
112
+ 'method_name' => 'push_to_metafield',
113
+ 'http_method' => 'POST',
114
+ 'path' => '/v1/products/reviews/comments/{reviewCommentId}/meta/{field}/push',
115
+ 'params' => ['reviewCommentId', 'field', ],
116
+ 'args' => args
117
+ })
118
+
119
+ end
120
+
121
+ def self.pull_from_metafield(*args)
122
+
123
+ Clayful.call_api({
124
+ 'model_name' => @@name,
125
+ 'method_name' => 'pull_from_metafield',
126
+ 'http_method' => 'POST',
127
+ 'path' => '/v1/products/reviews/comments/{reviewCommentId}/meta/{field}/pull',
128
+ 'params' => ['reviewCommentId', 'field', ],
129
+ 'args' => args
130
+ })
131
+
132
+ end
133
+
134
+ def self.increase_metafield(*args)
135
+
136
+ Clayful.call_api({
137
+ 'model_name' => @@name,
138
+ 'method_name' => 'increase_metafield',
139
+ 'http_method' => 'POST',
140
+ 'path' => '/v1/products/reviews/comments/{reviewCommentId}/meta/{field}/inc',
141
+ 'params' => ['reviewCommentId', 'field', ],
142
+ 'args' => args
143
+ })
144
+
145
+ end
146
+
147
+ def self.update(*args)
148
+
149
+ Clayful.call_api({
150
+ 'model_name' => @@name,
151
+ 'method_name' => 'update',
152
+ 'http_method' => 'PUT',
153
+ 'path' => '/v1/products/reviews/comments/{reviewCommentId}',
154
+ 'params' => ['reviewCommentId', ],
155
+ 'args' => args
156
+ })
157
+
158
+ end
159
+
160
+ def self.update_for_me(*args)
161
+
162
+ Clayful.call_api({
163
+ 'model_name' => @@name,
164
+ 'method_name' => 'update_for_me',
165
+ 'http_method' => 'PUT',
166
+ 'path' => '/v1/me/products/reviews/comments/{reviewCommentId}',
167
+ 'params' => ['reviewCommentId', ],
168
+ 'args' => args
169
+ })
170
+
171
+ end
172
+
173
+ def self.delete(*args)
174
+
175
+ Clayful.call_api({
176
+ 'model_name' => @@name,
177
+ 'method_name' => 'delete',
178
+ 'http_method' => 'DELETE',
179
+ 'path' => '/v1/products/reviews/comments/{reviewCommentId}',
180
+ 'params' => ['reviewCommentId', ],
181
+ 'args' => args
182
+ })
183
+
184
+ end
185
+
186
+ def self.delete_for_me(*args)
187
+
188
+ Clayful.call_api({
189
+ 'model_name' => @@name,
190
+ 'method_name' => 'delete_for_me',
191
+ 'http_method' => 'DELETE',
192
+ 'path' => '/v1/me/products/reviews/comments/{reviewCommentId}',
193
+ 'params' => ['reviewCommentId', ],
194
+ 'args' => args
195
+ })
196
+
197
+ end
198
+
199
+ def self.cancel_flag_for_me(*args)
200
+
201
+ Clayful.call_api({
202
+ 'model_name' => @@name,
203
+ 'method_name' => 'cancel_flag_for_me',
204
+ 'http_method' => 'DELETE',
205
+ 'path' => '/v1/me/products/reviews/comments/{reviewCommentId}/flags',
206
+ 'params' => ['reviewCommentId', ],
207
+ 'args' => args
208
+ })
209
+
210
+ end
211
+
212
+ def self.delete_metafield(*args)
213
+
214
+ Clayful.call_api({
215
+ 'model_name' => @@name,
216
+ 'method_name' => 'delete_metafield',
217
+ 'http_method' => 'DELETE',
218
+ 'path' => '/v1/products/reviews/comments/{reviewCommentId}/meta/{field}',
219
+ 'params' => ['reviewCommentId', 'field', ],
220
+ 'args' => args
221
+ })
222
+
223
+ end
224
+
225
+ def self.cancel_flag(*args)
226
+
227
+ Clayful.call_api({
228
+ 'model_name' => @@name,
229
+ 'method_name' => 'cancel_flag',
230
+ 'http_method' => 'DELETE',
231
+ 'path' => '/v1/products/reviews/comments/{reviewCommentId}/flags/{customerId}',
232
+ 'params' => ['reviewCommentId', 'customerId', ],
233
+ 'args' => args
234
+ })
235
+
236
+ end
237
+
238
+ end
239
+
240
+ end
@@ -0,0 +1,57 @@
1
+ module Clayful
2
+
3
+ class ShippingMethod
4
+
5
+ @@name = 'ShippingMethod'
6
+ @@path = 'shipping/methods'
7
+
8
+ def self.name
9
+ @@name
10
+ end
11
+
12
+ def self.path
13
+ @@path
14
+ end
15
+
16
+ def self.list(*args)
17
+
18
+ Clayful.call_api({
19
+ 'model_name' => @@name,
20
+ 'method_name' => 'list',
21
+ 'http_method' => 'GET',
22
+ 'path' => '/v1/shipping/methods',
23
+ 'params' => [],
24
+ 'args' => args
25
+ })
26
+
27
+ end
28
+
29
+ def self.count(*args)
30
+
31
+ Clayful.call_api({
32
+ 'model_name' => @@name,
33
+ 'method_name' => 'count',
34
+ 'http_method' => 'GET',
35
+ 'path' => '/v1/shipping/methods/count',
36
+ 'params' => [],
37
+ 'args' => args
38
+ })
39
+
40
+ end
41
+
42
+ def self.get(*args)
43
+
44
+ Clayful.call_api({
45
+ 'model_name' => @@name,
46
+ 'method_name' => 'get',
47
+ 'http_method' => 'GET',
48
+ 'path' => '/v1/shipping/methods/{shippingMethodId}',
49
+ 'params' => ['shippingMethodId', ],
50
+ 'args' => args
51
+ })
52
+
53
+ end
54
+
55
+ end
56
+
57
+ end
@@ -0,0 +1,83 @@
1
+ module Clayful
2
+
3
+ class Store
4
+
5
+ @@name = 'Store'
6
+ @@path = 'store'
7
+
8
+ def self.name
9
+ @@name
10
+ end
11
+
12
+ def self.path
13
+ @@path
14
+ end
15
+
16
+ def self.get(*args)
17
+
18
+ Clayful.call_api({
19
+ 'model_name' => @@name,
20
+ 'method_name' => 'get',
21
+ 'http_method' => 'GET',
22
+ 'path' => '/v1/store',
23
+ 'params' => [],
24
+ 'args' => args
25
+ })
26
+
27
+ end
28
+
29
+ def self.pull_from_metafield(*args)
30
+
31
+ Clayful.call_api({
32
+ 'model_name' => @@name,
33
+ 'method_name' => 'pull_from_metafield',
34
+ 'http_method' => 'POST',
35
+ 'path' => '/v1/store/meta/{field}/pull',
36
+ 'params' => ['field', ],
37
+ 'args' => args
38
+ })
39
+
40
+ end
41
+
42
+ def self.increase_metafield(*args)
43
+
44
+ Clayful.call_api({
45
+ 'model_name' => @@name,
46
+ 'method_name' => 'increase_metafield',
47
+ 'http_method' => 'POST',
48
+ 'path' => '/v1/store/meta/{field}/inc',
49
+ 'params' => ['field', ],
50
+ 'args' => args
51
+ })
52
+
53
+ end
54
+
55
+ def self.push_to_metafield(*args)
56
+
57
+ Clayful.call_api({
58
+ 'model_name' => @@name,
59
+ 'method_name' => 'push_to_metafield',
60
+ 'http_method' => 'POST',
61
+ 'path' => '/v1/store/meta/{field}/push',
62
+ 'params' => ['field', ],
63
+ 'args' => args
64
+ })
65
+
66
+ end
67
+
68
+ def self.delete_metafield(*args)
69
+
70
+ Clayful.call_api({
71
+ 'model_name' => @@name,
72
+ 'method_name' => 'delete_metafield',
73
+ 'http_method' => 'DELETE',
74
+ 'path' => '/v1/store/meta/{field}',
75
+ 'params' => ['field', ],
76
+ 'args' => args
77
+ })
78
+
79
+ end
80
+
81
+ end
82
+
83
+ end
@@ -0,0 +1,358 @@
1
+ module Clayful
2
+
3
+ class Subscription
4
+
5
+ @@name = 'Subscription'
6
+ @@path = 'subscriptions'
7
+
8
+ def self.name
9
+ @@name
10
+ end
11
+
12
+ def self.path
13
+ @@path
14
+ end
15
+
16
+ def self.list(*args)
17
+
18
+ Clayful.call_api({
19
+ 'model_name' => @@name,
20
+ 'method_name' => 'list',
21
+ 'http_method' => 'GET',
22
+ 'path' => '/v1/subscriptions',
23
+ 'params' => [],
24
+ 'args' => args
25
+ })
26
+
27
+ end
28
+
29
+ def self.list_for_me(*args)
30
+
31
+ Clayful.call_api({
32
+ 'model_name' => @@name,
33
+ 'method_name' => 'list_for_me',
34
+ 'http_method' => 'GET',
35
+ 'path' => '/v1/me/subscriptions',
36
+ 'params' => [],
37
+ 'args' => args
38
+ })
39
+
40
+ end
41
+
42
+ def self.count(*args)
43
+
44
+ Clayful.call_api({
45
+ 'model_name' => @@name,
46
+ 'method_name' => 'count',
47
+ 'http_method' => 'GET',
48
+ 'path' => '/v1/subscriptions/count',
49
+ 'params' => [],
50
+ 'args' => args
51
+ })
52
+
53
+ end
54
+
55
+ def self.get(*args)
56
+
57
+ Clayful.call_api({
58
+ 'model_name' => @@name,
59
+ 'method_name' => 'get',
60
+ 'http_method' => 'GET',
61
+ 'path' => '/v1/subscriptions/{subscriptionId}',
62
+ 'params' => ['subscriptionId', ],
63
+ 'args' => args
64
+ })
65
+
66
+ end
67
+
68
+ def self.count_for_me(*args)
69
+
70
+ Clayful.call_api({
71
+ 'model_name' => @@name,
72
+ 'method_name' => 'count_for_me',
73
+ 'http_method' => 'GET',
74
+ 'path' => '/v1/me/subscriptions/count',
75
+ 'params' => [],
76
+ 'args' => args
77
+ })
78
+
79
+ end
80
+
81
+ def self.get_for_me(*args)
82
+
83
+ Clayful.call_api({
84
+ 'model_name' => @@name,
85
+ 'method_name' => 'get_for_me',
86
+ 'http_method' => 'GET',
87
+ 'path' => '/v1/me/subscriptions/{subscriptionId}',
88
+ 'params' => ['subscriptionId', ],
89
+ 'args' => args
90
+ })
91
+
92
+ end
93
+
94
+ def self.list_inventory_operations(*args)
95
+
96
+ Clayful.call_api({
97
+ 'model_name' => @@name,
98
+ 'method_name' => 'list_inventory_operations',
99
+ 'http_method' => 'GET',
100
+ 'path' => '/v1/subscriptions/{subscriptionId}/inventory/operations',
101
+ 'params' => ['subscriptionId', ],
102
+ 'args' => args
103
+ })
104
+
105
+ end
106
+
107
+ def self.sync_inventory(*args)
108
+
109
+ Clayful.call_api({
110
+ 'model_name' => @@name,
111
+ 'method_name' => 'sync_inventory',
112
+ 'http_method' => 'POST',
113
+ 'path' => '/v1/subscriptions/{subscriptionId}/synced',
114
+ 'params' => ['subscriptionId', ],
115
+ 'without_payload' => true,
116
+ 'args' => args
117
+ })
118
+
119
+ end
120
+
121
+ def self.authenticate(*args)
122
+
123
+ Clayful.call_api({
124
+ 'model_name' => @@name,
125
+ 'method_name' => 'authenticate',
126
+ 'http_method' => 'POST',
127
+ 'path' => '/v1/subscriptions/{subscriptionId}/auth',
128
+ 'params' => ['subscriptionId', ],
129
+ 'args' => args
130
+ })
131
+
132
+ end
133
+
134
+ def self.cancel(*args)
135
+
136
+ Clayful.call_api({
137
+ 'model_name' => @@name,
138
+ 'method_name' => 'cancel',
139
+ 'http_method' => 'POST',
140
+ 'path' => '/v1/subscriptions/{subscriptionId}/cancellation',
141
+ 'params' => ['subscriptionId', ],
142
+ 'args' => args
143
+ })
144
+
145
+ end
146
+
147
+ def self.mark_as_done(*args)
148
+
149
+ Clayful.call_api({
150
+ 'model_name' => @@name,
151
+ 'method_name' => 'mark_as_done',
152
+ 'http_method' => 'POST',
153
+ 'path' => '/v1/subscriptions/{subscriptionId}/done',
154
+ 'params' => ['subscriptionId', ],
155
+ 'without_payload' => true,
156
+ 'args' => args
157
+ })
158
+
159
+ end
160
+
161
+ def self.schedule(*args)
162
+
163
+ Clayful.call_api({
164
+ 'model_name' => @@name,
165
+ 'method_name' => 'schedule',
166
+ 'http_method' => 'POST',
167
+ 'path' => '/v1/subscriptions/{subscriptionId}/scheduled',
168
+ 'params' => ['subscriptionId', ],
169
+ 'args' => args
170
+ })
171
+
172
+ end
173
+
174
+ def self.schedule_for_me(*args)
175
+
176
+ Clayful.call_api({
177
+ 'model_name' => @@name,
178
+ 'method_name' => 'schedule_for_me',
179
+ 'http_method' => 'POST',
180
+ 'path' => '/v1/me/subscriptions/{subscriptionId}/scheduled',
181
+ 'params' => ['subscriptionId', ],
182
+ 'args' => args
183
+ })
184
+
185
+ end
186
+
187
+ def self.cancel_for_me(*args)
188
+
189
+ Clayful.call_api({
190
+ 'model_name' => @@name,
191
+ 'method_name' => 'cancel_for_me',
192
+ 'http_method' => 'POST',
193
+ 'path' => '/v1/me/subscriptions/{subscriptionId}/cancellation',
194
+ 'params' => ['subscriptionId', ],
195
+ 'args' => args
196
+ })
197
+
198
+ end
199
+
200
+ def self.fulfill_schedule(*args)
201
+
202
+ Clayful.call_api({
203
+ 'model_name' => @@name,
204
+ 'method_name' => 'fulfill_schedule',
205
+ 'http_method' => 'POST',
206
+ 'path' => '/v1/subscriptions/{subscriptionId}/schedules/orders',
207
+ 'params' => ['subscriptionId', ],
208
+ 'args' => args
209
+ })
210
+
211
+ end
212
+
213
+ def self.pull_from_metafield(*args)
214
+
215
+ Clayful.call_api({
216
+ 'model_name' => @@name,
217
+ 'method_name' => 'pull_from_metafield',
218
+ 'http_method' => 'POST',
219
+ 'path' => '/v1/subscriptions/{subscriptionId}/meta/{field}/pull',
220
+ 'params' => ['subscriptionId', 'field', ],
221
+ 'args' => args
222
+ })
223
+
224
+ end
225
+
226
+ def self.increase_metafield(*args)
227
+
228
+ Clayful.call_api({
229
+ 'model_name' => @@name,
230
+ 'method_name' => 'increase_metafield',
231
+ 'http_method' => 'POST',
232
+ 'path' => '/v1/subscriptions/{subscriptionId}/meta/{field}/inc',
233
+ 'params' => ['subscriptionId', 'field', ],
234
+ 'args' => args
235
+ })
236
+
237
+ end
238
+
239
+ def self.push_to_metafield(*args)
240
+
241
+ Clayful.call_api({
242
+ 'model_name' => @@name,
243
+ 'method_name' => 'push_to_metafield',
244
+ 'http_method' => 'POST',
245
+ 'path' => '/v1/subscriptions/{subscriptionId}/meta/{field}/push',
246
+ 'params' => ['subscriptionId', 'field', ],
247
+ 'args' => args
248
+ })
249
+
250
+ end
251
+
252
+ def self.update(*args)
253
+
254
+ Clayful.call_api({
255
+ 'model_name' => @@name,
256
+ 'method_name' => 'update',
257
+ 'http_method' => 'PUT',
258
+ 'path' => '/v1/subscriptions/{subscriptionId}',
259
+ 'params' => ['subscriptionId', ],
260
+ 'args' => args
261
+ })
262
+
263
+ end
264
+
265
+ def self.update_for_me(*args)
266
+
267
+ Clayful.call_api({
268
+ 'model_name' => @@name,
269
+ 'method_name' => 'update_for_me',
270
+ 'http_method' => 'PUT',
271
+ 'path' => '/v1/me/subscriptions/{subscriptionId}',
272
+ 'params' => ['subscriptionId', ],
273
+ 'args' => args
274
+ })
275
+
276
+ end
277
+
278
+ def self.update_cancellation(*args)
279
+
280
+ Clayful.call_api({
281
+ 'model_name' => @@name,
282
+ 'method_name' => 'update_cancellation',
283
+ 'http_method' => 'PUT',
284
+ 'path' => '/v1/subscriptions/{subscriptionId}/cancellation',
285
+ 'params' => ['subscriptionId', ],
286
+ 'args' => args
287
+ })
288
+
289
+ end
290
+
291
+ def self.update_cancellation_for_me(*args)
292
+
293
+ Clayful.call_api({
294
+ 'model_name' => @@name,
295
+ 'method_name' => 'update_cancellation_for_me',
296
+ 'http_method' => 'PUT',
297
+ 'path' => '/v1/me/subscriptions/{subscriptionId}/cancellation',
298
+ 'params' => ['subscriptionId', ],
299
+ 'args' => args
300
+ })
301
+
302
+ end
303
+
304
+ def self.delete(*args)
305
+
306
+ Clayful.call_api({
307
+ 'model_name' => @@name,
308
+ 'method_name' => 'delete',
309
+ 'http_method' => 'DELETE',
310
+ 'path' => '/v1/subscriptions/{subscriptionId}',
311
+ 'params' => ['subscriptionId', ],
312
+ 'args' => args
313
+ })
314
+
315
+ end
316
+
317
+ def self.mark_as_undone(*args)
318
+
319
+ Clayful.call_api({
320
+ 'model_name' => @@name,
321
+ 'method_name' => 'mark_as_undone',
322
+ 'http_method' => 'DELETE',
323
+ 'path' => '/v1/subscriptions/{subscriptionId}/done',
324
+ 'params' => ['subscriptionId', ],
325
+ 'args' => args
326
+ })
327
+
328
+ end
329
+
330
+ def self.delete_metafield(*args)
331
+
332
+ Clayful.call_api({
333
+ 'model_name' => @@name,
334
+ 'method_name' => 'delete_metafield',
335
+ 'http_method' => 'DELETE',
336
+ 'path' => '/v1/subscriptions/{subscriptionId}/meta/{field}',
337
+ 'params' => ['subscriptionId', 'field', ],
338
+ 'args' => args
339
+ })
340
+
341
+ end
342
+
343
+ def self.delete_inventory_operation(*args)
344
+
345
+ Clayful.call_api({
346
+ 'model_name' => @@name,
347
+ 'method_name' => 'delete_inventory_operation',
348
+ 'http_method' => 'DELETE',
349
+ 'path' => '/v1/subscriptions/{subscriptionId}/inventory/operations/{operationId}',
350
+ 'params' => ['subscriptionId', 'operationId', ],
351
+ 'args' => args
352
+ })
353
+
354
+ end
355
+
356
+ end
357
+
358
+ end