clayful 2.1.0 → 2.4.1

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.
File without changes
File without changes
@@ -78,40 +78,53 @@ module Clayful
78
78
 
79
79
  end
80
80
 
81
- def self.increase_metafield(*args)
81
+ def self.mark_as_censored(*args)
82
82
 
83
83
  Clayful.call_api({
84
84
  'model_name' => @@name,
85
- 'method_name' => 'increase_metafield',
85
+ 'method_name' => 'mark_as_censored',
86
86
  'http_method' => 'POST',
87
- 'path' => '/v1/products/{productId}/meta/{field}/inc',
88
- 'params' => ['productId', 'field', ],
87
+ 'path' => '/v1/products/{productId}/censored',
88
+ 'params' => ['productId', ],
89
89
  'args' => args
90
90
  })
91
91
 
92
92
  end
93
93
 
94
- def self.pull_from_metafield(*args)
94
+ def self.create_variation(*args)
95
95
 
96
96
  Clayful.call_api({
97
97
  'model_name' => @@name,
98
- 'method_name' => 'pull_from_metafield',
98
+ 'method_name' => 'create_variation',
99
99
  'http_method' => 'POST',
100
- 'path' => '/v1/products/{productId}/meta/{field}/pull',
100
+ 'path' => '/v1/products/{productId}/options/{optionId}/variations',
101
+ 'params' => ['productId', 'optionId', ],
102
+ 'args' => args
103
+ })
104
+
105
+ end
106
+
107
+ def self.increase_metafield(*args)
108
+
109
+ Clayful.call_api({
110
+ 'model_name' => @@name,
111
+ 'method_name' => 'increase_metafield',
112
+ 'http_method' => 'POST',
113
+ 'path' => '/v1/products/{productId}/meta/{field}/inc',
101
114
  'params' => ['productId', 'field', ],
102
115
  'args' => args
103
116
  })
104
117
 
105
118
  end
106
119
 
107
- def self.create_variation(*args)
120
+ def self.pull_from_metafield(*args)
108
121
 
109
122
  Clayful.call_api({
110
123
  'model_name' => @@name,
111
- 'method_name' => 'create_variation',
124
+ 'method_name' => 'pull_from_metafield',
112
125
  'http_method' => 'POST',
113
- 'path' => '/v1/products/{productId}/options/{optionId}/variations',
114
- 'params' => ['productId', 'optionId', ],
126
+ 'path' => '/v1/products/{productId}/meta/{field}/pull',
127
+ 'params' => ['productId', 'field', ],
115
128
  'args' => args
116
129
  })
117
130
 
@@ -195,14 +208,14 @@ module Clayful
195
208
 
196
209
  end
197
210
 
198
- def self.delete_metafield(*args)
211
+ def self.mark_as_uncensored(*args)
199
212
 
200
213
  Clayful.call_api({
201
214
  'model_name' => @@name,
202
- 'method_name' => 'delete_metafield',
215
+ 'method_name' => 'mark_as_uncensored',
203
216
  'http_method' => 'DELETE',
204
- 'path' => '/v1/products/{productId}/meta/{field}',
205
- 'params' => ['productId', 'field', ],
217
+ 'path' => '/v1/products/{productId}/censored',
218
+ 'params' => ['productId', ],
206
219
  'args' => args
207
220
  })
208
221
 
@@ -221,6 +234,19 @@ module Clayful
221
234
 
222
235
  end
223
236
 
237
+ def self.delete_metafield(*args)
238
+
239
+ Clayful.call_api({
240
+ 'model_name' => @@name,
241
+ 'method_name' => 'delete_metafield',
242
+ 'http_method' => 'DELETE',
243
+ 'path' => '/v1/products/{productId}/meta/{field}',
244
+ 'params' => ['productId', 'field', ],
245
+ 'args' => args
246
+ })
247
+
248
+ end
249
+
224
250
  def self.delete_variation(*args)
225
251
 
