clayful 2.4.1 → 2.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/models/brand.rb +40 -40
- data/lib/models/cart.rb +85 -85
- data/lib/models/catalog.rb +40 -40
- data/lib/models/collection.rb +40 -40
- data/lib/models/country.rb +11 -11
- data/lib/models/coupon.rb +68 -16
- data/lib/models/currency.rb +11 -11
- data/lib/models/customer.rb +153 -153
- data/lib/models/discount.rb +20 -20
- data/lib/models/downloadable.rb +14 -14
- data/lib/models/group.rb +20 -20
- data/lib/models/image.rb +72 -72
- data/lib/models/order.rb +255 -255
- data/lib/models/order_tag.rb +11 -11
- data/lib/models/payment_method.rb +11 -11
- data/lib/models/product.rb +92 -79
- data/lib/models/review.rb +104 -104
- data/lib/models/review_comment.rb +68 -68
- data/lib/models/shipping_method.rb +11 -11
- data/lib/models/shipping_policy.rb +11 -11
- data/lib/models/store.rb +14 -14
- data/lib/models/subscription.rb +112 -112
- data/lib/models/subscription_plan.rb +11 -11
- data/lib/models/tax_category.rb +11 -11
- data/lib/models/vendor.rb +40 -40
- data/lib/models/wish_list.rb +116 -116
- metadata +2 -2
data/lib/models/currency.rb
CHANGED
@@ -13,40 +13,40 @@ module Clayful
|
|
13
13
|
@@path
|
14
14
|
end
|
15
15
|
|
16
|
-
def self.
|
16
|
+
def self.count(*args)
|
17
17
|
|
18
18
|
Clayful.call_api({
|
19
19
|
'model_name' => @@name,
|
20
|
-
'method_name' => '
|
20
|
+
'method_name' => 'count',
|
21
21
|
'http_method' => 'GET',
|
22
|
-
'path' => '/v1/currencies',
|
22
|
+
'path' => '/v1/currencies/count',
|
23
23
|
'params' => [],
|
24
24
|
'args' => args
|
25
25
|
})
|
26
26
|
|
27
27
|
end
|
28
28
|
|
29
|
-
def self.
|
29
|
+
def self.get(*args)
|
30
30
|
|
31
31
|
Clayful.call_api({
|
32
32
|
'model_name' => @@name,
|
33
|
-
'method_name' => '
|
33
|
+
'method_name' => 'get',
|
34
34
|
'http_method' => 'GET',
|
35
|
-
'path' => '/v1/currencies/
|
36
|
-
'params' => [],
|
35
|
+
'path' => '/v1/currencies/{currencyId}',
|
36
|
+
'params' => ['currencyId', ],
|
37
37
|
'args' => args
|
38
38
|
})
|
39
39
|
|
40
40
|
end
|
41
41
|
|
42
|
-
def self.
|
42
|
+
def self.list(*args)
|
43
43
|
|
44
44
|
Clayful.call_api({
|
45
45
|
'model_name' => @@name,
|
46
|
-
'method_name' => '
|
46
|
+
'method_name' => 'list',
|
47
47
|
'http_method' => 'GET',
|
48
|
-
'path' => '/v1/currencies
|
49
|
-
'params' => [
|
48
|
+
'path' => '/v1/currencies',
|
49
|
+
'params' => [],
|
50
50
|
'args' => args
|
51
51
|
})
|
52
52
|
|
data/lib/models/customer.rb
CHANGED
@@ -13,40 +13,40 @@ module Clayful
|
|
13
13
|
@@path
|
14
14
|
end
|
15
15
|
|
16
|
-
def self.
|
16
|
+
def self.add_coupon(*args)
|
17
17
|
|
18
18
|
Clayful.call_api({
|
19
19
|
'model_name' => @@name,
|
20
|
-
'method_name' => '
|
21
|
-
'http_method' => '
|
22
|
-
'path' => '/v1/customers',
|
23
|
-
'params' => [],
|
20
|
+
'method_name' => 'add_coupon',
|
21
|
+
'http_method' => 'POST',
|
22
|
+
'path' => '/v1/customers/{customerId}/coupons',
|
23
|
+
'params' => ['customerId', ],
|
24
24
|
'args' => args
|
25
25
|
})
|
26
26
|
|
27
27
|
end
|
28
28
|
|
29
|
-
def self.
|
29
|
+
def self.authenticate(*args)
|
30
30
|
|
31
31
|
Clayful.call_api({
|
32
32
|
'model_name' => @@name,
|
33
|
-
'method_name' => '
|
34
|
-
'http_method' => '
|
35
|
-
'path' => '/v1/
|
33
|
+
'method_name' => 'authenticate',
|
34
|
+
'http_method' => 'POST',
|
35
|
+
'path' => '/v1/customers/auth',
|
36
36
|
'params' => [],
|
37
37
|
'args' => args
|
38
38
|
})
|
39
39
|
|
40
40
|
end
|
41
41
|
|
42
|
-
def self.
|
42
|
+
def self.authenticate_by_3rd_party(*args)
|
43
43
|
|
44
44
|
Clayful.call_api({
|
45
45
|
'model_name' => @@name,
|
46
|
-
'method_name' => '
|
47
|
-
'http_method' => '
|
48
|
-
'path' => '/v1/customers/auth',
|
49
|
-
'params' => [],
|
46
|
+
'method_name' => 'authenticate_by_3rd_party',
|
47
|
+
'http_method' => 'POST',
|
48
|
+
'path' => '/v1/customers/auth/{vendor}',
|
49
|
+
'params' => ['vendor', ],
|
50
50
|
'args' => args
|
51
51
|
})
|
52
52
|
|
@@ -65,142 +65,155 @@ module Clayful
|
|
65
65
|
|
66
66
|
end
|
67
67
|
|
68
|
-
def self.
|
68
|
+
def self.count_coupons(*args)
|
69
69
|
|
70
70
|
Clayful.call_api({
|
71
71
|
'model_name' => @@name,
|
72
|
-
'method_name' => '
|
72
|
+
'method_name' => 'count_coupons',
|
73
73
|
'http_method' => 'GET',
|
74
|
-
'path' => '/v1/customers/{customerId}',
|
74
|
+
'path' => '/v1/customers/{customerId}/coupons/count',
|
75
75
|
'params' => ['customerId', ],
|
76
76
|
'args' => args
|
77
77
|
})
|
78
78
|
|
79
79
|
end
|
80
80
|
|
81
|
-
def self.
|
81
|
+
def self.count_coupons_for_me(*args)
|
82
82
|
|
83
83
|
Clayful.call_api({
|
84
84
|
'model_name' => @@name,
|
85
|
-
'method_name' => '
|
85
|
+
'method_name' => 'count_coupons_for_me',
|
86
86
|
'http_method' => 'GET',
|
87
|
-
'path' => '/v1/me/coupons',
|
87
|
+
'path' => '/v1/me/coupons/count',
|
88
88
|
'params' => [],
|
89
89
|
'args' => args
|
90
90
|
})
|
91
91
|
|
92
92
|
end
|
93
93
|
|
94
|
-
def self.
|
94
|
+
def self.create(*args)
|
95
95
|
|
96
96
|
Clayful.call_api({
|
97
97
|
'model_name' => @@name,
|
98
|
-
'method_name' => '
|
99
|
-
'http_method' => '
|
100
|
-
'path' => '/v1/customers
|
101
|
-
'params' => [
|
98
|
+
'method_name' => 'create',
|
99
|
+
'http_method' => 'POST',
|
100
|
+
'path' => '/v1/customers',
|
101
|
+
'params' => [],
|
102
102
|
'args' => args
|
103
103
|
})
|
104
104
|
|
105
105
|
end
|
106
106
|
|
107
|
-
def self.
|
107
|
+
def self.create_me(*args)
|
108
108
|
|
109
109
|
Clayful.call_api({
|
110
110
|
'model_name' => @@name,
|
111
|
-
'method_name' => '
|
112
|
-
'http_method' => '
|
113
|
-
'path' => '/v1/me
|
111
|
+
'method_name' => 'create_me',
|
112
|
+
'http_method' => 'POST',
|
113
|
+
'path' => '/v1/me',
|
114
114
|
'params' => [],
|
115
115
|
'args' => args
|
116
116
|
})
|
117
117
|
|
118
118
|
end
|
119
119
|
|
120
|
-
def self.
|
120
|
+
def self.create_verification(*args)
|
121
121
|
|
122
122
|
Clayful.call_api({
|
123
123
|
'model_name' => @@name,
|
124
|
-
'method_name' => '
|
125
|
-
'http_method' => '
|
126
|
-
'path' => '/v1/customers/
|
124
|
+
'method_name' => 'create_verification',
|
125
|
+
'http_method' => 'POST',
|
126
|
+
'path' => '/v1/customers/verifications',
|
127
|
+
'params' => [],
|
128
|
+
'args' => args
|
129
|
+
})
|
130
|
+
|
131
|
+
end
|
132
|
+
|
133
|
+
def self.delete(*args)
|
134
|
+
|
135
|
+
Clayful.call_api({
|
136
|
+
'model_name' => @@name,
|
137
|
+
'method_name' => 'delete',
|
138
|
+
'http_method' => 'DELETE',
|
139
|
+
'path' => '/v1/customers/{customerId}',
|
127
140
|
'params' => ['customerId', ],
|
128
141
|
'args' => args
|
129
142
|
})
|
130
143
|
|
131
144
|
end
|
132
145
|
|
133
|
-
def self.
|
146
|
+
def self.delete_coupon(*args)
|
134
147
|
|
135
148
|
Clayful.call_api({
|
136
149
|
'model_name' => @@name,
|
137
|
-
'method_name' => '
|
138
|
-
'http_method' => '
|
139
|
-
'path' => '/v1/{
|
140
|
-
'params' => ['
|
150
|
+
'method_name' => 'delete_coupon',
|
151
|
+
'http_method' => 'DELETE',
|
152
|
+
'path' => '/v1/customers/{customerId}/coupons/{couponId}',
|
153
|
+
'params' => ['customerId', 'couponId', ],
|
141
154
|
'args' => args
|
142
155
|
})
|
143
156
|
|
144
157
|
end
|
145
158
|
|
146
|
-
def self.
|
159
|
+
def self.delete_coupon_for_me(*args)
|
147
160
|
|
148
161
|
Clayful.call_api({
|
149
162
|
'model_name' => @@name,
|
150
|
-
'method_name' => '
|
151
|
-
'http_method' => '
|
152
|
-
'path' => '/v1/
|
153
|
-
'params' => ['
|
163
|
+
'method_name' => 'delete_coupon_for_me',
|
164
|
+
'http_method' => 'DELETE',
|
165
|
+
'path' => '/v1/me/coupons/{couponId}',
|
166
|
+
'params' => ['couponId', ],
|
154
167
|
'args' => args
|
155
168
|
})
|
156
169
|
|
157
170
|
end
|
158
171
|
|
159
|
-
def self.
|
172
|
+
def self.delete_me(*args)
|
160
173
|
|
161
174
|
Clayful.call_api({
|
162
175
|
'model_name' => @@name,
|
163
|
-
'method_name' => '
|
164
|
-
'http_method' => '
|
165
|
-
'path' => '/v1/
|
166
|
-
'params' => [
|
176
|
+
'method_name' => 'delete_me',
|
177
|
+
'http_method' => 'DELETE',
|
178
|
+
'path' => '/v1/me',
|
179
|
+
'params' => [],
|
167
180
|
'args' => args
|
168
181
|
})
|
169
182
|
|
170
183
|
end
|
171
184
|
|
172
|
-
def self.
|
185
|
+
def self.delete_metafield(*args)
|
173
186
|
|
174
187
|
Clayful.call_api({
|
175
188
|
'model_name' => @@name,
|
176
|
-
'method_name' => '
|
177
|
-
'http_method' => '
|
178
|
-
'path' => '/v1/
|
179
|
-
'params' => ['
|
189
|
+
'method_name' => 'delete_metafield',
|
190
|
+
'http_method' => 'DELETE',
|
191
|
+
'path' => '/v1/customers/{customerId}/meta/{field}',
|
192
|
+
'params' => ['customerId', 'field', ],
|
180
193
|
'args' => args
|
181
194
|
})
|
182
195
|
|
183
196
|
end
|
184
197
|
|
185
|
-
def self.
|
198
|
+
def self.get(*args)
|
186
199
|
|
187
200
|
Clayful.call_api({
|
188
201
|
'model_name' => @@name,
|
189
|
-
'method_name' => '
|
190
|
-
'http_method' => '
|
191
|
-
'path' => '/v1/customers',
|
192
|
-
'params' => [],
|
202
|
+
'method_name' => 'get',
|
203
|
+
'http_method' => 'GET',
|
204
|
+
'path' => '/v1/customers/{customerId}',
|
205
|
+
'params' => ['customerId', ],
|
193
206
|
'args' => args
|
194
207
|
})
|
195
208
|
|
196
209
|
end
|
197
210
|
|
198
|
-
def self.
|
211
|
+
def self.get_me(*args)
|
199
212
|
|
200
213
|
Clayful.call_api({
|
201
214
|
'model_name' => @@name,
|
202
|
-
'method_name' => '
|
203
|
-
'http_method' => '
|
215
|
+
'method_name' => 'get_me',
|
216
|
+
'http_method' => 'GET',
|
204
217
|
'path' => '/v1/me',
|
205
218
|
'params' => [],
|
206
219
|
'args' => args
|
@@ -208,118 +221,118 @@ module Clayful
|
|
208
221
|
|
209
222
|
end
|
210
223
|
|
211
|
-
def self.
|
224
|
+
def self.increase_metafield(*args)
|
212
225
|
|
213
226
|
Clayful.call_api({
|
214
227
|
'model_name' => @@name,
|
215
|
-
'method_name' => '
|
228
|
+
'method_name' => 'increase_metafield',
|
216
229
|
'http_method' => 'POST',
|
217
|
-
'path' => '/v1/customers/
|
218
|
-
'params' => [],
|
230
|
+
'path' => '/v1/customers/{customerId}/meta/{field}/inc',
|
231
|
+
'params' => ['customerId', 'field', ],
|
219
232
|
'args' => args
|
220
233
|
})
|
221
234
|
|
222
235
|
end
|
223
236
|
|
224
|
-
def self.
|
237
|
+
def self.is_authenticated(*args)
|
225
238
|
|
226
239
|
Clayful.call_api({
|
227
240
|
'model_name' => @@name,
|
228
|
-
'method_name' => '
|
229
|
-
'http_method' => '
|
230
|
-
'path' => '/v1/customers/
|
241
|
+
'method_name' => 'is_authenticated',
|
242
|
+
'http_method' => 'GET',
|
243
|
+
'path' => '/v1/customers/auth',
|
231
244
|
'params' => [],
|
232
245
|
'args' => args
|
233
246
|
})
|
234
247
|
|
235
248
|
end
|
236
249
|
|
237
|
-
def self.
|
250
|
+
def self.list(*args)
|
238
251
|
|
239
252
|
Clayful.call_api({
|
240
253
|
'model_name' => @@name,
|
241
|
-
'method_name' => '
|
242
|
-
'http_method' => '
|
243
|
-
'path' => '/v1/customers
|
244
|
-
'params' => [
|
254
|
+
'method_name' => 'list',
|
255
|
+
'http_method' => 'GET',
|
256
|
+
'path' => '/v1/customers',
|
257
|
+
'params' => [],
|
245
258
|
'args' => args
|
246
259
|
})
|
247
260
|
|
248
261
|
end
|
249
262
|
|
250
|
-
def self.
|
263
|
+
def self.list_by_flag_votes(*args)
|
251
264
|
|
252
265
|
Clayful.call_api({
|
253
266
|
'model_name' => @@name,
|
254
|
-
'method_name' => '
|
255
|
-
'http_method' => '
|
256
|
-
'path' => '/v1/
|
257
|
-
'params' => [],
|
267
|
+
'method_name' => 'list_by_flag_votes',
|
268
|
+
'http_method' => 'GET',
|
269
|
+
'path' => '/v1/{voteModel}/{voteModelId}/flags/customers',
|
270
|
+
'params' => ['voteModel', 'voteModelId', ],
|
258
271
|
'args' => args
|
259
272
|
})
|
260
273
|
|
261
274
|
end
|
262
275
|
|
263
|
-
def self.
|
276
|
+
def self.list_by_flag_votes(*args)
|
264
277
|
|
265
278
|
Clayful.call_api({
|
266
279
|
'model_name' => @@name,
|
267
|
-
'method_name' => '
|
268
|
-
'http_method' => '
|
269
|
-
'path' => '/v1/
|
270
|
-
'params' => ['
|
280
|
+
'method_name' => 'list_by_flag_votes',
|
281
|
+
'http_method' => 'GET',
|
282
|
+
'path' => '/v1/{voteModel}/{voteModelId}/flags/customers',
|
283
|
+
'params' => ['voteModel', 'voteModelId', ],
|
271
284
|
'args' => args
|
272
285
|
})
|
273
286
|
|
274
287
|
end
|
275
288
|
|
276
|
-
def self.
|
289
|
+
def self.list_by_help_votes(*args)
|
277
290
|
|
278
291
|
Clayful.call_api({
|
279
292
|
'model_name' => @@name,
|
280
|
-
'method_name' => '
|
281
|
-
'http_method' => '
|
282
|
-
'path' => '/v1/
|
283
|
-
'params' => ['
|
293
|
+
'method_name' => 'list_by_help_votes',
|
294
|
+
'http_method' => 'GET',
|
295
|
+
'path' => '/v1/{voteModel}/{voteModelId}/helped/{upDown}/customers',
|
296
|
+
'params' => ['voteModel', 'voteModelId', 'upDown', ],
|
284
297
|
'args' => args
|
285
298
|
})
|
286
299
|
|
287
300
|
end
|
288
301
|
|
289
|
-
def self.
|
302
|
+
def self.list_by_help_votes(*args)
|
290
303
|
|
291
304
|
Clayful.call_api({
|
292
305
|
'model_name' => @@name,
|
293
|
-
'method_name' => '
|
294
|
-
'http_method' => '
|
295
|
-
'path' => '/v1/
|
296
|
-
'params' => ['
|
306
|
+
'method_name' => 'list_by_help_votes',
|
307
|
+
'http_method' => 'GET',
|
308
|
+
'path' => '/v1/{voteModel}/{voteModelId}/helped/{upDown}/customers',
|
309
|
+
'params' => ['voteModel', 'voteModelId', 'upDown', ],
|
297
310
|
'args' => args
|
298
311
|
})
|
299
312
|
|
300
313
|
end
|
301
314
|
|
302
|
-
def self.
|
315
|
+
def self.list_coupons(*args)
|
303
316
|
|
304
317
|
Clayful.call_api({
|
305
318
|
'model_name' => @@name,
|
306
|
-
'method_name' => '
|
307
|
-
'http_method' => '
|
308
|
-
'path' => '/v1/customers/
|
309
|
-
'params' => ['
|
319
|
+
'method_name' => 'list_coupons',
|
320
|
+
'http_method' => 'GET',
|
321
|
+
'path' => '/v1/customers/{customerId}/coupons',
|
322
|
+
'params' => ['customerId', ],
|
310
323
|
'args' => args
|
311
324
|
})
|
312
325
|
|
313
326
|
end
|
314
327
|
|
315
|
-
def self.
|
328
|
+
def self.list_coupons_for_me(*args)
|
316
329
|
|
317
330
|
Clayful.call_api({
|
318
331
|
'model_name' => @@name,
|
319
|
-
'method_name' => '
|
320
|
-
'http_method' => '
|
321
|
-
'path' => '/v1/
|
322
|
-
'params' => [
|
332
|
+
'method_name' => 'list_coupons_for_me',
|
333
|
+
'http_method' => 'GET',
|
334
|
+
'path' => '/v1/me/coupons',
|
335
|
+
'params' => [],
|
323
336
|
'args' => args
|
324
337
|
})
|
325
338
|
|
@@ -351,39 +364,39 @@ module Clayful
|
|
351
364
|
|
352
365
|
end
|
353
366
|
|
354
|
-
def self.
|
367
|
+
def self.recover_credential(*args)
|
355
368
|
|
356
369
|
Clayful.call_api({
|
357
370
|
'model_name' => @@name,
|
358
|
-
'method_name' => '
|
359
|
-
'http_method' => '
|
360
|
-
'path' => '/v1/
|
361
|
-
'params' => [],
|
371
|
+
'method_name' => 'recover_credential',
|
372
|
+
'http_method' => 'POST',
|
373
|
+
'path' => '/v1/customers/credentials/{credentialField}/recoveries/{recoveryMethod}',
|
374
|
+
'params' => ['credentialField', 'recoveryMethod', ],
|
362
375
|
'args' => args
|
363
376
|
})
|
364
377
|
|
365
378
|
end
|
366
379
|
|
367
|
-
def self.
|
380
|
+
def self.request_verification(*args)
|
368
381
|
|
369
382
|
Clayful.call_api({
|
370
383
|
'model_name' => @@name,
|
371
|
-
'method_name' => '
|
372
|
-
'http_method' => '
|
373
|
-
'path' => '/v1/customers/{
|
374
|
-
'params' => ['
|
384
|
+
'method_name' => 'request_verification',
|
385
|
+
'http_method' => 'POST',
|
386
|
+
'path' => '/v1/customers/verifications/{channelSlug}',
|
387
|
+
'params' => ['channelSlug', ],
|
375
388
|
'args' => args
|
376
389
|
})
|
377
390
|
|
378
391
|
end
|
379
392
|
|
380
|
-
def self.
|
393
|
+
def self.request_verification_email(*args)
|
381
394
|
|
382
395
|
Clayful.call_api({
|
383
396
|
'model_name' => @@name,
|
384
|
-
'method_name' => '
|
385
|
-
'http_method' => '
|
386
|
-
'path' => '/v1/
|
397
|
+
'method_name' => 'request_verification_email',
|
398
|
+
'http_method' => 'POST',
|
399
|
+
'path' => '/v1/customers/verifications/emails',
|
387
400
|
'params' => [],
|
388
401
|
'args' => args
|
389
402
|
})
|
@@ -403,79 +416,66 @@ module Clayful
|
|
403
416
|
|
404
417
|
end
|
405
418
|
|
406
|
-
def self.
|
419
|
+
def self.update(*args)
|
407
420
|
|
408
421
|
Clayful.call_api({
|
409
422
|
'model_name' => @@name,
|
410
|
-
'method_name' => '
|
423
|
+
'method_name' => 'update',
|
411
424
|
'http_method' => 'PUT',
|
412
|
-
'path' => '/v1/customers/{customerId}
|
425
|
+
'path' => '/v1/customers/{customerId}',
|
413
426
|
'params' => ['customerId', ],
|
414
427
|
'args' => args
|
415
428
|
})
|
416
429
|
|
417
430
|
end
|
418
431
|
|
419
|
-
def self.
|
420
|
-
|
421
|
-
Clayful.call_api({
|
422
|
-
'model_name' => @@name,
|
423
|
-
'method_name' => 'delete_me',
|
424
|
-
'http_method' => 'DELETE',
|
425
|
-
'path' => '/v1/me',
|
426
|
-
'params' => [],
|
427
|
-
'args' => args
|
428
|
-
})
|
429
|
-
|
430
|
-
end
|
431
|
-
|
432
|
-
def self.delete(*args)
|
432
|
+
def self.update_credentials(*args)
|
433
433
|
|
434
434
|
Clayful.call_api({
|
435
435
|
'model_name' => @@name,
|
436
|
-
'method_name' => '
|
437
|
-
'http_method' => '
|
438
|
-
'path' => '/v1/customers/{customerId}',
|
436
|
+
'method_name' => 'update_credentials',
|
437
|
+
'http_method' => 'PUT',
|
438
|
+
'path' => '/v1/customers/{customerId}/credentials',
|
439
439
|
'params' => ['customerId', ],
|
440
440
|
'args' => args
|
441
441
|
})
|
442
442
|
|
443
443
|
end
|
444
444
|
|
445
|
-
def self.
|
445
|
+
def self.update_credentials_for_me(*args)
|
446
446
|
|
447
447
|
Clayful.call_api({
|
448
448
|
'model_name' => @@name,
|
449
|
-
'method_name' => '
|
450
|
-
'http_method' => '
|
451
|
-
'path' => '/v1/me/
|
452
|
-
'params' => [
|
449
|
+
'method_name' => 'update_credentials_for_me',
|
450
|
+
'http_method' => 'PUT',
|
451
|
+
'path' => '/v1/me/credentials',
|
452
|
+
'params' => [],
|
453
453
|
'args' => args
|
454
454
|
})
|
455
455
|
|
456
456
|
end
|
457
457
|
|
458
|
-
def self.
|
458
|
+
def self.update_me(*args)
|
459
459
|
|
460
460
|
Clayful.call_api({
|
461
461
|
'model_name' => @@name,
|
462
|
-
'method_name' => '
|
463
|
-
'http_method' => '
|
464
|
-
'path' => '/v1/
|
465
|
-
'params' => [
|
462
|
+
'method_name' => 'update_me',
|
463
|
+
'http_method' => 'PUT',
|
464
|
+
'path' => '/v1/me',
|
465
|
+
'params' => [],
|
466
466
|
'args' => args
|
467
467
|
})
|
468
468
|
|
469
469
|
end
|
470
470
|
|
471
|
-
def self.
|
471
|
+
def self.verify(*args)
|
472
472
|
|
473
473
|
Clayful.call_api({
|
474
474
|
'model_name' => @@name,
|
475
|
-
'method_name' => '
|
476
|
-
'http_method' => '
|
477
|
-
'path' => '/v1/customers/{customerId}/
|
478
|
-
'params' => ['customerId',
|
475
|
+
'method_name' => 'verify',
|
476
|
+
'http_method' => 'POST',
|
477
|
+
'path' => '/v1/customers/{customerId}/verified',
|
478
|
+
'params' => ['customerId', ],
|
479
479
|
'args' => args
|
480
480
|
})
|
481
481
|
|