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
,StripeActiveObject
,StripeObjectInterface
Tax codes classify goods and services
for tax purposes.
-
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, INTERNAL_GSON
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
A detailed description of which types of products the tax code represents.getId()
Unique identifier for the object.getName()
A short name for the tax code.String representing the object's type.int
hashCode()
static TaxCodeCollection
list
(TaxCodeListParams params) A list of all tax codes available to add to Products in order to allow specific tax calculations.static TaxCodeCollection
list
(TaxCodeListParams params, RequestOptions options) A list of all tax codes available to add to Products in order to allow specific tax calculations.static TaxCodeCollection
A list of all tax codes available to add to Products in order to allow specific tax calculations.static TaxCodeCollection
list
(Map<String, Object> params, RequestOptions options) A list of all tax codes available to add to Products in order to allow specific tax calculations.static TaxCode
Retrieves the details of an existing tax code.static TaxCode
retrieve
(String id, RequestOptions options) Retrieves the details of an existing tax code.static TaxCode
retrieve
(String id, TaxCodeRetrieveParams params, RequestOptions options) Retrieves the details of an existing tax code.static TaxCode
Retrieves the details of an existing tax code.void
setDescription
(String description) A detailed description of which types of products the tax code represents.void
Unique identifier for the object.void
A short name for the tax code.void
String representing the object's type.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setResponseGetter, setStripeResponseGetter, urlEncode, urlEncodeId
Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.stripe.model.StripeActiveObject
trySetResponseGetter
-
Constructor Details
-
TaxCode
public TaxCode()
-
-
Method Details
-
list
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(Map<String, Object> params, RequestOptions options) throws StripeExceptionA list of all tax codes available to add to Products in order to allow specific tax calculations.- Throws:
StripeException
-
list
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
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
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(String id, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves 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(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
A detailed description of which types of products the tax code represents. -
getName
A short name for the tax code. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
tax_code
. -
setDescription
A detailed description of which types of products the tax code represents. -
setId
Unique identifier for the object. -
setName
A short name for the tax code. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
tax_code
. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-