clayful 2.4.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.
@@ -91,39 +91,39 @@ module Clayful
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',
101
- 'params' => ['productId', 'field', ],
100
+ 'path' => '/v1/products/{productId}/options/{optionId}/variations',
101
+ 'params' => ['productId', 'optionId', ],
102
102
  'args' => args
103
103
  })
104
104
 
105
105
  end
106
106
 
107
- def self.create_variation(*args)
107
+ def self.increase_metafield(*args)
108
108
 
109
109
  Clayful.call_api({
110
110
  'model_name' => @@name,
111
- 'method_name' => 'create_variation',
111
+ 'method_name' => 'increase_metafield',
112
112
  'http_method' => 'POST',
113
- 'path' => '/v1/products/{productId}/options/{optionId}/variations',
114
- 'params' => ['productId', 'optionId', ],
113
+ 'path' => '/v1/products/{productId}/meta/{field}/inc',
114
+ 'params' => ['productId', 'field', ],
115
115
  'args' => args
116
116
  })
117
117
 
118
118
  end
119
119
 
120
- def self.increase_metafield(*args)
120
+ def self.pull_from_metafield(*args)
121
121
 
122
122
  Clayful.call_api({
123
123
  'model_name' => @@name,
124
- 'method_name' => 'increase_metafield',
124
+ 'method_name' => 'pull_from_metafield',
125
125
  'http_method' => 'POST',
126
- 'path' => '/v1/products/{productId}/meta/{field}/inc',
126
+ 'path' => '/v1/products/{productId}/meta/{field}/pull',
127
127
  'params' => ['productId', 'field', ],
128
128
  'args' => args
129
129
  })
@@ -221,27 +221,27 @@ module Clayful
221
221
 
222
222
  end
223
223
 
224
- def self.delete_metafield(*args)
224
+ def self.delete_variant(*args)
225
225
 
226
226
  Clayful.call_api({
227
227
  'model_name' => @@name,
228
- 'method_name' => 'delete_metafield',
228
+ 'method_name' => 'delete_variant',
229
229
  'http_method' => 'DELETE',
230
- 'path' => '/v1/products/{productId}/meta/{field}',
231
- 'params' => ['productId', 'field', ],
230
+ 'path' => '/v1/products/{productId}/variants/{variantId}',
231
+ 'params' => ['productId', 'variantId', ],
232
232
  'args' => args
233
233
  })
234
234
 
235
235
  end
236
236
 
237
- def self.delete_variant(*args)
237
+ def self.delete_metafield(*args)
238
238
 
239
239
  Clayful.call_api({
240
240
  'model_name' => @@name,
241
- 'method_name' => 'delete_variant',
241
+ 'method_name' => 'delete_metafield',
242
242
  'http_method' => 'DELETE',
243
- 'path' => '/v1/products/{productId}/variants/{variantId}',
244
- 'params' => ['productId', 'variantId', ],
243
+ 'path' => '/v1/products/{productId}/meta/{field}',
244
+ 'params' => ['productId', 'field', ],
245
245
  'args' => args
246
246
  })
247
247
 
@@ -171,39 +171,39 @@ module Clayful
171
171
 
172
172
  end
173
173
 
174
- def self.push_to_metafield(*args)
174
+ def self.pull_from_metafield(*args)
175
175
 
176
176
  Clayful.call_api({
177
177
  'model_name' => @@name,
178
- 'method_name' => 'push_to_metafield',
178
+ 'method_name' => 'pull_from_metafield',
179
179
  'http_method' => 'POST',
180
- 'path' => '/v1/products/reviews/{reviewId}/meta/{field}/push',
180
+ 'path' => '/v1/products/reviews/{reviewId}/meta/{field}/pull',
181
181
  'params' => ['reviewId', 'field', ],
182
182
  'args' => args
183
183
  })
184
184
 
185
185
  end
186
186
 
187
- def self.pull_from_metafield(*args)
187
+ def self.increase_metafield(*args)
188
188
 
