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