pub struct TaxId {
pub id: TaxIdId,
pub country: Option<String>,
pub created: Option<Timestamp>,
pub customer: Option<Expandable<Customer>>,
pub deleted: bool,
pub livemode: Option<bool>,
pub type_: Option<TaxIdType>,
pub value: Option<String>,
pub verification: Option<TaxIdVerification>,
}
Expand description
The resource representing a Stripe “tax_id”.
Fields
id: TaxIdId
Unique identifier for the object.
country: Option<String>
Two-letter ISO code representing the country of the tax ID.
created: Option<Timestamp>
Time at which the object was created.
Measured in seconds since the Unix epoch.
customer: Option<Expandable<Customer>>
ID of the customer.
deleted: bool
livemode: Option<bool>
Has the value true
if the object exists in live mode or the value false
if the object exists in test mode.
type_: Option<TaxIdType>
Type of the tax ID, one of ae_trn
, au_abn
, au_arn
, bg_uic
, br_cnpj
, br_cpf
, ca_bn
, ca_gst_hst
, ca_pst_bc
, ca_pst_mb
, ca_pst_sk
, ca_qst
, ch_vat
, cl_tin
, es_cif
, eu_oss_vat
, eu_vat
, gb_vat
, ge_vat
, hk_br
, hu_tin
, id_npwp
, il_vat
, in_gst
, is_vat
, jp_cn
, jp_rn
, kr_brn
, li_uid
, mx_rfc
, my_frp
, my_itn
, my_sst
, no_vat
, nz_gst
, ru_inn
, ru_kpp
, sa_vat
, sg_gst
, sg_uen
, si_tin
, th_vat
, tw_vat
, ua_vat
, us_ein
, or za_vat
.
Note that some legacy tax IDs have type unknown
.
value: Option<String>
Value of the tax ID.
verification: Option<TaxIdVerification>
Tax ID verification information.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for TaxId
impl<'de> Deserialize<'de> for TaxId
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for TaxId
impl Send for TaxId
impl Sync for TaxId
impl Unpin for TaxId
impl UnwindSafe for TaxId
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more