amazon_spapi/models/fulfillment_outbound_2020_07_01/origin.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/// Origin : The origin for the delivery offer.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Origin {
17 /// The two digit country code the items should ship from. In ISO 3166-1 alpha-2 format.
18 #[serde(rename = "countryCode")]
19 pub country_code: String,
20}
21
22impl Origin {
23 /// The origin for the delivery offer.
24 pub fn new(country_code: String) -> Origin {
25 Origin {
26 country_code,
27 }
28 }
29}
30