Package com.stripe.model
Class TaxId
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.TaxId
- All Implemented Interfaces:
HasId
,StripeActiveObject
,StripeObjectInterface
You can add one or multiple tax IDs to a customer or account. Customer and account tax
IDs get displayed on related invoices and credit notes.
Related guides: Customer tax identification numbers, Account tax IDs
-
Nested Class Summary
Nested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod
-
Field Summary
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSON, INTERNAL_GSON
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
static TaxId
create
(TaxIdCreateParams params) Creates a new account or customertax_id
object.static TaxId
create
(TaxIdCreateParams params, RequestOptions options) Creates a new account or customertax_id
object.static TaxId
Creates a new account or customertax_id
object.static TaxId
create
(Map<String, Object> params, RequestOptions options) Creates a new account or customertax_id
object.delete()
Deletes an existing account or customertax_id
object.delete
(RequestOptions options) Deletes an existing account or customertax_id
object.static TaxId
Deletes an existingtax_id
object.static TaxId
delete
(String customer, String id, RequestOptions options) Deletes an existingtax_id
object.static TaxId
Deletes an existingtax_id
object.static TaxId
Deletes an existingtax_id
object.Deletes an existing account or customertax_id
object.delete
(Map<String, Object> params, RequestOptions options) Deletes an existing account or customertax_id
object.boolean
Two-letter ISO code representing the country of the tax ID.Time at which the object was created.Get ID of expandablecustomer
object.Get expandedcustomer
.Always true for a deleted object.getId()
Unique identifier for the object.Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.String representing the object's type.getOwner()
The account or customer the tax ID belongs to.getType()
Type of the tax ID, one ofad_nrt
,ae_trn
,ar_cuit
,au_abn
,au_arn
,bg_uic
,bh_vat
,bo_tin
,br_cnpj
,br_cpf
,ca_bn
,ca_gst_hst
,ca_pst_bc
,ca_pst_mb
,ca_pst_sk
,ca_qst
,ch_uid
,ch_vat
,cl_tin
,cn_tin
,co_nit
,cr_tin
,de_stn
,do_rcn
,ec_ruc
,eg_tin
,es_cif
,eu_oss_vat
,eu_vat
,gb_vat
,ge_vat
,hk_br
,hr_oib
,hu_tin
,id_npwp
,il_vat
,in_gst
,is_vat
,jp_cn
,jp_rn
,jp_trn
,ke_pin
,kr_brn
,kz_bin
,li_uid
,mx_rfc
,my_frp
,my_itn
,my_sst
,ng_tin
,no_vat
,no_voec
,nz_gst
,om_vat
,pe_ruc
,ph_tin
,ro_tin
,rs_pib
,ru_inn
,ru_kpp
,sa_vat
,sg_gst
,sg_uen
,si_tin
,sv_nit
,th_vat
,tr_tin
,tw_vat
,ua_vat
,us_ein
,uy_ruc
,ve_rif
,vn_tin
, orza_vat
.getValue()
Value of the tax ID.Tax ID verification information.int
hashCode()
static TaxIdCollection
list
(TaxIdListParams params) Returns a list of tax IDs.static TaxIdCollection
list
(TaxIdListParams params, RequestOptions options) Returns a list of tax IDs.static TaxIdCollection
Returns a list of tax IDs.static TaxIdCollection
list
(Map<String, Object> params, RequestOptions options) Returns a list of tax IDs.static TaxId
Retrieves an account or customertax_id
object.static TaxId
retrieve
(String id, RequestOptions options) Retrieves an account or customertax_id
object.static TaxId
retrieve
(String id, TaxIdRetrieveParams params, RequestOptions options) Retrieves an account or customertax_id
object.static TaxId
Retrieves an account or customertax_id
object.void
setCountry
(String country) Two-letter ISO code representing the country of the tax ID.void
setCreated
(Long created) Time at which the object was created.void
setCustomer
(String id) void
setCustomerObject
(Customer expandableObject) void
setDeleted
(Boolean deleted) Always true for a deleted object.void
Unique identifier for the object.void
setLivemode
(Boolean livemode) Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.void
String representing the object's type.void
setOwner
(TaxId.Owner owner) The account or customer the tax ID belongs to.void
setResponseGetter
(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.void
Type of the tax ID, one ofad_nrt
,ae_trn
,ar_cuit
,au_abn
,au_arn
,bg_uic
,bh_vat
,bo_tin
,br_cnpj
,br_cpf
,ca_bn
,ca_gst_hst
,ca_pst_bc
,ca_pst_mb
,ca_pst_sk
,ca_qst
,ch_uid
,ch_vat
,cl_tin
,cn_tin
,co_nit
,cr_tin
,de_stn
,do_rcn
,ec_ruc
,eg_tin
,es_cif
,eu_oss_vat
,eu_vat
,gb_vat
,ge_vat
,hk_br
,hr_oib
,hu_tin
,id_npwp
,il_vat
,in_gst
,is_vat
,jp_cn
,jp_rn
,jp_trn
,ke_pin
,kr_brn
,kz_bin
,li_uid
,mx_rfc
,my_frp
,my_itn
,my_sst
,ng_tin
,no_vat
,no_voec
,nz_gst
,om_vat
,pe_ruc
,ph_tin
,ro_tin
,rs_pib
,ru_inn
,ru_kpp
,sa_vat
,sg_gst
,sg_uen
,si_tin
,sv_nit
,th_vat
,tr_tin
,tw_vat
,ua_vat
,us_ein
,uy_ruc
,ve_rif
,vn_tin
, orza_vat
.void
Value of the tax ID.void
setVerification
(TaxId.Verification verification) Tax ID verification information.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setStripeResponseGetter, urlEncode, urlEncodeId
Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.stripe.model.StripeActiveObject
trySetResponseGetter
-
Constructor Details
-
TaxId
public TaxId()
-
-
Method Details
-
getCustomer
Get ID of expandablecustomer
object. -
setCustomer
-
getCustomerObject
Get expandedcustomer
. -
setCustomerObject
-
create
Creates a new account or customertax_id
object.- Throws:
StripeException
-
create
public static TaxId create(Map<String, Object> params, RequestOptions options) throws StripeExceptionCreates a new account or customertax_id
object.- Throws:
StripeException
-
create
Creates a new account or customertax_id
object.- Throws:
StripeException
-
create
Creates a new account or customertax_id
object.- Throws:
StripeException
-
delete
Deletes an existing account or customertax_id
object.- Throws:
StripeException
-
delete
Deletes an existing account or customertax_id
object.- Throws:
StripeException
-
delete
Deletes an existing account or customertax_id
object.- Throws:
StripeException
-
delete
Deletes an existing account or customertax_id
object.- Throws:
StripeException
-
delete
Deletes an existingtax_id
object.- Throws:
StripeException
-
delete
public static TaxId delete(String customer, String id, RequestOptions options) throws StripeException Deletes an existingtax_id
object.- Throws:
StripeException
-
delete
public static TaxId delete(String customer, String id, Map<String, Object> params) throws StripeExceptionDeletes an existingtax_id
object.- Throws:
StripeException
-
delete
public static TaxId delete(String customer, String id, Map<String, Object> params, RequestOptions options) throws StripeExceptionDeletes an existingtax_id
object.- Throws:
StripeException
-
list
Returns a list of tax IDs.- Throws:
StripeException
-
list
public static TaxIdCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns a list of tax IDs.- Throws:
StripeException
-
list
Returns a list of tax IDs.- Throws:
StripeException
-
list
public static TaxIdCollection list(TaxIdListParams params, RequestOptions options) throws StripeException Returns a list of tax IDs.- Throws:
StripeException
-
retrieve
Retrieves an account or customertax_id
object.- Throws:
StripeException
-
retrieve
Retrieves an account or customertax_id
object.- Throws:
StripeException
-
retrieve
public static TaxId retrieve(String id, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves an account or customertax_id
object.- Throws:
StripeException
-
retrieve
public static TaxId retrieve(String id, TaxIdRetrieveParams params, RequestOptions options) throws StripeException Retrieves an account or customertax_id
object.- Throws:
StripeException
-
setResponseGetter
Description copied from interface:StripeActiveObject
Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.- Specified by:
setResponseGetter
in interfaceStripeActiveObject
- Overrides:
setResponseGetter
in classApiResource
- Parameters:
responseGetter
- theStripeResponseGetter
instance to use for making further requests.
-
getCountry
Two-letter ISO code representing the country of the tax ID. -
getCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
getDeleted
Always true for a deleted object. -
getLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
tax_id
. -
getOwner
The account or customer the tax ID belongs to. -
getType
Type of the tax ID, one ofad_nrt
,ae_trn
,ar_cuit
,au_abn
,au_arn
,bg_uic
,bh_vat
,bo_tin
,br_cnpj
,br_cpf
,ca_bn
,ca_gst_hst
,ca_pst_bc
,ca_pst_mb
,ca_pst_sk
,ca_qst
,ch_uid
,ch_vat
,cl_tin
,cn_tin
,co_nit
,cr_tin
,de_stn
,do_rcn
,ec_ruc
,eg_tin
,es_cif
,eu_oss_vat
,eu_vat
,gb_vat
,ge_vat
,hk_br
,hr_oib
,hu_tin
,id_npwp
,il_vat
,in_gst
,is_vat
,jp_cn
,jp_rn
,jp_trn
,ke_pin
,kr_brn
,kz_bin
,li_uid
,mx_rfc
,my_frp
,my_itn
,my_sst
,ng_tin
,no_vat
,no_voec
,nz_gst
,om_vat
,pe_ruc
,ph_tin
,ro_tin
,rs_pib
,ru_inn
,ru_kpp
,sa_vat
,sg_gst
,sg_uen
,si_tin
,sv_nit
,th_vat
,tr_tin
,tw_vat
,ua_vat
,us_ein
,uy_ruc
,ve_rif
,vn_tin
, orza_vat
. Note that some legacy tax IDs have typeunknown
-
getValue
Value of the tax ID. -
getVerification
Tax ID verification information. -
setCountry
Two-letter ISO code representing the country of the tax ID. -
setCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
setDeleted
Always true for a deleted object. -
setId
Unique identifier for the object. -
setLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
tax_id
. -
setOwner
The account or customer the tax ID belongs to. -
setType
Type of the tax ID, one ofad_nrt
,ae_trn
,ar_cuit
,au_abn
,au_arn
,bg_uic
,bh_vat
,bo_tin
,br_cnpj
,br_cpf
,ca_bn
,ca_gst_hst
,ca_pst_bc
,ca_pst_mb
,ca_pst_sk
,ca_qst
,ch_uid
,ch_vat
,cl_tin
,cn_tin
,co_nit
,cr_tin
,de_stn
,do_rcn
,ec_ruc
,eg_tin
,es_cif
,eu_oss_vat
,eu_vat
,gb_vat
,ge_vat
,hk_br
,hr_oib
,hu_tin
,id_npwp
,il_vat
,in_gst
,is_vat
,jp_cn
,jp_rn
,jp_trn
,ke_pin
,kr_brn
,kz_bin
,li_uid
,mx_rfc
,my_frp
,my_itn
,my_sst
,ng_tin
,no_vat
,no_voec
,nz_gst
,om_vat
,pe_ruc
,ph_tin
,ro_tin
,rs_pib
,ru_inn
,ru_kpp
,sa_vat
,sg_gst
,sg_uen
,si_tin
,sv_nit
,th_vat
,tr_tin
,tw_vat
,ua_vat
,us_ein
,uy_ruc
,ve_rif
,vn_tin
, orza_vat
. Note that some legacy tax IDs have typeunknown
-
setValue
Value of the tax ID. -
setVerification
Tax ID verification information. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-