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>
,StripeActiveObject
,StripeObjectInterface
A Reader represents a physical device for accepting payment details.
Related guide: Connecting to a reader
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Represents an action performed by the reader.static class
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 TypeMethodDescriptionCancels the current reader action.cancelAction
(RequestOptions options) Cancels the current reader action.cancelAction
(ReaderCancelActionParams params) Cancels the current reader action.cancelAction
(ReaderCancelActionParams params, RequestOptions options) Cancels the current reader action.cancelAction
(Map<String, Object> params) Cancels the current reader action.cancelAction
(Map<String, Object> params, RequestOptions options) Cancels the current reader action.protected boolean
static Reader
create
(ReaderCreateParams params) Creates a newReader
object.static Reader
create
(ReaderCreateParams params, RequestOptions options) Creates a newReader
object.static Reader
Creates a newReader
object.static Reader
create
(Map<String, Object> params, RequestOptions options) Creates a newReader
object.delete()
Deletes aReader
object.delete
(RequestOptions options) Deletes aReader
object.Deletes aReader
object.delete
(Map<String, Object> params, RequestOptions options) Deletes aReader
object.boolean
The most recent action performed by the reader.Always true for a deleted object.The current software version of the reader.Type of reader, one ofbbpos_wisepad3
,stripe_m2
,stripe_s700
,bbpos_chipper2x
,bbpos_wisepos_e
,verifone_P400
,simulated_wisepos_e
, ormobile_phone_reader
.getId()
Unique identifier for the object.The local IP address of the reader.getLabel()
Custom label given to the reader for easier identification.Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.Get ID of expandablelocation
object.Get expandedlocation
.Set of key-value pairs that you can attach to an object.String representing the object's type.Serial number of the reader.The networking status of the reader.The quantity of the line item.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
Returns a list ofReader
objects.static ReaderCollection
list
(Map<String, Object> params, RequestOptions options) Returns a list ofReader
objects.Initiates a payment flow on a Reader.processPaymentIntent
(ReaderProcessPaymentIntentParams params, RequestOptions options) Initiates a payment flow on a Reader.processPaymentIntent
(Map<String, Object> params) Initiates a payment flow on a Reader.processPaymentIntent
(Map<String, Object> params, RequestOptions options) Initiates a payment flow on a Reader.Initiates a setup intent flow on a Reader.processSetupIntent
(ReaderProcessSetupIntentParams params, RequestOptions options) Initiates a setup intent flow on a Reader.processSetupIntent
(Map<String, Object> params) Initiates a setup intent flow on a Reader.processSetupIntent
(Map<String, Object> params, RequestOptions options) Initiates a setup intent flow on a Reader.Initiates a refund on a Reader.refundPayment
(RequestOptions options) Initiates a refund on a Reader.Initiates a refund on a Reader.refundPayment
(ReaderRefundPaymentParams params, RequestOptions options) Initiates a refund on a Reader.refundPayment
(Map<String, Object> params) Initiates a refund on a Reader.refundPayment
(Map<String, Object> params, RequestOptions options) Initiates a refund on a Reader.static Reader
Retrieves aReader
object.static Reader
retrieve
(String reader, RequestOptions options) Retrieves aReader
object.static Reader
retrieve
(String reader, ReaderRetrieveParams params, RequestOptions options) Retrieves aReader
object.static Reader
Retrieves aReader
object.void
setAction
(Reader.Action action) The most recent action performed by the reader.void
setDeleted
(Boolean deleted) Always true for a deleted object.void
setDeviceSwVersion
(String deviceSwVersion) The current software version of the reader.void
setDeviceType
(String deviceType) Type of reader, one ofbbpos_wisepad3
,stripe_m2
,stripe_s700
,bbpos_chipper2x
,bbpos_wisepos_e
,verifone_P400
,simulated_wisepos_e
, ormobile_phone_reader
.void
Unique identifier for the object.void
setIpAddress
(String ipAddress) The local IP address of the reader.void
Custom label given to the reader for easier identification.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
setLocation
(String id) void
setLocationObject
(Location expandableObject) 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.Sets reader display to show cart details.setReaderDisplay
(ReaderSetReaderDisplayParams params, RequestOptions options) Sets reader display to show cart details.setReaderDisplay
(Map<String, Object> params) Sets reader display to show cart details.setReaderDisplay
(Map<String, Object> params, RequestOptions options) Sets reader display to show cart details.void
setResponseGetter
(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.void
setSerialNumber
(String serialNumber) Serial number of the reader.void
The networking status of the reader.update
(ReaderUpdateParams params) Updates aReader
object by setting the values of the parameters passed.update
(ReaderUpdateParams params, RequestOptions options) Updates aReader
object by setting the values of the parameters passed.Updates aReader
object by setting the values of the parameters passed.update
(Map<String, Object> params, RequestOptions options) Updates aReader
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
-
Reader
public Reader()
-
-
Method Details
-
getLocation
Get ID of expandablelocation
object. -
setLocation
-
getLocationObject
Get expandedlocation
. -
setLocationObject
-
cancelAction
Cancels the current reader action.- Throws:
StripeException
-
cancelAction
Cancels the current reader action.- Throws:
StripeException
-
cancelAction
Cancels the current reader action.- Throws:
StripeException
-
cancelAction
public Reader cancelAction(Map<String, Object> params, RequestOptions options) throws StripeExceptionCancels the current reader action.- Throws:
StripeException
-
cancelAction
Cancels the current reader action.- Throws:
StripeException
-
cancelAction
public Reader cancelAction(ReaderCancelActionParams params, RequestOptions options) throws StripeException Cancels the current reader action.- Throws:
StripeException
-
create
Creates a newReader
object.- Throws:
StripeException
-
create
public static Reader create(Map<String, Object> params, RequestOptions options) throws StripeExceptionCreates a newReader
object.- Throws:
StripeException
-
create
Creates a newReader
object.- Throws:
StripeException
-
create
public static Reader create(ReaderCreateParams params, RequestOptions options) throws StripeException Creates a newReader
object.- Throws:
StripeException
-
delete
Deletes aReader
object.- Throws:
StripeException
-
delete
Deletes aReader
object.- Throws:
StripeException
-
delete
Deletes aReader
object.- Throws:
StripeException
-
delete
Deletes aReader
object.- Throws:
StripeException
-
list
Returns a list ofReader
objects.- Throws:
StripeException
-
list
public static ReaderCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns a list ofReader
objects.- Throws:
StripeException
-
list
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
-
processPaymentIntent
Initiates a payment flow on a Reader.- Throws:
StripeException
-
processPaymentIntent
public Reader processPaymentIntent(Map<String, Object> params, RequestOptions options) throws StripeExceptionInitiates a payment flow on a Reader.- Throws:
StripeException
-
processPaymentIntent
Initiates a payment flow on a Reader.- Throws:
StripeException
-
processPaymentIntent
public Reader processPaymentIntent(ReaderProcessPaymentIntentParams params, RequestOptions options) throws StripeException Initiates a payment flow on a Reader.- Throws:
StripeException
-
processSetupIntent
Initiates a setup intent flow on a Reader.- Throws:
StripeException
-
processSetupIntent
public Reader processSetupIntent(Map<String, Object> params, RequestOptions options) throws StripeExceptionInitiates a setup intent flow on a Reader.- Throws:
StripeException
-
processSetupIntent
Initiates a setup intent flow on a Reader.- Throws:
StripeException
-
processSetupIntent
public Reader processSetupIntent(ReaderProcessSetupIntentParams params, RequestOptions options) throws StripeException Initiates a setup intent flow on a Reader.- Throws:
StripeException
-
refundPayment
Initiates a refund on a Reader.- Throws:
StripeException
-
refundPayment
Initiates a refund on a Reader.- Throws:
StripeException
-
refundPayment
Initiates a refund on a Reader.- Throws:
StripeException
-
refundPayment
public Reader refundPayment(Map<String, Object> params, RequestOptions options) throws StripeExceptionInitiates a refund on a Reader.- Throws:
StripeException
-
refundPayment
Initiates a refund on a Reader.- Throws:
StripeException
-
refundPayment
public Reader refundPayment(ReaderRefundPaymentParams params, RequestOptions options) throws StripeException Initiates a refund on a Reader.- Throws:
StripeException
-
retrieve
Retrieves aReader
object.- Throws:
StripeException
-
retrieve
Retrieves aReader
object.- Throws:
StripeException
-
retrieve
public static Reader retrieve(String reader, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves aReader
object.- Throws:
StripeException
-
retrieve
public static Reader retrieve(String reader, ReaderRetrieveParams params, RequestOptions options) throws StripeException Retrieves aReader
object.- Throws:
StripeException
-
setReaderDisplay
Sets reader display to show cart details.- Throws:
StripeException
-
setReaderDisplay
public Reader setReaderDisplay(Map<String, Object> params, RequestOptions options) throws StripeExceptionSets reader display to show cart details.- Throws:
StripeException
-
setReaderDisplay
Sets reader display to show cart details.- Throws:
StripeException
-
setReaderDisplay
public Reader setReaderDisplay(ReaderSetReaderDisplayParams params, RequestOptions options) throws StripeException Sets reader display to show cart details.- Throws:
StripeException
-
update
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
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
Updates aReader
object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.- Throws:
StripeException
-
update
Updates aReader
object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.- Throws:
StripeException
-
getTestHelpers
The quantity of the line item. -
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.
-
getAction
The most recent action performed by the reader. -
getDeleted
Always true for a deleted object. -
getDeviceSwVersion
The current software version of the reader. -
getDeviceType
Type of reader, one ofbbpos_wisepad3
,stripe_m2
,stripe_s700
,bbpos_chipper2x
,bbpos_wisepos_e
,verifone_P400
,simulated_wisepos_e
, ormobile_phone_reader
. -
getIpAddress
The local IP address of the reader. -
getLabel
Custom label given to the reader for easier identification. -
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.reader
. -
getSerialNumber
Serial number of the reader. -
getStatus
The networking status of the reader. We do not recommend using this field in flows that may block taking payments.One of
offline
, oronline
. -
setAction
The most recent action performed by the reader. -
setDeleted
Always true for a deleted object. -
setDeviceSwVersion
The current software version of the reader. -
setDeviceType
Type of reader, one ofbbpos_wisepad3
,stripe_m2
,stripe_s700
,bbpos_chipper2x
,bbpos_wisepos_e
,verifone_P400
,simulated_wisepos_e
, ormobile_phone_reader
. -
setId
Unique identifier for the object. -
setIpAddress
The local IP address of the reader. -
setLabel
Custom label given to the reader for easier identification. -
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.reader
. -
setSerialNumber
Serial number of the reader. -
setStatus
The networking status of the reader. We do not recommend using this field in flows that may block taking payments.One of
offline
, oronline
. -
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<Reader>
-