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 ClassesModifier and TypeClassDescriptionstatic classFor more details about Owner, please refer to the API Reference.static classFor more details about Verification, please refer to the API Reference.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_GSONFields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanstatic TaxIdcreate(TaxIdCreateParams params) Creates a new account or customertax_idobject.static TaxIdcreate(TaxIdCreateParams params, RequestOptions options) Creates a new account or customertax_idobject.static TaxIdCreates a new account or customertax_idobject.static TaxIdcreate(Map<String, Object> params, RequestOptions options) Creates a new account or customertax_idobject.delete()Deletes an existing account or customertax_idobject.delete(RequestOptions options) Deletes an existing account or customertax_idobject.static TaxIdDeletes an existingtax_idobject.static TaxIddelete(String customer, String id, RequestOptions options) Deletes an existingtax_idobject.static TaxIdDeletes an existingtax_idobject.static TaxIdDeletes an existingtax_idobject.Deletes an existing account or customertax_idobject.delete(Map<String, Object> params, RequestOptions options) Deletes an existing account or customertax_idobject.booleanTwo-letter ISO code representing the country of the tax ID.Time at which the object was created.Get ID of expandablecustomerobject.ID of the account.Get expandedcustomer.Always true for a deleted object.getId()Unique identifier for the object.Has the valuetrueif the object exists in live mode or the valuefalseif 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,al_tin,am_tin,ao_tin,ar_cuit,au_abn,au_arn,aw_tin,az_tin,ba_tin,bb_tin,bd_bin,bf_ifu,bg_uic,bh_vat,bj_ifu,bo_tin,br_cnpj,br_cpf,bs_tin,by_tin,ca_bn,ca_gst_hst,ca_pst_bc,ca_pst_mb,ca_pst_sk,ca_qst,cd_nif,ch_uid,ch_vat,cl_tin,cm_niu,cn_tin,co_nit,cr_tin,cv_nif,de_stn,do_rcn,ec_ruc,eg_tin,es_cif,et_tin,eu_oss_vat,eu_vat,gb_vat,ge_vat,gn_nif,hk_br,hr_oib,hu_tin,id_npwp,il_vat,in_gst,is_vat,jp_cn,jp_rn,jp_trn,ke_pin,kg_tin,kh_tin,kr_brn,kz_bin,la_tin,li_uid,li_vat,ma_vat,md_vat,me_pib,mk_vat,mr_nif,mx_rfc,my_frp,my_itn,my_sst,ng_tin,no_vat,no_voec,np_pan,nz_gst,om_vat,pe_ruc,ph_tin,ro_tin,rs_pib,ru_inn,ru_kpp,sa_vat,sg_gst,sg_uen,si_tin,sn_ninea,sr_fin,sv_nit,th_vat,tj_tin,tr_tin,tw_vat,tz_vat,ua_vat,ug_tin,us_ein,uy_ruc,uz_tin,uz_vat,ve_rif,vn_tin,za_vat,zm_tin, orzw_tin.getValue()Value of the tax ID.Tax ID verification information.inthashCode()static TaxIdCollectionlist(TaxIdListParams params) Returns a list of tax IDs.static TaxIdCollectionlist(TaxIdListParams params, RequestOptions options) Returns a list of tax IDs.static TaxIdCollectionReturns a list of tax IDs.static TaxIdCollectionlist(Map<String, Object> params, RequestOptions options) Returns a list of tax IDs.static TaxIdRetrieves an account or customertax_idobject.static TaxIdretrieve(String id, RequestOptions options) Retrieves an account or customertax_idobject.static TaxIdretrieve(String id, TaxIdRetrieveParams params, RequestOptions options) Retrieves an account or customertax_idobject.static TaxIdRetrieves an account or customertax_idobject.voidsetCountry(String country) Two-letter ISO code representing the country of the tax ID.voidsetCreated(Long created) Time at which the object was created.voidsetCustomer(String id) voidsetCustomerAccount(String customerAccount) ID of the account.voidsetCustomerObject(Customer expandableObject) voidsetDeleted(Boolean deleted) Always true for a deleted object.voidUnique identifier for the object.voidsetLivemode(Boolean livemode) Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.voidString representing the object's type.voidsetOwner(TaxId.Owner owner) The account or customer the tax ID belongs to.voidsetResponseGetter(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.voidType of the tax ID, one ofad_nrt,ae_trn,al_tin,am_tin,ao_tin,ar_cuit,au_abn,au_arn,aw_tin,az_tin,ba_tin,bb_tin,bd_bin,bf_ifu,bg_uic,bh_vat,bj_ifu,bo_tin,br_cnpj,br_cpf,bs_tin,by_tin,ca_bn,ca_gst_hst,ca_pst_bc,ca_pst_mb,ca_pst_sk,ca_qst,cd_nif,ch_uid,ch_vat,cl_tin,cm_niu,cn_tin,co_nit,cr_tin,cv_nif,de_stn,do_rcn,ec_ruc,eg_tin,es_cif,et_tin,eu_oss_vat,eu_vat,gb_vat,ge_vat,gn_nif,hk_br,hr_oib,hu_tin,id_npwp,il_vat,in_gst,is_vat,jp_cn,jp_rn,jp_trn,ke_pin,kg_tin,kh_tin,kr_brn,kz_bin,la_tin,li_uid,li_vat,ma_vat,md_vat,me_pib,mk_vat,mr_nif,mx_rfc,my_frp,my_itn,my_sst,ng_tin,no_vat,no_voec,np_pan,nz_gst,om_vat,pe_ruc,ph_tin,ro_tin,rs_pib,ru_inn,ru_kpp,sa_vat,sg_gst,sg_uen,si_tin,sn_ninea,sr_fin,sv_nit,th_vat,tj_tin,tr_tin,tw_vat,tz_vat,ua_vat,ug_tin,us_ein,uy_ruc,uz_tin,uz_vat,ve_rif,vn_tin,za_vat,zm_tin, orzw_tin.voidValue of the tax ID.voidsetVerification(TaxId.Verification verification) Tax ID verification information.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setGlobalResponseGetter, urlEncode, urlEncodeIdMethods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.stripe.model.StripeActiveObject
trySetResponseGetter
-
Constructor Details
-
TaxId
public TaxId()
-
-
Method Details
-
getCustomer
Get ID of expandablecustomerobject. -
setCustomer
-
getCustomerObject
Get expandedcustomer. -
setCustomerObject
-
create
Creates a new account or customertax_idobject.- Throws:
StripeException
-
create
public static TaxId create(Map<String, Object> params, RequestOptions options) throws StripeExceptionCreates a new account or customertax_idobject.- Throws:
StripeException
-
create
Creates a new account or customertax_idobject.- Throws:
StripeException
-
create
Creates a new account or customertax_idobject.- Throws:
StripeException
-
delete
Deletes an existing account or customertax_idobject.- Throws:
StripeException
-
delete
Deletes an existing account or customertax_idobject.- Throws:
StripeException
-
delete
Deletes an existing account or customertax_idobject.- Throws:
StripeException
-
delete
Deletes an existing account or customertax_idobject.- Throws:
StripeException
-
delete
Deletes an existingtax_idobject.- Throws:
StripeException
-
delete
public static TaxId delete(String customer, String id, RequestOptions options) throws StripeException Deletes an existingtax_idobject.- Throws:
StripeException
-
delete
public static TaxId delete(String customer, String id, Map<String, Object> params) throws StripeExceptionDeletes an existingtax_idobject.- Throws:
StripeException
-
delete
public static TaxId delete(String customer, String id, Map<String, Object> params, RequestOptions options) throws StripeExceptionDeletes an existingtax_idobject.- 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_idobject.- Throws:
StripeException
-
retrieve
Retrieves an account or customertax_idobject.- Throws:
StripeException
-
retrieve
public static TaxId retrieve(String id, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves an account or customertax_idobject.- Throws:
StripeException
-
retrieve
public static TaxId retrieve(String id, TaxIdRetrieveParams params, RequestOptions options) throws StripeException Retrieves an account or customertax_idobject.- Throws:
StripeException
-
setResponseGetter
Description copied from interface:StripeActiveObjectMethod is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.- Specified by:
setResponseGetterin interfaceStripeActiveObject- Overrides:
setResponseGetterin classApiResource- Parameters:
responseGetter- theStripeResponseGetterinstance 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. -
getCustomerAccount
ID of the account. -
getDeleted
Always true for a deleted object. -
getLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif 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,al_tin,am_tin,ao_tin,ar_cuit,au_abn,au_arn,aw_tin,az_tin,ba_tin,bb_tin,bd_bin,bf_ifu,bg_uic,bh_vat,bj_ifu,bo_tin,br_cnpj,br_cpf,bs_tin,by_tin,ca_bn,ca_gst_hst,ca_pst_bc,ca_pst_mb,ca_pst_sk,ca_qst,cd_nif,ch_uid,ch_vat,cl_tin,cm_niu,cn_tin,co_nit,cr_tin,cv_nif,de_stn,do_rcn,ec_ruc,eg_tin,es_cif,et_tin,eu_oss_vat,eu_vat,gb_vat,ge_vat,gn_nif,hk_br,hr_oib,hu_tin,id_npwp,il_vat,in_gst,is_vat,jp_cn,jp_rn,jp_trn,ke_pin,kg_tin,kh_tin,kr_brn,kz_bin,la_tin,li_uid,li_vat,ma_vat,md_vat,me_pib,mk_vat,mr_nif,mx_rfc,my_frp,my_itn,my_sst,ng_tin,no_vat,no_voec,np_pan,nz_gst,om_vat,pe_ruc,ph_tin,ro_tin,rs_pib,ru_inn,ru_kpp,sa_vat,sg_gst,sg_uen,si_tin,sn_ninea,sr_fin,sv_nit,th_vat,tj_tin,tr_tin,tw_vat,tz_vat,ua_vat,ug_tin,us_ein,uy_ruc,uz_tin,uz_vat,ve_rif,vn_tin,za_vat,zm_tin, orzw_tin. 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. -
setCustomerAccount
ID of the account. -
setDeleted
Always true for a deleted object. -
setId
Unique identifier for the object. -
setLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif 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,al_tin,am_tin,ao_tin,ar_cuit,au_abn,au_arn,aw_tin,az_tin,ba_tin,bb_tin,bd_bin,bf_ifu,bg_uic,bh_vat,bj_ifu,bo_tin,br_cnpj,br_cpf,bs_tin,by_tin,ca_bn,ca_gst_hst,ca_pst_bc,ca_pst_mb,ca_pst_sk,ca_qst,cd_nif,ch_uid,ch_vat,cl_tin,cm_niu,cn_tin,co_nit,cr_tin,cv_nif,de_stn,do_rcn,ec_ruc,eg_tin,es_cif,et_tin,eu_oss_vat,eu_vat,gb_vat,ge_vat,gn_nif,hk_br,hr_oib,hu_tin,id_npwp,il_vat,in_gst,is_vat,jp_cn,jp_rn,jp_trn,ke_pin,kg_tin,kh_tin,kr_brn,kz_bin,la_tin,li_uid,li_vat,ma_vat,md_vat,me_pib,mk_vat,mr_nif,mx_rfc,my_frp,my_itn,my_sst,ng_tin,no_vat,no_voec,np_pan,nz_gst,om_vat,pe_ruc,ph_tin,ro_tin,rs_pib,ru_inn,ru_kpp,sa_vat,sg_gst,sg_uen,si_tin,sn_ninea,sr_fin,sv_nit,th_vat,tj_tin,tr_tin,tw_vat,tz_vat,ua_vat,ug_tin,us_ein,uy_ruc,uz_tin,uz_vat,ve_rif,vn_tin,za_vat,zm_tin, orzw_tin. 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.
-