amazon-spapi 2.0.3

A Rust client library for Amazon Selling Partner API (SP-API)
Documentation
/*
 * Selling Partner API for Retail Procurement Shipments
 *
 * The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.
 *
 * The version of the OpenAPI document: v1
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// VendorDetails : Vendor Details as part of Label response.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct VendorDetails {
    #[serde(rename = "sellingParty", skip_serializing_if = "Option::is_none")]
    pub selling_party: Option<Box<models::vendor_shipments::PartyIdentification>>,
    /// Unique vendor shipment id which is not used in last 365 days
    #[serde(rename = "vendorShipmentIdentifier", skip_serializing_if = "Option::is_none")]
    pub vendor_shipment_identifier: Option<String>,
}

impl VendorDetails {
    /// Vendor Details as part of Label response.
    pub fn new() -> VendorDetails {
        VendorDetails {
            selling_party: None,
            vendor_shipment_identifier: None,
        }
    }
}