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