clayful 0.0.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.
@@ -0,0 +1,57 @@
1
+ module Clayful
2
+
3
+ class OrderTag
4
+
5
+ @@name = 'OrderTag'
6
+ @@path = 'orders/tags'
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/orders/tags',
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/orders/tags/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/orders/tags/{orderTagId}',
49
+ 'params' => ['orderTagId', ],
50
+ 'args' => args
51
+ })
52
+
53
+ end
54
+
55
+ end
56
+
57
+ end
@@ -0,0 +1,57 @@
1
+ module Clayful
2
+
3
+ class PaymentMethod
4
+
5
+ @@name = 'PaymentMethod'
6
+ @@path = 'payments/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/payments/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/payments/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/payments/methods/{paymentMethodId}',
49
+ 'params' => ['paymentMethodId', ],
50
+ 'args' => args
51
+ })
52
+
53
+ end
54
+
55
+ end
56
+
57
+ end
@@ -0,0 +1,109 @@
1
+ module Clayful
2
+
3
+ class Product
4
+
5
+ @@name = 'Product'
6
+ @@path = 'products'
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',
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/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/{productId}',
49
+ 'params' => ['productId', ],
50
+ 'args' => args
51
+ })
52
+
53
+ end
54
+
55
+ def self.increase_metafield(*args)
56
+
57
+ Clayful.call_api({
58
+ 'model_name' => @@name,
59
+ 'method_name' => 'increase_metafield',
60
+ 'http_method' => 'POST',
61
+ 'path' => '/v1/products/{productId}/meta/{field}/inc',
62
+ 'params' => ['productId', 'field', ],
63
+ 'args' => args
64
+ })
65
+
66
+ end
67
+
68
+ def self.push_to_metafield(*args)
69
+
70
+ Clayful.call_api({
71
+ 'model_name' => @@name,
72
+ 'method_name' => 'push_to_metafield',
73
+ 'http_method' => 'POST',
74
+ 'path' => '/v1/products/{productId}/meta/{field}/push',
75
+ 'params' => ['productId', 'field', ],
76
+ 'args' => args
77
+ })
78
+
79
+ end
80
+
81
+ def self.pull_from_metafield(*args)
82
+
83
+ Clayful.call_api({
84
+ 'model_name' => @@name,
85
+ 'method_name' => 'pull_from_metafield',
86
+ 'http_method' => 'POST',
87
+ 'path' => '/v1/products/{productId}/meta/{field}/pull',
88
+ 'params' => ['productId', 'field', ],
89
+ 'args' => args
90
+ })
91
+
92
+ end
93
+
94
+ def self.delete_metafield(*args)
95
+
96
+ Clayful.call_api({
97
+ 'model_name' => @@name,
98
+ 'method_name' => 'delete_metafield',
99
+ 'http_method' => 'DELETE',
100
+ 'path' => '/v1/products/{productId}/meta/{field}',
101
+ 'params' => ['productId', 'field', ],
102
+ 'args' => args
103
+ })
104
+
105
+ end
106
+
107
+ end
108
+
109
+ end
@@ -0,0 +1,332 @@
1
+ module Clayful
2
+
3
+ class Review
4
+
5
+ @@name = 'Review'
6
+ @@path = 'products/reviews'
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',
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/count',
36
+ 'params' => [],
37
+ 'args' => args
38
+ })
39
+
40
+ end
41
+
42
+ def self.list_published(*args)
43
+
44
+ Clayful.call_api({
45
+ 'model_name' => @@name,
46
+ 'method_name' => 'list_published',
47
+ 'http_method' => 'GET',
48
+ 'path' => '/v1/products/reviews/published',
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/products/reviews/{reviewId}',
62
+ 'params' => ['reviewId', ],
63
+ 'args' => args
64
+ })
65
+
66
+ end
67
+
68
+ def self.count_published(*args)
69
+
70
+ Clayful.call_api({
71
+ 'model_name' => @@name,
72
+ 'method_name' => 'count_published',
73
+ 'http_method' => 'GET',
74
+ 'path' => '/v1/products/reviews/published/count',
75
+ 'params' => [],
76
+ 'args' => args
77
+ })
78
+
79
+ end
80
+
81
+ def self.get_published(*args)
82
+
83
+ Clayful.call_api({
84
+ 'model_name' => @@name,
85
+ 'method_name' => 'get_published',
86
+ 'http_method' => 'GET',
87
+ 'path' => '/v1/products/reviews/published/{reviewId}',
88
+ 'params' => ['reviewId', ],
89
+ 'args' => args
90
+ })
91
+
92
+ end
93
+
94
+ def self.create(*args)
95
+
96
+ Clayful.call_api({
97
+ 'model_name' => @@name,
98
+ 'method_name' => 'create',
99
+ 'http_method' => 'POST',
100
+ 'path' => '/v1/products/reviews',
101
+ 'params' => [],
102
+ 'args' => args
103
+ })
104
+
105
+ end
106
+
107
+ def self.create_for_me(*args)
108
+
109
+ Clayful.call_api({
110
+ 'model_name' => @@name,
111
+ 'method_name' => 'create_for_me',
112
+ 'http_method' => 'POST',
113
+ 'path' => '/v1/me/products/reviews',
114
+ 'params' => [],
115
+ 'args' => args
116
+ })
117
+
118
+ end
119
+
120
+ def self.flag(*args)
121
+
122
+ Clayful.call_api({
123
+ 'model_name' => @@name,
124
+ 'method_name' => 'flag',
125
+ 'http_method' => 'POST',
126
+ 'path' => '/v1/products/reviews/{reviewId}/flags',
127
+ 'params' => ['reviewId', ],
128
+ 'args' => args
129
+ })
130
+
131
+ end
132
+
133
+ def self.flag_for_me(*args)
134
+
135
+ Clayful.call_api({
136
+ 'model_name' => @@name,
137
+ 'method_name' => 'flag_for_me',
138
+ 'http_method' => 'POST',
139
+ 'path' => '/v1/me/products/reviews/{reviewId}/flags',
140
+ 'params' => ['reviewId', ],
141
+ 'without_payload' => true,
142
+ 'args' => args
143
+ })
144
+
145
+ end
146
+
147
+ def self.helped(*args)
148
+
149
+ Clayful.call_api({
150
+ 'model_name' => @@name,
151
+ 'method_name' => 'helped',
152
+ 'http_method' => 'POST',
153
+ 'path' => '/v1/products/reviews/{reviewId}/helped/{upDown}',
154
+ 'params' => ['reviewId', 'upDown', ],
155
+ 'args' => args
156
+ })
157
+
158
+ end
159
+
160
+ def self.helped_for_me(*args)
161
+
162
+ Clayful.call_api({
163
+ 'model_name' => @@name,
164
+ 'method_name' => 'helped_for_me',
165
+ 'http_method' => 'POST',
166
+ 'path' => '/v1/me/products/reviews/{reviewId}/helped/{upDown}',
167
+ 'params' => ['reviewId', 'upDown', ],
168
+ 'without_payload' => true,
169
+ 'args' => args
170
+ })
171
+
172
+ end
173
+
174
+ def self.pull_from_metafield(*args)
175
+
176
+ Clayful.call_api({
177
+ 'model_name' => @@name,
178
+ 'method_name' => 'pull_from_metafield',
179
+ 'http_method' => 'POST',
180
+ 'path' => '/v1/products/reviews/{reviewId}/meta/{field}/pull',
181
+ 'params' => ['reviewId', 'field', ],
182
+ 'args' => args
183
+ })
184
+
185
+ end
186
+
187
+ def self.increase_metafield(*args)
188
+
189
+ Clayful.call_api({
190
+ 'model_name' => @@name,
191
+ 'method_name' => 'increase_metafield',
192
+ 'http_method' => 'POST',
193
+ 'path' => '/v1/products/reviews/{reviewId}/meta/{field}/inc',
194
+ 'params' => ['reviewId', 'field', ],
195
+ 'args' => args
196
+ })
197
+
198
+ end
199
+
200
+ def self.push_to_metafield(*args)
201
+
202
+ Clayful.call_api({
203
+ 'model_name' => @@name,
204
+ 'method_name' => 'push_to_metafield',
205
+ 'http_method' => 'POST',
206
+ 'path' => '/v1/products/reviews/{reviewId}/meta/{field}/push',
207
+ 'params' => ['reviewId', 'field', ],
208
+ 'args' => args
209
+ })
210
+
211
+ end
212
+
213
+ def self.update(*args)
214
+
215
+ Clayful.call_api({
216
+ 'model_name' => @@name,
217
+ 'method_name' => 'update',
218
+ 'http_method' => 'PUT',
219
+ 'path' => '/v1/products/reviews/{reviewId}',
220
+ 'params' => ['reviewId', ],
221
+ 'args' => args
222
+ })
223
+
224
+ end
225
+
226
+ def self.update_for_me(*args)
227
+
228
+ Clayful.call_api({
229
+ 'model_name' => @@name,
230
+ 'method_name' => 'update_for_me',
231
+ 'http_method' => 'PUT',
232
+ 'path' => '/v1/me/products/reviews/{reviewId}',
233
+ 'params' => ['reviewId', ],
234
+ 'args' => args
235
+ })
236
+
237
+ end
238
+
239
+ def self.delete(*args)
240
+
241
+ Clayful.call_api({
242
+ 'model_name' => @@name,
243
+ 'method_name' => 'delete',
244
+ 'http_method' => 'DELETE',
245
+ 'path' => '/v1/products/reviews/{reviewId}',
246
+ 'params' => ['reviewId', ],
247
+ 'args' => args
248
+ })
249
+
250
+ end
251
+
252
+ def self.delete_for_me(*args)
253
+
254
+ Clayful.call_api({
255
+ 'model_name' => @@name,
256
+ 'method_name' => 'delete_for_me',
257
+ 'http_method' => 'DELETE',
258
+ 'path' => '/v1/me/products/reviews/{reviewId}',
259
+ 'params' => ['reviewId', ],
260
+ 'args' => args
261
+ })
262
+
263
+ end
264
+
265
+ def self.cancel_flag_for_me(*args)
266
+
267
+ Clayful.call_api({
268
+ 'model_name' => @@name,
269
+ 'method_name' => 'cancel_flag_for_me',
270
+ 'http_method' => 'DELETE',
271
+ 'path' => '/v1/me/products/reviews/{reviewId}/flags',
272
+ 'params' => ['reviewId', ],
273
+ 'args' => args
274
+ })
275
+
276
+ end
277
+
278
+ def self.cancel_flag(*args)
279
+
280
+ Clayful.call_api({
281
+ 'model_name' => @@name,
282
+ 'method_name' => 'cancel_flag',
283
+ 'http_method' => 'DELETE',
284
+ 'path' => '/v1/products/reviews/{reviewId}/flags/{customerId}',
285
+ 'params' => ['reviewId', 'customerId', ],
286
+ 'args' => args
287
+ })
288
+
289
+ end
290
+
291
+ def self.delete_metafield(*args)
292
+
293
+ Clayful.call_api({
294
+ 'model_name' => @@name,
295
+ 'method_name' => 'delete_metafield',
296
+ 'http_method' => 'DELETE',
297
+ 'path' => '/v1/products/reviews/{reviewId}/meta/{field}',
298
+ 'params' => ['reviewId', 'field', ],
299
+ 'args' => args
300
+ })
301
+
302
+ end
303
+
304
+ def self.cancel_helped_for_me(*args)
305
+
306
+ Clayful.call_api({
307
+ 'model_name' => @@name,
308
+ 'method_name' => 'cancel_helped_for_me',
309
+ 'http_method' => 'DELETE',
310
+ 'path' => '/v1/me/products/reviews/{reviewId}/helped/{upDown}',
311
+ 'params' => ['reviewId', 'upDown', ],
312
+ 'args' => args
313
+ })
314
+
315
+ end
316
+
317
+ def self.cancel_helped(*args)
318
+
319
+ Clayful.call_api({
320
+ 'model_name' => @@name,
321
+ 'method_name' => 'cancel_helped',
322
+ 'http_method' => 'DELETE',
323
+ 'path' => '/v1/products/reviews/{reviewId}/helped/{upDown}/{customerId}',
324
+ 'params' => ['reviewId', 'upDown', 'customerId', ],
325
+ 'args' => args
326
+ })
327
+
328
+ end
329
+
330
+ end
331
+
332
+ end