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