Package com.stripe.model
Class TaxCode
- java.lang.Object
-
- com.stripe.model.StripeObject
-
- com.stripe.net.ApiResource
-
- com.stripe.model.TaxCode
-
- All Implemented Interfaces:
HasId,StripeObjectInterface
public class TaxCode extends ApiResource implements HasId
-
-
Nested Class Summary
-
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 TaxCode()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.lang.StringgetDescription()A detailed description of which types of products the tax code represents.java.lang.StringgetId()Unique identifier for the object.java.lang.StringgetName()A short name for the tax code.java.lang.StringgetObject()String representing the object's type.inthashCode()static TaxCodeCollectionlist(TaxCodeListParams params)A list of all tax codes available to add to Products in order to allow specific tax calculations.static TaxCodeCollectionlist(TaxCodeListParams params, RequestOptions options)A list of all tax codes available to add to Products in order to allow specific tax calculations.static TaxCodeCollectionlist(java.util.Map<java.lang.String,java.lang.Object> params)A list of all tax codes available to add to Products in order to allow specific tax calculations.static TaxCodeCollectionlist(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)A list of all tax codes available to add to Products in order to allow specific tax calculations.static TaxCoderetrieve(java.lang.String id)Retrieves the details of an existing tax code.static TaxCoderetrieve(java.lang.String id, RequestOptions options)Retrieves the details of an existing tax code.static TaxCoderetrieve(java.lang.String id, TaxCodeRetrieveParams params, RequestOptions options)Retrieves the details of an existing tax code.static TaxCoderetrieve(java.lang.String id, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)Retrieves the details of an existing tax code.voidsetDescription(java.lang.String description)A detailed description of which types of products the tax code represents.voidsetId(java.lang.String id)Unique identifier for the object.voidsetName(java.lang.String name)A short name for the tax code.voidsetObject(java.lang.String object)String representing the object's type.-
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
-
list
public static TaxCodeCollection list(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
A list of all tax codes available to add to Products in order to allow specific tax calculations.- Throws:
StripeException
-
list
public static TaxCodeCollection list(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
A list of all tax codes available to add to Products in order to allow specific tax calculations.- Throws:
StripeException
-
list
public static TaxCodeCollection list(TaxCodeListParams params) throws StripeException
A list of all tax codes available to add to Products in order to allow specific tax calculations.- Throws:
StripeException
-
list
public static TaxCodeCollection list(TaxCodeListParams params, RequestOptions options) throws StripeException
A list of all tax codes available to add to Products in order to allow specific tax calculations.- Throws:
StripeException
-
retrieve
public static TaxCode retrieve(java.lang.String id) throws StripeException
Retrieves the details of an existing tax code. Supply the unique tax code ID and Stripe will return the corresponding tax code information.- Throws:
StripeException
-
retrieve
public static TaxCode retrieve(java.lang.String id, RequestOptions options) throws StripeException
Retrieves the details of an existing tax code. Supply the unique tax code ID and Stripe will return the corresponding tax code information.- Throws:
StripeException
-
retrieve
public static TaxCode retrieve(java.lang.String id, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Retrieves the details of an existing tax code. Supply the unique tax code ID and Stripe will return the corresponding tax code information.- Throws:
StripeException
-
retrieve
public static TaxCode retrieve(java.lang.String id, TaxCodeRetrieveParams params, RequestOptions options) throws StripeException
Retrieves the details of an existing tax code. Supply the unique tax code ID and Stripe will return the corresponding tax code information.- Throws:
StripeException
-
getDescription
public java.lang.String getDescription()
A detailed description of which types of products the tax code represents.
-
getName
public java.lang.String getName()
A short name for the tax code.
-
getObject
public java.lang.String getObject()
String representing the object's type. Objects of the same type share the same value.Equal to
tax_code.
-
setDescription
public void setDescription(java.lang.String description)
A detailed description of which types of products the tax code represents.
-
setId
public void setId(java.lang.String id)
Unique identifier for the object.
-
setName
public void setName(java.lang.String name)
A short name for the tax code.
-
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_code.
-
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
-
-