clayful 2.4.1 → 2.5.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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/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.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/currencies/count',
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.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/currencies/{currencyId}',
49
- 'params' => ['currencyId', ],
48
+ 'path' => '/v1/currencies',
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.add_coupon(*args)
17
17
 
18
18
  Clayful.call_api({
19
19
  'model_name' => @@name,
20
- 'method_name' => 'list',
21
- 'http_method' => 'GET',
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.get_me(*args)
29
+ def self.authenticate(*args)
30
30
 
31
31
  Clayful.call_api({
32
32
  'model_name' => @@name,
33
- 'method_name' => 'get_me',
34
- 'http_method' => 'GET',
35
- 'path' => '/v1/me',
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.is_authenticated(*args)
42
+ def self.authenticate_by_3rd_party(*args)
43
43
 
44
44
  Clayful.call_api({
45
45
  'model_name' => @@name,
46
- 'method_name' => 'is_authenticated',
47
- 'http_method' => 'GET',
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.get(*args)
68
+ def self.count_coupons(*args)
69
69
 
70
70
  Clayful.call_api({
71
71
  'model_name' => @@name,
72
- 'method_name' => 'get',
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.list_coupons_for_me(*args)
81
+ def self.count_coupons_for_me(*args)
82
82
 
83
83
  Clayful.call_api({
84
84
  'model_name' => @@name,
85
- 'method_name' => 'list_coupons_for_me',
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.list_coupons(*args)
94
+ def self.create(*args)
95
95
 
96
96
  Clayful.call_api({
97
97
  'model_name' => @@name,
98
- 'method_name' => 'list_coupons',
99
- 'http_method' => 'GET',
100
- 'path' => '/v1/customers/{customerId}/coupons',
101
- 'params' => ['customerId', ],
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.count_coupons_for_me(*args)
107
+ def self.create_me(*args)
108
108
 
109
109
  Clayful.call_api({
110
110
  'model_name' => @@name,
111
- 'method_name' => 'count_coupons_for_me',
112
- 'http_method' => 'GET',
113
- 'path' => '/v1/me/coupons/count',
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.count_coupons(*args)
120
+ def self.create_verification(*args)
121
121
 
122
122
  Clayful.call_api({
123
123
  'model_name' => @@name,
124
- 'method_name' => 'count_coupons',
125
- 'http_method' => 'GET',
126
- 'path' => '/v1/customers/{customerId}/coupons/count',
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.list_by_flag_votes(*args)
146
+ def self.delete_coupon(*args)
134
147
 
135
148
  Clayful.call_api({
136
149
  'model_name' => @@name,
137
- 'method_name' => 'list_by_flag_votes',
138
- 'http_method' => 'GET',
139
- 'path' => '/v1/{voteModel}/{voteModelId}/flags/customers',
140
- 'params' => ['voteModel', 'voteModelId', ],
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.list_by_help_votes(*args)
159
+ def self.delete_coupon_for_me(*args)
147
160
 
148
161
  Clayful.call_api({
149
162
  'model_name' => @@name,
150
- 'method_name' => 'list_by_help_votes',
151
- 'http_method' => 'GET',
152
- 'path' => '/v1/{voteModel}/{voteModelId}/helped/{upDown}/customers',
153
- 'params' => ['voteModel', 'voteModelId', 'upDown', ],
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.list_by_flag_votes(*args)
172
+ def self.delete_me(*args)
160
173
 
161
174
  Clayful.call_api({
162
175
  'model_name' => @@name,
163
- 'method_name' => 'list_by_flag_votes',
164
- 'http_method' => 'GET',
165
- 'path' => '/v1/{voteModel}/{voteModelId}/flags/customers',
166
- 'params' => ['voteModel', 'voteModelId', ],
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.list_by_help_votes(*args)
185
+ def self.delete_metafield(*args)
173
186
 
174
187
  Clayful.call_api({
175
188
  'model_name' => @@name,
176
- 'method_name' => 'list_by_help_votes',
177
- 'http_method' => 'GET',
178
- 'path' => '/v1/{voteModel}/{voteModelId}/helped/{upDown}/customers',
179
- 'params' => ['voteModel', 'voteModelId', 'upDown', ],
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.create(*args)
198
+ def self.get(*args)
186
199
 
187
200
  Clayful.call_api({
188
201
  'model_name' => @@name,
189
- 'method_name' => 'create',
190
- 'http_method' => 'POST',
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.create_me(*args)
211
+ def self.get_me(*args)
199
212
 
200
213
  Clayful.call_api({
201
214
  'model_name' => @@name,
202
- 'method_name' => 'create_me',
203
- 'http_method' => 'POST',
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.authenticate(*args)
224
+ def self.increase_metafield(*args)
212
225
 
213
226
  Clayful.call_api({
214
227
  'model_name' => @@name,
215
- 'method_name' => 'authenticate',
228
+ 'method_name' => 'increase_metafield',
216
229
  'http_method' => 'POST',
217
- 'path' => '/v1/customers/auth',
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.create_verification(*args)
237
+ def self.is_authenticated(*args)
225
238
 
226
239
  Clayful.call_api({
227
240
  'model_name' => @@name,
228
- 'method_name' => 'create_verification',
229
- 'http_method' => 'POST',
230
- 'path' => '/v1/customers/verifications',
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.authenticate_by_3rd_party(*args)
250
+ def self.list(*args)
238
251
 
239
252
  Clayful.call_api({
240
253
  'model_name' => @@name,
241
- 'method_name' => 'authenticate_by_3rd_party',
242
- 'http_method' => 'POST',
243
- 'path' => '/v1/customers/auth/{vendor}',
244
- 'params' => ['vendor', ],
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.request_verification_email(*args)
263
+ def self.list_by_flag_votes(*args)
251
264
 
252
265
  Clayful.call_api({
253
266
  'model_name' => @@name,
254
- 'method_name' => 'request_verification_email',
255
- 'http_method' => 'POST',
256
- 'path' => '/v1/customers/verifications/emails',
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.request_verification(*args)
276
+ def self.list_by_flag_votes(*args)
264
277
 
265
278
  Clayful.call_api({
266
279
  'model_name' => @@name,
267
- 'method_name' => 'request_verification',
268
- 'http_method' => 'POST',
269
- 'path' => '/v1/customers/verifications/{channelSlug}',
270
- 'params' => ['channelSlug', ],
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.add_coupon(*args)
289
+ def self.list_by_help_votes(*args)
277
290
 
278
291
  Clayful.call_api({
279
292
  'model_name' => @@name,
280
- 'method_name' => 'add_coupon',
281
- 'http_method' => 'POST',
282
- 'path' => '/v1/customers/{customerId}/coupons',
283
- 'params' => ['customerId', ],
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.verify(*args)
302
+ def self.list_by_help_votes(*args)
290
303
 
291
304
  Clayful.call_api({
292
305
  'model_name' => @@name,
293
- 'method_name' => 'verify',
294
- 'http_method' => 'POST',
295
- 'path' => '/v1/customers/{customerId}/verified',
296
- 'params' => ['customerId', ],
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.recover_credential(*args)
315
+ def self.list_coupons(*args)
303
316
 
304
317
  Clayful.call_api({
305
318
  'model_name' => @@name,
306
- 'method_name' => 'recover_credential',
307
- 'http_method' => 'POST',
308
- 'path' => '/v1/customers/credentials/{credentialField}/recoveries/{recoveryMethod}',
309
- 'params' => ['credentialField', 'recoveryMethod', ],
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.increase_metafield(*args)
328
+ def self.list_coupons_for_me(*args)
316
329
 
317
330
  Clayful.call_api({
318
331
  'model_name' => @@name,
319
- 'method_name' => 'increase_metafield',
320
- 'http_method' => 'POST',
321
- 'path' => '/v1/customers/{customerId}/meta/{field}/inc',
322
- 'params' => ['customerId', 'field', ],
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.update_me(*args)
367
+ def self.recover_credential(*args)
355
368
 
356
369
  Clayful.call_api({
357
370
  'model_name' => @@name,
358
- 'method_name' => 'update_me',
359
- 'http_method' => 'PUT',
360
- 'path' => '/v1/me',
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.update(*args)
380
+ def self.request_verification(*args)
368
381
 
369
382
  Clayful.call_api({
370
383
  'model_name' => @@name,
371
- 'method_name' => 'update',
372
- 'http_method' => 'PUT',
373
- 'path' => '/v1/customers/{customerId}',
374
- 'params' => ['customerId', ],
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.update_credentials_for_me(*args)
393
+ def self.request_verification_email(*args)
381
394
 
382
395
  Clayful.call_api({
383
396
  'model_name' => @@name,
384
- 'method_name' => 'update_credentials_for_me',
385
- 'http_method' => 'PUT',
386
- 'path' => '/v1/me/credentials',
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.update_credentials(*args)
419
+ def self.update(*args)
407
420
 
408
421
  Clayful.call_api({
409
422
  'model_name' => @@name,
410
- 'method_name' => 'update_credentials',
423
+ 'method_name' => 'update',
411
424
  'http_method' => 'PUT',
412
- 'path' => '/v1/customers/{customerId}/credentials',
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.delete_me(*args)
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' => 'delete',
437
- 'http_method' => 'DELETE',
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.delete_coupon_for_me(*args)
445
+ def self.update_credentials_for_me(*args)
446
446
 
447
447
  Clayful.call_api({
448
448
  'model_name' => @@name,
449
- 'method_name' => 'delete_coupon_for_me',
450
- 'http_method' => 'DELETE',
451
- 'path' => '/v1/me/coupons/{couponId}',
452
- 'params' => ['couponId', ],
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.delete_coupon(*args)
458
+ def self.update_me(*args)
459
459
 
460
460
  Clayful.call_api({
461
461
  'model_name' => @@name,
462
- 'method_name' => 'delete_coupon',
463
- 'http_method' => 'DELETE',
464
- 'path' => '/v1/customers/{customerId}/coupons/{couponId}',
465
- 'params' => ['customerId', 'couponId', ],
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.delete_metafield(*args)
471
+ def self.verify(*args)
472
472
 
473
473
  Clayful.call_api({
474
474
  'model_name' => @@name,
475
- 'method_name' => 'delete_metafield',
476
- 'http_method' => 'DELETE',
477
- 'path' => '/v1/customers/{customerId}/meta/{field}',
478
- 'params' => ['customerId', 'field', ],
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