amazon_spapi/models/finances_v0/tax_withheld_component.rs
1/*
2 * Selling Partner API for Finances
3 *
4 * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range.
5 *
6 * The version of the OpenAPI document: v0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// TaxWithheldComponent : Information about the taxes withheld.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct TaxWithheldComponent {
17 /// The tax collection model applied to the item. Possible values: * MarketplaceFacilitator - Tax is withheld and remitted to the taxing authority by Amazon on behalf of the seller. * Standard - Tax is paid to the seller and not remitted to the taxing authority by Amazon.
18 #[serde(rename = "TaxCollectionModel", skip_serializing_if = "Option::is_none")]
19 pub tax_collection_model: Option<String>,
20 /// A list of charge information on the seller's account.
21 #[serde(rename = "TaxesWithheld", skip_serializing_if = "Option::is_none")]
22 pub taxes_withheld: Option<Vec<models::finances_v0::ChargeComponent>>,
23}
24
25impl TaxWithheldComponent {
26 /// Information about the taxes withheld.
27 pub fn new() -> TaxWithheldComponent {
28 TaxWithheldComponent {
29 tax_collection_model: None,
30 taxes_withheld: None,
31 }
32 }
33}
34