amazon_spapi/models/fulfillment_inbound_2024_03_20/shipment_source.rs
1/*
2 * The Selling Partner API for FBA inbound operations.
3 *
4 * The Selling Partner API for Fulfillment By Amazon (FBA) Inbound. The FBA Inbound API enables building inbound workflows to create, manage, and send shipments into Amazon's fulfillment network. The API has interoperability with the Send-to-Amazon user interface.
5 *
6 * The version of the OpenAPI document: 2024-03-20
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// ShipmentSource : Specifies the 'ship from' address for the shipment.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ShipmentSource {
17 #[serde(rename = "address", skip_serializing_if = "Option::is_none")]
18 pub address: Option<Box<models::fulfillment_inbound_2024_03_20::Address>>,
19 /// The type of source for this shipment. Possible values: `SELLER_FACILITY`.
20 #[serde(rename = "sourceType")]
21 pub source_type: String,
22}
23
24impl ShipmentSource {
25 /// Specifies the 'ship from' address for the shipment.
26 pub fn new(source_type: String) -> ShipmentSource {
27 ShipmentSource {
28 address: None,
29 source_type,
30 }
31 }
32}
33