amazon-spapi 2.0.3

A Rust client library for Amazon Selling Partner API (SP-API)
Documentation
/*
 * Selling Partner API for Retail Procurement Shipments
 *
 * The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.
 *
 * The version of the OpenAPI document: v1
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// ContainerIdentification : A list of carton identifiers.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ContainerIdentification {
    /// The container identification type.
    #[serde(rename = "containerIdentificationType")]
    pub container_identification_type: ContainerIdentificationType,
    /// Container identification number that adheres to the definition of the container identification type.
    #[serde(rename = "containerIdentificationNumber")]
    pub container_identification_number: String,
}

impl ContainerIdentification {
    /// A list of carton identifiers.
    pub fn new(container_identification_type: ContainerIdentificationType, container_identification_number: String) -> ContainerIdentification {
        ContainerIdentification {
            container_identification_type,
            container_identification_number,
        }
    }
}
/// The container identification type.
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum ContainerIdentificationType {
    #[serde(rename = "SSCC")]
    Sscc,
    #[serde(rename = "AMZNCC")]
    Amzncc,
    #[serde(rename = "GTIN")]
    Gtin,
    #[serde(rename = "BPS")]
    Bps,
    #[serde(rename = "CID")]
    Cid,
}

impl Default for ContainerIdentificationType {
    fn default() -> ContainerIdentificationType {
        Self::Sscc
    }
}