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 ClassesModifier and TypeClassDescriptionstatic classFor more details about AddressKana, please refer to the API Reference.static classFor more details about AddressKanji, 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 booleanstatic Locationcreate(LocationCreateParams params) Creates a newLocationobject.static Locationcreate(LocationCreateParams params, RequestOptions options) Creates a newLocationobject.static LocationCreates a newLocationobject.static Locationcreate(Map<String, Object> params, RequestOptions options) Creates a newLocationobject.delete()Deletes aLocationobject.delete(RequestOptions options) Deletes aLocationobject.Deletes aLocationobject.delete(Map<String, Object> params, RequestOptions options) Deletes aLocationobject.booleanThe 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.The Kana variation of the display name of the location.The Kanji variation of the display name of the location.getId()Unique identifier for the object.Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.Set of key-value pairs that you can attach to an object.String representing the object's type.getPhone()The phone number of the location.inthashCode()static LocationCollectionlist(LocationListParams params) Returns a list ofLocationobjects.static LocationCollectionlist(LocationListParams params, RequestOptions options) Returns a list ofLocationobjects.static LocationCollectionReturns a list ofLocationobjects.static LocationCollectionlist(Map<String, Object> params, RequestOptions options) Returns a list ofLocationobjects.static LocationRetrieves aLocationobject.static Locationretrieve(String location, RequestOptions options) Retrieves aLocationobject.static Locationretrieve(String location, LocationRetrieveParams params, RequestOptions options) Retrieves aLocationobject.static LocationRetrieves aLocationobject.voidsetAddress(Address address) voidsetAddressKana(Location.AddressKana addressKana) voidsetAddressKanji(Location.AddressKanji addressKanji) voidsetConfigurationOverrides(String configurationOverrides) The ID of a configuration that will be used to customize all readers in this location.voidsetDeleted(Boolean deleted) Always true for a deleted object.voidsetDisplayName(String displayName) The display name of the location.voidsetDisplayNameKana(String displayNameKana) The Kana variation of the display name of the location.voidsetDisplayNameKanji(String displayNameKanji) The Kanji variation of the display name of the location.voidUnique identifier for the object.voidsetLivemode(Boolean livemode) Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.voidsetMetadata(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.voidString representing the object's type.voidThe phone number of the location.voidsetResponseGetter(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.update(LocationUpdateParams params) Updates aLocationobject by setting the values of the parameters passed.update(LocationUpdateParams params, RequestOptions options) Updates aLocationobject by setting the values of the parameters passed.Updates aLocationobject by setting the values of the parameters passed.update(Map<String, Object> params, RequestOptions options) Updates aLocationobject by setting the values of the parameters passed.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
Creates a newLocationobject. 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 newLocationobject. For further details, including which address fields are required in each country, see the Manage locations guide.- Throws:
StripeException
-
create
Creates a newLocationobject. 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 newLocationobject. For further details, including which address fields are required in each country, see the Manage locations guide.- Throws:
StripeException
-
delete
Deletes aLocationobject.- Throws:
StripeException
-
delete
Deletes aLocationobject.- Throws:
StripeException
-
delete
Deletes aLocationobject.- Throws:
StripeException
-
delete
Deletes aLocationobject.- Throws:
StripeException
-
list
Returns a list ofLocationobjects.- Throws:
StripeException
-
list
public static LocationCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns a list ofLocationobjects.- Throws:
StripeException
-
list
Returns a list ofLocationobjects.- Throws:
StripeException
-
list
public static LocationCollection list(LocationListParams params, RequestOptions options) throws StripeException Returns a list ofLocationobjects.- Throws:
StripeException
-
retrieve
Retrieves aLocationobject.- Throws:
StripeException
-
retrieve
Retrieves aLocationobject.- Throws:
StripeException
-
retrieve
public static Location retrieve(String location, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves aLocationobject.- Throws:
StripeException
-
retrieve
public static Location retrieve(String location, LocationRetrieveParams params, RequestOptions options) throws StripeException Retrieves aLocationobject.- Throws:
StripeException
-
update
Updates aLocationobject by setting the values of the parameters passed. Any parameters not provided will be left unchanged.- Specified by:
updatein interfaceMetadataStore<Location>- Throws:
StripeException
-
update
Updates aLocationobject by setting the values of the parameters passed. Any parameters not provided will be left unchanged.- Specified by:
updatein interfaceMetadataStore<Location>- Throws:
StripeException
-
update
Updates aLocationobject by setting the values of the parameters passed. Any parameters not provided will be left unchanged.- Throws:
StripeException
-
update
Updates aLocationobject by setting the values of the parameters passed. Any parameters not provided will be left unchanged.- 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
-
getAddressKana
-
getAddressKanji
-
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. -
getDisplayNameKana
The Kana variation of the display name of the location. -
getDisplayNameKanji
The Kanji variation of the display name of the location. -
getLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif 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. -
getPhone
The phone number of the location. -
setAddress
-
setAddressKana
-
setAddressKanji
-
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. -
setDisplayNameKana
The Kana variation of the display name of the location. -
setDisplayNameKanji
The Kanji variation of the display name of the location. -
setId
Unique identifier for the object. -
setLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif 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. -
setPhone
The phone number of the 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:
getMetadatain interfaceMetadataStore<Location>
-