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
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, GSON, INTERNAL_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 booleanInitiates an input collection flow on a Reader to display input forms and collect information from your customers.collectInputs(ReaderCollectInputsParams params, RequestOptions options) Initiates an input collection flow on a Reader to display input forms and collect information from your customers.collectInputs(Map<String, Object> params) Initiates an input collection flow on a Reader to display input forms and collect information from your customers.collectInputs(Map<String, Object> params, RequestOptions options) Initiates an input collection flow on a Reader to display input forms and collect information from your customers.Initiates a payment flow on a Reader and updates the PaymentIntent with card details before manual confirmation.collectPaymentMethod(ReaderCollectPaymentMethodParams params, RequestOptions options) Initiates a payment flow on a Reader and updates the PaymentIntent with card details before manual confirmation.collectPaymentMethod(Map<String, Object> params) Initiates a payment flow on a Reader and updates the PaymentIntent with card details before manual confirmation.collectPaymentMethod(Map<String, Object> params, RequestOptions options) Initiates a payment flow on a Reader and updates the PaymentIntent with card details before manual confirmation.Finalizes a payment on a Reader.confirmPaymentIntent(ReaderConfirmPaymentIntentParams params, RequestOptions options) Finalizes a payment on a Reader.confirmPaymentIntent(Map<String, Object> params) Finalizes a payment on a Reader.confirmPaymentIntent(Map<String, Object> params, RequestOptions options) Finalizes a payment on a Reader.static 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.Device type of the reader.getId()Unique identifier for the object.The local IP address of the reader.getLabel()Custom label given to the reader for easier identification.The last time this reader reported to Stripe backend.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 SetupIntent flow on a Reader.processSetupIntent(ReaderProcessSetupIntentParams params, RequestOptions options) Initiates a SetupIntent flow on a Reader.processSetupIntent(Map<String, Object> params) Initiates a SetupIntent flow on a Reader.processSetupIntent(Map<String, Object> params, RequestOptions options) Initiates a SetupIntent flow on a Reader.Initiates an in-person refund on a Reader.refundPayment(RequestOptions options) Initiates an in-person refund on a Reader.Initiates an in-person refund on a Reader.refundPayment(ReaderRefundPaymentParams params, RequestOptions options) Initiates an in-person refund on a Reader.refundPayment(Map<String, Object> params) Initiates an in-person refund on a Reader.refundPayment(Map<String, Object> params, RequestOptions options) Initiates an in-person refund 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) Device type of the reader.voidUnique identifier for the object.voidsetIpAddress(String ipAddress) The local IP address of the reader.voidCustom label given to the reader for easier identification.voidsetLastSeenAt(Long lastSeenAt) The last time this reader reported to Stripe backend.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 the reader display to show cart details.setReaderDisplay(ReaderSetReaderDisplayParams params, RequestOptions options) Sets the reader display to show cart details.setReaderDisplay(Map<String, Object> params) Sets the reader display to show cart details.setReaderDisplay(Map<String, Object> params, RequestOptions options) Sets the reader display to show cart details.voidsetResponseGetter(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.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, 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
-
Reader
public Reader()
-
-
Method Details
-
getLocation
Get ID of expandablelocationobject. -
setLocation
-
getLocationObject
Get expandedlocation. -
setLocationObject
-
cancelAction
Cancels the current reader action. See Programmatic Cancellation for more details.- Throws:
StripeException
-
cancelAction
Cancels the current reader action. See Programmatic Cancellation for more details.- Throws:
StripeException
-
cancelAction
Cancels the current reader action. See Programmatic Cancellation for more details.- Throws:
StripeException
-
cancelAction
public Reader cancelAction(Map<String, Object> params, RequestOptions options) throws StripeExceptionCancels the current reader action. See Programmatic Cancellation for more details.- Throws:
StripeException
-
cancelAction
Cancels the current reader action. See Programmatic Cancellation for more details.- Throws:
StripeException
-
cancelAction
public Reader cancelAction(ReaderCancelActionParams params, RequestOptions options) throws StripeException Cancels the current reader action. See Programmatic Cancellation for more details.- Throws:
StripeException
-
collectInputs
Initiates an input collection flow on a Reader to display input forms and collect information from your customers.- Throws:
StripeException
-
collectInputs
public Reader collectInputs(Map<String, Object> params, RequestOptions options) throws StripeExceptionInitiates an input collection flow on a Reader to display input forms and collect information from your customers.- Throws:
StripeException
-
collectInputs
Initiates an input collection flow on a Reader to display input forms and collect information from your customers.- Throws:
StripeException
-
collectInputs
public Reader collectInputs(ReaderCollectInputsParams params, RequestOptions options) throws StripeException Initiates an input collection flow on a Reader to display input forms and collect information from your customers.- Throws:
StripeException
-
collectPaymentMethod
Initiates a payment flow on a Reader and updates the PaymentIntent with card details before manual confirmation. See Collecting a Payment method for more details.- Throws:
StripeException
-
collectPaymentMethod
public Reader collectPaymentMethod(Map<String, Object> params, RequestOptions options) throws StripeExceptionInitiates a payment flow on a Reader and updates the PaymentIntent with card details before manual confirmation. See Collecting a Payment method for more details.- Throws:
StripeException
-
collectPaymentMethod
Initiates a payment flow on a Reader and updates the PaymentIntent with card details before manual confirmation. See Collecting a Payment method for more details.- Throws:
StripeException
-
collectPaymentMethod
public Reader collectPaymentMethod(ReaderCollectPaymentMethodParams params, RequestOptions options) throws StripeException Initiates a payment flow on a Reader and updates the PaymentIntent with card details before manual confirmation. See Collecting a Payment method for more details.- Throws:
StripeException
-
confirmPaymentIntent
Finalizes a payment on a Reader. See Confirming a Payment for more details.- Throws:
StripeException
-
confirmPaymentIntent
public Reader confirmPaymentIntent(Map<String, Object> params, RequestOptions options) throws StripeExceptionFinalizes a payment on a Reader. See Confirming a Payment for more details.- Throws:
StripeException
-
confirmPaymentIntent
Finalizes a payment on a Reader. See Confirming a Payment for more details.- Throws:
StripeException
-
confirmPaymentIntent
public Reader confirmPaymentIntent(ReaderConfirmPaymentIntentParams params, RequestOptions options) throws StripeException Finalizes a payment on a Reader. See Confirming a Payment for more details.- 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. See process the payment for more details.- Throws:
StripeException
-
processPaymentIntent
public Reader processPaymentIntent(Map<String, Object> params, RequestOptions options) throws StripeExceptionInitiates a payment flow on a Reader. See process the payment for more details.- Throws:
StripeException
-
processPaymentIntent
Initiates a payment flow on a Reader. See process the payment for more details.- Throws:
StripeException
-
processPaymentIntent
public Reader processPaymentIntent(ReaderProcessPaymentIntentParams params, RequestOptions options) throws StripeException Initiates a payment flow on a Reader. See process the payment for more details.- Throws:
StripeException
-
processSetupIntent
Initiates a SetupIntent flow on a Reader. See Save directly without charging for more details.- Throws:
StripeException
-
processSetupIntent
public Reader processSetupIntent(Map<String, Object> params, RequestOptions options) throws StripeExceptionInitiates a SetupIntent flow on a Reader. See Save directly without charging for more details.- Throws:
StripeException
-
processSetupIntent
Initiates a SetupIntent flow on a Reader. See Save directly without charging for more details.- Throws:
StripeException
-
processSetupIntent
public Reader processSetupIntent(ReaderProcessSetupIntentParams params, RequestOptions options) throws StripeException Initiates a SetupIntent flow on a Reader. See Save directly without charging for more details.- Throws:
StripeException
-
refundPayment
Initiates an in-person refund on a Reader. See Refund an Interac Payment for more details.- Throws:
StripeException
-
refundPayment
Initiates an in-person refund on a Reader. See Refund an Interac Payment for more details.- Throws:
StripeException
-
refundPayment
Initiates an in-person refund on a Reader. See Refund an Interac Payment for more details.- Throws:
StripeException
-
refundPayment
public Reader refundPayment(Map<String, Object> params, RequestOptions options) throws StripeExceptionInitiates an in-person refund on a Reader. See Refund an Interac Payment for more details.- Throws:
StripeException
-
refundPayment
Initiates an in-person refund on a Reader. See Refund an Interac Payment for more details.- Throws:
StripeException
-
refundPayment
public Reader refundPayment(ReaderRefundPaymentParams params, RequestOptions options) throws StripeException Initiates an in-person refund on a Reader. See Refund an Interac Payment for more details.- 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 the reader display to show cart details.- Throws:
StripeException
-
setReaderDisplay
public Reader setReaderDisplay(Map<String, Object> params, RequestOptions options) throws StripeExceptionSets the reader display to show cart details.- Throws:
StripeException
-
setReaderDisplay
Sets the reader display to show cart details.- Throws:
StripeException
-
setReaderDisplay
public Reader setReaderDisplay(ReaderSetReaderDisplayParams params, RequestOptions options) throws StripeException Sets the 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. -
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.
-
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
Device type of the reader.One of
bbpos_chipper2x,bbpos_wisepad3,bbpos_wisepos_e,mobile_phone_reader,simulated_stripe_s700,simulated_wisepos_e,stripe_m2,stripe_s700, orverifone_P400. -
getIpAddress
The local IP address of the reader. -
getLabel
Custom label given to the reader for easier identification. -
getLastSeenAt
The last time this reader reported to Stripe backend. -
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. 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
Device type of the reader.One of
bbpos_chipper2x,bbpos_wisepad3,bbpos_wisepos_e,mobile_phone_reader,simulated_stripe_s700,simulated_wisepos_e,stripe_m2,stripe_s700, orverifone_P400. -
setId
Unique identifier for the object. -
setIpAddress
The local IP address of the reader. -
setLabel
Custom label given to the reader for easier identification. -
setLastSeenAt
The last time this reader reported to Stripe backend. -
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. 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:
getMetadatain interfaceMetadataStore<Reader>
-