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
A Reader represents a physical device for accepting payment details.
Related guide: Connecting to a Reader.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents an action performed by the reader.static classNested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod -
Field Summary
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSONFields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
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 booleanstatic Readercreate(ReaderCreateParams params) Creates a newReaderobject.static Readercreate(ReaderCreateParams params, RequestOptions options) Creates a newReaderobject.static ReaderCreates a newReaderobject.static Readercreate(Map<String, Object> params, RequestOptions options) Creates a newReaderobject.delete()Deletes aReaderobject.delete(RequestOptions options) Deletes aReaderobject.Deletes aReaderobject.delete(Map<String, Object> params, RequestOptions options) Deletes aReaderobject.booleanThe 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,bbpos_chipper2x,bbpos_wisepos_e,verifone_P400, orsimulated_wisepos_e.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 valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.Get ID of expandablelocationobject.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.inthashCode()static ReaderCollectionlist(ReaderListParams params) Returns a list ofReaderobjects.static ReaderCollectionlist(ReaderListParams params, RequestOptions options) Returns a list ofReaderobjects.static ReaderCollectionReturns a list ofReaderobjects.static ReaderCollectionlist(Map<String, Object> params, RequestOptions options) Returns a list ofReaderobjects.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.static ReaderRetrieves aReaderobject.static Readerretrieve(String reader, RequestOptions options) Retrieves aReaderobject.static Readerretrieve(String reader, ReaderRetrieveParams params, RequestOptions options) Retrieves aReaderobject.static ReaderRetrieves aReaderobject.voidsetAction(Reader.Action action) The most recent action performed by the reader.voidsetDeleted(Boolean deleted) Always true for a deleted object.voidsetDeviceSwVersion(String deviceSwVersion) The current software version of the reader.voidsetDeviceType(String deviceType) Type of reader, one ofbbpos_wisepad3,stripe_m2,bbpos_chipper2x,bbpos_wisepos_e,verifone_P400, orsimulated_wisepos_e.voidUnique identifier for the object.voidsetIpAddress(String ipAddress) The local IP address of the reader.voidCustom label given to the reader for easier identification.voidsetLivemode(Boolean livemode) Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.voidsetLocation(String id) voidsetLocationObject(Location expandableObject) voidsetMetadata(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.voidString 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.voidsetSerialNumber(String serialNumber) Serial number of the reader.voidThe networking status of the reader.update(ReaderUpdateParams params) Updates aReaderobject by setting the values of the parameters passed.update(ReaderUpdateParams params, RequestOptions options) Updates aReaderobject by setting the values of the parameters passed.Updates aReaderobject by setting the values of the parameters passed.update(Map<String, Object> params, RequestOptions options) Updates aReaderobject 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, requestSearchResult, requestSearchResult, requestStream, requestStream, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeIdMethods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
Reader
public Reader()
-
-
Method Details
-
getLocation
Get ID of expandablelocationobject. -
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 newReaderobject.- Throws:
StripeException
-
create
public static Reader create(Map<String, Object> params, RequestOptions options) throws StripeExceptionCreates a newReaderobject.- Throws:
StripeException
-
create
Creates a newReaderobject.- Throws:
StripeException
-
create
public static Reader create(ReaderCreateParams params, RequestOptions options) throws StripeException Creates a newReaderobject.- Throws:
StripeException
-
delete
Deletes aReaderobject.- Throws:
StripeException
-
delete
Deletes aReaderobject.- Throws:
StripeException
-
delete
Deletes aReaderobject.- Throws:
StripeException
-
delete
Deletes aReaderobject.- Throws:
StripeException
-
list
Returns a list ofReaderobjects.- Throws:
StripeException
-
list
public static ReaderCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns a list ofReaderobjects.- Throws:
StripeException
-
list
Returns a list ofReaderobjects.- Throws:
StripeException
-
list
public static ReaderCollection list(ReaderListParams params, RequestOptions options) throws StripeException Returns a list ofReaderobjects.- 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
-
retrieve
Retrieves aReaderobject.- Throws:
StripeException
-
retrieve
Retrieves aReaderobject.- Throws:
StripeException
-
retrieve
public static Reader retrieve(String reader, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves aReaderobject.- Throws:
StripeException
-
retrieve
public static Reader retrieve(String reader, ReaderRetrieveParams params, RequestOptions options) throws StripeException Retrieves aReaderobject.- 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 aReaderobject by setting the values of the parameters passed. Any parameters not provided will be left unchanged.- Specified by:
updatein interfaceMetadataStore<Reader>- Throws:
StripeException
-
update
Updates aReaderobject by setting the values of the parameters passed. Any parameters not provided will be left unchanged.- Specified by:
updatein interfaceMetadataStore<Reader>- Throws:
StripeException
-
update
Updates aReaderobject by setting the values of the parameters passed. Any parameters not provided will be left unchanged.- Throws:
StripeException
-
update
Updates aReaderobject 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. -
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,bbpos_chipper2x,bbpos_wisepos_e,verifone_P400, orsimulated_wisepos_e. -
getIpAddress
The local IP address of the reader. -
getLabel
Custom label given to the reader for easier identification. -
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.reader. -
getSerialNumber
Serial number of the reader. -
getStatus
The networking status of the reader. -
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,bbpos_chipper2x,bbpos_wisepos_e,verifone_P400, orsimulated_wisepos_e. -
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 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.reader. -
setSerialNumber
Serial number of the reader. -
setStatus
The networking status of the reader. -
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<Reader>
-