1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
/*
* Selling Partner API for Fulfillment Inbound
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* The version of the OpenAPI document: v0
*
* Generated by: https://openapi-generator.tech
*/
/// CreateInboundShipmentPlanRequest : The request schema for the createInboundShipmentPlan operation.
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct CreateInboundShipmentPlanRequest {
#[serde(default, rename = "ShipFromAddress")]
pub ship_from_address: Box<crate::models::Address>,
#[serde(default, rename = "LabelPrepPreference")]
pub label_prep_preference: crate::models::LabelPrepPreference,
/// The two-character country code for the country where the inbound shipment is to be sent. Note: Not required. Specifying both ShipToCountryCode and ShipToCountrySubdivisionCode returns an error. Values: ShipToCountryCode values for North America: * CA – Canada * MX - Mexico * US - United States ShipToCountryCode values for MCI sellers in Europe: * DE – Germany * ES – Spain * FR – France * GB – United Kingdom * IT – Italy Default: The country code for the seller's home marketplace.
#[serde(default, rename = "ShipToCountryCode", skip_serializing_if = "Option::is_none")]
pub ship_to_country_code: Option<String>,
/// The two-character country code, followed by a dash and then up to three characters that represent the subdivision of the country where the inbound shipment is to be sent. For example, \"IN-MH\". In full ISO 3166-2 format. Note: Not required. Specifying both ShipToCountryCode and ShipToCountrySubdivisionCode returns an error.
#[serde(default, rename = "ShipToCountrySubdivisionCode", skip_serializing_if = "Option::is_none")]
pub ship_to_country_subdivision_code: Option<String>,
#[serde(default, rename = "InboundShipmentPlanRequestItems")]
pub inbound_shipment_plan_request_items: Vec<crate::models::InboundShipmentPlanRequestItem>,
}
impl CreateInboundShipmentPlanRequest {
/// The request schema for the createInboundShipmentPlan operation.
pub fn new(ship_from_address: crate::models::Address, label_prep_preference: crate::models::LabelPrepPreference, inbound_shipment_plan_request_items: Vec<crate::models::InboundShipmentPlanRequestItem>) -> CreateInboundShipmentPlanRequest {
CreateInboundShipmentPlanRequest {
ship_from_address: Box::new(ship_from_address),
label_prep_preference,
ship_to_country_code: None,
ship_to_country_subdivision_code: None,
inbound_shipment_plan_request_items,
}
}
}