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
/*
* Selling Partner API for Direct Fulfillment Inventory Updates
*
* The Selling Partner API for Direct Fulfillment Inventory Updates provides programmatic access to a direct fulfillment vendor's inventory updates.
*
* The version of the OpenAPI document: v1
*
* Generated by: https://openapi-generator.tech
*/
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct InventoryUpdate {
#[serde(default, rename = "sellingParty")]
pub selling_party: Box<crate::models::PartyIdentification>,
/// When true, this request contains a full feed. Otherwise, this request contains a partial feed. When sending a full feed, you must send information about all items in the warehouse. Any items not in the full feed are updated as not available. When sending a partial feed, only include the items that need an update to inventory. The status of other items will remain unchanged.
#[serde(default, rename = "isFullUpdate")]
pub is_full_update: bool,
/// A list of inventory items with updated details, including quantity available.
#[serde(default, rename = "items")]
pub items: Vec<crate::models::ItemDetails>,
}
impl InventoryUpdate {
pub fn new(selling_party: crate::models::PartyIdentification, is_full_update: bool, items: Vec<crate::models::ItemDetails>) -> InventoryUpdate {
InventoryUpdate {
selling_party: Box::new(selling_party),
is_full_update,
items,
}
}
}