Skip to main content

amazon_spapi/models/fulfillment_outbound_2020_07_01/
tracking_address.rs

1/*
2 * Selling Partner APIs for Fulfillment Outbound
3 *
4 * 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.
5 *
6 * The version of the OpenAPI document: 2020-07-01
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// TrackingAddress : Address information for tracking the package.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct TrackingAddress {
17    /// The city.
18    #[serde(rename = "city")]
19    pub city: String,
20    /// The state.
21    #[serde(rename = "state")]
22    pub state: String,
23    /// The country.
24    #[serde(rename = "country")]
25    pub country: String,
26}
27
28impl TrackingAddress {
29    /// Address information for tracking the package.
30    pub fn new(city: String, state: String, country: String) -> TrackingAddress {
31        TrackingAddress {
32            city,
33            state,
34            country,
35        }
36    }
37}
38