amazon-spapi 2.0.3

A Rust client library for Amazon Selling Partner API (SP-API)
Documentation
/*
 * 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};

/// DestinationDetails : Destination details of an inbound order based on the assigned region and DC for the order.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DestinationDetails {
    #[serde(rename = "destinationAddress", skip_serializing_if = "Option::is_none")]
    pub destination_address: Option<Box<models::awd_2024_05_09::Address>>,
    /// Assigned region where the order will be shipped. This can differ from what was passed as preference. AWD currently supports following region IDs: [us-west, us-east, us-southcentral, us-southeast]
    #[serde(rename = "destinationRegion", skip_serializing_if = "Option::is_none")]
    pub destination_region: Option<String>,
    /// Unique ID of the confirmed shipment being shipped to the assigned destination. This will be available only after an inbound order is confirmed and can be used to track the shipment.
    #[serde(rename = "shipmentId", skip_serializing_if = "Option::is_none")]
    pub shipment_id: Option<String>,
}

impl DestinationDetails {
    /// Destination details of an inbound order based on the assigned region and DC for the order.
    pub fn new() -> DestinationDetails {
        DestinationDetails {
            destination_address: None,
            destination_region: None,
            shipment_id: None,
        }
    }
}