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 class
TaxId.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 boolean
canEqual(java.lang.Object other)
TaxId
delete()
Deletes an existingTaxID
object.TaxId
delete(RequestOptions options)
Deletes an existingTaxID
object.TaxId
delete(java.util.Map<java.lang.String,java.lang.Object> params)
Deletes an existingTaxID
object.TaxId
delete(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)
Deletes an existingTaxID
object.boolean
equals(java.lang.Object o)
java.lang.String
getCountry()
Two-letter ISO code representing the country of the tax ID.java.lang.Long
getCreated()
Time at which the object was created.java.lang.String
getCustomer()
Get ID of expandablecustomer
object.Customer
getCustomerObject()
Get expandedcustomer
.java.lang.Boolean
getDeleted()
Always true for a deleted object.java.lang.String
getId()
Unique identifier for the object.java.lang.Boolean
getLivemode()
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.java.lang.String
getObject()
String representing the object's type.java.lang.String
getType()
Type of the tax ID, one ofae_trn
,au_abn
,au_arn
,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_vat
,gb_vat
,hk_br
,id_npwp
,il_vat
,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.String
getValue()
Value of the tax ID.TaxId.Verification
getVerification()
Tax ID verification information.int
hashCode()
void
setCountry(java.lang.String country)
Two-letter ISO code representing the country of the tax ID.void
setCreated(java.lang.Long created)
Time at which the object was created.void
setCustomer(java.lang.String id)
void
setCustomerObject(Customer expandableObject)
void
setDeleted(java.lang.Boolean deleted)
Always true for a deleted object.void
setId(java.lang.String id)
Unique identifier for the object.void
setLivemode(java.lang.Boolean livemode)
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.void
setObject(java.lang.String object)
String representing the object's type.void
setType(java.lang.String type)
Type of the tax ID, one ofae_trn
,au_abn
,au_arn
,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_vat
,gb_vat
,hk_br
,id_npwp
,il_vat
,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
.void
setValue(java.lang.String value)
Value of the tax ID.void
setVerification(TaxId.Verification verification)
Tax ID verification information.-
Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, classUrl, classUrl, instanceUrl, instanceUrl, request, request, requestCollection, requestCollection, requestSearchResult, requestSearchResult, requestStream, requestStream, 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 expandablecustomer
object.
-
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 existingTaxID
object.- Throws:
StripeException
-
delete
public TaxId delete(RequestOptions options) throws StripeException
Deletes an existingTaxID
object.- Throws:
StripeException
-
delete
public TaxId delete(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
Deletes an existingTaxID
object.- Throws:
StripeException
-
delete
public TaxId delete(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Deletes an existingTaxID
object.- 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 valuetrue
if the object exists in live mode or the valuefalse
if 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
,au_arn
,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_vat
,gb_vat
,hk_br
,id_npwp
,il_vat
,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 valuetrue
if the object exists in live mode or the valuefalse
if 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
,au_arn
,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_vat
,gb_vat
,hk_br
,id_npwp
,il_vat
,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:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-