amazon_spapi/models/shipping_v2/amazon_order_details.rs
1/*
2 * Amazon Shipping API
3 *
4 * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments.
5 *
6 * The version of the OpenAPI document: v2
7 * Contact: swa-api-core@amazon.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// AmazonOrderDetails : Amazon order information. This is required if the shipment source channel is Amazon.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct AmazonOrderDetails {
17 /// The Amazon order ID associated with the Amazon order fulfilled by this shipment.
18 #[serde(rename = "orderId")]
19 pub order_id: String,
20}
21
22impl AmazonOrderDetails {
23 /// Amazon order information. This is required if the shipment source channel is Amazon.
24 pub fn new(order_id: String) -> AmazonOrderDetails {
25 AmazonOrderDetails {
26 order_id,
27 }
28 }
29}
30