amazon_spapi/models/orders_v0/address_extended_fields.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/// AddressExtendedFields : The container for address extended fields (such as `street name` and `street number`). Currently only available with Brazil shipping addresses.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct AddressExtendedFields {
17 /// The street name.
18 #[serde(rename = "StreetName", skip_serializing_if = "Option::is_none")]
19 pub street_name: Option<String>,
20 /// The house, building, or property number associated with the location's street address.
21 #[serde(rename = "StreetNumber", skip_serializing_if = "Option::is_none")]
22 pub street_number: Option<String>,
23 /// The floor number/unit number in the building/private house number.
24 #[serde(rename = "Complement", skip_serializing_if = "Option::is_none")]
25 pub complement: Option<String>,
26 /// The neighborhood. This value is only used in some countries (such as Brazil).
27 #[serde(rename = "Neighborhood", skip_serializing_if = "Option::is_none")]
28 pub neighborhood: Option<String>,
29}
30
31impl AddressExtendedFields {
32 /// The container for address extended fields (such as `street name` and `street number`). Currently only available with Brazil shipping addresses.
33 pub fn new() -> AddressExtendedFields {
34 AddressExtendedFields {
35 street_name: None,
36 street_number: None,
37 complement: None,
38 neighborhood: None,
39 }
40 }
41}
42