Class Location
- All Implemented Interfaces:
HasId,StripeActiveObject,StripeObjectInterface
-
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 booleanstatic Locationcreate(LocationCreateParams params) Create a tax location to use in calculating taxes for a service, ticket, or other type of product.static Locationcreate(LocationCreateParams params, RequestOptions options) Create a tax location to use in calculating taxes for a service, ticket, or other type of product.static LocationCreate a tax location to use in calculating taxes for a service, ticket, or other type of product.static Locationcreate(Map<String, Object> params, RequestOptions options) Create a tax location to use in calculating taxes for a service, ticket, or other type of product.booleanA descriptive text providing additional context about the tax location.getId()Unique identifier for the object.String representing the object's type.getType()The type of tax location to be defined.inthashCode()static LocationCollectionlist(LocationListParams params) Retrieve a list of all tax locations.static LocationCollectionlist(LocationListParams params, RequestOptions options) Retrieve a list of all tax locations.static LocationCollectionRetrieve a list of all tax locations.static LocationCollectionlist(Map<String, Object> params, RequestOptions options) Retrieve a list of all tax locations.static LocationFetch the details of a specific tax location using its unique identifier.static Locationretrieve(String location, RequestOptions options) Fetch the details of a specific tax location using its unique identifier.static Locationretrieve(String location, LocationRetrieveParams params, RequestOptions options) Fetch the details of a specific tax location using its unique identifier.static LocationFetch the details of a specific tax location using its unique identifier.voidsetAddress(Address address) voidsetDescription(String description) A descriptive text providing additional context about the tax location.voidUnique identifier for the object.voidString representing the object's type.voidsetResponseGetter(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.voidThe type of tax location to be defined.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
-
Location
public Location()
-
-
Method Details
-
create
Create a tax location to use in calculating taxes for a service, ticket, or other type of product. The resulting object contains the id, address, name, description, and current operational status of the tax location.- Throws:
StripeException
-
create
public static Location create(Map<String, Object> params, RequestOptions options) throws StripeExceptionCreate a tax location to use in calculating taxes for a service, ticket, or other type of product. The resulting object contains the id, address, name, description, and current operational status of the tax location.- Throws:
StripeException
-
create
Create a tax location to use in calculating taxes for a service, ticket, or other type of product. The resulting object contains the id, address, name, description, and current operational status of the tax location.- Throws:
StripeException
-
create
public static Location create(LocationCreateParams params, RequestOptions options) throws StripeException Create a tax location to use in calculating taxes for a service, ticket, or other type of product. The resulting object contains the id, address, name, description, and current operational status of the tax location.- Throws:
StripeException
-
list
Retrieve a list of all tax locations. Tax locations can represent the venues for services, tickets, or other product types.The response includes detailed information for each tax location, such as its address, name, description, and current operational status.
You can paginate through the list by using the
limitparameter to control the number of results returned in each request.- Throws:
StripeException
-
list
public static LocationCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieve a list of all tax locations. Tax locations can represent the venues for services, tickets, or other product types.The response includes detailed information for each tax location, such as its address, name, description, and current operational status.
You can paginate through the list by using the
limitparameter to control the number of results returned in each request.- Throws:
StripeException
-
list
Retrieve a list of all tax locations. Tax locations can represent the venues for services, tickets, or other product types.The response includes detailed information for each tax location, such as its address, name, description, and current operational status.
You can paginate through the list by using the
limitparameter to control the number of results returned in each request.- Throws:
StripeException
-
list
public static LocationCollection list(LocationListParams params, RequestOptions options) throws StripeException Retrieve a list of all tax locations. Tax locations can represent the venues for services, tickets, or other product types.The response includes detailed information for each tax location, such as its address, name, description, and current operational status.
You can paginate through the list by using the
limitparameter to control the number of results returned in each request.- Throws:
StripeException
-
retrieve
Fetch the details of a specific tax location using its unique identifier. Use a tax location to calculate taxes based on the location of the end product, such as a performance, instead of the customer address. For more details, check the integration guide.- Throws:
StripeException
-
retrieve
Fetch the details of a specific tax location using its unique identifier. Use a tax location to calculate taxes based on the location of the end product, such as a performance, instead of the customer address. For more details, check the integration guide.- Throws:
StripeException
-
retrieve
public static Location retrieve(String location, Map<String, Object> params, RequestOptions options) throws StripeExceptionFetch the details of a specific tax location using its unique identifier. Use a tax location to calculate taxes based on the location of the end product, such as a performance, instead of the customer address. For more details, check the integration guide.- Throws:
StripeException
-
retrieve
public static Location retrieve(String location, LocationRetrieveParams params, RequestOptions options) throws StripeException Fetch the details of a specific tax location using its unique identifier. Use a tax location to calculate taxes based on the location of the end product, such as a performance, instead of the customer address. For more details, check the integration guide.- 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.
-
getAddress
-
getDescription
A descriptive text providing additional context about the tax location. This can include information about the venue, types of events held, services available, or any relevant details for better identification (e.g., "A spacious auditorium suitable for large concerts and events."). -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
tax.location. -
getType
The type of tax location to be defined. Currently the only option isperformance.Equal to
performance. -
setAddress
-
setDescription
A descriptive text providing additional context about the tax location. This can include information about the venue, types of events held, services available, or any relevant details for better identification (e.g., "A spacious auditorium suitable for large concerts and events."). -
setId
Unique identifier for the object. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
tax.location. -
setType
The type of tax location to be defined. Currently the only option isperformance.Equal to
performance. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-