amazon_spapi/models/shipment_invoicing_v0/
address.rs

1/*
2 * Selling Partner API for Shipment Invoicing
3 *
4 * The Selling Partner API for Shipment Invoicing helps you programmatically retrieve shipment invoice information in the Brazil marketplace for a selling partner’s Fulfillment by Amazon (FBA) orders.
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/// Address : The shipping address details of the shipment.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Address {
17    /// The name.
18    #[serde(rename = "Name", skip_serializing_if = "Option::is_none")]
19    pub name: Option<String>,
20    /// The street address.
21    #[serde(rename = "AddressLine1", skip_serializing_if = "Option::is_none")]
22    pub address_line1: Option<String>,
23    /// Additional street address information, if required.
24    #[serde(rename = "AddressLine2", skip_serializing_if = "Option::is_none")]
25    pub address_line2: Option<String>,
26    /// Additional street address information, if required.
27    #[serde(rename = "AddressLine3", skip_serializing_if = "Option::is_none")]
28    pub address_line3: Option<String>,
29    /// The city.
30    #[serde(rename = "City", skip_serializing_if = "Option::is_none")]
31    pub city: Option<String>,
32    /// The county.
33    #[serde(rename = "County", skip_serializing_if = "Option::is_none")]
34    pub county: Option<String>,
35    /// The district.
36    #[serde(rename = "District", skip_serializing_if = "Option::is_none")]
37    pub district: Option<String>,
38    /// The state or region.
39    #[serde(rename = "StateOrRegion", skip_serializing_if = "Option::is_none")]
40    pub state_or_region: Option<String>,
41    /// The postal code.
42    #[serde(rename = "PostalCode", skip_serializing_if = "Option::is_none")]
43    pub postal_code: Option<String>,
44    /// The country code.
45    #[serde(rename = "CountryCode", skip_serializing_if = "Option::is_none")]
46    pub country_code: Option<String>,
47    /// The phone number.
48    #[serde(rename = "Phone", skip_serializing_if = "Option::is_none")]
49    pub phone: Option<String>,
50    #[serde(rename = "AddressType", skip_serializing_if = "Option::is_none")]
51    pub address_type: Option<models::shipment_invoicing_v0::AddressTypeEnum>,
52}
53
54impl Address {
55    /// The shipping address details of the shipment.
56    pub fn new() -> Address {
57        Address {
58            name: None,
59            address_line1: None,
60            address_line2: None,
61            address_line3: None,
62            city: None,
63            county: None,
64            district: None,
65            state_or_region: None,
66            postal_code: None,
67            country_code: None,
68            phone: None,
69            address_type: None,
70        }
71    }
72}
73