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};

/// InboundPreferences : Preferences that can be passed in context of an inbound order
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct InboundPreferences {
    /// Pass a preferred region so that the inbound order can be shipped to an AWD warehouse located in that region. This doesn't guarantee the order to be assigned in the specified destination region as it depends on warehouse capacity availability. 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>,
}

impl InboundPreferences {
    /// Preferences that can be passed in context of an inbound order
    pub fn new() -> InboundPreferences {
        InboundPreferences {
            destination_region: None,
        }
    }
}