/*
* The Selling Partner API for Amazon Warehousing and Distribution
*
* The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
*
* The version of the OpenAPI document: 2024-05-09
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// ExpirationDetails : The expiration details of the inventory. This object will only appear if the details parameter in the request is set to `SHOW`.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ExpirationDetails {
/// The expiration date of the SKU.
#[serde(rename = "expiration", skip_serializing_if = "Option::is_none")]
pub expiration: Option<String>,
/// The quantity that is present in AWD.
#[serde(rename = "onhandQuantity", skip_serializing_if = "Option::is_none")]
pub onhand_quantity: Option<i64>,
}
impl ExpirationDetails {
/// The expiration details of the inventory. This object will only appear if the details parameter in the request is set to `SHOW`.
pub fn new() -> ExpirationDetails {
ExpirationDetails {
expiration: None,
onhand_quantity: None,
}
}
}