1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/*
 * Selling Partner API for Merchant Fulfillment
 *
 * The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
 *
 * The version of the OpenAPI document: v0
 * 
 * Generated by: https://openapi-generator.tech
 */

/// AdditionalSellerInput : Additional information required to purchase shipping.



#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct AdditionalSellerInput {
    /// The data type of the additional information.
    #[serde(default, rename = "DataType", skip_serializing_if = "Option::is_none")]
    pub data_type: Option<String>,
    /// The value when the data type is string.
    #[serde(default, rename = "ValueAsString", skip_serializing_if = "Option::is_none")]
    pub value_as_string: Option<String>,
    /// The value when the data type is boolean.
    #[serde(default, rename = "ValueAsBoolean", skip_serializing_if = "Option::is_none")]
    pub value_as_boolean: Option<bool>,
    /// The value when the data type is integer.
    #[serde(default, rename = "ValueAsInteger", skip_serializing_if = "Option::is_none")]
    pub value_as_integer: Option<i32>,
    #[serde(default, rename = "ValueAsTimestamp", skip_serializing_if = "Option::is_none")]
    pub value_as_timestamp: Option<String>,
    #[serde(default, rename = "ValueAsAddress", skip_serializing_if = "Option::is_none")]
    pub value_as_address: Option<Box<crate::models::Address>>,
    #[serde(default, rename = "ValueAsWeight", skip_serializing_if = "Option::is_none")]
    pub value_as_weight: Option<Box<crate::models::Weight>>,
    #[serde(default, rename = "ValueAsDimension", skip_serializing_if = "Option::is_none")]
    pub value_as_dimension: Option<Box<crate::models::Length>>,
    #[serde(default, rename = "ValueAsCurrency", skip_serializing_if = "Option::is_none")]
    pub value_as_currency: Option<Box<crate::models::CurrencyAmount>>,
}

impl AdditionalSellerInput {
    /// Additional information required to purchase shipping.
    pub fn new() -> AdditionalSellerInput {
        AdditionalSellerInput {
            data_type: None,
            value_as_string: None,
            value_as_boolean: None,
            value_as_integer: None,
            value_as_timestamp: None,
            value_as_address: None,
            value_as_weight: None,
            value_as_dimension: None,
            value_as_currency: None,
        }
    }
}