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 SubscriptionPlan
|
4
|
+
|
5
|
+
@@name = 'SubscriptionPlan'
|
6
|
+
@@path = 'subscriptions/plans'
|
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/subscriptions/plans',
|
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/subscriptions/plans/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/subscriptions/plans/{subscriptionPlanId}',
|
49
|
+
'params' => ['subscriptionPlanId', ],
|
50
|
+
'args' => args
|
51
|
+
})
|
52
|
+
|
53
|
+
end
|
54
|
+
|
55
|
+
end
|
56
|
+
|
57
|
+
end
|
@@ -0,0 +1,57 @@
|
|
1
|
+
module Clayful
|
2
|
+
|
3
|
+
class TaxCategory
|
4
|
+
|
5
|
+
@@name = 'TaxCategory'
|
6
|
+
@@path = 'taxes/categories'
|
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/taxes/categories',
|
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/taxes/categories/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/taxes/categories/{taxCategoryId}',
|
49
|
+
'params' => ['taxCategoryId', ],
|
50
|
+
'args' => args
|
51
|
+
})
|
52
|
+
|
53
|
+
end
|
54
|
+
|
55
|
+
end
|
56
|
+
|
57
|
+
end
|
@@ -0,0 +1,190 @@
|
|
1
|
+
module Clayful
|
2
|
+
|
3
|
+
class Tracker
|
4
|
+
|
5
|
+
@@name = 'Tracker'
|
6
|
+
@@path = ''
|
7
|
+
|
8
|
+
def self.name
|
9
|
+
@@name
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.path
|
13
|
+
@@path
|
14
|
+
end
|
15
|
+
|
16
|
+
def self.get_by_customer_for_me(*args)
|
17
|
+
|
18
|
+
Clayful.call_api({
|
19
|
+
'model_name' => @@name,
|
20
|
+
'method_name' => 'get_by_customer_for_me',
|
21
|
+
'http_method' => 'GET',
|
22
|
+
'path' => '/v1/me/tracker',
|
23
|
+
'params' => [],
|
24
|
+
'args' => args
|
25
|
+
})
|
26
|
+
|
27
|
+
end
|
28
|
+
|
29
|
+
def self.get(*args)
|
30
|
+
|
31
|
+
Clayful.call_api({
|
32
|
+
'model_name' => @@name,
|
33
|
+
'method_name' => 'get',
|
34
|
+
'http_method' => 'GET',
|
35
|
+
'path' => '/v1/trackers/{trackerId}',
|
36
|
+
'params' => ['trackerId', ],
|
37
|
+
'args' => args
|
38
|
+
})
|
39
|
+
|
40
|
+
end
|
41
|
+
|
42
|
+
def self.get_by_customer(*args)
|
43
|
+
|
44
|
+
Clayful.call_api({
|
45
|
+
'model_name' => @@name,
|
46
|
+
'method_name' => 'get_by_customer',
|
47
|
+
'http_method' => 'GET',
|
48
|
+
'path' => '/v1/customers/{customerId}/tracker',
|
49
|
+
'params' => ['customerId', ],
|
50
|
+
'args' => args
|
51
|
+
})
|
52
|
+
|
53
|
+
end
|
54
|
+
|
55
|
+
def self.get_for_me(*args)
|
56
|
+
|
57
|
+
Clayful.call_api({
|
58
|
+
'model_name' => @@name,
|
59
|
+
'method_name' => 'get_for_me',
|
60
|
+
'http_method' => 'GET',
|
61
|
+
'path' => '/v1/me/trackers/{trackerId}',
|
62
|
+
'params' => ['trackerId', ],
|
63
|
+
'args' => args
|
64
|
+
})
|
65
|
+
|
66
|
+
end
|
67
|
+
|
68
|
+
def self.get_as_non_registered_for_me(*args)
|
69
|
+
|
70
|
+
Clayful.call_api({
|
71
|
+
'model_name' => @@name,
|
72
|
+
'method_name' => 'get_as_non_registered_for_me',
|
73
|
+
'http_method' => 'GET',
|
74
|
+
'path' => '/v1/me/non-registered/trackers/{trackerId}',
|
75
|
+
'params' => ['trackerId', ],
|
76
|
+
'args' => args
|
77
|
+
})
|
78
|
+
|
79
|
+
end
|
80
|
+
|
81
|
+
def self.create(*args)
|
82
|
+
|
83
|
+
Clayful.call_api({
|
84
|
+
'model_name' => @@name,
|
85
|
+
'method_name' => 'create',
|
86
|
+
'http_method' => 'POST',
|
87
|
+
'path' => '/v1/trackers',
|
88
|
+
'params' => [],
|
89
|
+
'args' => args
|
90
|
+
})
|
91
|
+
|
92
|
+
end
|
93
|
+
|
94
|
+
def self.create_for_me(*args)
|
95
|
+
|
96
|
+
Clayful.call_api({
|
97
|
+
'model_name' => @@name,
|
98
|
+
'method_name' => 'create_for_me',
|
99
|
+
'http_method' => 'POST',
|
100
|
+
'path' => '/v1/me/trackers',
|
101
|
+
'params' => [],
|
102
|
+
'without_payload' => true,
|
103
|
+
'args' => args
|
104
|
+
})
|
105
|
+
|
106
|
+
end
|
107
|
+
|
108
|
+
def self.create_as_non_registered_for_me(*args)
|
109
|
+
|
110
|
+
Clayful.call_api({
|
111
|
+
'model_name' => @@name,
|
112
|
+
'method_name' => 'create_as_non_registered_for_me',
|
113
|
+
'http_method' => 'POST',
|
114
|
+
'path' => '/v1/me/non-registered/trackers',
|
115
|
+
'params' => [],
|
116
|
+
'without_payload' => true,
|
117
|
+
'args' => args
|
118
|
+
})
|
119
|
+
|
120
|
+
end
|
121
|
+
|
122
|
+
def self.change_owner(*args)
|
123
|
+
|
124
|
+
Clayful.call_api({
|
125
|
+
'model_name' => @@name,
|
126
|
+
'method_name' => 'change_owner',
|
127
|
+
'http_method' => 'PUT',
|
128
|
+
'path' => '/v1/trackers/{trackerId}/customer',
|
129
|
+
'params' => ['trackerId', ],
|
130
|
+
'args' => args
|
131
|
+
})
|
132
|
+
|
133
|
+
end
|
134
|
+
|
135
|
+
def self.change_owner_for_me(*args)
|
136
|
+
|
137
|
+
Clayful.call_api({
|
138
|
+
'model_name' => @@name,
|
139
|
+
'method_name' => 'change_owner_for_me',
|
140
|
+
'http_method' => 'PUT',
|
141
|
+
'path' => '/v1/me/trackers/{trackerId}/customer',
|
142
|
+
'params' => ['trackerId', ],
|
143
|
+
'without_payload' => true,
|
144
|
+
'args' => args
|
145
|
+
})
|
146
|
+
|
147
|
+
end
|
148
|
+
|
149
|
+
def self.delete(*args)
|
150
|
+
|
151
|
+
Clayful.call_api({
|
152
|
+
'model_name' => @@name,
|
153
|
+
'method_name' => 'delete',
|
154
|
+
'http_method' => 'DELETE',
|
155
|
+
'path' => '/v1/trackers/{trackerId}',
|
156
|
+
'params' => ['trackerId', ],
|
157
|
+
'args' => args
|
158
|
+
})
|
159
|
+
|
160
|
+
end
|
161
|
+
|
162
|
+
def self.delete_for_me(*args)
|
163
|
+
|
164
|
+
Clayful.call_api({
|
165
|
+
'model_name' => @@name,
|
166
|
+
'method_name' => 'delete_for_me',
|
167
|
+
'http_method' => 'DELETE',
|
168
|
+
'path' => '/v1/me/trackers/{trackerId}',
|
169
|
+
'params' => ['trackerId', ],
|
170
|
+
'args' => args
|
171
|
+
})
|
172
|
+
|
173
|
+
end
|
174
|
+
|
175
|
+
def self.delete_as_non_registered_for_me(*args)
|
176
|
+
|
177
|
+
Clayful.call_api({
|
178
|
+
'model_name' => @@name,
|
179
|
+
'method_name' => 'delete_as_non_registered_for_me',
|
180
|
+
'http_method' => 'DELETE',
|
181
|
+
'path' => '/v1/me/non-registered/trackers/{trackerId}',
|
182
|
+
'params' => ['trackerId', ],
|
183
|
+
'args' => args
|
184
|
+
})
|
185
|
+
|
186
|
+
end
|
187
|
+
|
188
|
+
end
|
189
|
+
|
190
|
+
end
|
@@ -0,0 +1,356 @@
|
|
1
|
+
module Clayful
|
2
|
+
|
3
|
+
class WishList
|
4
|
+
|
5
|
+
@@name = 'WishList'
|
6
|
+
@@path = 'wishlists'
|
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/wishlists',
|
23
|
+
'params' => [],
|
24
|
+
'args' => args
|
25
|
+
})
|
26
|
+
|
27
|
+
end
|
28
|
+
|
29
|
+
def self.list_for_me(*args)
|
30
|
+
|
31
|
+
Clayful.call_api({
|
32
|
+
'model_name' => @@name,
|
33
|
+
'method_name' => 'list_for_me',
|
34
|
+
'http_method' => 'GET',
|
35
|
+
'path' => '/v1/me/wishlists',
|
36
|
+
'params' => [],
|
37
|
+
'args' => args
|
38
|
+
})
|
39
|
+
|
40
|
+
end
|
41
|
+
|
42
|
+
def self.count(*args)
|
43
|
+
|
44
|
+
Clayful.call_api({
|
45
|
+
'model_name' => @@name,
|
46
|
+
'method_name' => 'count',
|
47
|
+
'http_method' => 'GET',
|
48
|
+
'path' => '/v1/wishlists/count',
|
49
|
+
'params' => [],
|
50
|
+
'args' => args
|
51
|
+
})
|
52
|
+
|
53
|
+
end
|
54
|
+
|
55
|
+
def self.get(*args)
|
56
|
+
|
57
|
+
Clayful.call_api({
|
58
|
+
'model_name' => @@name,
|
59
|
+
'method_name' => 'get',
|
60
|
+
'http_method' => 'GET',
|
61
|
+
'path' => '/v1/wishlists/{wishListId}',
|
62
|
+
'params' => ['wishListId', ],
|
63
|
+
'args' => args
|
64
|
+
})
|
65
|
+
|
66
|
+
end
|
67
|
+
|
68
|
+
def self.count_for_me(*args)
|
69
|
+
|
70
|
+
Clayful.call_api({
|
71
|
+
'model_name' => @@name,
|
72
|
+
'method_name' => 'count_for_me',
|
73
|
+
'http_method' => 'GET',
|
74
|
+
'path' => '/v1/me/wishlists/count',
|
75
|
+
'params' => [],
|
76
|
+
'args' => args
|
77
|
+
})
|
78
|
+
|
79
|
+
end
|
80
|
+
|
81
|
+
def self.get_for_me(*args)
|
82
|
+
|
83
|
+
Clayful.call_api({
|
84
|
+
'model_name' => @@name,
|
85
|
+
'method_name' => 'get_for_me',
|
86
|
+
'http_method' => 'GET',
|
87
|
+
'path' => '/v1/me/wishlists/{wishListId}',
|
88
|
+
'params' => ['wishListId', ],
|
89
|
+
'args' => args
|
90
|
+
})
|
91
|
+
|
92
|
+
end
|
93
|
+
|
94
|
+
def self.list_products(*args)
|
95
|
+
|
96
|
+
Clayful.call_api({
|
97
|
+
'model_name' => @@name,
|
98
|
+
'method_name' => 'list_products',
|
99
|
+
'http_method' => 'GET',
|
100
|
+
'path' => '/v1/wishlists/{wishListId}/products',
|
101
|
+
'params' => ['wishListId', ],
|
102
|
+
'args' => args
|
103
|
+
})
|
104
|
+
|
105
|
+
end
|
106
|
+
|
107
|
+
def self.list_products_for_me(*args)
|
108
|
+
|
109
|
+
Clayful.call_api({
|
110
|
+
'model_name' => @@name,
|
111
|
+
'method_name' => 'list_products_for_me',
|
112
|
+
'http_method' => 'GET',
|
113
|
+
'path' => '/v1/me/wishlists/{wishListId}/products',
|
114
|
+
'params' => ['wishListId', ],
|
115
|
+
'args' => args
|
116
|
+
})
|
117
|
+
|
118
|
+
end
|
119
|
+
|
120
|
+
def self.count_products(*args)
|
121
|
+
|
122
|
+
Clayful.call_api({
|
123
|
+
'model_name' => @@name,
|
124
|
+
'method_name' => 'count_products',
|
125
|
+
'http_method' => 'GET',
|
126
|
+
'path' => '/v1/wishlists/{wishListId}/products/count',
|
127
|
+
'params' => ['wishListId', ],
|
128
|
+
'args' => args
|
129
|
+
})
|
130
|
+
|
131
|
+
end
|
132
|
+
|
133
|
+
def self.count_products_for_me(*args)
|
134
|
+
|
135
|
+
Clayful.call_api({
|
136
|
+
'model_name' => @@name,
|
137
|
+
'method_name' => 'count_products_for_me',
|
138
|
+
'http_method' => 'GET',
|
139
|
+
'path' => '/v1/me/wishlists/{wishListId}/products/count',
|
140
|
+
'params' => ['wishListId', ],
|
141
|
+
'args' => args
|
142
|
+
})
|
143
|
+
|
144
|
+
end
|
145
|
+
|
146
|
+
def self.create(*args)
|
147
|
+
|
148
|
+
Clayful.call_api({
|
149
|
+
'model_name' => @@name,
|
150
|
+
'method_name' => 'create',
|
151
|
+
'http_method' => 'POST',
|
152
|
+
'path' => '/v1/wishlists',
|
153
|
+
'params' => [],
|
154
|
+
'args' => args
|
155
|
+
})
|
156
|
+
|
157
|
+
end
|
158
|
+
|
159
|
+
def self.create_for_me(*args)
|
160
|
+
|
161
|
+
Clayful.call_api({
|
162
|
+
'model_name' => @@name,
|
163
|
+
'method_name' => 'create_for_me',
|
164
|
+
'http_method' => 'POST',
|
165
|
+
'path' => '/v1/me/wishlists',
|
166
|
+
'params' => [],
|
167
|
+
'args' => args
|
168
|
+
})
|
169
|
+
|
170
|
+
end
|
171
|
+
|
172
|
+
def self.add_item(*args)
|
173
|
+
|
174
|
+
Clayful.call_api({
|
175
|
+
'model_name' => @@name,
|
176
|
+
'method_name' => 'add_item',
|
177
|
+
'http_method' => 'POST',
|
178
|
+
'path' => '/v1/wishlists/{wishListId}/items',
|
179
|
+
'params' => ['wishListId', ],
|
180
|
+
'args' => args
|
181
|
+
})
|
182
|
+
|
183
|
+
end
|
184
|
+
|
185
|
+
def self.add_item_for_me(*args)
|
186
|
+
|
187
|
+
Clayful.call_api({
|
188
|
+
'model_name' => @@name,
|
189
|
+
'method_name' => 'add_item_for_me',
|
190
|
+
'http_method' => 'POST',
|
191
|
+
'path' => '/v1/me/wishlists/{wishListId}/items',
|
192
|
+
'params' => ['wishListId', ],
|
193
|
+
'args' => args
|
194
|
+
})
|
195
|
+
|
196
|
+
end
|
197
|
+
|
198
|
+
def self.push_to_metafield(*args)
|
199
|
+
|
200
|
+
Clayful.call_api({
|
201
|
+
'model_name' => @@name,
|
202
|
+
'method_name' => 'push_to_metafield',
|
203
|
+
'http_method' => 'POST',
|
204
|
+
'path' => '/v1/wishlists/{wishListId}/meta/{field}/push',
|
205
|
+
'params' => ['wishListId', 'field', ],
|
206
|
+
'args' => args
|
207
|
+
})
|
208
|
+
|
209
|
+
end
|
210
|
+
|
211
|
+
def self.increase_metafield(*args)
|
212
|
+
|
213
|
+
Clayful.call_api({
|
214
|
+
'model_name' => @@name,
|
215
|
+
'method_name' => 'increase_metafield',
|
216
|
+
'http_method' => 'POST',
|
217
|
+
'path' => '/v1/wishlists/{wishListId}/meta/{field}/inc',
|
218
|
+
'params' => ['wishListId', 'field', ],
|
219
|
+
'args' => args
|
220
|
+
})
|
221
|
+
|
222
|
+
end
|
223
|
+
|
224
|
+
def self.pull_from_metafield(*args)
|
225
|
+
|
226
|
+
Clayful.call_api({
|
227
|
+
'model_name' => @@name,
|
228
|
+
'method_name' => 'pull_from_metafield',
|
229
|
+
'http_method' => 'POST',
|
230
|
+
'path' => '/v1/wishlists/{wishListId}/meta/{field}/pull',
|
231
|
+
'params' => ['wishListId', 'field', ],
|
232
|
+
'args' => args
|
233
|
+
})
|
234
|
+
|
235
|
+
end
|
236
|
+
|
237
|
+
def self.update(*args)
|
238
|
+
|
239
|
+
Clayful.call_api({
|
240
|
+
'model_name' => @@name,
|
241
|
+
'method_name' => 'update',
|
242
|
+
'http_method' => 'PUT',
|
243
|
+
'path' => '/v1/wishlists/{wishListId}',
|
244
|
+
'params' => ['wishListId', ],
|
245
|
+
'args' => args
|
246
|
+
})
|
247
|
+
|
248
|
+
end
|
249
|
+
|
250
|
+
def self.update_for_me(*args)
|
251
|
+
|
252
|
+
Clayful.call_api({
|
253
|
+
'model_name' => @@name,
|
254
|
+
'method_name' => 'update_for_me',
|
255
|
+
'http_method' => 'PUT',
|
256
|
+
'path' => '/v1/me/wishlists/{wishListId}',
|
257
|
+
'params' => ['wishListId', ],
|
258
|
+
'args' => args
|
259
|
+
})
|
260
|
+
|
261
|
+
end
|
262
|
+
|
263
|
+
def self.delete(*args)
|
264
|
+
|
265
|
+
Clayful.call_api({
|
266
|
+
'model_name' => @@name,
|
267
|
+
'method_name' => 'delete',
|
268
|
+
'http_method' => 'DELETE',
|
269
|
+
'path' => '/v1/wishlists/{wishListId}',
|
270
|
+
'params' => ['wishListId', ],
|
271
|
+
'args' => args
|
272
|
+
})
|
273
|
+
|
274
|
+
end
|
275
|
+
|
276
|
+
def self.delete_for_me(*args)
|
277
|
+
|
278
|
+
Clayful.call_api({
|
279
|
+
'model_name' => @@name,
|
280
|
+
'method_name' => 'delete_for_me',
|
281
|
+
'http_method' => 'DELETE',
|
282
|
+
'path' => '/v1/me/wishlists/{wishListId}',
|
283
|
+
'params' => ['wishListId', ],
|
284
|
+
'args' => args
|
285
|
+
})
|
286
|
+
|
287
|
+
end
|
288
|
+
|
289
|
+
def self.empty(*args)
|
290
|
+
|
291
|
+
Clayful.call_api({
|
292
|
+
'model_name' => @@name,
|
293
|
+
'method_name' => 'empty',
|
294
|
+
'http_method' => 'DELETE',
|
295
|
+
'path' => '/v1/wishlists/{wishListId}/items',
|
296
|
+
'params' => ['wishListId', ],
|
297
|
+
'args' => args
|
298
|
+
})
|
299
|
+
|
300
|
+
end
|
301
|
+
|
302
|
+
def self.empty_for_me(*args)
|
303
|
+
|
304
|
+
Clayful.call_api({
|
305
|
+
'model_name' => @@name,
|
306
|
+
'method_name' => 'empty_for_me',
|
307
|
+
'http_method' => 'DELETE',
|
308
|
+
'path' => '/v1/me/wishlists/{wishListId}/items',
|
309
|
+
'params' => ['wishListId', ],
|
310
|
+
'args' => args
|
311
|
+
})
|
312
|
+
|
313
|
+
end
|
314
|
+
|
315
|
+
def self.delete_item(*args)
|
316
|
+
|
317
|
+
Clayful.call_api({
|
318
|
+
'model_name' => @@name,
|
319
|
+
'method_name' => 'delete_item',
|
320
|
+
'http_method' => 'DELETE',
|
321
|
+
'path' => '/v1/wishlists/{wishListId}/items/{productId}',
|
322
|
+
'params' => ['wishListId', 'productId', ],
|
323
|
+
'args' => args
|
324
|
+
})
|
325
|
+
|
326
|
+
end
|
327
|
+
|
328
|
+
def self.delete_metafield(*args)
|
329
|
+
|
330
|
+
Clayful.call_api({
|
331
|
+
'model_name' => @@name,
|
332
|
+
'method_name' => 'delete_metafield',
|
333
|
+
'http_method' => 'DELETE',
|
334
|
+
'path' => '/v1/wishlists/{wishListId}/meta/{field}',
|
335
|
+
'params' => ['wishListId', 'field', ],
|
336
|
+
'args' => args
|
337
|
+
})
|
338
|
+
|
339
|
+
end
|
340
|
+
|
341
|
+
def self.delete_item_for_me(*args)
|
342
|
+
|
343
|
+
Clayful.call_api({
|
344
|
+
'model_name' => @@name,
|
345
|
+
'method_name' => 'delete_item_for_me',
|
346
|
+
'http_method' => 'DELETE',
|
347
|
+
'path' => '/v1/me/wishlists/{wishListId}/items/{productId}',
|
348
|
+
'params' => ['wishListId', 'productId', ],
|
349
|
+
'args' => args
|
350
|
+
})
|
351
|
+
|
352
|
+
end
|
353
|
+
|
354
|
+
end
|
355
|
+
|
356
|
+
end
|