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