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 APIs for Fulfillment Outbound
*
* The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders.
*
* The version of the OpenAPI document: 2020-07-01
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// VariablePrecisionAddress : A physical address with varying degrees of precision. A more precise address can provide more accurate results than country code and postal code alone.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct VariablePrecisionAddress {
/// The first line of the address.
#[serde(rename = "addressLine1", skip_serializing_if = "Option::is_none")]
pub address_line1: Option<String>,
/// Additional address information, if required.
#[serde(rename = "addressLine2", skip_serializing_if = "Option::is_none")]
pub address_line2: Option<String>,
/// Additional address information, if required.
#[serde(rename = "addressLine3", skip_serializing_if = "Option::is_none")]
pub address_line3: Option<String>,
/// The city where the person, business, or institution is located. This property should not be used in Japan.
#[serde(rename = "city", skip_serializing_if = "Option::is_none")]
pub city: Option<String>,
/// The district or county where the person, business, or institution is located.
#[serde(rename = "districtOrCounty", skip_serializing_if = "Option::is_none")]
pub district_or_county: Option<String>,
/// The state or region where the person, business or institution is located.
#[serde(rename = "stateOrRegion", skip_serializing_if = "Option::is_none")]
pub state_or_region: Option<String>,
/// The postal code of the address.
#[serde(rename = "postalCode")]
pub postal_code: String,
/// The two digit country code. In ISO 3166-1 alpha-2 format.
#[serde(rename = "countryCode")]
pub country_code: String,
}
impl VariablePrecisionAddress {
/// A physical address with varying degrees of precision. A more precise address can provide more accurate results than country code and postal code alone.
pub fn new(postal_code: String, country_code: String) -> VariablePrecisionAddress {
VariablePrecisionAddress {
address_line1: None,
address_line2: None,
address_line3: None,
city: None,
district_or_county: None,
state_or_region: None,
postal_code,
country_code,
}
}
}