Package com.stripe.model.terminal
Class Reader.Action
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.terminal.Reader.Action
- All Implemented Interfaces:
StripeObjectInterface
- Enclosing class:
- Reader
Represents an action performed by the reader.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents a reader action to collect customer inputs.static classRepresents a reader action to collect a payment method.static classRepresents a reader action to confirm a payment.static classRepresents a reader action to print content.static classRepresents a reader action to process a payment intent.static classRepresents a reader action to process a setup intent.static classRepresents a reader action to refund a payment.static classRepresents a reader action to set the reader display. -
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe reader action failed due to an API error.Represents a reader action to collect customer inputs.Represents a reader action to collect a payment method.Represents a reader action to confirm a payment.Failure code, only set if status isfailed.Detailed failure message, only set if status isfailed.Represents a reader action to print content.Represents a reader action to process a payment intent.Represents a reader action to process a setup intent.Represents a reader action to refund a payment.Represents a reader action to set the reader display.Status of the action performed by the reader.getType()Type of action performed by the reader.inthashCode()voidsetApiError(StripeError apiError) The reader action failed due to an API error.voidsetCollectInputs(Reader.Action.CollectInputs collectInputs) Represents a reader action to collect customer inputs.voidsetCollectPaymentMethod(Reader.Action.CollectPaymentMethod collectPaymentMethod) Represents a reader action to collect a payment method.voidsetConfirmPaymentIntent(Reader.Action.ConfirmPaymentIntent confirmPaymentIntent) Represents a reader action to confirm a payment.voidsetFailureCode(String failureCode) Failure code, only set if status isfailed.voidsetFailureMessage(String failureMessage) Detailed failure message, only set if status isfailed.voidsetPrintContent(Reader.Action.PrintContent printContent) Represents a reader action to print content.voidsetProcessPaymentIntent(Reader.Action.ProcessPaymentIntent processPaymentIntent) Represents a reader action to process a payment intent.voidsetProcessSetupIntent(Reader.Action.ProcessSetupIntent processSetupIntent) Represents a reader action to process a setup intent.voidsetRefundPayment(Reader.Action.RefundPayment refundPayment) Represents a reader action to refund a payment.voidsetSetReaderDisplay(Reader.Action.SetReaderDisplay setReaderDisplay) Represents a reader action to set the reader display.voidStatus of the action performed by the reader.voidType of action performed by the reader.Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
Action
public Action()
-
-
Method Details
-
getApiError
The reader action failed due to an API error. Only present whenstatusisfailedand the underlying failure was an API error. Avoid parsing themessagefield for programmatic logic; usetypeorcodeinstead. Themessagefield is for display to humans only and may be updated at anytime. Requires reader version 2.42 or later. Readers on older versions always return null. -
getCollectInputs
Represents a reader action to collect customer inputs. -
getCollectPaymentMethod
Represents a reader action to collect a payment method. -
getConfirmPaymentIntent
Represents a reader action to confirm a payment. -
getFailureCode
Failure code, only set if status isfailed. -
getFailureMessage
Detailed failure message, only set if status isfailed. -
getPrintContent
Represents a reader action to print content. -
getProcessPaymentIntent
Represents a reader action to process a payment intent. -
getProcessSetupIntent
Represents a reader action to process a setup intent. -
getRefundPayment
Represents a reader action to refund a payment. -
getSetReaderDisplay
Represents a reader action to set the reader display. -
getStatus
Status of the action performed by the reader.One of
failed,in_progress, orsucceeded. -
getType
Type of action performed by the reader.One of
collect_inputs,collect_payment_method,confirm_payment_intent,print_content,process_payment_intent,process_setup_intent,refund_payment, orset_reader_display. -
setApiError
The reader action failed due to an API error. Only present whenstatusisfailedand the underlying failure was an API error. Avoid parsing themessagefield for programmatic logic; usetypeorcodeinstead. Themessagefield is for display to humans only and may be updated at anytime. Requires reader version 2.42 or later. Readers on older versions always return null. -
setCollectInputs
Represents a reader action to collect customer inputs. -
setCollectPaymentMethod
Represents a reader action to collect a payment method. -
setConfirmPaymentIntent
Represents a reader action to confirm a payment. -
setFailureCode
Failure code, only set if status isfailed. -
setFailureMessage
Detailed failure message, only set if status isfailed. -
setPrintContent
Represents a reader action to print content. -
setProcessPaymentIntent
Represents a reader action to process a payment intent. -
setProcessSetupIntent
Represents a reader action to process a setup intent. -
setRefundPayment
Represents a reader action to refund a payment. -
setSetReaderDisplay
Represents a reader action to set the reader display. -
setStatus
Status of the action performed by the reader.One of
failed,in_progress, orsucceeded. -
setType
Type of action performed by the reader.One of
collect_inputs,collect_payment_method,confirm_payment_intent,print_content,process_payment_intent,process_setup_intent,refund_payment, orset_reader_display. -
equals
-
canEqual
-
hashCode
public int hashCode()
-