amazon_spapi/models/orders_v0/
automated_shipping_settings.rs

1/*
2 * Selling Partner API for Orders
3 *
4 * Use the Orders Selling Partner API to programmatically retrieve order information. With this API, you can develop fast, flexible, and custom applications to manage order synchronization, perform order research, and create demand-based decision support tools.   _Note:_ For the JP, AU, and SG marketplaces, the Orders API supports orders from 2016 onward. For all other marketplaces, the Orders API supports orders for the last two years (orders older than this don't show up in the response).
5 *
6 * The version of the OpenAPI document: v0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// AutomatedShippingSettings : Contains information regarding the Shipping Settings Automation program, such as whether the order's shipping settings were generated automatically, and what those settings are.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct AutomatedShippingSettings {
17    /// When true, this order has automated shipping settings generated by Amazon. This order could be identified as an SSA order.
18    #[serde(rename = "HasAutomatedShippingSettings", skip_serializing_if = "Option::is_none")]
19    pub has_automated_shipping_settings: Option<bool>,
20    /// Auto-generated carrier for SSA orders.
21    #[serde(rename = "AutomatedCarrier", skip_serializing_if = "Option::is_none")]
22    pub automated_carrier: Option<String>,
23    /// Auto-generated ship method for SSA orders.
24    #[serde(rename = "AutomatedShipMethod", skip_serializing_if = "Option::is_none")]
25    pub automated_ship_method: Option<String>,
26}
27
28impl AutomatedShippingSettings {
29    /// Contains information regarding the Shipping Settings Automation program, such as whether the order's shipping settings were generated automatically, and what those settings are.
30    pub fn new() -> AutomatedShippingSettings {
31        AutomatedShippingSettings {
32            has_automated_shipping_settings: None,
33            automated_carrier: None,
34            automated_ship_method: None,
35        }
36    }
37}
38