amazon_spapi/models/vendor_orders/
party_identification.rs

1/*
2 * Selling Partner API for Retail Procurement Orders
3 *
4 * The Selling Partner API for Retail Procurement Orders provides programmatic access to vendor orders data.
5 *
6 * The version of the OpenAPI document: v1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// PartyIdentification : Name, address and tax details of a party.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct PartyIdentification {
17    /// Assigned identification for the party. For example, warehouse code or vendor code. Please refer to specific party for more details.
18    #[serde(rename = "partyId")]
19    pub party_id: String,
20    #[serde(rename = "address", skip_serializing_if = "Option::is_none")]
21    pub address: Option<Box<models::vendor_orders::Address>>,
22    #[serde(rename = "taxInfo", skip_serializing_if = "Option::is_none")]
23    pub tax_info: Option<Box<models::vendor_orders::TaxRegistrationDetails>>,
24}
25
26impl PartyIdentification {
27    /// Name, address and tax details of a party.
28    pub fn new(party_id: String) -> PartyIdentification {
29        PartyIdentification {
30            party_id,
31            address: None,
32            tax_info: None,
33        }
34    }
35}
36