public class TaxId extends ApiResource implements HasId
Modifier and Type | Class and Description |
---|---|
static class |
TaxId.Verification |
ApiResource.RequestMethod
CHARSET, GSON
PRETTY_PRINT_GSON
Constructor and Description |
---|
TaxId() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(java.lang.Object other) |
TaxId |
delete()
Deletes an existing
TaxID object. |
TaxId |
delete(java.util.Map<java.lang.String,java.lang.Object> params)
Deletes an existing
TaxID object. |
TaxId |
delete(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Deletes an existing
TaxID object. |
TaxId |
delete(RequestOptions options)
Deletes an existing
TaxID 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 expandable
customer object. |
Customer |
getCustomerObject()
Get expanded
customer . |
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 value
true if the object exists in live mode or the value false 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 of
ae_trn , au_abn , br_cnpj , br_cpf ,
ca_bn , ca_qst , ch_vat , cl_tin , es_cif , eu_vat ,
hk_br , id_npwp , in_gst , jp_cn , kr_brn , li_uid ,
mx_rfc , my_frp , my_itn , my_sst , no_vat , nz_gst ,
ru_inn , sa_vat , sg_gst , sg_uen , th_vat , tw_vat ,
us_ein , or za_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 value
true if the object exists in live mode or the value false 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 of
ae_trn , au_abn , br_cnpj , br_cpf ,
ca_bn , ca_qst , ch_vat , cl_tin , es_cif , eu_vat ,
hk_br , id_npwp , in_gst , jp_cn , kr_brn , li_uid ,
mx_rfc , my_frp , my_itn , my_sst , no_vat , nz_gst ,
ru_inn , sa_vat , sg_gst , sg_uen , th_vat , tw_vat ,
us_ein , or za_vat . |
void |
setValue(java.lang.String value)
Value of the tax ID.
|
void |
setVerification(TaxId.Verification verification)
Tax ID verification information.
|
checkNullTypedParams, classUrl, classUrl, instanceUrl, instanceUrl, request, request, requestCollection, requestCollection, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeId
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
public java.lang.String getCustomer()
customer
object.public void setCustomer(java.lang.String id)
public Customer getCustomerObject()
customer
.public void setCustomerObject(Customer expandableObject)
public TaxId delete() throws StripeException
TaxID
object.StripeException
public TaxId delete(RequestOptions options) throws StripeException
TaxID
object.StripeException
public TaxId delete(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
TaxID
object.StripeException
public TaxId delete(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
TaxID
object.StripeException
public java.lang.String getCountry()
public java.lang.Long getCreated()
public java.lang.Boolean getDeleted()
public java.lang.Boolean getLivemode()
true
if the object exists in live mode or the value false
if the
object exists in test mode.public java.lang.String getObject()
Equal to tax_id
.
public java.lang.String getType()
ae_trn
, au_abn
, br_cnpj
, br_cpf
,
ca_bn
, ca_qst
, ch_vat
, cl_tin
, es_cif
, eu_vat
,
hk_br
, id_npwp
, in_gst
, jp_cn
, kr_brn
, li_uid
,
mx_rfc
, my_frp
, my_itn
, my_sst
, no_vat
, nz_gst
,
ru_inn
, sa_vat
, sg_gst
, sg_uen
, th_vat
, tw_vat
,
us_ein
, or za_vat
. Note that some legacy tax IDs have type unknown
public java.lang.String getValue()
public TaxId.Verification getVerification()
public void setCountry(java.lang.String country)
public void setCreated(java.lang.Long created)
public void setDeleted(java.lang.Boolean deleted)
public void setId(java.lang.String id)
public void setLivemode(java.lang.Boolean livemode)
true
if the object exists in live mode or the value false
if the
object exists in test mode.public void setObject(java.lang.String object)
Equal to tax_id
.
public void setType(java.lang.String type)
ae_trn
, au_abn
, br_cnpj
, br_cpf
,
ca_bn
, ca_qst
, ch_vat
, cl_tin
, es_cif
, eu_vat
,
hk_br
, id_npwp
, in_gst
, jp_cn
, kr_brn
, li_uid
,
mx_rfc
, my_frp
, my_itn
, my_sst
, no_vat
, nz_gst
,
ru_inn
, sa_vat
, sg_gst
, sg_uen
, th_vat
, tw_vat
,
us_ein
, or za_vat
. Note that some legacy tax IDs have type unknown
public void setValue(java.lang.String value)
public void setVerification(TaxId.Verification verification)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
protected boolean canEqual(java.lang.Object other)
public int hashCode()
hashCode
in class java.lang.Object