189
189
  Clayful.call_api({
190
190
  'model_name' => @@name,
191
- 'method_name' => 'pull_from_metafield',
191
+ 'method_name' => 'increase_metafield',
192
192
  'http_method' => 'POST',
193
- 'path' => '/v1/products/reviews/{reviewId}/meta/{field}/pull',
193
+ 'path' => '/v1/products/reviews/{reviewId}/meta/{field}/inc',
194
194
  'params' => ['reviewId', 'field', ],
195
195
  'args' => args
196
196
  })
197
197
 
198
198
  end
199
199
 
200
- def self.increase_metafield(*args)
200
+ def self.push_to_metafield(*args)
201
201
 
202
202
  Clayful.call_api({
203
203
  'model_name' => @@name,
204
- 'method_name' => 'increase_metafield',
204
+ 'method_name' => 'push_to_metafield',
205
205
  'http_method' => 'POST',
206
- 'path' => '/v1/products/reviews/{reviewId}/meta/{field}/inc',
206
+ 'path' => '/v1/products/reviews/{reviewId}/meta/{field}/push',
207
207
  'params' => ['reviewId', 'field', ],
208
208
  'args' => args
209
209
  })
@@ -275,27 +275,27 @@ module Clayful
275
275
 
276
276
  end
277
277
 
278
- def self.delete_metafield(*args)
278
+ def self.cancel_flag(*args)
279
279
 
280
280
  Clayful.call_api({
281
281
  'model_name' => @@name,
282
- 'method_name' => 'delete_metafield',
282
+ 'method_name' => 'cancel_flag',
283
283
  'http_method' => 'DELETE',
284
- 'path' => '/v1/products/reviews/{reviewId}/meta/{field}',
285
- 'params' => ['reviewId', 'field', ],
284
+ 'path' => '/v1/products/reviews/{reviewId}/flags/{customerId}',
285
+ 'params' => ['reviewId', 'customerId', ],
286
286
  'args' => args
287
287
  })
288
288
 
289
289
  end
290
290
 
291
- def self.cancel_flag(*args)
291
+ def self.delete_metafield(*args)
292
292
 
293
293
  Clayful.call_api({
294
294
  'model_name' => @@name,
295
- 'method_name' => 'cancel_flag',
295
+ 'method_name' => 'delete_metafield',
296
296
  'http_method' => 'DELETE',
297
- 'path' => '/v1/products/reviews/{reviewId}/flags/{customerId}',
298
- 'params' => ['reviewId', 'customerId', ],
297
+ 'path' => '/v1/products/reviews/{reviewId}/meta/{field}',
298
+ 'params' => ['reviewId', 'field', ],
299
299
  'args' => args
300
300
  })
301
301
 
@@ -26,39 +26,39 @@ module Clayful
26
26
 
27
27
  end
28
28
 
29
- def self.increase_metafield(*args)
29
+ def self.push_to_metafield(*args)
30
30
 
31
31
  Clayful.call_api({
32
32
  'model_name' => @@name,
33
- 'method_name' => 'increase_metafield',
33
+ 'method_name' => 'push_to_metafield',
34
34
  'http_method' => 'POST',
35
- 'path' => '/v1/store/meta/{field}/inc',
35
+ 'path' => '/v1/store/meta/{field}/push',
36
36
  'params' => ['field', ],
37
37
  'args' => args
38
38
  })
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.push_to_metafield(*args)
55
+ def self.pull_from_metafield(*args)
56
56
 
57
57
  Clayful.call_api({
58
58
  'model_name' => @@name,
59
- 'method_name' => 'push_to_metafield',
59
+ 'method_name' => 'pull_from_metafield',
60
60
  'http_method' => 'POST',
61
- 'path' => '/v1/store/meta/{field}/push',
61
+ 'path' => '/v1/store/meta/{field}/pull',
62
62
  'params' => ['field', ],
63
63
  'args' => args
64
64
  })
@@ -104,27 +104,26 @@ module Clayful
104
104
 
105
105
  end
