amazon_spapi/models/shipping_v2/
client_reference_detail.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/// ClientReferenceDetail : Client Reference Details
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ClientReferenceDetail {
17    /// Client Reference type.
18    #[serde(rename = "clientReferenceType")]
19    pub client_reference_type: ClientReferenceType,
20    /// The Client Reference Id.
21    #[serde(rename = "clientReferenceId")]
22    pub client_reference_id: String,
23}
24
25impl ClientReferenceDetail {
26    /// Client Reference Details
27    pub fn new(client_reference_type: ClientReferenceType, client_reference_id: String) -> ClientReferenceDetail {
28        ClientReferenceDetail {
29            client_reference_type,
30            client_reference_id,
31        }
32    }
33}
34/// Client Reference type.
35#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
36pub enum ClientReferenceType {
37    #[serde(rename = "IntegratorShipperId")]
38    IntegratorShipperId,
39    #[serde(rename = "IntegratorMerchantId")]
40    IntegratorMerchantId,
41}
42
43impl Default for ClientReferenceType {
44    fn default() -> ClientReferenceType {
45        Self::IntegratorShipperId
46    }
47}
48