Class Reader.Action

java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.terminal.Reader.Action
All Implemented Interfaces:
StripeObjectInterface
Enclosing class:
Reader

public static class Reader.Action extends StripeObject
Represents an action performed by the reader.
  • Constructor Details

    • Action

      public Action()
  • Method Details

    • getApiError

      public StripeError getApiError()
      The reader action failed due to an API error. Only present when status is failed and the underlying failure was an API error. Avoid parsing the message field for programmatic logic; use type or code instead. The message field 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

      public Reader.Action.CollectInputs getCollectInputs()
      Represents a reader action to collect customer inputs.
    • getCollectPaymentMethod

      public Reader.Action.CollectPaymentMethod getCollectPaymentMethod()
      Represents a reader action to collect a payment method.
    • getConfirmPaymentIntent

      public Reader.Action.ConfirmPaymentIntent getConfirmPaymentIntent()
      Represents a reader action to confirm a payment.
    • getFailureCode

      public String getFailureCode()
      Failure code, only set if status is failed.
    • getFailureMessage

      public String getFailureMessage()
      Detailed failure message, only set if status is failed.
    • getPrintContent

      public Reader.Action.PrintContent getPrintContent()
      Represents a reader action to print content.
    • getProcessPaymentIntent

      public Reader.Action.ProcessPaymentIntent getProcessPaymentIntent()
      Represents a reader action to process a payment intent.
    • getProcessSetupIntent

      public Reader.Action.ProcessSetupIntent getProcessSetupIntent()
      Represents a reader action to process a setup intent.
    • getRefundPayment

      public Reader.Action.RefundPayment getRefundPayment()
      Represents a reader action to refund a payment.
    • getSetReaderDisplay

      public Reader.Action.SetReaderDisplay getSetReaderDisplay()
      Represents a reader action to set the reader display.
    • getStatus

      public String getStatus()
      Status of the action performed by the reader.

      One of failed, in_progress, or succeeded.

    • getType

      public String 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, or set_reader_display.

    • setApiError

      public void setApiError(StripeError apiError)
      The reader action failed due to an API error. Only present when status is failed and the underlying failure was an API error. Avoid parsing the message field for programmatic logic; use type or code instead. The message field 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

      public void setCollectInputs(Reader.Action.CollectInputs collectInputs)
      Represents a reader action to collect customer inputs.
    • setCollectPaymentMethod

      public void setCollectPaymentMethod(Reader.Action.CollectPaymentMethod collectPaymentMethod)
      Represents a reader action to collect a payment method.
    • setConfirmPaymentIntent

      public void setConfirmPaymentIntent(Reader.Action.ConfirmPaymentIntent confirmPaymentIntent)
      Represents a reader action to confirm a payment.
    • setFailureCode

      public void setFailureCode(String failureCode)
      Failure code, only set if status is failed.
    • setFailureMessage

      public void setFailureMessage(String failureMessage)
      Detailed failure message, only set if status is failed.
    • setPrintContent

      public void setPrintContent(Reader.Action.PrintContent printContent)
      Represents a reader action to print content.
    • setProcessPaymentIntent

      public void setProcessPaymentIntent(Reader.Action.ProcessPaymentIntent processPaymentIntent)
      Represents a reader action to process a payment intent.
    • setProcessSetupIntent

      public void setProcessSetupIntent(Reader.Action.ProcessSetupIntent processSetupIntent)
      Represents a reader action to process a setup intent.
    • setRefundPayment

      public void setRefundPayment(Reader.Action.RefundPayment refundPayment)
      Represents a reader action to refund a payment.
    • setSetReaderDisplay

      public void setSetReaderDisplay(Reader.Action.SetReaderDisplay setReaderDisplay)
      Represents a reader action to set the reader display.
    • setStatus

      public void setStatus(String status)
      Status of the action performed by the reader.

      One of failed, in_progress, or succeeded.

    • setType

      public void setType(String type)
      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, or set_reader_display.

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object