Package com.stripe.model.terminal
Class Reader
- java.lang.Object
-
- com.stripe.model.StripeObject
-
- com.stripe.net.ApiResource
-
- com.stripe.model.terminal.Reader
-
- All Implemented Interfaces:
HasId
,MetadataStore<Reader>
,StripeObjectInterface
public class Reader extends ApiResource implements HasId, MetadataStore<Reader>
-
-
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 Reader()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(java.lang.Object other)
static Reader
create(ReaderCreateParams params)
Creates a newReader
object.static Reader
create(ReaderCreateParams params, RequestOptions options)
Creates a newReader
object.static Reader
create(java.util.Map<java.lang.String,java.lang.Object> params)
Creates a newReader
object.static Reader
create(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)
Creates a newReader
object.Reader
delete()
Deletes aReader
object.Reader
delete(RequestOptions options)
Deletes aReader
object.Reader
delete(java.util.Map<java.lang.String,java.lang.Object> params)
Deletes aReader
object.Reader
delete(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)
Deletes aReader
object.boolean
equals(java.lang.Object o)
java.lang.Boolean
getDeleted()
Always true for a deleted object.java.lang.String
getDeviceSwVersion()
The current software version of the reader.java.lang.String
getDeviceType()
Type of reader, one ofbbpos_chipper2x
orverifone_P400
.java.lang.String
getId()
Unique identifier for the object.java.lang.String
getIpAddress()
The local IP address of the reader.java.lang.String
getLabel()
Custom label given to the reader for easier identification.java.lang.Boolean
getLivemode()
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.java.lang.String
getLocation()
Get ID of expandablelocation
object.Location
getLocationObject()
Get expandedlocation
.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.java.lang.String
getSerialNumber()
Serial number of the reader.java.lang.String
getStatus()
The networking status of the reader.int
hashCode()
static ReaderCollection
list(ReaderListParams params)
Returns a list ofReader
objects.static ReaderCollection
list(ReaderListParams params, RequestOptions options)
Returns a list ofReader
objects.static ReaderCollection
list(java.util.Map<java.lang.String,java.lang.Object> params)
Returns a list ofReader
objects.static ReaderCollection
list(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)
Returns a list ofReader
objects.static Reader
retrieve(java.lang.String reader)
Retrieves aReader
object.static Reader
retrieve(java.lang.String reader, RequestOptions options)
Retrieves aReader
object.static Reader
retrieve(java.lang.String reader, ReaderRetrieveParams params, RequestOptions options)
Retrieves aReader
object.static Reader
retrieve(java.lang.String reader, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)
Retrieves aReader
object.void
setDeleted(java.lang.Boolean deleted)
Always true for a deleted object.void
setDeviceSwVersion(java.lang.String deviceSwVersion)
The current software version of the reader.void
setDeviceType(java.lang.String deviceType)
Type of reader, one ofbbpos_chipper2x
orverifone_P400
.void
setId(java.lang.String id)
Unique identifier for the object.void
setIpAddress(java.lang.String ipAddress)
The local IP address of the reader.void
setLabel(java.lang.String label)
Custom label given to the reader for easier identification.void
setLivemode(java.lang.Boolean livemode)
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.void
setLocation(java.lang.String id)
void
setLocationObject(Location expandableObject)
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.void
setSerialNumber(java.lang.String serialNumber)
Serial number of the reader.void
setStatus(java.lang.String status)
The networking status of the reader.Reader
update(ReaderUpdateParams params)
Updates aReader
object by setting the values of the parameters passed.Reader
update(ReaderUpdateParams params, RequestOptions options)
Updates aReader
object by setting the values of the parameters passed.Reader
update(java.util.Map<java.lang.String,java.lang.Object> params)
Updates aReader
object by setting the values of the parameters passed.Reader
update(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)
Updates aReader
object by setting the values of the parameters passed.-
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
-
getLocation
public java.lang.String getLocation()
Get ID of expandablelocation
object.
-
setLocation
public void setLocation(java.lang.String id)
-
getLocationObject
public Location getLocationObject()
Get expandedlocation
.
-
setLocationObject
public void setLocationObject(Location expandableObject)
-
update
public Reader update(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
Updates aReader
object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.- Specified by:
update
in interfaceMetadataStore<Reader>
- Throws:
StripeException
-
update
public Reader update(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Updates aReader
object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.- Specified by:
update
in interfaceMetadataStore<Reader>
- Throws:
StripeException
-
update
public Reader update(ReaderUpdateParams params) throws StripeException
Updates aReader
object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.- Throws:
StripeException
-
update
public Reader update(ReaderUpdateParams params, RequestOptions options) throws StripeException
Updates aReader
object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.- Throws:
StripeException
-
retrieve
public static Reader retrieve(java.lang.String reader) throws StripeException
Retrieves aReader
object.- Throws:
StripeException
-
retrieve
public static Reader retrieve(java.lang.String reader, RequestOptions options) throws StripeException
Retrieves aReader
object.- Throws:
StripeException
-
retrieve
public static Reader retrieve(java.lang.String reader, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Retrieves aReader
object.- Throws:
StripeException
-
retrieve
public static Reader retrieve(java.lang.String reader, ReaderRetrieveParams params, RequestOptions options) throws StripeException
Retrieves aReader
object.- Throws:
StripeException
-
create
public static Reader create(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
Creates a newReader
object.- Throws:
StripeException
-
create
public static Reader create(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Creates a newReader
object.- Throws:
StripeException
-
create
public static Reader create(ReaderCreateParams params) throws StripeException
Creates a newReader
object.- Throws:
StripeException
-
create
public static Reader create(ReaderCreateParams params, RequestOptions options) throws StripeException
Creates a newReader
object.- Throws:
StripeException
-
list
public static ReaderCollection list(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
Returns a list ofReader
objects.- Throws:
StripeException
-
list
public static ReaderCollection list(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Returns a list ofReader
objects.- Throws:
StripeException
-
list
public static ReaderCollection list(ReaderListParams params) throws StripeException
Returns a list ofReader
objects.- Throws:
StripeException
-
list
public static ReaderCollection list(ReaderListParams params, RequestOptions options) throws StripeException
Returns a list ofReader
objects.- Throws:
StripeException
-
delete
public Reader delete() throws StripeException
Deletes aReader
object.- Throws:
StripeException
-
delete
public Reader delete(RequestOptions options) throws StripeException
Deletes aReader
object.- Throws:
StripeException
-
delete
public Reader delete(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
Deletes aReader
object.- Throws:
StripeException
-
delete
public Reader delete(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Deletes aReader
object.- Throws:
StripeException
-
getDeleted
public java.lang.Boolean getDeleted()
Always true for a deleted object.
-
getDeviceSwVersion
public java.lang.String getDeviceSwVersion()
The current software version of the reader.
-
getDeviceType
public java.lang.String getDeviceType()
Type of reader, one ofbbpos_chipper2x
orverifone_P400
.
-
getIpAddress
public java.lang.String getIpAddress()
The local IP address of the reader.
-
getLabel
public java.lang.String getLabel()
Custom label given to the reader for easier identification.
-
getLivemode
public java.lang.Boolean getLivemode()
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.
-
getObject
public java.lang.String getObject()
String representing the object's type. Objects of the same type share the same value.Equal to
terminal.reader
.
-
getSerialNumber
public java.lang.String getSerialNumber()
Serial number of the reader.
-
getStatus
public java.lang.String getStatus()
The networking status of the reader.
-
setDeleted
public void setDeleted(java.lang.Boolean deleted)
Always true for a deleted object.
-
setDeviceSwVersion
public void setDeviceSwVersion(java.lang.String deviceSwVersion)
The current software version of the reader.
-
setDeviceType
public void setDeviceType(java.lang.String deviceType)
Type of reader, one ofbbpos_chipper2x
orverifone_P400
.
-
setId
public void setId(java.lang.String id)
Unique identifier for the object.
-
setIpAddress
public void setIpAddress(java.lang.String ipAddress)
The local IP address of the reader.
-
setLabel
public void setLabel(java.lang.String label)
Custom label given to the reader for easier identification.
-
setLivemode
public void setLivemode(java.lang.Boolean livemode)
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.
-
setMetadata
public void setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
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
public void setObject(java.lang.String object)
String representing the object's type. Objects of the same type share the same value.Equal to
terminal.reader
.
-
setSerialNumber
public void setSerialNumber(java.lang.String serialNumber)
Serial number of the reader.
-
setStatus
public void setStatus(java.lang.String status)
The networking status of the reader.
-
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
-
getId
public java.lang.String getId()
Unique identifier for the object.
-
getMetadata
public java.util.Map<java.lang.String,java.lang.String> 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<Reader>
-
-