106
106
 
107
- def self.sync_inventory(*args)
107
+ def self.cancel(*args)
108
108
 
109
109
  Clayful.call_api({
110
110
  'model_name' => @@name,
111
- 'method_name' => 'sync_inventory',
111
+ 'method_name' => 'cancel',
112
112
  'http_method' => 'POST',
113
- 'path' => '/v1/subscriptions/{subscriptionId}/synced',
113
+ 'path' => '/v1/subscriptions/{subscriptionId}/cancellation',
114
114
  'params' => ['subscriptionId', ],
115
- 'without_payload' => true,
116
115
  'args' => args
117
116
  })
118
117
 
119
118
  end
120
119
 
121
- def self.mark_as_done(*args)
120
+ def self.sync_inventory(*args)
122
121
 
123
122
  Clayful.call_api({
124
123
  'model_name' => @@name,
125
- 'method_name' => 'mark_as_done',
124
+ 'method_name' => 'sync_inventory',
126
125
  'http_method' => 'POST',
127
- 'path' => '/v1/subscriptions/{subscriptionId}/done',
126
+ 'path' => '/v1/subscriptions/{subscriptionId}/synced',
128
127
  'params' => ['subscriptionId', ],
129
128
  'without_payload' => true,
130
129
  'args' => args
@@ -132,65 +131,66 @@ module Clayful
132
131
 
133
132
  end
134
133
 
135
- def self.authenticate(*args)
134
+ def self.mark_as_done(*args)
136
135
 
137
136
  Clayful.call_api({
138
137
  'model_name' => @@name,
139
- 'method_name' => 'authenticate',
138
+ 'method_name' => 'mark_as_done',
140
139
  'http_method' => 'POST',
141
- 'path' => '/v1/subscriptions/{subscriptionId}/auth',
140
+ 'path' => '/v1/subscriptions/{subscriptionId}/done',
142
141
  'params' => ['subscriptionId', ],
142
+ 'without_payload' => true,
143
143
  'args' => args
144
144
  })
145
145
 
146
146
  end
147
147
 
148
- def self.cancel(*args)
148
+ def self.schedule(*args)
149
149
 
150
150
  Clayful.call_api({
151
151
  'model_name' => @@name,
152
- 'method_name' => 'cancel',
152
+ 'method_name' => 'schedule',
153
153
  'http_method' => 'POST',
154
- 'path' => '/v1/subscriptions/{subscriptionId}/cancellation',
154
+ 'path' => '/v1/subscriptions/{subscriptionId}/scheduled',
155
155
  'params' => ['subscriptionId', ],
156
156
  'args' => args
157
157
  })
158
158
 
159
159
  end
160
160
 
161
- def self.schedule(*args)
161
+ def self.authenticate(*args)
162
162
 
163
163
  Clayful.call_api({
164
164
  'model_name' => @@name,
165
- 'method_name' => 'schedule',
165
+ 'method_name' => 'authenticate',
166
166
  'http_method' => 'POST',
167
- 'path' => '/v1/subscriptions/{subscriptionId}/scheduled',
167
+ 'path' => '/v1/subscriptions/{subscriptionId}/auth',
168
168
  'params' => ['subscriptionId', ],
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
  })
@@ -210,39 +210,39 @@ module Clayful
210
210
 
211
211
  end
212
212
 
213
- def self.pull_from_metafield(*args)
213
+ def self.push_to_metafield(*args)
214
214
 
215
215
  Clayful.call_api({
216
216
  'model_name' => @@name,
217
- 'method_name' => 'pull_from_metafield',
217
+ 'method_name' => 'push_to_metafield',
218
218
  'http_method' => 'POST',
219
- 'path' => '/v1/subscriptions/{subscriptionId}/meta/{field}/pull',
219
+ 'path' => '/v1/subscriptions/{subscriptionId}/meta/{field}/push',
220
220
  'params' => ['subscriptionId', 'field', ],
221
221
  'args' => args
222
222
  })
223
223
 
224
224
  end
225
225
 
226
- def self.push_to_metafield(*args)
226
+ def self.increase_metafield(*args)
227
227
 
228
228
  Clayful.call_api({
229
229
  'model_name' => @@name,
230
- 'method_name' => 'push_to_metafield',
230
+ 'method_name' => 'increase_metafield',
231
231
  'http_method' => 'POST',
232
- 'path' => '/v1/subscriptions/{subscriptionId}/meta/{field}/push',
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
  })
@@ -195,39 +195,39 @@ module Clayful
195
195
 
196
196
  end
197
197
 
198
- def self.increase_metafield(*args)
198
+ def self.push_to_metafield(*args)
199
199
 
200
200
  Clayful.call_api({
201
201
  'model_name' => @@name,
202
- 'method_name' => 'increase_metafield',
202
+ 'method_name' => 'push_to_metafield',
203
203
  'http_method' => 'POST',
204
- 'path' => '/v1/wishlists/{wishListId}/meta/{field}/inc',
204
+ 'path' => '/v1/wishlists/{wishListId}/meta/{field}/push',
205
205
  'params' => ['wishListId', 'field', ],
206
206
  'args' => args
207
207
  })
208
208
 
209
209
  end
210
210
 
211
- def self.push_to_metafield(*args)
211
+ def self.pull_from_metafield(*args)
212
212
 
213
213
  Clayful.call_api({
214
214
  'model_name' => @@name,
215
- 'method_name' => 'push_to_metafield',
215
+ 'method_name' => 'pull_from_metafield',
216
216
  'http_method' => 'POST',
217
- 'path' => '/v1/wishlists/{wishListId}/meta/{field}/push',
217
+ 'path' => '/v1/wishlists/{wishListId}/meta/{field}/pull',
218
218
  'params' => ['wishListId', 'field', ],
219
219
  'args' => args
220
220
  })
221
221
 
222
222
  end
223
223
 
224
- def self.pull_from_metafield(*args)
224
+ def self.increase_metafield(*args)
225
225
 
226
226
  Clayful.call_api({
227
227
  'model_name' => @@name,
228
- 'method_name' => 'pull_from_metafield',
228
+ 'method_name' => 'increase_metafield',
229
229
  'http_method' => 'POST',
230
- 'path' => '/v1/wishlists/{wishListId}/meta/{field}/pull',
230
+ 'path' => '/v1/wishlists/{wishListId}/meta/{field}/inc',
231
231
  'params' => ['wishListId', 'field', ],
232
232
  'args' => args
233
233
  })
@@ -312,27 +312,27 @@ module Clayful
312
312
 
313
313
  end
314
314
 
315
- def self.delete_metafield(*args)
315
+ def self.delete_item(*args)
316
316
 
317
317
  Clayful.call_api({
318
318
  'model_name' => @@name,
319
- 'method_name' => 'delete_metafield',
319
+ 'method_name' => 'delete_item',
320
320
  'http_method' => 'DELETE',
321
- 'path' => '/v1/wishlists/{wishListId}/meta/{field}',
322
- 'params' => ['wishListId', 'field', ],
321
+ 'path' => '/v1/wishlists/{wishListId}/items/{productId}',
322
+ 'params' => ['wishListId', 'productId', ],
323
323
  'args' => args
324
324
  })
325
325
 
326
326
  end
327
327
 
328
- def self.delete_item(*args)
328
+ def self.delete_metafield(*args)
329
329
 
330
330
  Clayful.call_api({
331
331
  'model_name' => @@name,
332
- 'method_name' => 'delete_item',
332
+ 'method_name' => 'delete_metafield',
333
333
  'http_method' => 'DELETE',
334
- 'path' => '/v1/wishlists/{wishListId}/items/{productId}',
335
- 'params' => ['wishListId', 'productId', ],
334
+ 'path' => '/v1/wishlists/{wishListId}/meta/{field}',
335
+ 'params' => ['wishListId', 'field', ],
336
336
  'args' => args
337
337
  })
338
338