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.
@@ -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.push_to_metafield(*args)
107
+ def self.delete_metafield(*args)
109
108
 
110
109
  Clayful.call_api({
111
110
  'model_name' => @@name,
112
- 'method_name' => 'push_to_metafield',
113
- 'http_method' => 'POST',
114
- 'path' => '/v1/products/reviews/comments/{reviewCommentId}/meta/{field}/push',
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.pull_from_metafield(*args)
133
+ def self.flag_for_me(*args)
135
134
 
136
135
  Clayful.call_api({
137
136
  'model_name' => @@name,
138
- 'method_name' => 'pull_from_metafield',
137
+ 'method_name' => 'flag_for_me',
139
138
  'http_method' => 'POST',
140
- 'path' => '/v1/products/reviews/comments/{reviewCommentId}/meta/{field}/pull',
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
 
@@ -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/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.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/policies/count',
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.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/policies/{shippingPolicyId}',
49
- 'params' => ['shippingPolicyId', ],
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.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.push_to_metafield(*args)
29
+ def self.get(*args)
30
30
 
31
31
  Clayful.call_api({
32
32
  'model_name' => @@name,
33
- 'method_name' => 'push_to_metafield',
34
- 'http_method' => 'POST',
35
- 'path' => '/v1/store/meta/{field}/push',
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
 
@@ -65,13 +65,13 @@ module Clayful
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,159 +78,158 @@ 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.cancel(*args)
107
+ def self.delete_metafield(*args)
108
108
 
109
109
  Clayful.call_api({
110
110
  'model_name' => @@name,
111
- 'method_name' => 'cancel',
112
- 'http_method' => 'POST',
113
- 'path' => '/v1/subscriptions/{subscriptionId}/cancellation',
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.sync_inventory(*args)
120
+ def self.fulfill_schedule(*args)
121
121
 
122
122
  Clayful.call_api({
123
123
  'model_name' => @@name,
124
- 'method_name' => 'sync_inventory',
124
+ 'method_name' => 'fulfill_schedule',
125
125
  'http_method' => 'POST',
126
- 'path' => '/v1/subscriptions/{subscriptionId}/synced',
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.mark_as_done(*args)
133
+ def self.get(*args)
135
134
 
136
135
  Clayful.call_api({
137
136
  'model_name' => @@name,
138
- 'method_name' => 'mark_as_done',
139
- 'http_method' => 'POST',
140
- 'path' => '/v1/subscriptions/{subscriptionId}/done',
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.authenticate(*args)
159
+ def self.increase_metafield(*args)
162
160
 
163
161
  Clayful.call_api({
164
162
  'model_name' => @@name,
165
- 'method_name' => 'authenticate',
163
+ 'method_name' => 'increase_metafield',
166
164
  'http_method' => 'POST',
167
- 'path' => '/v1/subscriptions/{subscriptionId}/auth',
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',
194
- 'params' => ['subscriptionId', ],
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.fulfill_schedule(*args)
198
+ def self.list_inventory_operations(*args)
201
199
 
202
200
  Clayful.call_api({
203
201
  'model_name' => @@name,
204
- 'method_name' => 'fulfill_schedule',
205
- 'http_method' => 'POST',
206
- 'path' => '/v1/subscriptions/{subscriptionId}/schedules/orders',
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.push_to_metafield(*args)
211
+ def self.mark_as_done(*args)
214
212
 
215
213
  Clayful.call_api({
216
214
  'model_name' => @@name,
217
- 'method_name' => 'push_to_metafield',
215
+ 'method_name' => 'mark_as_done',
218
216
  'http_method' => 'POST',
219
- 'path' => '/v1/subscriptions/{subscriptionId}/meta/{field}/push',
220
- 'params' => ['subscriptionId', 'field', ],
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.increase_metafield(*args)
225
+ def self.mark_as_undone(*args)
227
226
 
228
227
  Clayful.call_api({
229
228
  'model_name' => @@name,
230
- 'method_name' => 'increase_metafield',
231
- 'http_method' => 'POST',
232
- 'path' => '/v1/subscriptions/{subscriptionId}/meta/{field}/inc',
233
- 'params' => ['subscriptionId', 'field', ],
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.update(*args)
251
+ def self.push_to_metafield(*args)
253
252
 
254
253
  Clayful.call_api({
255
254
  'model_name' => @@name,
256
- 'method_name' => 'update',
257
- 'http_method' => 'PUT',
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.update_for_me(*args)
264
+ def self.schedule(*args)
266
265
 
267
266
  Clayful.call_api({
268
267
  'model_name' => @@name,
269
- 'method_name' => 'update_for_me',
270
- 'http_method' => 'PUT',
271
- 'path' => '/v1/me/subscriptions/{subscriptionId}',
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.update_cancellation(*args)
277
+ def self.schedule_for_me(*args)
279
278
 
280
279
  Clayful.call_api({
281
280
  'model_name' => @@name,
282
- 'method_name' => 'update_cancellation',
283
- 'http_method' => 'PUT',
284
- 'path' => '/v1/subscriptions/{subscriptionId}/cancellation',
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.update_cancellation_for_me(*args)
290
+ def self.sync_inventory(*args)
292
291
 
293
292
  Clayful.call_api({
294
293
  'model_name' => @@name,
295
- 'method_name' => 'update_cancellation_for_me',
296
- 'http_method' => 'PUT',
297
- 'path' => '/v1/me/subscriptions/{subscriptionId}/cancellation',
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.update_item(*args)
304
+ def self.update(*args)
305
305
 
306
306
  Clayful.call_api({
307
307
  'model_name' => @@name,
308
- 'method_name' => 'update_item',
308
+ 'method_name' => 'update',
309
309
  'http_method' => 'PUT',
310
- 'path' => '/v1/subscriptions/{subscriptionId}/items/{itemId}',
311
- 'params' => ['subscriptionId', 'itemId', ],
310
+ 'path' => '/v1/subscriptions/{subscriptionId}',
311
+ 'params' => ['subscriptionId', ],
312
312
  'args' => args
313
313
  })
314
314
 
315
315
  end
316
316
 
317
- def self.delete(*args)
317
+ def self.update_cancellation(*args)
318
318
 
319
319
  Clayful.call_api({
320
320
  'model_name' => @@name,
321
- 'method_name' => 'delete',
322
- 'http_method' => 'DELETE',
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.mark_as_undone(*args)
330
+ def self.update_cancellation_for_me(*args)
331
331
 
332
332
  Clayful.call_api({
333
333
  'model_name' => @@name,
334
- 'method_name' => 'mark_as_undone',
335
- 'http_method' => 'DELETE',
336
- 'path' => '/v1/subscriptions/{subscriptionId}/done',
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.delete_metafield(*args)
343
+ def self.update_for_me(*args)
344
344
 
345
345
  Clayful.call_api({
346
346
  'model_name' => @@name,
347
- 'method_name' => 'delete_metafield',
348
- 'http_method' => 'DELETE',
349
- 'path' => '/v1/subscriptions/{subscriptionId}/meta/{field}',
350
- 'params' => ['subscriptionId', 'field', ],
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.delete_inventory_operation(*args)
356
+ def self.update_item(*args)
357
357
 
358
358
  Clayful.call_api({
359
359
  'model_name' => @@name,
360
- 'method_name' => 'delete_inventory_operation',
361
- 'http_method' => 'DELETE',
362
- 'path' => '/v1/subscriptions/{subscriptionId}/inventory/operations/{operationId}',
363
- 'params' => ['subscriptionId', 'operationId', ],
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