226
252
  Clayful.call_api({
File without changes
@@ -105,39 +105,39 @@ module Clayful
105
105
 
106
106
  end
107
107
 
108
- def self.increase_metafield(*args)
108
+ def self.push_to_metafield(*args)
109
109
 
110
110
  Clayful.call_api({
111
111
  'model_name' => @@name,
112
- 'method_name' => 'increase_metafield',
112
+ 'method_name' => 'push_to_metafield',
113
113
  'http_method' => 'POST',
114
- 'path' => '/v1/products/reviews/comments/{reviewCommentId}/meta/{field}/inc',
114
+ 'path' => '/v1/products/reviews/comments/{reviewCommentId}/meta/{field}/push',
115
115
  'params' => ['reviewCommentId', 'field', ],
116
116
  'args' => args
117
117
  })
118
118
 
119
119
  end
120
120
 
121
- def self.pull_from_metafield(*args)
121
+ def self.increase_metafield(*args)
122
122
 
123
123
  Clayful.call_api({
124
124
  'model_name' => @@name,
125
- 'method_name' => 'pull_from_metafield',
125
+ 'method_name' => 'increase_metafield',
126
126
  'http_method' => 'POST',
127
- 'path' => '/v1/products/reviews/comments/{reviewCommentId}/meta/{field}/pull',
127
+ 'path' => '/v1/products/reviews/comments/{reviewCommentId}/meta/{field}/inc',
128
128
  'params' => ['reviewCommentId', 'field', ],
129
129
  'args' => args
130
130
  })
131
131
 
132
132
  end
133
133
 
134
- def self.push_to_metafield(*args)
134
+ def self.pull_from_metafield(*args)
135
135
 
136
136
  Clayful.call_api({
137
137
  'model_name' => @@name,
138
- 'method_name' => 'push_to_metafield',
138
+ 'method_name' => 'pull_from_metafield',
139
139
  'http_method' => 'POST',
140
- 'path' => '/v1/products/reviews/comments/{reviewCommentId}/meta/{field}/push',
140
+ 'path' => '/v1/products/reviews/comments/{reviewCommentId}/meta/{field}/pull',
141
141
  'params' => ['reviewCommentId', 'field', ],
142
142
  'args' => args
143
143
  })
@@ -209,27 +209,27 @@ module Clayful
209
209
 
210
210
  end
211
211
 
212
- def self.cancel_flag(*args)
212
+ def self.delete_metafield(*args)
213
213
 
214
214
  Clayful.call_api({
215
215
  'model_name' => @@name,
216
- 'method_name' => 'cancel_flag',
216
+ 'method_name' => 'delete_metafield',
217
217
  'http_method' => 'DELETE',
218
- 'path' => '/v1/products/reviews/comments/{reviewCommentId}/flags/{customerId}',
219
- 'params' => ['reviewCommentId', 'customerId', ],
218
+ 'path' => '/v1/products/reviews/comments/{reviewCommentId}/meta/{field}',
219
+ 'params' => ['reviewCommentId', 'field', ],
220
220
  'args' => args
221
221
  })
222
222
 
223
223
  end
224
224
 
225
- def self.delete_metafield(*args)
225
+ def self.cancel_flag(*args)
226
226
 
227
227
  Clayful.call_api({
228
228
  'model_name' => @@name,
229
- 'method_name' => 'delete_metafield',
229
+ 'method_name' => 'cancel_flag',
230
230
  'http_method' => 'DELETE',
231
- 'path' => '/v1/products/reviews/comments/{reviewCommentId}/meta/{field}',
232
- 'params' => ['reviewCommentId', 'field', ],
231
+ 'path' => '/v1/products/reviews/comments/{reviewCommentId}/flags/{customerId}',
232
+ 'params' => ['reviewCommentId', 'customerId', ],
233
233
  'args' => args
234
234
  })
235
235
 
File without changes
@@ -0,0 +1,57 @@
1
+ module Clayful
2
+
3
+ class ShippingPolicy
4
+
5
+ @@name = 'ShippingPolicy'
6
+ @@path = 'shipping/policies'
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/policies',
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/policies/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/policies/{shippingPolicyId}',
49
+ 'params' => ['shippingPolicyId', ],
50
+ 'args' => args
51
+ })
52
+
53
+ end
54
+
55
+ end
56
+
57
+ end
@@ -39,26 +39,26 @@ module Clayful
39
39
 
40
40
  end
41
41
 
42
- def self.pull_from_metafield(*args)
42
+ def self.increase_metafield(*args)
43
43
 
44
44
  Clayful.call_api({
45
45
  'model_name' => @@name,
46
- 'method_name' => 'pull_from_metafield',
46
+ 'method_name' => 'increase_metafield',
47
47
  'http_method' => 'POST',
48
- 'path' => '/v1/store/meta/{field}/pull',
48
+ 'path' => '/v1/store/meta/{field}/inc',
49
49
  'params' => ['field', ],
50
50
  'args' => args
51
51
  })
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/store/meta/{field}/inc',
61
+ 'path' => '/v1/store/meta/{field}/pull',
62
62
  'params' => ['field', ],
63
63
  'args' => args
64
64
  })
@@ -117,14 +117,15 @@ module Clayful
117
117
 
118
118
  end
119
119
 
120
- def self.authenticate(*args)
120
+ def self.sync_inventory(*args)
121
121
 
122
122
  Clayful.call_api({
123
123
  'model_name' => @@name,
124
- 'method_name' => 'authenticate',
124
+ 'method_name' => 'sync_inventory',
125
125
  'http_method' => 'POST',
126
- 'path' => '/v1/subscriptions/{subscriptionId}/auth',
126
+ 'path' => '/v1/subscriptions/{subscriptionId}/synced',
127
127
  'params' => ['subscriptionId', ],
128
+ 'without_payload' => true,
128
129
  'args' => args
129
130
  })
130
131
 
@@ -157,40 +158,39 @@ module Clayful
157
158
 
158
159
  end
159
160
 
160
- def self.sync_inventory(*args)
161
+ def self.authenticate(*args)
161
162
 
