public class TaxRate extends ApiResource implements HasId, MetadataStore<TaxRate>
ApiResource.RequestMethod, ApiResource.RequestType
CHARSET, GSON
PRETTY_PRINT_GSON
Constructor and Description |
---|
TaxRate() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(java.lang.Object other) |
static TaxRate |
create(java.util.Map<java.lang.String,java.lang.Object> params)
Creates a new tax rate.
|
static TaxRate |
create(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Creates a new tax rate.
|
static TaxRate |
create(TaxRateCreateParams params)
Creates a new tax rate.
|
static TaxRate |
create(TaxRateCreateParams params,
RequestOptions options)
Creates a new tax rate.
|
boolean |
equals(java.lang.Object o) |
java.lang.Boolean |
getActive()
Defaults to `true`.
|
java.lang.Long |
getCreated()
Time at which the object was created.
|
java.lang.String |
getDescription()
An arbitrary string attached to the tax rate for your internal use only.
|
java.lang.String |
getDisplayName()
The display name of the tax rates as it will appear to your customer on their receipt email,
PDF, and the hosted invoice page.
|
java.lang.String |
getId()
Unique identifier for the object.
|
java.lang.Boolean |
getInclusive()
This specifies if the tax rate is inclusive or exclusive.
|
java.lang.String |
getJurisdiction()
The jurisdiction for the tax rate.
|
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.util.Map<java.lang.String,java.lang.String> |
getMetadata()
Set of key-value pairs that you can attach to an object.
|
java.lang.String |
getObject()
String representing the object's type.
|
java.math.BigDecimal |
getPercentage()
This represents the tax rate percent out of 100.
|
int |
hashCode() |
static TaxRateCollection |
list(java.util.Map<java.lang.String,java.lang.Object> params)
Returns a list of your tax rates.
|
static TaxRateCollection |
list(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Returns a list of your tax rates.
|
static TaxRateCollection |
list(TaxRateListParams params)
Returns a list of your tax rates.
|
static TaxRateCollection |
list(TaxRateListParams params,
RequestOptions options)
Returns a list of your tax rates.
|
static TaxRate |
retrieve(java.lang.String taxRate)
Retrieves a tax rate with the given ID.
|
static TaxRate |
retrieve(java.lang.String taxRate,
java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Retrieves a tax rate with the given ID.
|
static TaxRate |
retrieve(java.lang.String taxRate,
RequestOptions options)
Retrieves a tax rate with the given ID.
|
static TaxRate |
retrieve(java.lang.String taxRate,
TaxRateRetrieveParams params,
RequestOptions options)
Retrieves a tax rate with the given ID.
|
void |
setActive(java.lang.Boolean active)
Defaults to `true`.
|
void |
setCreated(java.lang.Long created)
Time at which the object was created.
|
void |
setDescription(java.lang.String description)
An arbitrary string attached to the tax rate for your internal use only.
|
void |
setDisplayName(java.lang.String displayName)
The display name of the tax rates as it will appear to your customer on their receipt email,
PDF, and the hosted invoice page.
|
void |
setId(java.lang.String id)
Unique identifier for the object.
|
void |
setInclusive(java.lang.Boolean inclusive)
This specifies if the tax rate is inclusive or exclusive.
|
void |
setJurisdiction(java.lang.String jurisdiction)
The jurisdiction for the tax rate.
|
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 |
setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
Set of key-value pairs that you can attach to an object.
|
void |
setObject(java.lang.String object)
String representing the object's type.
|
void |
setPercentage(java.math.BigDecimal percentage)
This represents the tax rate percent out of 100.
|
TaxRate |
update(java.util.Map<java.lang.String,java.lang.Object> params)
Updates an existing tax rate.
|
TaxRate |
update(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Updates an existing tax rate.
|
TaxRate |
update(TaxRateUpdateParams params)
Updates an existing tax rate.
|
TaxRate |
update(TaxRateUpdateParams params,
RequestOptions options)
Updates an existing tax rate.
|
checkNullTypedParams, classUrl, classUrl, instanceUrl, instanceUrl, multipartRequest, request, request, requestCollection, requestCollection, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeId
equals, getLastResponse, setLastResponse, toJson, toString
public static TaxRateCollection list(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
StripeException
public static TaxRateCollection list(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
StripeException
public static TaxRateCollection list(TaxRateListParams params) throws StripeException
StripeException
public static TaxRateCollection list(TaxRateListParams params, RequestOptions options) throws StripeException
StripeException
public static TaxRate retrieve(java.lang.String taxRate) throws StripeException
StripeException
public static TaxRate retrieve(java.lang.String taxRate, RequestOptions options) throws StripeException
StripeException
public static TaxRate retrieve(java.lang.String taxRate, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
StripeException
public static TaxRate retrieve(java.lang.String taxRate, TaxRateRetrieveParams params, RequestOptions options) throws StripeException
StripeException
public static TaxRate create(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
StripeException
public static TaxRate create(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
StripeException
public static TaxRate create(TaxRateCreateParams params) throws StripeException
StripeException
public static TaxRate create(TaxRateCreateParams params, RequestOptions options) throws StripeException
StripeException
public TaxRate update(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
update
in interface MetadataStore<TaxRate>
StripeException
public TaxRate update(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
update
in interface MetadataStore<TaxRate>
StripeException
public TaxRate update(TaxRateUpdateParams params) throws StripeException
StripeException
public TaxRate update(TaxRateUpdateParams params, RequestOptions options) throws StripeException
StripeException
public java.lang.Boolean getActive()
public java.lang.Long getCreated()
public java.lang.String getDescription()
public java.lang.String getDisplayName()
public java.lang.Boolean getInclusive()
public java.lang.String getJurisdiction()
public java.lang.Boolean getLivemode()
public java.lang.String getObject()
public java.math.BigDecimal getPercentage()
public void setActive(java.lang.Boolean active)
public void setCreated(java.lang.Long created)
public void setDescription(java.lang.String description)
public void setDisplayName(java.lang.String displayName)
public void setId(java.lang.String id)
public void setInclusive(java.lang.Boolean inclusive)
public void setJurisdiction(java.lang.String jurisdiction)
public void setLivemode(java.lang.Boolean livemode)
public void setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
public void setObject(java.lang.String object)
public void setPercentage(java.math.BigDecimal percentage)
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
public java.lang.String getId()
public java.util.Map<java.lang.String,java.lang.String> getMetadata()
getMetadata
in interface MetadataStore<TaxRate>