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 boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.lang.String
getDescription()
A detailed description of which types of products the tax code represents.java.lang.String
getId()
Unique identifier for the object.java.lang.String
getName()
A short name for the tax code.java.lang.String
getObject()
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
list(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 TaxCodeCollection
list(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 TaxCode
retrieve(java.lang.String id)
Retrieves the details of an existing tax code.static TaxCode
retrieve(java.lang.String id, RequestOptions options)
Retrieves the details of an existing tax code.static TaxCode
retrieve(java.lang.String id, TaxCodeRetrieveParams params, RequestOptions options)
Retrieves the details of an existing tax code.static TaxCode
retrieve(java.lang.String id, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)
Retrieves the details of an existing tax code.void
setDescription(java.lang.String description)
A detailed description of which types of products the tax code represents.void
setId(java.lang.String id)
Unique identifier for the object.void
setName(java.lang.String name)
A short name for the tax code.void
setObject(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:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-