amazon-spapi 2.0.3

A Rust client library for Amazon Selling Partner API (SP-API)
Documentation
/*
 * Selling Partner API for Supply Sources
 *
 * Manage configurations and capabilities of seller supply sources.
 *
 * The version of the OpenAPI document: 2020-07-01
 * 
 * Generated by: https://openapi-generator.tech
 */

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

/// SupplySourceConfiguration : Includes configuration and timezone of a supply source.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SupplySourceConfiguration {
    #[serde(rename = "operationalConfiguration", skip_serializing_if = "Option::is_none")]
    pub operational_configuration: Option<Box<models::supply_sources_2020_07_01::OperationalConfiguration>>,
    /// Please see RFC 6557, should be a canonical time zone ID as listed here: https://www.joda.org/joda-time/timezones.html.
    #[serde(rename = "timezone", skip_serializing_if = "Option::is_none")]
    pub timezone: Option<String>,
}

impl SupplySourceConfiguration {
    /// Includes configuration and timezone of a supply source.
    pub fn new() -> SupplySourceConfiguration {
        SupplySourceConfiguration {
            operational_configuration: None,
            timezone: None,
        }
    }
}