Package com.stripe.model.terminal
Class Location
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.terminal.Location
- All Implemented Interfaces:
HasId
,MetadataStore<Location>
,StripeActiveObject
,StripeObjectInterface
A Location represents a grouping of readers.
Related guide: Fleet management
-
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
static Location
create
(LocationCreateParams params) Creates a newLocation
object.static Location
create
(LocationCreateParams params, RequestOptions options) Creates a newLocation
object.static Location
Creates a newLocation
object.static Location
create
(Map<String, Object> params, RequestOptions options) Creates a newLocation
object.delete()
Deletes aLocation
object.delete
(RequestOptions options) Deletes aLocation
object.Deletes aLocation
object.delete
(Map<String, Object> params, RequestOptions options) Deletes aLocation
object.boolean
The ID of a configuration that will be used to customize all readers in this location.Always true for a deleted object.The display name of the location.getId()
Unique identifier for the object.Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.Set of key-value pairs that you can attach to an object.String representing the object's type.int
hashCode()
static LocationCollection
list
(LocationListParams params) Returns a list ofLocation
objects.static LocationCollection
list
(LocationListParams params, RequestOptions options) Returns a list ofLocation
objects.static LocationCollection
Returns a list ofLocation
objects.static LocationCollection
list
(Map<String, Object> params, RequestOptions options) Returns a list ofLocation
objects.static Location
Retrieves aLocation
object.static Location
retrieve
(String location, RequestOptions options) Retrieves aLocation
object.static Location
retrieve
(String location, LocationRetrieveParams params, RequestOptions options) Retrieves aLocation
object.static Location
Retrieves aLocation
object.void
setAddress
(Address address) void
setConfigurationOverrides
(String configurationOverrides) The ID of a configuration that will be used to customize all readers in this location.void
setDeleted
(Boolean deleted) Always true for a deleted object.void
setDisplayName
(String displayName) The display name of the location.void
Unique identifier for the object.void
setLivemode
(Boolean livemode) Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.void
setMetadata
(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.void
String representing the object's type.void
setResponseGetter
(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.update
(LocationUpdateParams params) Updates aLocation
object by setting the values of the parameters passed.update
(LocationUpdateParams params, RequestOptions options) Updates aLocation
object by setting the values of the parameters passed.Updates aLocation
object by setting the values of the parameters passed.update
(Map<String, Object> params, RequestOptions options) Updates aLocation
object by setting the values of the parameters passed.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, 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
-
Location
public Location()
-
-
Method Details
-
create
Creates a newLocation
object. For further details, including which address fields are required in each country, see the Manage locations guide.- Throws:
StripeException
-
create
public static Location create(Map<String, Object> params, RequestOptions options) throws StripeExceptionCreates a newLocation
object. For further details, including which address fields are required in each country, see the Manage locations guide.- Throws:
StripeException
-
create
Creates a newLocation
object. For further details, including which address fields are required in each country, see the Manage locations guide.- Throws:
StripeException
-
create
public static Location create(LocationCreateParams params, RequestOptions options) throws StripeException Creates a newLocation
object. For further details, including which address fields are required in each country, see the Manage locations guide.- Throws:
StripeException
-
delete
Deletes aLocation
object.- Throws:
StripeException
-
delete
Deletes aLocation
object.- Throws:
StripeException
-
delete
Deletes aLocation
object.- Throws:
StripeException
-
delete
Deletes aLocation
object.- Throws:
StripeException
-
list
Returns a list ofLocation
objects.- Throws:
StripeException
-
list
public static LocationCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns a list ofLocation
objects.- Throws:
StripeException
-
list
Returns a list ofLocation
objects.- Throws:
StripeException
-
list
public static LocationCollection list(LocationListParams params, RequestOptions options) throws StripeException Returns a list ofLocation
objects.- Throws:
StripeException
-
retrieve
Retrieves aLocation
object.- Throws:
StripeException
-
retrieve
Retrieves aLocation
object.- Throws:
StripeException
-
retrieve
public static Location retrieve(String location, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves aLocation
object.- Throws:
StripeException
-
retrieve
public static Location retrieve(String location, LocationRetrieveParams params, RequestOptions options) throws StripeException Retrieves aLocation
object.- Throws:
StripeException
-
update
Updates aLocation
object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.- Specified by:
update
in interfaceMetadataStore<Location>
- Throws:
StripeException
-
update
Updates aLocation
object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.- Specified by:
update
in interfaceMetadataStore<Location>
- Throws:
StripeException
-
update
Updates aLocation
object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.- Throws:
StripeException
-
update
Updates aLocation
object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.- Throws:
StripeException
-
setResponseGetter
Description copied from interface:StripeActiveObject
Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.- Specified by:
setResponseGetter
in interfaceStripeActiveObject
- Overrides:
setResponseGetter
in classApiResource
- Parameters:
responseGetter
- theStripeResponseGetter
instance to use for making further requests.
-
getAddress
-
getConfigurationOverrides
The ID of a configuration that will be used to customize all readers in this location. -
getDeleted
Always true for a deleted object. -
getDisplayName
The display name of the location. -
getLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
terminal.location
. -
setAddress
-
setConfigurationOverrides
The ID of a configuration that will be used to customize all readers in this location. -
setDeleted
Always true for a deleted object. -
setDisplayName
The display name of the location. -
setId
Unique identifier for the object. -
setLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
setMetadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
terminal.location
. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object. -
getMetadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.- Specified by:
getMetadata
in interfaceMetadataStore<Location>
-