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 ClassesModifier and TypeClassDescriptionstatic classFor more details about Requirements, please refer to the API Reference.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.An object that describes more information about the tax location required for this tax code.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.voidsetRequirements(TaxCode.Requirements requirements) An object that describes more information about the tax location required for this tax code.voidsetResponseGetter(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setGlobalResponseGetter, 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
-
setResponseGetter
Description copied from interface:StripeActiveObjectMethod is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.- Specified by:
setResponseGetterin interfaceStripeActiveObject- Overrides:
setResponseGetterin classApiResource- Parameters:
responseGetter- theStripeResponseGetterinstance to use for making further requests.
-
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. -
getRequirements
An object that describes more information about the tax location required for this tax code. Some tax codes require a tax location of typeperformanceto calculate tax correctly. -
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. -
setRequirements
An object that describes more information about the tax location required for this tax code. Some tax codes require a tax location of typeperformanceto calculate tax correctly. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-