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_GSONFields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanA 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.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 TaxCodeCollectionA list of all tax codes available to add to Products in order to allow specific tax calculations.static TaxCodeCollectionlist(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 TaxCodeRetrieves the details of an existing tax code.static TaxCoderetrieve(String id, RequestOptions options) Retrieves the details of an existing tax code.static TaxCoderetrieve(String id, TaxCodeRetrieveParams params, RequestOptions options) Retrieves the details of an existing tax code.static TaxCodeRetrieves the details of an existing tax code.voidsetDescription(String description) A detailed description of which types of products the tax code represents.voidUnique identifier for the object.voidA short name for the tax code.voidString representing the object's type.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setGlobalResponseGetter, setResponseGetter, urlEncode, urlEncodeIdMethods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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.
-