162
163
  Clayful.call_api({
163
164
  'model_name' => @@name,
164
- 'method_name' => 'sync_inventory',
165
+ 'method_name' => 'authenticate',
165
166
  'http_method' => 'POST',
166
- 'path' => '/v1/subscriptions/{subscriptionId}/synced',
167
+ 'path' => '/v1/subscriptions/{subscriptionId}/auth',
167
168
  'params' => ['subscriptionId', ],
168
- 'without_payload' => true,
169
169
  'args' => args
170
170
  })
171
171
 
172
172
  end
173
173
 
174
- def self.schedule_for_me(*args)
174
+ def self.cancel_for_me(*args)
175
175
 
176
176
  Clayful.call_api({
177
177
  'model_name' => @@name,
178
- 'method_name' => 'schedule_for_me',
178
+ 'method_name' => 'cancel_for_me',
179
179
  'http_method' => 'POST',
180
- 'path' => '/v1/me/subscriptions/{subscriptionId}/scheduled',
180
+ 'path' => '/v1/me/subscriptions/{subscriptionId}/cancellation',
181
181
  'params' => ['subscriptionId', ],
182
182
  'args' => args
183
183
  })
184
184
 
185
185
  end
186
186
 
187
- def self.cancel_for_me(*args)
187
+ def self.schedule_for_me(*args)
188
188
 
189
189
  Clayful.call_api({
190
190
  'model_name' => @@name,
191
- 'method_name' => 'cancel_for_me',
191
+ 'method_name' => 'schedule_for_me',
192
192
  'http_method' => 'POST',
193
- 'path' => '/v1/me/subscriptions/{subscriptionId}/cancellation',
193
+ 'path' => '/v1/me/subscriptions/{subscriptionId}/scheduled',
194
194
  'params' => ['subscriptionId', ],
195
195
  'args' => args
196
196
  })
@@ -223,26 +223,26 @@ module Clayful
223
223
 
224
224
  end
225
225
 
226
- def self.pull_from_metafield(*args)
226
+ def self.increase_metafield(*args)
227
227
 
228
228
  Clayful.call_api({
229
229
  'model_name' => @@name,
230
- 'method_name' => 'pull_from_metafield',
230
+ 'method_name' => 'increase_metafield',
231
231
  'http_method' => 'POST',
232
- 'path' => '/v1/subscriptions/{subscriptionId}/meta/{field}/pull',
232
+ 'path' => '/v1/subscriptions/{subscriptionId}/meta/{field}/inc',
233
233
  'params' => ['subscriptionId', 'field', ],
234
234
  'args' => args
235
235
  })
236
236
 
237
237
  end
238
238
 
239
- def self.increase_metafield(*args)
239
+ def self.pull_from_metafield(*args)
240
240
 
241
241
  Clayful.call_api({
242
242
  'model_name' => @@name,
243
- 'method_name' => 'increase_metafield',
243
+ 'method_name' => 'pull_from_metafield',
244
244
  'http_method' => 'POST',
245
- 'path' => '/v1/subscriptions/{subscriptionId}/meta/{field}/inc',
245
+ 'path' => '/v1/subscriptions/{subscriptionId}/meta/{field}/pull',
246
246
  'params' => ['subscriptionId', 'field', ],
247
247
  'args' => args
248
248
  })
@@ -301,6 +301,19 @@ module Clayful
301
301
 
302
302
  end
303
303
 
304
+ def self.update_item(*args)
305
+
306
+ Clayful.call_api({
307
+ 'model_name' => @@name,
308
+ 'method_name' => 'update_item',
309
+ 'http_method' => 'PUT',
310
+ 'path' => '/v1/subscriptions/{subscriptionId}/items/{itemId}',
311
+ 'params' => ['subscriptionId', 'itemId', ],
312
+ 'args' => args
313
+ })
314
+
315
+ end
316
+
304
317
  def self.delete(*args)
305
318
 
306
319
  Clayful.call_api({
File without changes
File without changes
@@ -65,13 +65,13 @@ module Clayful
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/vendors/{vendorId}/meta/{field}/pull',
74
+ 'path' => '/v1/vendors/{vendorId}/meta/{field}/push',
75
75
  'params' => ['vendorId', 'field', ],
76
76
  'args' => args
77
77
  })
@@ -91,13 +91,13 @@ module Clayful
91
91
 
92
92
  end
93
93
 
94
- def self.push_to_metafield(*args)
94
+ def self.pull_from_metafield(*args)
95
95
 
96
96
  Clayful.call_api({
97
97
  'model_name' => @@name,
98
- 'method_name' => 'push_to_metafield',
98
+ 'method_name' => 'pull_from_metafield',
99
99
  'http_method' => 'POST',
100
- 'path' => '/v1/vendors/{vendorId}/meta/{field}/push',
100
+ 'path' => '/v1/vendors/{vendorId}/meta/{field}/pull',
101
101
  'params' => ['vendorId', 'field', ],
102
102
  'args' => args
103
103
  })
File without changes