1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// ======================================
// This file was automatically generated.
// ======================================

use crate::params::Object;
use serde_derive::{Deserialize, Serialize};

/// The resource representing a Stripe "PlatformTax".
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct PlatformTaxFee {
    /// The Connected account that incurred this charge.
    pub account: String,

    /// The payment object that caused this tax to be inflicted.
    pub source_transaction: String,

    /// The type of tax (VAT).
    #[serde(rename = "type")]
    pub type_: String,
}

impl Object for PlatformTaxFee {
    type Id = ();
    fn id(&self) -> Self::Id {}
    fn object(&self) -> &'static str {
        "platform_tax_fee"
    }
}