clayful 2.2.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({
@@ -91,32 +78,71 @@ module Clayful
91
78
 
92
79
  end
93
80
 
94
- def self.pull_from_metafield(*args)
81
+ def self.delete(*args)
95
82
 
96
83
  Clayful.call_api({
97
84
  'model_name' => @@name,
98
- 'method_name' => 'pull_from_metafield',
99
- 'http_method' => 'POST',
100
- 'path' => '/v1/products/{productId}/meta/{field}/pull',
101
- 'params' => ['productId', 'field', ],
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.push_to_metafield(*args)
94
+ def self.delete_metafield(*args)
108
95
 
109
96
  Clayful.call_api({
110
97
  'model_name' => @@name,
111
- 'method_name' => 'push_to_metafield',
112
- 'http_method' => 'POST',
113
- 'path' => '/v1/products/{productId}/meta/{field}/push',
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
 
107
+ def self.delete_variant(*args)
108
+
109
+ Clayful.call_api({
110
+ 'model_name' => @@name,
111
+ 'method_name' => 'delete_variant',
112
+ 'http_method' => 'DELETE',
113
+ 'path' => '/v1/products/{productId}/variants/{variantId}',
114
+ 'params' => ['productId', 'variantId', ],
115
+ 'args' => args
116
+ })
117
+
118
+ end
119
+
120
+ def self.delete_variation(*args)
121
+
122
+ Clayful.call_api({
123
+ 'model_name' => @@name,
124
+ 'method_name' => 'delete_variation',
125
+ 'http_method' => 'DELETE',
126
+ 'path' => '/v1/products/{productId}/options/{optionId}/variations/{variationId}',
127
+ 'params' => ['productId', 'optionId', 'variationId', ],
128
+ 'args' => args
129
+ })
130
+
131
+ end
132
+
133
+ def self.get(*args)
134
+
135
+ Clayful.call_api({
136
+ 'model_name' => @@name,
137
+ 'method_name' => 'get',
138
+ 'http_method' => 'GET',
139
+ 'path' => '/v1/products/{productId}',
140
+ 'params' => ['productId', ],
141
+ 'args' => args
142
+ })
143
+
144
+ end
145
+
120
146
  def self.increase_metafield(*args)
121
147
 
122
148
  Clayful.call_api({
@@ -130,64 +156,77 @@ module Clayful
130
156
 
131
157
  end
132
158
 
133
- def self.update(*args)
159
+ def self.list(*args)
134
160
 
135
161
  Clayful.call_api({
136
162
  'model_name' => @@name,
137
- 'method_name' => 'update',
138
- 'http_method' => 'PUT',
139
- 'path' => '/v1/products/{productId}',
163
+ 'method_name' => 'list',
164
+ 'http_method' => 'GET',
165
+ 'path' => '/v1/products',
166
+ 'params' => [],
167
+ 'args' => args
168
+ })
169
+
170
+ end
171
+
172
+ def self.mark_as_censored(*args)
173
+
174
+ Clayful.call_api({
175
+ 'model_name' => @@name,
176
+ 'method_name' => 'mark_as_censored',
177
+ 'http_method' => 'POST',
178
+ 'path' => '/v1/products/{productId}/censored',
140
179
  'params' => ['productId', ],
141
180
  'args' => args
142
181
  })
143
182
 
144
183
  end
145
184
 
146
- def self.update_option(*args)
185
+ def self.mark_as_uncensored(*args)
147
186
 
148
187
  Clayful.call_api({
149
188
  'model_name' => @@name,
150
- 'method_name' => 'update_option',
151
- 'http_method' => 'PUT',
152
- 'path' => '/v1/products/{productId}/options/{optionId}',
153
- 'params' => ['productId', 'optionId', ],
189
+ 'method_name' => 'mark_as_uncensored',
190
+ 'http_method' => 'DELETE',
191
+ 'path' => '/v1/products/{productId}/censored',
192
+ 'params' => ['productId', ],
154
193
  'args' => args
155
194
  })
156
195
 
157
196
  end
158
197
 
159
- def self.update_variant(*args)
198
+ def self.pull_from_metafield(*args)
160
199
 
161
200
  Clayful.call_api({
162
201
  'model_name' => @@name,
163
- 'method_name' => 'update_variant',
164
- 'http_method' => 'PUT',
165
- 'path' => '/v1/products/{productId}/variants/{variantId}',
166
- 'params' => ['productId', 'variantId', ],
202
+ 'method_name' => 'pull_from_metafield',
203
+ 'http_method' => 'POST',
204
+ 'path' => '/v1/products/{productId}/meta/{field}/pull',
205
+ 'params' => ['productId', 'field', ],
167
206
  'args' => args
168
207
  })
169
208
 
170
209
  end
171
210
 
172
- def self.update_variation(*args)
211
+ def self.push_to_metafield(*args)
173
212
 
174
213
  Clayful.call_api({
175
214
  'model_name' => @@name,
176
- 'method_name' => 'update_variation',
177
- 'http_method' => 'PUT',
178
- 'path' => '/v1/products/{productId}/options/{optionId}/variations/{variationId}',
179
- 'params' => ['productId', 'optionId', 'variationId', ],
215
+ 'method_name' => 'push_to_metafield',
216
+ 'http_method' => 'POST',
217
+ 'path' => '/v1/products/{productId}/meta/{field}/push',
218
+ 'params' => ['productId', 'field', ],
180
219
  'args' => args
181
220
  })
182
221
 
183
222
  end
184
223
 
185
- def self.delete(*args)
224
+ def self.update(*args)
186
225
 
187
226
  Clayful.call_api({
188
227
  'model_name' => @@name,
189
- 'method_name' => 'delete',
190
- 'http_method' => 'DELETE',
228
+ 'method_name' => 'update',
229
+ 'http_method' => 'PUT',
191
230
  'path' => '/v1/products/{productId}',
192
231
  'params' => ['productId', ],
193
232
  'args' => args
@@ -195,25 +234,25 @@ module Clayful
195
234
 
196
235
  end
197
236
 
198
- def self.delete_metafield(*args)
237
+ def self.update_option(*args)
199
238
 
200
239
  Clayful.call_api({
201
240
  'model_name' => @@name,
202
- 'method_name' => 'delete_metafield',
203
- 'http_method' => 'DELETE',
204
- 'path' => '/v1/products/{productId}/meta/{field}',
205
- 'params' => ['productId', 'field', ],
241
+ 'method_name' => 'update_option',
242
+ 'http_method' => 'PUT',
243
+ 'path' => '/v1/products/{productId}/options/{optionId}',
244
+ 'params' => ['productId', 'optionId', ],
206
245
  'args' => args
207
246
  })
208
247
 
209
248
  end
210
249
 
211
- def self.delete_variant(*args)
250
+ def self.update_variant(*args)
212
251
 
213
252
  Clayful.call_api({
214
253
  'model_name' => @@name,
215
- 'method_name' => 'delete_variant',
216
- 'http_method' => 'DELETE',
254
+ 'method_name' => 'update_variant',
255
+ 'http_method' => 'PUT',
217
256
  'path' => '/v1/products/{productId}/variants/{variantId}',
218
257
  'params' => ['productId', 'variantId', ],
219
258
  'args' => args
@@ -221,12 +260,12 @@ module Clayful
221
260
 
222
261
  end
223
262
 
224
- def self.delete_variation(*args)
263
+ def self.update_variation(*args)
225
264
 
226
265
  Clayful.call_api({
227
266
  'model_name' => @@name,
228
- 'method_name' => 'delete_variation',
229
- 'http_method' => 'DELETE',
267
+ 'method_name' => 'update_variation',
268
+ 'http_method' => 'PUT',
230
269
  'path' => '/v1/products/{productId}/options/{optionId}/variations/{variationId}',
231
270
  'params' => ['productId', 'optionId', 'variationId', ],
232
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.increase_metafield(*args)
172
+ def self.flag_for_me(*args)
175
173
 
176
174
  Clayful.call_api({
177
175
  'model_name' => @@name,
178
- 'method_name' => 'increase_metafield',
176
+ 'method_name' => 'flag_for_me',
179
177
  'http_method' => 'POST',
180
- 'path' => '/v1/products/reviews/{reviewId}/meta/{field}/inc',
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.push_to_metafield(*args)
186
+ def self.get(*args)
188
187
 
189
188
  Clayful.call_api({
190
189
  'model_name' => @@name,
191
- 'method_name' => 'push_to_metafield',
192
- 'http_method' => 'POST',
193
- 'path' => '/v1/products/reviews/{reviewId}/meta/{field}/push',
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.pull_from_metafield(*args)
199
+ def self.get_published(*args)
201
200
 
202
201
  Clayful.call_api({
203
202
  'model_name' => @@name,
204
- 'method_name' => 'pull_from_metafield',
205
- 'http_method' => 'POST',
206
- 'path' => '/v1/products/reviews/{reviewId}/meta/{field}/pull',
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.delete_metafield(*args)
278
+ def self.pull_from_metafield(*args)
279
279
 
280
280
  Clayful.call_api({
281
281
  'model_name' => @@name,
282
- 'method_name' => 'delete_metafield',
283
- 'http_method' => 'DELETE',
284
- 'path' => '/v1/products/reviews/{reviewId}/meta/{field}',
282
+ 'method_name' => 'pull_from_metafield',
283
+ 'http_method' => 'POST',
284
+ 'path' => '/v1/products/reviews/{reviewId}/meta/{field}/pull',
285
285
  'params' => ['reviewId', 'field', ],
286
286
  'args' => args
287
287
  })
288
288
 
289
289
  end
290
290
 
291
- def self.cancel_flag(*args)
291
+ def self.push_to_metafield(*args)
292
292
 
293
293
  Clayful.call_api({
294
294
  'model_name' => @@name,
295
- 'method_name' => 'cancel_flag',
296
- 'http_method' => 'DELETE',
297
- 'path' => '/v1/products/reviews/{reviewId}/flags/{customerId}',
298
- 'params' => ['reviewId', 'customerId', ],
295
+ 'method_name' => 'push_to_metafield',
296
+ 'http_method' => 'POST',
297
+ 'path' => '/v1/products/reviews/{reviewId}/meta/{field}/push',
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