clayful 2.4.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/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
@@ -13,40 +13,40 @@ module Clayful
|
|
13
13
|
@@path
|
14
14
|
end
|
15
15
|
|
16
|
-
def self.
|
16
|
+
def self.cancel_flag(*args)
|
17
17
|
|
18
18
|
Clayful.call_api({
|
19
19
|
'model_name' => @@name,
|
20
|
-
'method_name' => '
|
21
|
-
'http_method' => '
|
22
|
-
'path' => '/v1/products/reviews/comments',
|
23
|
-
'params' => [],
|
20
|
+
'method_name' => 'cancel_flag',
|
21
|
+
'http_method' => 'DELETE',
|
22
|
+
'path' => '/v1/products/reviews/comments/{reviewCommentId}/flags/{customerId}',
|
23
|
+
'params' => ['reviewCommentId', 'customerId', ],
|
24
24
|
'args' => args
|
25
25
|
})
|
26
26
|
|
27
27
|
end
|
28
28
|
|
29
|
-
def self.
|
29
|
+
def self.cancel_flag_for_me(*args)
|
30
30
|
|
31
31
|
Clayful.call_api({
|
32
32
|
'model_name' => @@name,
|
33
|
-
'method_name' => '
|
34
|
-
'http_method' => '
|
35
|
-
'path' => '/v1/products/reviews/comments/
|
36
|
-
'params' => [],
|
33
|
+
'method_name' => 'cancel_flag_for_me',
|
34
|
+
'http_method' => 'DELETE',
|
35
|
+
'path' => '/v1/me/products/reviews/comments/{reviewCommentId}/flags',
|
36
|
+
'params' => ['reviewCommentId', ],
|
37
37
|
'args' => args
|
38
38
|
})
|
39
39
|
|
40
40
|
end
|
41
41
|
|
42
|
-
def self.
|
42
|
+
def self.count(*args)
|
43
43
|
|
44
44
|
Clayful.call_api({
|
45
45
|
'model_name' => @@name,
|
46
|
-
'method_name' => '
|
46
|
+
'method_name' => 'count',
|
47
47
|
'http_method' => 'GET',
|
48
|
-
'path' => '/v1/products/reviews/comments/
|
49
|
-
'params' => [
|
48
|
+
'path' => '/v1/products/reviews/comments/count',
|
49
|
+
'params' => [],
|
50
50
|
'args' => args
|
51
51
|
})
|
52
52
|
|
@@ -78,78 +78,78 @@ module Clayful
|
|
78
78
|
|
79
79
|
end
|
80
80
|
|
81
|
-
def self.
|
81
|
+
def self.delete(*args)
|
82
82
|
|
83
83
|
Clayful.call_api({
|
84
84
|
'model_name' => @@name,
|
85
|
-
'method_name' => '
|
86
|
-
'http_method' => '
|
87
|
-
'path' => '/v1/products/reviews/comments/{reviewCommentId}
|
85
|
+
'method_name' => 'delete',
|
86
|
+
'http_method' => 'DELETE',
|
87
|
+
'path' => '/v1/products/reviews/comments/{reviewCommentId}',
|
88
88
|
'params' => ['reviewCommentId', ],
|
89
89
|
'args' => args
|
90
90
|
})
|
91
91
|
|
92
92
|
end
|
93
93
|
|
94
|
-
def self.
|
94
|
+
def self.delete_for_me(*args)
|
95
95
|
|
96
96
|
Clayful.call_api({
|
97
97
|
'model_name' => @@name,
|
98
|
-
'method_name' => '
|
99
|
-
'http_method' => '
|
100
|
-
'path' => '/v1/me/products/reviews/comments/{reviewCommentId}
|
98
|
+
'method_name' => 'delete_for_me',
|
99
|
+
'http_method' => 'DELETE',
|
100
|
+
'path' => '/v1/me/products/reviews/comments/{reviewCommentId}',
|
101
101
|
'params' => ['reviewCommentId', ],
|
102
|
-
'without_payload' => true,
|
103
102
|
'args' => args
|
104
103
|
})
|
105
104
|
|
106
105
|
end
|
107
106
|
|
108
|
-
def self.
|
107
|
+
def self.delete_metafield(*args)
|
109
108
|
|
110
109
|
Clayful.call_api({
|
111
110
|
'model_name' => @@name,
|
112
|
-
'method_name' => '
|
113
|
-
'http_method' => '
|
114
|
-
'path' => '/v1/products/reviews/comments/{reviewCommentId}/meta/{field}
|
111
|
+
'method_name' => 'delete_metafield',
|
112
|
+
'http_method' => 'DELETE',
|
113
|
+
'path' => '/v1/products/reviews/comments/{reviewCommentId}/meta/{field}',
|
115
114
|
'params' => ['reviewCommentId', 'field', ],
|
116
115
|
'args' => args
|
117
116
|
})
|
118
117
|
|
119
118
|
end
|
120
119
|
|
121
|
-
def self.
|
120
|
+
def self.flag(*args)
|
122
121
|
|
123
122
|
Clayful.call_api({
|
124
123
|
'model_name' => @@name,
|
125
|
-
'method_name' => '
|
124
|
+
'method_name' => 'flag',
|
126
125
|
'http_method' => 'POST',
|
127
|
-
'path' => '/v1/products/reviews/comments/{reviewCommentId}/
|
128
|
-
'params' => ['reviewCommentId',
|
126
|
+
'path' => '/v1/products/reviews/comments/{reviewCommentId}/flags',
|
127
|
+
'params' => ['reviewCommentId', ],
|
129
128
|
'args' => args
|
130
129
|
})
|
131
130
|
|
132
131
|
end
|
133
132
|
|
134
|
-
def self.
|
133
|
+
def self.flag_for_me(*args)
|
135
134
|
|
136
135
|
Clayful.call_api({
|
137
136
|
'model_name' => @@name,
|
138
|
-
'method_name' => '
|
137
|
+
'method_name' => 'flag_for_me',
|
139
138
|
'http_method' => 'POST',
|
140
|
-
'path' => '/v1/products/reviews/comments/{reviewCommentId}/
|
141
|
-
'params' => ['reviewCommentId',
|
139
|
+
'path' => '/v1/me/products/reviews/comments/{reviewCommentId}/flags',
|
140
|
+
'params' => ['reviewCommentId', ],
|
141
|
+
'without_payload' => true,
|
142
142
|
'args' => args
|
143
143
|
})
|
144
144
|
|
145
145
|
end
|
146
146
|
|
147
|
-
def self.
|
147
|
+
def self.get(*args)
|
148
148
|
|
149
149
|
Clayful.call_api({
|
150
150
|
'model_name' => @@name,
|
151
|
-
'method_name' => '
|
152
|
-
'http_method' => '
|
151
|
+
'method_name' => 'get',
|
152
|
+
'http_method' => 'GET',
|
153
153
|
'path' => '/v1/products/reviews/comments/{reviewCommentId}',
|
154
154
|
'params' => ['reviewCommentId', ],
|
155
155
|
'args' => args
|
@@ -157,79 +157,79 @@ module Clayful
|
|
157
157
|
|
158
158
|
end
|
159
159
|
|
160
|
-
def self.
|
160
|
+
def self.increase_metafield(*args)
|
161
161
|
|
162
162
|
Clayful.call_api({
|
163
163
|
'model_name' => @@name,
|
164
|
-
'method_name' => '
|
165
|
-
'http_method' => '
|
166
|
-
'path' => '/v1/
|
167
|
-
'params' => ['reviewCommentId', ],
|
164
|
+
'method_name' => 'increase_metafield',
|
165
|
+
'http_method' => 'POST',
|
166
|
+
'path' => '/v1/products/reviews/comments/{reviewCommentId}/meta/{field}/inc',
|
167
|
+
'params' => ['reviewCommentId', 'field', ],
|
168
168
|
'args' => args
|
169
169
|
})
|
170
170
|
|
171
171
|
end
|
172
172
|
|
173
|
-
def self.
|
173
|
+
def self.list(*args)
|
174
174
|
|
175
175
|
Clayful.call_api({
|
176
176
|
'model_name' => @@name,
|
177
|
-
'method_name' => '
|
178
|
-
'http_method' => '
|
179
|
-
'path' => '/v1/products/reviews/comments
|
180
|
-
'params' => [
|
177
|
+
'method_name' => 'list',
|
178
|
+
'http_method' => 'GET',
|
179
|
+
'path' => '/v1/products/reviews/comments',
|
180
|
+
'params' => [],
|
181
181
|
'args' => args
|
182
182
|
})
|
183
183
|
|
184
184
|
end
|
185
185
|
|
186
|
-
def self.
|
186
|
+
def self.pull_from_metafield(*args)
|
187
187
|
|
188
188
|
Clayful.call_api({
|
189
189
|
'model_name' => @@name,
|
190
|
-
'method_name' => '
|
191
|
-
'http_method' => '
|
192
|
-
'path' => '/v1/
|
193
|
-
'params' => ['reviewCommentId', ],
|
190
|
+
'method_name' => 'pull_from_metafield',
|
191
|
+
'http_method' => 'POST',
|
192
|
+
'path' => '/v1/products/reviews/comments/{reviewCommentId}/meta/{field}/pull',
|
193
|
+
'params' => ['reviewCommentId', 'field', ],
|
194
194
|
'args' => args
|
195
195
|
})
|
196
196
|
|
197
197
|
end
|
198
198
|
|
199
|
-
def self.
|
199
|
+
def self.push_to_metafield(*args)
|
200
200
|
|
201
201
|
Clayful.call_api({
|
202
202
|
'model_name' => @@name,
|
203
|
-
'method_name' => '
|
204
|
-
'http_method' => '
|
205
|
-
'path' => '/v1/
|
206
|
-
'params' => ['reviewCommentId', ],
|
203
|
+
'method_name' => 'push_to_metafield',
|
204
|
+
'http_method' => 'POST',
|
205
|
+
'path' => '/v1/products/reviews/comments/{reviewCommentId}/meta/{field}/push',
|
206
|
+
'params' => ['reviewCommentId', 'field', ],
|
207
207
|
'args' => args
|
208
208
|
})
|
209
209
|
|
210
210
|
end
|
211
211
|
|
212
|
-
def self.
|
212
|
+
def self.update(*args)
|
213
213
|
|
214
214
|
Clayful.call_api({
|
215
215
|
'model_name' => @@name,
|
216
|
-
'method_name' => '
|
217
|
-
'http_method' => '
|
218
|
-
'path' => '/v1/products/reviews/comments/{reviewCommentId}
|
219
|
-
'params' => ['reviewCommentId',
|
216
|
+
'method_name' => 'update',
|
217
|
+
'http_method' => 'PUT',
|
218
|
+
'path' => '/v1/products/reviews/comments/{reviewCommentId}',
|
219
|
+
'params' => ['reviewCommentId', ],
|
220
220
|
'args' => args
|
221
221
|
})
|
222
222
|
|
223
223
|
end
|
224
224
|
|
225
|
-
def self.
|
225
|
+
def self.update_for_me(*args)
|
226
226
|
|
227
227
|
Clayful.call_api({
|
228
228
|
'model_name' => @@name,
|
229
|
-
'method_name' => '
|
230
|
-
'http_method' => '
|
231
|
-
'path' => '/v1/products/reviews/comments/{reviewCommentId}
|
232
|
-
'params' => ['reviewCommentId',
|
229
|
+
'method_name' => 'update_for_me',
|
230
|
+
'http_method' => 'PUT',
|
231
|
+
'path' => '/v1/me/products/reviews/comments/{reviewCommentId}',
|
232
|
+
'params' => ['reviewCommentId', ],
|
233
233
|
'args' => args
|
234
234
|
})
|
235
235
|
|
@@ -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/shipping/methods',
|
22
|
+
'path' => '/v1/shipping/methods/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/shipping/methods/
|
36
|
-
'params' => [],
|
35
|
+
'path' => '/v1/shipping/methods/{shippingMethodId}',
|
36
|
+
'params' => ['shippingMethodId', ],
|
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/shipping/methods
|
49
|
-
'params' => [
|
48
|
+
'path' => '/v1/shipping/methods',
|
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.
|
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/shipping/policies',
|
22
|
+
'path' => '/v1/shipping/policies/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/shipping/policies/
|
36
|
-
'params' => [],
|
35
|
+
'path' => '/v1/shipping/policies/{shippingPolicyId}',
|
36
|
+
'params' => ['shippingPolicyId', ],
|
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/shipping/policies
|
49
|
-
'params' => [
|
48
|
+
'path' => '/v1/shipping/policies',
|
49
|
+
'params' => [],
|
50
50
|
'args' => args
|
51
51
|
})
|
52
52
|
|
data/lib/models/store.rb
CHANGED
@@ -13,27 +13,27 @@ module Clayful
|
|
13
13
|
@@path
|
14
14
|
end
|
15
15
|
|
16
|
-
def self.
|
16
|
+
def self.delete_metafield(*args)
|
17
17
|
|
18
18
|
Clayful.call_api({
|
19
19
|
'model_name' => @@name,
|
20
|
-
'method_name' => '
|
21
|
-
'http_method' => '
|
22
|
-
'path' => '/v1/store',
|
23
|
-
'params' => [],
|
20
|
+
'method_name' => 'delete_metafield',
|
21
|
+
'http_method' => 'DELETE',
|
22
|
+
'path' => '/v1/store/meta/{field}',
|
23
|
+
'params' => ['field', ],
|
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' => '
|
34
|
-
'http_method' => '
|
35
|
-
'path' => '/v1/store
|
36
|
-
'params' => [
|
33
|
+
'method_name' => 'get',
|
34
|
+
'http_method' => 'GET',
|
35
|
+
'path' => '/v1/store',
|
36
|
+
'params' => [],
|
37
37
|
'args' => args
|
38
38
|
})
|
39
39
|
|
@@ -65,13 +65,13 @@ module Clayful
|
|
65
65
|
|
66
66
|
end
|
67
67
|
|
68
|
-
def self.
|
68
|
+
def self.push_to_metafield(*args)
|
69
69
|
|
70
70
|
Clayful.call_api({
|
71
71
|
'model_name' => @@name,
|
72
|
-
'method_name' => '
|
73
|
-
'http_method' => '
|
74
|
-
'path' => '/v1/store/meta/{field}',
|
72
|
+
'method_name' => 'push_to_metafield',
|
73
|
+
'http_method' => 'POST',
|
74
|
+
'path' => '/v1/store/meta/{field}/push',
|
75
75
|
'params' => ['field', ],
|
76
76
|
'args' => args
|
77
77
|
})
|
data/lib/models/subscription.rb
CHANGED
@@ -13,53 +13,53 @@ module Clayful
|
|
13
13
|
@@path
|
14
14
|
end
|
15
15
|
|
16
|
-
def self.
|
16
|
+
def self.authenticate(*args)
|
17
17
|
|
18
18
|
Clayful.call_api({
|
19
19
|
'model_name' => @@name,
|
20
|
-
'method_name' => '
|
21
|
-
'http_method' => '
|
22
|
-
'path' => '/v1/subscriptions',
|
23
|
-
'params' => [],
|
20
|
+
'method_name' => 'authenticate',
|
21
|
+
'http_method' => 'POST',
|
22
|
+
'path' => '/v1/subscriptions/{subscriptionId}/auth',
|
23
|
+
'params' => ['subscriptionId', ],
|
24
24
|
'args' => args
|
25
25
|
})
|
26
26
|
|
27
27
|
end
|
28
28
|
|
29
|
-
def self.
|
29
|
+
def self.cancel(*args)
|
30
30
|
|
31
31
|
Clayful.call_api({
|
32
32
|
'model_name' => @@name,
|
33
|
-
'method_name' => '
|
34
|
-
'http_method' => '
|
35
|
-
'path' => '/v1/
|
36
|
-
'params' => [],
|
33
|
+
'method_name' => 'cancel',
|
34
|
+
'http_method' => 'POST',
|
35
|
+
'path' => '/v1/subscriptions/{subscriptionId}/cancellation',
|
36
|
+
'params' => ['subscriptionId', ],
|
37
37
|
'args' => args
|
38
38
|
})
|
39
39
|
|
40
40
|
end
|
41
41
|
|
42
|
-
def self.
|
42
|
+
def self.cancel_for_me(*args)
|
43
43
|
|
44
44
|
Clayful.call_api({
|
45
45
|
'model_name' => @@name,
|
46
|
-
'method_name' => '
|
47
|
-
'http_method' => '
|
48
|
-
'path' => '/v1/subscriptions/
|
49
|
-
'params' => [],
|
46
|
+
'method_name' => 'cancel_for_me',
|
47
|
+
'http_method' => 'POST',
|
48
|
+
'path' => '/v1/me/subscriptions/{subscriptionId}/cancellation',
|
49
|
+
'params' => ['subscriptionId', ],
|
50
50
|
'args' => args
|
51
51
|
})
|
52
52
|
|
53
53
|
end
|
54
54
|
|
55
|
-
def self.
|
55
|
+
def self.count(*args)
|
56
56
|
|
57
57
|
Clayful.call_api({
|
58
58
|
'model_name' => @@name,
|
59
|
-
'method_name' => '
|
59
|
+
'method_name' => 'count',
|
60
60
|
'http_method' => 'GET',
|
61
|
-
'path' => '/v1/subscriptions/
|
62
|
-
'params' => [
|
61
|
+
'path' => '/v1/subscriptions/count',
|
62
|
+
'params' => [],
|
63
63
|
'args' => args
|
64
64
|
})
|
65
65
|
|
@@ -78,159 +78,158 @@ module Clayful
|
|
78
78
|
|
79
79
|
end
|
80
80
|
|
81
|
-
def self.
|
81
|
+
def self.delete(*args)
|
82
82
|
|
83
83
|
Clayful.call_api({
|
84
84
|
'model_name' => @@name,
|
85
|
-
'method_name' => '
|
86
|
-
'http_method' => '
|
87
|
-
'path' => '/v1/
|
85
|
+
'method_name' => 'delete',
|
86
|
+
'http_method' => 'DELETE',
|
87
|
+
'path' => '/v1/subscriptions/{subscriptionId}',
|
88
88
|
'params' => ['subscriptionId', ],
|
89
89
|
'args' => args
|
90
90
|
})
|
91
91
|
|
92
92
|
end
|
93
93
|
|
94
|
-
def self.
|
94
|
+
def self.delete_inventory_operation(*args)
|
95
95
|
|
96
96
|
Clayful.call_api({
|
97
97
|
'model_name' => @@name,
|
98
|
-
'method_name' => '
|
99
|
-
'http_method' => '
|
100
|
-
'path' => '/v1/subscriptions/{subscriptionId}/inventory/operations',
|
101
|
-
'params' => ['subscriptionId', ],
|
98
|
+
'method_name' => 'delete_inventory_operation',
|
99
|
+
'http_method' => 'DELETE',
|
100
|
+
'path' => '/v1/subscriptions/{subscriptionId}/inventory/operations/{operationId}',
|
101
|
+
'params' => ['subscriptionId', 'operationId', ],
|
102
102
|
'args' => args
|
103
103
|
})
|
104
104
|
|
105
105
|
end
|
106
106
|
|
107
|
-
def self.
|
107
|
+
def self.delete_metafield(*args)
|
108
108
|
|
109
109
|
Clayful.call_api({
|
110
110
|
'model_name' => @@name,
|
111
|
-
'method_name' => '
|
112
|
-
'http_method' => '
|
113
|
-
'path' => '/v1/subscriptions/{subscriptionId}/
|
114
|
-
'params' => ['subscriptionId', ],
|
111
|
+
'method_name' => 'delete_metafield',
|
112
|
+
'http_method' => 'DELETE',
|
113
|
+
'path' => '/v1/subscriptions/{subscriptionId}/meta/{field}',
|
114
|
+
'params' => ['subscriptionId', 'field', ],
|
115
115
|
'args' => args
|
116
116
|
})
|
117
117
|
|
118
118
|
end
|
119
119
|
|
120
|
-
def self.
|
120
|
+
def self.fulfill_schedule(*args)
|
121
121
|
|
122
122
|
Clayful.call_api({
|
123
123
|
'model_name' => @@name,
|
124
|
-
'method_name' => '
|
124
|
+
'method_name' => 'fulfill_schedule',
|
125
125
|
'http_method' => 'POST',
|
126
|
-
'path' => '/v1/subscriptions/{subscriptionId}/
|
126
|
+
'path' => '/v1/subscriptions/{subscriptionId}/schedules/orders',
|
127
127
|
'params' => ['subscriptionId', ],
|
128
|
-
'without_payload' => true,
|
129
128
|
'args' => args
|
130
129
|
})
|
131
130
|
|
132
131
|
end
|
133
132
|
|
134
|
-
def self.
|
133
|
+
def self.get(*args)
|
135
134
|
|
136
135
|
Clayful.call_api({
|
137
136
|
'model_name' => @@name,
|
138
|
-
'method_name' => '
|
139
|
-
'http_method' => '
|
140
|
-
'path' => '/v1/subscriptions/{subscriptionId}
|
137
|
+
'method_name' => 'get',
|
138
|
+
'http_method' => 'GET',
|
139
|
+
'path' => '/v1/subscriptions/{subscriptionId}',
|
141
140
|
'params' => ['subscriptionId', ],
|
142
|
-
'without_payload' => true,
|
143
141
|
'args' => args
|
144
142
|
})
|
145
143
|
|
146
144
|
end
|
147
145
|
|
148
|
-
def self.
|
146
|
+
def self.get_for_me(*args)
|
149
147
|
|
150
148
|
Clayful.call_api({
|
151
149
|
'model_name' => @@name,
|
152
|
-
'method_name' => '
|
153
|
-
'http_method' => '
|
154
|
-
'path' => '/v1/subscriptions/{subscriptionId}
|
150
|
+
'method_name' => 'get_for_me',
|
151
|
+
'http_method' => 'GET',
|
152
|
+
'path' => '/v1/me/subscriptions/{subscriptionId}',
|
155
153
|
'params' => ['subscriptionId', ],
|
156
154
|
'args' => args
|
157
155
|
})
|
158
156
|
|
159
157
|
end
|
160
158
|
|
161
|
-
def self.
|
159
|
+
def self.increase_metafield(*args)
|
162
160
|
|
163
161
|
Clayful.call_api({
|
164
162
|
'model_name' => @@name,
|
165
|
-
'method_name' => '
|
163
|
+
'method_name' => 'increase_metafield',
|
166
164
|
'http_method' => 'POST',
|
167
|
-
'path' => '/v1/subscriptions/{subscriptionId}/
|
168
|
-
'params' => ['subscriptionId', ],
|
165
|
+
'path' => '/v1/subscriptions/{subscriptionId}/meta/{field}/inc',
|
166
|
+
'params' => ['subscriptionId', 'field', ],
|
169
167
|
'args' => args
|
170
168
|
})
|
171
169
|
|
172
170
|
end
|
173
171
|
|
174
|
-
def self.
|
172
|
+
def self.list(*args)
|
175
173
|
|
176
174
|
Clayful.call_api({
|
177
175
|
'model_name' => @@name,
|
178
|
-
'method_name' => '
|
179
|
-
'http_method' => '
|
180
|
-
'path' => '/v1/
|
181
|
-
'params' => [
|
176
|
+
'method_name' => 'list',
|
177
|
+
'http_method' => 'GET',
|
178
|
+
'path' => '/v1/subscriptions',
|
179
|
+
'params' => [],
|
182
180
|
'args' => args
|
183
181
|
})
|
184
182
|
|
185
183
|
end
|
186
184
|
|
187
|
-
def self.
|
185
|
+
def self.list_for_me(*args)
|
188
186
|
|
189
187
|
Clayful.call_api({
|
190
188
|
'model_name' => @@name,
|
191
|
-
'method_name' => '
|
192
|
-
'http_method' => '
|
193
|
-
'path' => '/v1/me/subscriptions
|
194
|
-
'params' => [
|
189
|
+
'method_name' => 'list_for_me',
|
190
|
+
'http_method' => 'GET',
|
191
|
+
'path' => '/v1/me/subscriptions',
|
192
|
+
'params' => [],
|
195
193
|
'args' => args
|
196
194
|
})
|
197
195
|
|
198
196
|
end
|
199
197
|
|
200
|
-
def self.
|
198
|
+
def self.list_inventory_operations(*args)
|
201
199
|
|
202
200
|
Clayful.call_api({
|
203
201
|
'model_name' => @@name,
|
204
|
-
'method_name' => '
|
205
|
-
'http_method' => '
|
206
|
-
'path' => '/v1/subscriptions/{subscriptionId}/
|
202
|
+
'method_name' => 'list_inventory_operations',
|
203
|
+
'http_method' => 'GET',
|
204
|
+
'path' => '/v1/subscriptions/{subscriptionId}/inventory/operations',
|
207
205
|
'params' => ['subscriptionId', ],
|
208
206
|
'args' => args
|
209
207
|
})
|
210
208
|
|
211
209
|
end
|
212
210
|
|
213
|
-
def self.
|
211
|
+
def self.mark_as_done(*args)
|
214
212
|
|
215
213
|
Clayful.call_api({
|
216
214
|
'model_name' => @@name,
|
217
|
-
'method_name' => '
|
215
|
+
'method_name' => 'mark_as_done',
|
218
216
|
'http_method' => 'POST',
|
219
|
-
'path' => '/v1/subscriptions/{subscriptionId}/
|
220
|
-
'params' => ['subscriptionId',
|
217
|
+
'path' => '/v1/subscriptions/{subscriptionId}/done',
|
218
|
+
'params' => ['subscriptionId', ],
|
219
|
+
'without_payload' => true,
|
221
220
|
'args' => args
|
222
221
|
})
|
223
222
|
|
224
223
|
end
|
225
224
|
|
226
|
-
def self.
|
225
|
+
def self.mark_as_undone(*args)
|
227
226
|
|
228
227
|
Clayful.call_api({
|
229
228
|
'model_name' => @@name,
|
230
|
-
'method_name' => '
|
231
|
-
'http_method' => '
|
232
|
-
'path' => '/v1/subscriptions/{subscriptionId}/
|
233
|
-
'params' => ['subscriptionId',
|
229
|
+
'method_name' => 'mark_as_undone',
|
230
|
+
'http_method' => 'DELETE',
|
231
|
+
'path' => '/v1/subscriptions/{subscriptionId}/done',
|
232
|
+
'params' => ['subscriptionId', ],
|
234
233
|
'args' => args
|
235
234
|
})
|
236
235
|
|
@@ -249,118 +248,119 @@ module Clayful
|
|
249
248
|
|
250
249
|
end
|
251
250
|
|
252
|
-
def self.
|
251
|
+
def self.push_to_metafield(*args)
|
253
252
|
|
254
253
|
Clayful.call_api({
|
255
254
|
'model_name' => @@name,
|
256
|
-
'method_name' => '
|
257
|
-
'http_method' => '
|
258
|
-
'path' => '/v1/subscriptions/{subscriptionId}',
|
259
|
-
'params' => ['subscriptionId', ],
|
255
|
+
'method_name' => 'push_to_metafield',
|
256
|
+
'http_method' => 'POST',
|
257
|
+
'path' => '/v1/subscriptions/{subscriptionId}/meta/{field}/push',
|
258
|
+
'params' => ['subscriptionId', 'field', ],
|
260
259
|
'args' => args
|
261
260
|
})
|
262
261
|
|
263
262
|
end
|
264
263
|
|
265
|
-
def self.
|
264
|
+
def self.schedule(*args)
|
266
265
|
|
267
266
|
Clayful.call_api({
|
268
267
|
'model_name' => @@name,
|
269
|
-
'method_name' => '
|
270
|
-
'http_method' => '
|
271
|
-
'path' => '/v1/
|
268
|
+
'method_name' => 'schedule',
|
269
|
+
'http_method' => 'POST',
|
270
|
+
'path' => '/v1/subscriptions/{subscriptionId}/scheduled',
|
272
271
|
'params' => ['subscriptionId', ],
|
273
272
|
'args' => args
|
274
273
|
})
|
275
274
|
|
276
275
|
end
|
277
276
|
|
278
|
-
def self.
|
277
|
+
def self.schedule_for_me(*args)
|
279
278
|
|
280
279
|
Clayful.call_api({
|
281
280
|
'model_name' => @@name,
|
282
|
-
'method_name' => '
|
283
|
-
'http_method' => '
|
284
|
-
'path' => '/v1/subscriptions/{subscriptionId}/
|
281
|
+
'method_name' => 'schedule_for_me',
|
282
|
+
'http_method' => 'POST',
|
283
|
+
'path' => '/v1/me/subscriptions/{subscriptionId}/scheduled',
|
285
284
|
'params' => ['subscriptionId', ],
|
286
285
|
'args' => args
|
287
286
|
})
|
288
287
|
|
289
288
|
end
|
290
289
|
|
291
|
-
def self.
|
290
|
+
def self.sync_inventory(*args)
|
292
291
|
|
293
292
|
Clayful.call_api({
|
294
293
|
'model_name' => @@name,
|
295
|
-
'method_name' => '
|
296
|
-
'http_method' => '
|
297
|
-
'path' => '/v1/
|
294
|
+
'method_name' => 'sync_inventory',
|
295
|
+
'http_method' => 'POST',
|
296
|
+
'path' => '/v1/subscriptions/{subscriptionId}/synced',
|
298
297
|
'params' => ['subscriptionId', ],
|
298
|
+
'without_payload' => true,
|
299
299
|
'args' => args
|
300
300
|
})
|
301
301
|
|
302
302
|
end
|
303
303
|
|
304
|
-
def self.
|
304
|
+
def self.update(*args)
|
305
305
|
|
306
306
|
Clayful.call_api({
|
307
307
|
'model_name' => @@name,
|
308
|
-
'method_name' => '
|
308
|
+
'method_name' => 'update',
|
309
309
|
'http_method' => 'PUT',
|
310
|
-
'path' => '/v1/subscriptions/{subscriptionId}
|
311
|
-
'params' => ['subscriptionId',
|
310
|
+
'path' => '/v1/subscriptions/{subscriptionId}',
|
311
|
+
'params' => ['subscriptionId', ],
|
312
312
|
'args' => args
|
313
313
|
})
|
314
314
|
|
315
315
|
end
|
316
316
|
|
317
|
-
def self.
|
317
|
+
def self.update_cancellation(*args)
|
318
318
|
|
319
319
|
Clayful.call_api({
|
320
320
|
'model_name' => @@name,
|
321
|
-
'method_name' => '
|
322
|
-
'http_method' => '
|
323
|
-
'path' => '/v1/subscriptions/{subscriptionId}',
|
321
|
+
'method_name' => 'update_cancellation',
|
322
|
+
'http_method' => 'PUT',
|
323
|
+
'path' => '/v1/subscriptions/{subscriptionId}/cancellation',
|
324
324
|
'params' => ['subscriptionId', ],
|
325
325
|
'args' => args
|
326
326
|
})
|
327
327
|
|
328
328
|
end
|
329
329
|
|
330
|
-
def self.
|
330
|
+
def self.update_cancellation_for_me(*args)
|
331
331
|
|
332
332
|
Clayful.call_api({
|
333
333
|
'model_name' => @@name,
|
334
|
-
'method_name' => '
|
335
|
-
'http_method' => '
|
336
|
-
'path' => '/v1/subscriptions/{subscriptionId}/
|
334
|
+
'method_name' => 'update_cancellation_for_me',
|
335
|
+
'http_method' => 'PUT',
|
336
|
+
'path' => '/v1/me/subscriptions/{subscriptionId}/cancellation',
|
337
337
|
'params' => ['subscriptionId', ],
|
338
338
|
'args' => args
|
339
339
|
})
|
340
340
|
|
341
341
|
end
|
342
342
|
|
343
|
-
def self.
|
343
|
+
def self.update_for_me(*args)
|
344
344
|
|
345
345
|
Clayful.call_api({
|
346
346
|
'model_name' => @@name,
|
347
|
-
'method_name' => '
|
348
|
-
'http_method' => '
|
349
|
-
'path' => '/v1/subscriptions/{subscriptionId}
|
350
|
-
'params' => ['subscriptionId',
|
347
|
+
'method_name' => 'update_for_me',
|
348
|
+
'http_method' => 'PUT',
|
349
|
+
'path' => '/v1/me/subscriptions/{subscriptionId}',
|
350
|
+
'params' => ['subscriptionId', ],
|
351
351
|
'args' => args
|
352
352
|
})
|
353
353
|
|
354
354
|
end
|
355
355
|
|
356
|
-
def self.
|
356
|
+
def self.update_item(*args)
|
357
357
|
|
358
358
|
Clayful.call_api({
|
359
359
|
'model_name' => @@name,
|
360
|
-
'method_name' => '
|
361
|
-
'http_method' => '
|
362
|
-
'path' => '/v1/subscriptions/{subscriptionId}/
|
363
|
-
'params' => ['subscriptionId', '
|
360
|
+
'method_name' => 'update_item',
|
361
|
+
'http_method' => 'PUT',
|
362
|
+
'path' => '/v1/subscriptions/{subscriptionId}/items/{itemId}',
|
363
|
+
'params' => ['subscriptionId', 'itemId', ],
|
364
364
|
'args' => args
|
365
365
|
})
|
366
366
|
|