Skip to main content

amazon_spapi/models/vendor_shipments/
party_identification.rs

1/*
2 * Selling Partner API for Retail Procurement Shipments
3 *
4 * The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.
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 the party.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct PartyIdentification {
17    #[serde(rename = "address", skip_serializing_if = "Option::is_none")]
18    pub address: Option<Box<models::vendor_shipments::Address>>,
19    /// Assigned identification for the party.
20    #[serde(rename = "partyId")]
21    pub party_id: String,
22    /// Tax registration details of the entity.
23    #[serde(rename = "taxRegistrationDetails", skip_serializing_if = "Option::is_none")]
24    pub tax_registration_details: Option<Vec<models::vendor_shipments::TaxRegistrationDetails>>,
25}
26
27impl PartyIdentification {
28    /// Name/Address and tax details of the party.
29    pub fn new(party_id: String) -> PartyIdentification {
30        PartyIdentification {
31            address: None,
32            party_id,
33            tax_registration_details: None,
34        }
35    }
36}
37