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,StripeObjectInterface
public class TaxId extends ApiResource implements HasId
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTaxId.Verification-
Nested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod
-
-
Field Summary
-
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSON
-
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
-
Constructor Summary
Constructors Constructor Description TaxId()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)TaxIddelete()Deletes an existingTaxIDobject.TaxIddelete(RequestOptions options)Deletes an existingTaxIDobject.TaxIddelete(java.util.Map<java.lang.String,java.lang.Object> params)Deletes an existingTaxIDobject.TaxIddelete(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)Deletes an existingTaxIDobject.booleanequals(java.lang.Object o)java.lang.StringgetCountry()Two-letter ISO code representing the country of the tax ID.java.lang.LonggetCreated()Time at which the object was created.java.lang.StringgetCustomer()Get ID of expandablecustomerobject.CustomergetCustomerObject()Get expandedcustomer.java.lang.BooleangetDeleted()Always true for a deleted object.java.lang.StringgetId()Unique identifier for the object.java.lang.BooleangetLivemode()Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.java.lang.StringgetObject()String representing the object's type.java.lang.StringgetType()Type of the tax ID, one ofae_trn,au_abn,br_cnpj,br_cpf,ca_bn,ca_qst,ch_vat,cl_tin,es_cif,eu_vat,gb_vat,hk_br,id_npwp,in_gst,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,th_vat,tw_vat,us_ein, orza_vat.java.lang.StringgetValue()Value of the tax ID.TaxId.VerificationgetVerification()Tax ID verification information.inthashCode()voidsetCountry(java.lang.String country)Two-letter ISO code representing the country of the tax ID.voidsetCreated(java.lang.Long created)Time at which the object was created.voidsetCustomer(java.lang.String id)voidsetCustomerObject(Customer expandableObject)voidsetDeleted(java.lang.Boolean deleted)Always true for a deleted object.voidsetId(java.lang.String id)Unique identifier for the object.voidsetLivemode(java.lang.Boolean livemode)Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.voidsetObject(java.lang.String object)String representing the object's type.voidsetType(java.lang.String type)Type of the tax ID, one ofae_trn,au_abn,br_cnpj,br_cpf,ca_bn,ca_qst,ch_vat,cl_tin,es_cif,eu_vat,gb_vat,hk_br,id_npwp,in_gst,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,th_vat,tw_vat,us_ein, orza_vat.voidsetValue(java.lang.String value)Value of the tax ID.voidsetVerification(TaxId.Verification verification)Tax ID verification information.-
Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, classUrl, classUrl, instanceUrl, instanceUrl, request, request, requestCollection, requestCollection, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeId
-
Methods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
-
-
-
Method Detail
-
getCustomer
public java.lang.String getCustomer()
Get ID of expandablecustomerobject.
-
setCustomer
public void setCustomer(java.lang.String id)
-
getCustomerObject
public Customer getCustomerObject()
Get expandedcustomer.
-
setCustomerObject
public void setCustomerObject(Customer expandableObject)
-
delete
public TaxId delete() throws StripeException
Deletes an existingTaxIDobject.- Throws:
StripeException
-
delete
public TaxId delete(RequestOptions options) throws StripeException
Deletes an existingTaxIDobject.- Throws:
StripeException
-
delete
public TaxId delete(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
Deletes an existingTaxIDobject.- Throws:
StripeException
-
delete
public TaxId delete(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Deletes an existingTaxIDobject.- Throws:
StripeException
-
getCountry
public java.lang.String getCountry()
Two-letter ISO code representing the country of the tax ID.
-
getCreated
public java.lang.Long getCreated()
Time at which the object was created. Measured in seconds since the Unix epoch.
-
getDeleted
public java.lang.Boolean getDeleted()
Always true for a deleted object.
-
getLivemode
public java.lang.Boolean getLivemode()
Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.
-
getObject
public java.lang.String getObject()
String representing the object's type. Objects of the same type share the same value.Equal to
tax_id.
-
getType
public java.lang.String getType()
Type of the tax ID, one ofae_trn,au_abn,br_cnpj,br_cpf,ca_bn,ca_qst,ch_vat,cl_tin,es_cif,eu_vat,gb_vat,hk_br,id_npwp,in_gst,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,th_vat,tw_vat,us_ein, orza_vat. Note that some legacy tax IDs have typeunknown
-
getValue
public java.lang.String getValue()
Value of the tax ID.
-
getVerification
public TaxId.Verification getVerification()
Tax ID verification information.
-
setCountry
public void setCountry(java.lang.String country)
Two-letter ISO code representing the country of the tax ID.
-
setCreated
public void setCreated(java.lang.Long created)
Time at which the object was created. Measured in seconds since the Unix epoch.
-
setDeleted
public void setDeleted(java.lang.Boolean deleted)
Always true for a deleted object.
-
setId
public void setId(java.lang.String id)
Unique identifier for the object.
-
setLivemode
public void setLivemode(java.lang.Boolean livemode)
Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.
-
setObject
public void setObject(java.lang.String object)
String representing the object's type. Objects of the same type share the same value.Equal to
tax_id.
-
setType
public void setType(java.lang.String type)
Type of the tax ID, one ofae_trn,au_abn,br_cnpj,br_cpf,ca_bn,ca_qst,ch_vat,cl_tin,es_cif,eu_vat,gb_vat,hk_br,id_npwp,in_gst,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,th_vat,tw_vat,us_ein, orza_vat. Note that some legacy tax IDs have typeunknown
-
setValue
public void setValue(java.lang.String value)
Value of the tax ID.
-
setVerification
public void setVerification(TaxId.Verification verification)
Tax ID verification information.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-