public class Location extends ApiResource implements HasId, MetadataStore<Location>
ApiResource.RequestMethod
CHARSET, GSON
PRETTY_PRINT_GSON
Constructor and Description |
---|
Location() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(java.lang.Object other) |
static Location |
create(LocationCreateParams params)
Creates a new
Location object. |
static Location |
create(LocationCreateParams params,
RequestOptions options)
Creates a new
Location object. |
static Location |
create(java.util.Map<java.lang.String,java.lang.Object> params)
Creates a new
Location object. |
static Location |
create(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Creates a new
Location object. |
Location |
delete()
Deletes a
Location object. |
Location |
delete(java.util.Map<java.lang.String,java.lang.Object> params)
Deletes a
Location object. |
Location |
delete(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Deletes a
Location object. |
Location |
delete(RequestOptions options)
Deletes a
Location object. |
boolean |
equals(java.lang.Object o) |
Address |
getAddress() |
java.lang.Boolean |
getDeleted()
Always true for a deleted object.
|
java.lang.String |
getDisplayName()
The display name of the location.
|
java.lang.String |
getId()
Unique identifier for the object.
|
java.lang.Boolean |
getLivemode()
Has the value
true if the object exists in live mode or the value false if the
object exists in test mode. |
java.util.Map<java.lang.String,java.lang.String> |
getMetadata()
Set of key-value pairs that you can attach to an object.
|
java.lang.String |
getObject()
String representing the object's type.
|
int |
hashCode() |
static LocationCollection |
list(LocationListParams params)
Returns a list of
Location objects. |
static LocationCollection |
list(LocationListParams params,
RequestOptions options)
Returns a list of
Location objects. |
static LocationCollection |
list(java.util.Map<java.lang.String,java.lang.Object> params)
Returns a list of
Location objects. |
static LocationCollection |
list(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Returns a list of
Location objects. |
static Location |
retrieve(java.lang.String location)
Retrieves a
Location object. |
static Location |
retrieve(java.lang.String location,
LocationRetrieveParams params,
RequestOptions options)
Retrieves a
Location object. |
static Location |
retrieve(java.lang.String location,
java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Retrieves a
Location object. |
static Location |
retrieve(java.lang.String location,
RequestOptions options)
Retrieves a
Location object. |
void |
setAddress(Address address) |
void |
setDeleted(java.lang.Boolean deleted)
Always true for a deleted object.
|
void |
setDisplayName(java.lang.String displayName)
The display name of the location.
|
void |
setId(java.lang.String id)
Unique identifier for the object.
|
void |
setLivemode(java.lang.Boolean livemode)
Has the value
true if the object exists in live mode or the value false if the
object exists in test mode. |
void |
setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
Set of key-value pairs that you can attach to an object.
|
void |
setObject(java.lang.String object)
String representing the object's type.
|
Location |
update(LocationUpdateParams params)
Updates a
Location object by setting the values of the parameters passed. |
Location |
update(LocationUpdateParams params,
RequestOptions options)
Updates a
Location object by setting the values of the parameters passed. |
Location |
update(java.util.Map<java.lang.String,java.lang.Object> params)
Updates a
Location object by setting the values of the parameters passed. |
Location |
update(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Updates a
Location object by setting the values of the parameters passed. |
checkNullTypedParams, classUrl, classUrl, instanceUrl, instanceUrl, request, request, requestCollection, requestCollection, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeId
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
public static Location retrieve(java.lang.String location) throws StripeException
Location
object.StripeException
public static Location retrieve(java.lang.String location, RequestOptions options) throws StripeException
Location
object.StripeException
public static Location retrieve(java.lang.String location, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Location
object.StripeException
public static Location retrieve(java.lang.String location, LocationRetrieveParams params, RequestOptions options) throws StripeException
Location
object.StripeException
public static Location create(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
Location
object.StripeException
public static Location create(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Location
object.StripeException
public static Location create(LocationCreateParams params) throws StripeException
Location
object.StripeException
public static Location create(LocationCreateParams params, RequestOptions options) throws StripeException
Location
object.StripeException
public Location update(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
Location
object by setting the values of the parameters passed. Any
parameters not provided will be left unchanged.update
in interface MetadataStore<Location>
StripeException
public Location update(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Location
object by setting the values of the parameters passed. Any
parameters not provided will be left unchanged.update
in interface MetadataStore<Location>
StripeException
public Location update(LocationUpdateParams params) throws StripeException
Location
object by setting the values of the parameters passed. Any
parameters not provided will be left unchanged.StripeException
public Location update(LocationUpdateParams params, RequestOptions options) throws StripeException
Location
object by setting the values of the parameters passed. Any
parameters not provided will be left unchanged.StripeException
public static LocationCollection list(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
Location
objects.StripeException
public static LocationCollection list(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Location
objects.StripeException
public static LocationCollection list(LocationListParams params) throws StripeException
Location
objects.StripeException
public static LocationCollection list(LocationListParams params, RequestOptions options) throws StripeException
Location
objects.StripeException
public Location delete() throws StripeException
Location
object.StripeException
public Location delete(RequestOptions options) throws StripeException
Location
object.StripeException
public Location delete(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
Location
object.StripeException
public Location delete(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Location
object.StripeException
public Address getAddress()
public java.lang.Boolean getDeleted()
public java.lang.String getDisplayName()
public java.lang.Boolean getLivemode()
true
if the object exists in live mode or the value false
if the
object exists in test mode.public java.lang.String getObject()
Equal to terminal.location
.
public void setAddress(Address address)
public void setDeleted(java.lang.Boolean deleted)
public void setDisplayName(java.lang.String displayName)
public void setId(java.lang.String id)
public void setLivemode(java.lang.Boolean livemode)
true
if the object exists in live mode or the value false
if the
object exists in test mode.public void setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
public void setObject(java.lang.String object)
Equal to terminal.location
.
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
protected boolean canEqual(java.lang.Object other)
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String getId()
public java.util.Map<java.lang.String,java.lang.String> getMetadata()
getMetadata
in interface MetadataStore<Location>