amazon-spapi 2.0.3

A Rust client library for Amazon Selling Partner API (SP-API)
Documentation
/*
 * Selling Partner API for Orders
 *
 * Use the Orders Selling Partner API to programmatically retrieve order information. With this API, you can develop fast, flexible, and custom applications to manage order synchronization, perform order research, and create demand-based decision support tools.   _Note:_ For the JP, AU, and SG marketplaces, the Orders API supports orders from 2016 onward. For all other marketplaces, the Orders API supports orders for the last two years (orders older than this don't show up in the response).
 *
 * The version of the OpenAPI document: v0
 * 
 * Generated by: https://openapi-generator.tech
 */

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

/// BuyerTaxInfo : Tax information about the buyer.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct BuyerTaxInfo {
    /// The legal name of the company.
    #[serde(rename = "CompanyLegalName", skip_serializing_if = "Option::is_none")]
    pub company_legal_name: Option<String>,
    /// The country or region imposing the tax.
    #[serde(rename = "TaxingRegion", skip_serializing_if = "Option::is_none")]
    pub taxing_region: Option<String>,
    /// A list of tax classifications that apply to the order.
    #[serde(rename = "TaxClassifications", skip_serializing_if = "Option::is_none")]
    pub tax_classifications: Option<Vec<models::orders_v0::TaxClassification>>,
}

impl BuyerTaxInfo {
    /// Tax information about the buyer.
    pub fn new() -> BuyerTaxInfo {
        BuyerTaxInfo {
            company_legal_name: None,
            taxing_region: None,
            tax_classifications: None,
        }
    }
}