Class: MuffinMan::FulfillmentInbound::V20240320
- Inherits:
-
SpApiClient
- Object
- SpApiClient
- MuffinMan::FulfillmentInbound::V20240320
show all
- Defined in:
- lib/muffin_man/fulfillment_inbound/v20240320.rb
Constant Summary
collapse
- INBOUND_PATH =
"/inbound/fba/2024-03-20"
Constants inherited
from SpApiClient
SpApiClient::ACCESS_TOKEN_URL, SpApiClient::AWS_REGION_MAP, SpApiClient::SERVICE_NAME, SpApiClient::UNPROCESSABLE_ENTITY_STATUS_CODE
Instance Attribute Summary
Attributes inherited from SpApiClient
#access_token_cache_key, #aws_access_key_id, #aws_secret_access_key, #client_id, #client_secret, #config, #credentials, #local_var_path, #pii_data_elements, #query_params, #refresh_token, #region, #request_body, #request_type, #sandbox, #scope, #sts_iam_role_arn
Instance Method Summary
collapse
-
#cancel_inbound_plan(inbound_plan_id) ⇒ Object
-
#confirm_delivery_window_options(inbound_plan_id, shipment_id, delivery_window_option_id) ⇒ Object
-
#confirm_packing_option(inbound_plan_id, packing_option_id) ⇒ Object
-
#confirm_placement_option(inbound_plan_id, placement_option_id) ⇒ Object
-
#confirm_shipment_content_update_preview(inbound_plan_id, shipment_id, content_update_preview_id) ⇒ Object
-
#confirm_transportation_options(inbound_plan_id, body) ⇒ Object
-
#create_inbound_plan(destination_marketplaces, items, source_address, name: nil) ⇒ Object
-
#create_marketplace_item_labels(body) ⇒ Object
-
#generate_delivery_window_options(inbound_plan_id, shipment_id) ⇒ Object
-
#generate_packing_options(inbound_plan_id) ⇒ Object
-
#generate_placement_options(inbound_plan_id) ⇒ Object
-
#generate_self_ship_appointment_slots(inbound_plan_id, shipment_id, body) ⇒ Object
-
#generate_shipment_content_update_previews(inbound_plan_id, shipment_id, body) ⇒ Object
-
#generate_transportation_options(inbound_plan_id, body) ⇒ Object
-
#get_inbound_operation_status(operation_id) ⇒ Object
-
#get_inbound_plan(inbound_plan_id) ⇒ Object
-
#get_self_ship_appointment_slots(inbound_plan_id, shipment_id, page_size: nil, pagination_token: nil) ⇒ Object
-
#get_shipment(inbound_plan_id, shipment_id) ⇒ Object
-
#get_shipment_content_update_preview(inbound_plan_id, shipment_id, content_update_preview_id) ⇒ Object
-
#list_delivery_window_options(inbound_plan_id, shipment_id, page_size: nil, pagination_token: nil) ⇒ Object
-
#list_inbound_plan_boxes(inbound_plan_id, page_size: nil, pagination_token: nil) ⇒ Object
-
#list_inbound_plan_items(inbound_plan_id, page_size: nil, pagination_token: nil) ⇒ Object
-
#list_inbound_plans(page_size: nil, pagination_token: nil, status: nil, sort_by: nil, sort_order: nil) ⇒ Object
-
#list_item_compliance_details(mskus, marketplace_id) ⇒ Object
-
#list_packing_group_items(inbound_plan_id, packing_group_id, page_size: nil, pagination_token: nil) ⇒ Object
-
#list_packing_options(inbound_plan_id, page_size: nil, pagination_token: nil) ⇒ Object
-
#list_placement_options(inbound_plan_id, page_size: nil, pagination_token: nil) ⇒ Object
-
#list_prep_details(marketplace_id, mskus) ⇒ Object
-
#list_shipment_boxes(inbound_plan_id, shipment_id, page_size: nil, pagination_token: nil) ⇒ Object
-
#list_shipment_content_update_previews(inbound_plan_id, shipment_id, page_size: nil, pagination_token: nil) ⇒ Object
-
#list_shipment_items(inbound_plan_id, shipment_id, page_size: nil, pagination_token: nil) ⇒ Object
-
#list_shipment_pallets(inbound_plan_id, shipment_id, page_size: nil, pagination_token: nil) ⇒ Object
-
#list_transportation_options(inbound_plan_id, page_size: nil, pagination_token: nil, placement_option_id: nil, shipment_id: nil) ⇒ Object
-
#schedule_self_ship_appointment(inbound_plan_id, shipment_id, slot_id, body) ⇒ Object
-
#set_packing_information(inbound_plan_id, body) ⇒ Object
-
#set_prep_details(body) ⇒ Object
rubocop:disable Naming/AccessorMethodName.
-
#update_item_compliance_details(marketplace_id, body) ⇒ Object
-
#update_shipment_tracking_details(inbound_plan_id, shipment_id, body) ⇒ Object
Methods inherited from SpApiClient
#initialize
Instance Method Details
#cancel_inbound_plan(inbound_plan_id) ⇒ Object
130
131
132
133
134
|
# File 'lib/muffin_man/fulfillment_inbound/v20240320.rb', line 130
def cancel_inbound_plan(inbound_plan_id)
@local_var_path = "#{INBOUND_PATH}/inboundPlans/#{inbound_plan_id}/cancellation"
@request_type = "PUT"
call_api
end
|
#confirm_delivery_window_options(inbound_plan_id, shipment_id, delivery_window_option_id) ⇒ Object
284
285
286
287
288
|
# File 'lib/muffin_man/fulfillment_inbound/v20240320.rb', line 284
def confirm_delivery_window_options(inbound_plan_id, shipment_id, delivery_window_option_id)
@local_var_path = "#{INBOUND_PATH}/inboundPlans/#{inbound_plan_id}/shipments/#{shipment_id}/deliveryWindowOptions/#{delivery_window_option_id}/confirmation" @request_type = "POST"
call_api
end
|
#confirm_packing_option(inbound_plan_id, packing_option_id) ⇒ Object
96
97
98
99
100
|
# File 'lib/muffin_man/fulfillment_inbound/v20240320.rb', line 96
def confirm_packing_option(inbound_plan_id, packing_option_id)
@local_var_path = "#{INBOUND_PATH}/inboundPlans/#{inbound_plan_id}/packingOptions/#{packing_option_id}/confirmation" @request_type = "POST"
call_api
end
|
#confirm_placement_option(inbound_plan_id, placement_option_id) ⇒ Object
124
125
126
127
128
|
# File 'lib/muffin_man/fulfillment_inbound/v20240320.rb', line 124
def confirm_placement_option(inbound_plan_id, placement_option_id)
@local_var_path = "#{INBOUND_PATH}/inboundPlans/#{inbound_plan_id}/placementOptions/#{placement_option_id}/confirmation" @request_type = "POST"
call_api
end
|
#confirm_shipment_content_update_preview(inbound_plan_id, shipment_id, content_update_preview_id) ⇒ Object
254
255
256
257
258
|
# File 'lib/muffin_man/fulfillment_inbound/v20240320.rb', line 254
def confirm_shipment_content_update_preview(inbound_plan_id, shipment_id, content_update_preview_id)
@local_var_path = "#{INBOUND_PATH}/inboundPlans/#{inbound_plan_id}/shipments/#{shipment_id}/contentUpdatePreviews/#{content_update_preview_id}/confirmation" @request_type = "POST"
call_api
end
|
#confirm_transportation_options(inbound_plan_id, body) ⇒ Object
193
194
195
196
197
198
|
# File 'lib/muffin_man/fulfillment_inbound/v20240320.rb', line 193
def confirm_transportation_options(inbound_plan_id, body)
@local_var_path = "#{INBOUND_PATH}/inboundPlans/#{inbound_plan_id}/transportationOptions/confirmation"
@request_body = body
@request_type = "POST"
call_api
end
|
#create_inbound_plan(destination_marketplaces, items, source_address, name: nil) ⇒ Object
59
60
61
62
63
64
65
66
67
68
69
70
|
# File 'lib/muffin_man/fulfillment_inbound/v20240320.rb', line 59
def create_inbound_plan(destination_marketplaces, items, source_address, name: nil)
@local_var_path = "#{INBOUND_PATH}/inboundPlans"
@query_params = {}
@request_body = {
destinationMarketplaces: Array.wrap(destination_marketplaces),
items: items,
sourceAddress: source_address
}
@request_body["name"] = name if name
@request_type = "POST"
call_api
end
|
#create_marketplace_item_labels(body) ⇒ Object
218
219
220
221
222
223
|
# File 'lib/muffin_man/fulfillment_inbound/v20240320.rb', line 218
def create_marketplace_item_labels(body)
@local_var_path = "#{INBOUND_PATH}/items/labels"
@request_body = body
@request_type = "POST"
call_api
end
|
#generate_delivery_window_options(inbound_plan_id, shipment_id) ⇒ Object
269
270
271
272
273
|
# File 'lib/muffin_man/fulfillment_inbound/v20240320.rb', line 269
def generate_delivery_window_options(inbound_plan_id, shipment_id)
@local_var_path = "#{INBOUND_PATH}/inboundPlans/#{inbound_plan_id}/shipments/#{shipment_id}/deliveryWindowOptions" @request_type = "POST"
call_api
end
|
#generate_packing_options(inbound_plan_id) ⇒ Object
72
73
74
75
76
|
# File 'lib/muffin_man/fulfillment_inbound/v20240320.rb', line 72
def generate_packing_options(inbound_plan_id)
@local_var_path = "#{INBOUND_PATH}/inboundPlans/#{inbound_plan_id}/packingOptions"
@request_type = "POST"
call_api
end
|
#generate_placement_options(inbound_plan_id) ⇒ Object
109
110
111
112
113
|
# File 'lib/muffin_man/fulfillment_inbound/v20240320.rb', line 109
def generate_placement_options(inbound_plan_id)
@local_var_path = "#{INBOUND_PATH}/inboundPlans/#{inbound_plan_id}/placementOptions"
@request_type = "POST"
call_api
end
|
#generate_self_ship_appointment_slots(inbound_plan_id, shipment_id, body) ⇒ Object
160
161
162
163
164
165
|
# File 'lib/muffin_man/fulfillment_inbound/v20240320.rb', line 160
def generate_self_ship_appointment_slots(inbound_plan_id, shipment_id, body)
@local_var_path = "#{INBOUND_PATH}/inboundPlans/#{inbound_plan_id}/shipments/#{shipment_id}/selfShipAppointmentSlots" @request_body = body
@request_type = "POST"
call_api
end
|
#generate_shipment_content_update_previews(inbound_plan_id, shipment_id, body) ⇒ Object
241
242
243
244
245
246
|
# File 'lib/muffin_man/fulfillment_inbound/v20240320.rb', line 241
def generate_shipment_content_update_previews(inbound_plan_id, shipment_id, body)
@local_var_path = "#{INBOUND_PATH}/inboundPlans/#{inbound_plan_id}/shipments/#{shipment_id}/contentUpdatePreviews" @request_body = body
@request_type = "POST"
call_api
end
|
#generate_transportation_options(inbound_plan_id, body) ⇒ Object
186
187
188
189
190
191
|
# File 'lib/muffin_man/fulfillment_inbound/v20240320.rb', line 186
def generate_transportation_options(inbound_plan_id, body)
@local_var_path = "#{INBOUND_PATH}/inboundPlans/#{inbound_plan_id}/transportationOptions"
@request_body = body
@request_type = "POST"
call_api
end
|
#get_inbound_operation_status(operation_id) ⇒ Object
136
137
138
139
140
|
# File 'lib/muffin_man/fulfillment_inbound/v20240320.rb', line 136
def get_inbound_operation_status(operation_id)
@local_var_path = "#{INBOUND_PATH}/operations/#{operation_id}"
@request_type = "GET"
call_api
end
|
#get_inbound_plan(inbound_plan_id) ⇒ Object
29
30
31
32
33
|
# File 'lib/muffin_man/fulfillment_inbound/v20240320.rb', line 29
def get_inbound_plan(inbound_plan_id)
@local_var_path = "#{INBOUND_PATH}/inboundPlans/#{inbound_plan_id}"
@request_type = "GET"
call_api
end
|
#get_self_ship_appointment_slots(inbound_plan_id, shipment_id, page_size: nil, pagination_token: nil) ⇒ Object
151
152
153
154
155
156
157
158
|
# File 'lib/muffin_man/fulfillment_inbound/v20240320.rb', line 151
def get_self_ship_appointment_slots(inbound_plan_id, shipment_id, page_size: nil, pagination_token: nil)
@local_var_path = "#{INBOUND_PATH}/inboundPlans/#{inbound_plan_id}/shipments/#{shipment_id}/selfShipAppointmentSlots" @query_params = {}
@query_params["pageSize"] = page_size if page_size
@query_params["paginationToken"] = if
@request_type = "GET"
call_api
end
|
#get_shipment(inbound_plan_id, shipment_id) ⇒ Object
35
36
37
38
39
|
# File 'lib/muffin_man/fulfillment_inbound/v20240320.rb', line 35
def get_shipment(inbound_plan_id, shipment_id)
@local_var_path = "#{INBOUND_PATH}/inboundPlans/#{inbound_plan_id}/shipments/#{shipment_id}"
@request_type = "GET"
call_api
end
|
#get_shipment_content_update_preview(inbound_plan_id, shipment_id, content_update_preview_id) ⇒ Object
248
249
250
251
252
|
# File 'lib/muffin_man/fulfillment_inbound/v20240320.rb', line 248
def get_shipment_content_update_preview(inbound_plan_id, shipment_id, content_update_preview_id)
@local_var_path = "#{INBOUND_PATH}/inboundPlans/#{inbound_plan_id}/shipments/#{shipment_id}/contentUpdatePreviews/#{content_update_preview_id}" @request_type = "GET"
call_api
end
|
#list_delivery_window_options(inbound_plan_id, shipment_id, page_size: nil, pagination_token: nil) ⇒ Object
275
276
277
278
279
280
281
282
|
# File 'lib/muffin_man/fulfillment_inbound/v20240320.rb', line 275
def list_delivery_window_options(inbound_plan_id, shipment_id, page_size: nil, pagination_token: nil)
@local_var_path = "#{INBOUND_PATH}/inboundPlans/#{inbound_plan_id}/shipments/#{shipment_id}/deliveryWindowOptions" @query_params = {}
@query_params["pageSize"] = page_size if page_size
@query_params["paginationToken"] = if
@request_type = "GET"
call_api
end
|
#list_inbound_plan_boxes(inbound_plan_id, page_size: nil, pagination_token: nil) ⇒ Object
290
291
292
293
294
295
296
297
|
# File 'lib/muffin_man/fulfillment_inbound/v20240320.rb', line 290
def list_inbound_plan_boxes(inbound_plan_id, page_size: nil, pagination_token: nil)
@local_var_path = "#{INBOUND_PATH}/inboundPlans/#{inbound_plan_id}/boxes"
@query_params = {}
@query_params["pageSize"] = page_size if page_size
@query_params["paginationToken"] = if
@request_type = "GET"
call_api
end
|
#list_inbound_plan_items(inbound_plan_id, page_size: nil, pagination_token: nil) ⇒ Object
20
21
22
23
24
25
26
27
|
# File 'lib/muffin_man/fulfillment_inbound/v20240320.rb', line 20
def list_inbound_plan_items(inbound_plan_id, page_size: nil, pagination_token: nil)
@local_var_path = "#{INBOUND_PATH}/inboundPlans/#{inbound_plan_id}/items"
@query_params = {}
@query_params["pageSize"] = page_size if page_size
@query_params["paginationToken"] = if
@request_type = "GET"
call_api
end
|
#list_inbound_plans(page_size: nil, pagination_token: nil, status: nil, sort_by: nil, sort_order: nil) ⇒ Object
8
9
10
11
12
13
14
15
16
17
18
|
# File 'lib/muffin_man/fulfillment_inbound/v20240320.rb', line 8
def list_inbound_plans(page_size: nil, pagination_token: nil, status: nil, sort_by: nil, sort_order: nil)
@local_var_path = "#{INBOUND_PATH}/inboundPlans"
@query_params = {}
@query_params["pageSize"] = page_size if page_size
@query_params["paginationToken"] = if
@query_params["status"] = status if status
@query_params["sortBy"] = sort_by if sort_by
@query_params["sortOrder"] = sort_order if sort_order
@request_type = "GET"
call_api
end
|
#list_item_compliance_details(mskus, marketplace_id) ⇒ Object
200
201
202
203
204
205
206
207
|
# File 'lib/muffin_man/fulfillment_inbound/v20240320.rb', line 200
def list_item_compliance_details(mskus, marketplace_id)
@local_var_path = "#{INBOUND_PATH}/items/compliance"
@query_params = {}
@query_params["mskus"] = mskus
@query_params["marketplaceId"] = marketplace_id
@request_type = "GET"
call_api
end
|
#list_packing_group_items(inbound_plan_id, packing_group_id, page_size: nil, pagination_token: nil) ⇒ Object
87
88
89
90
91
92
93
94
|
# File 'lib/muffin_man/fulfillment_inbound/v20240320.rb', line 87
def list_packing_group_items(inbound_plan_id, packing_group_id, page_size: nil, pagination_token: nil)
@local_var_path = "#{INBOUND_PATH}/inboundPlans/#{inbound_plan_id}/packingGroups/#{packing_group_id}/items"
@query_params = {}
@query_params["pageSize"] = page_size if page_size
@query_params["paginationToken"] = if
@request_type = "GET"
call_api
end
|
#list_packing_options(inbound_plan_id, page_size: nil, pagination_token: nil) ⇒ Object
78
79
80
81
82
83
84
85
|
# File 'lib/muffin_man/fulfillment_inbound/v20240320.rb', line 78
def list_packing_options(inbound_plan_id, page_size: nil, pagination_token: nil)
@local_var_path = "#{INBOUND_PATH}/inboundPlans/#{inbound_plan_id}/packingOptions"
@query_params = {}
@query_params["pageSize"] = page_size if page_size
@query_params["paginationToken"] = if
@request_type = "GET"
call_api
end
|
#list_placement_options(inbound_plan_id, page_size: nil, pagination_token: nil) ⇒ Object
115
116
117
118
119
120
121
122
|
# File 'lib/muffin_man/fulfillment_inbound/v20240320.rb', line 115
def list_placement_options(inbound_plan_id, page_size: nil, pagination_token: nil)
@local_var_path = "#{INBOUND_PATH}/inboundPlans/#{inbound_plan_id}/placementOptions"
@query_params = {}
@query_params["pageSize"] = page_size if page_size
@query_params["paginationToken"] = if
@request_type = "GET"
call_api
end
|
#list_prep_details(marketplace_id, mskus) ⇒ Object
225
226
227
228
229
230
231
232
|
# File 'lib/muffin_man/fulfillment_inbound/v20240320.rb', line 225
def list_prep_details(marketplace_id, mskus)
@local_var_path = "#{INBOUND_PATH}/items/prepDetails"
@query_params = {}
@query_params["marketplaceId"] = marketplace_id
@query_params["mskus"] = mskus
@request_type = "GET"
call_api
end
|
#list_shipment_boxes(inbound_plan_id, shipment_id, page_size: nil, pagination_token: nil) ⇒ Object
50
51
52
53
54
55
56
57
|
# File 'lib/muffin_man/fulfillment_inbound/v20240320.rb', line 50
def list_shipment_boxes(inbound_plan_id, shipment_id, page_size: nil, pagination_token: nil)
@local_var_path = "#{INBOUND_PATH}/inboundPlans/#{inbound_plan_id}/shipments/#{shipment_id}/boxes"
@query_params = {}
@query_params["pageSize"] = page_size if page_size
@query_params["paginationToken"] = if
@request_type = "GET"
call_api
end
|
#list_shipment_content_update_previews(inbound_plan_id, shipment_id, page_size: nil, pagination_token: nil) ⇒ Object
260
261
262
263
264
265
266
267
|
# File 'lib/muffin_man/fulfillment_inbound/v20240320.rb', line 260
def list_shipment_content_update_previews(inbound_plan_id, shipment_id, page_size: nil, pagination_token: nil)
@local_var_path = "#{INBOUND_PATH}/inboundPlans/#{inbound_plan_id}/shipments/#{shipment_id}/contentUpdatePreviews" @query_params = {}
@query_params["pageSize"] = page_size if page_size
@query_params["paginationToken"] = if
@request_type = "GET"
call_api
end
|
#list_shipment_items(inbound_plan_id, shipment_id, page_size: nil, pagination_token: nil) ⇒ Object
41
42
43
44
45
46
47
48
|
# File 'lib/muffin_man/fulfillment_inbound/v20240320.rb', line 41
def list_shipment_items(inbound_plan_id, shipment_id, page_size: nil, pagination_token: nil)
@local_var_path = "#{INBOUND_PATH}/inboundPlans/#{inbound_plan_id}/shipments/#{shipment_id}/items"
@query_params = {}
@query_params["pageSize"] = page_size if page_size
@query_params["paginationToken"] = if
@request_type = "GET"
call_api
end
|
#list_shipment_pallets(inbound_plan_id, shipment_id, page_size: nil, pagination_token: nil) ⇒ Object
142
143
144
145
146
147
148
149
|
# File 'lib/muffin_man/fulfillment_inbound/v20240320.rb', line 142
def list_shipment_pallets(inbound_plan_id, shipment_id, page_size: nil, pagination_token: nil)
@local_var_path = "#{INBOUND_PATH}/inboundPlans/#{inbound_plan_id}/shipments/#{shipment_id}/pallets"
@query_params = {}
@query_params["pageSize"] = page_size if page_size
@query_params["paginationToken"] = if
@request_type = "GET"
call_api
end
|
#list_transportation_options(inbound_plan_id, page_size: nil, pagination_token: nil, placement_option_id: nil, shipment_id: nil) ⇒ Object
174
175
176
177
178
179
180
181
182
183
184
|
# File 'lib/muffin_man/fulfillment_inbound/v20240320.rb', line 174
def list_transportation_options(inbound_plan_id, page_size: nil, pagination_token: nil, placement_option_id: nil,
shipment_id: nil)
@local_var_path = "#{INBOUND_PATH}/inboundPlans/#{inbound_plan_id}/transportationOptions"
@query_params = {}
@query_params["pageSize"] = page_size if page_size
@query_params["paginationToken"] = if
@query_params["placementOptionId"] = placement_option_id if placement_option_id
@query_params["shipmentId"] = shipment_id if shipment_id
@request_type = "GET"
call_api
end
|
#schedule_self_ship_appointment(inbound_plan_id, shipment_id, slot_id, body) ⇒ Object
167
168
169
170
171
172
|
# File 'lib/muffin_man/fulfillment_inbound/v20240320.rb', line 167
def schedule_self_ship_appointment(inbound_plan_id, shipment_id, slot_id, body)
@local_var_path = "#{INBOUND_PATH}/inboundPlans/#{inbound_plan_id}/shipments/#{shipment_id}/selfShipAppointmentSlots/#{slot_id}/schedule" @request_body = body
@request_type = "POST"
call_api
end
|
102
103
104
105
106
107
|
# File 'lib/muffin_man/fulfillment_inbound/v20240320.rb', line 102
def set_packing_information(inbound_plan_id, body)
@local_var_path = "#{INBOUND_PATH}/inboundPlans/#{inbound_plan_id}/packingInformation"
@request_body = body
@request_type = "POST"
call_api
end
|
#set_prep_details(body) ⇒ Object
rubocop:disable Naming/AccessorMethodName
234
235
236
237
238
239
|
# File 'lib/muffin_man/fulfillment_inbound/v20240320.rb', line 234
def set_prep_details(body) @local_var_path = "#{INBOUND_PATH}/items/prepDetails"
@request_body = body
@request_type = "POST"
call_api
end
|
#update_item_compliance_details(marketplace_id, body) ⇒ Object
209
210
211
212
213
214
215
216
|
# File 'lib/muffin_man/fulfillment_inbound/v20240320.rb', line 209
def update_item_compliance_details(marketplace_id, body)
@local_var_path = "#{INBOUND_PATH}/items/compliance"
@query_params = {}
@query_params["marketplaceId"] = marketplace_id
@request_body = body
@request_type = "PUT"
call_api
end
|
#update_shipment_tracking_details(inbound_plan_id, shipment_id, body) ⇒ Object
299
300
301
302
303
304
|
# File 'lib/muffin_man/fulfillment_inbound/v20240320.rb', line 299
def update_shipment_tracking_details(inbound_plan_id, shipment_id, body)
@local_var_path = "#{INBOUND_PATH}/inboundPlans/#{inbound_plan_id}/shipments/#{shipment_id}/trackingDetails"
@request_body = body
@request_type = "PUT"
call_api
end
|