class

Stripe::TerminalReaderReaderResourceReaderAction

Inherits OpenApi::Json < OpenApi::Validatable < JSON::Serializable::Unmapped < JSON::Serializable < Reference < Object

Represents an action performed by the reader

Constants

ERROR_MESSAGE_FOR__TYPE = "invalid value for \"_type\", must be one of [process_payment_intent, process_setup_intent, refund_payment, set_reader_display]."
ERROR_MESSAGE_FOR_STATUS = "invalid value for \"status\", must be one of [failed, in_progress, succeeded]."
MAX_LENGTH_FOR_FAILURE_CODE = 5000
MAX_LENGTH_FOR_FAILURE_MESSAGE = 5000
VALID_VALUES_FOR__TYPE = String.static_array("process_payment_intent", "process_setup_intent", "refund_payment", "set_reader_display")
VALID_VALUES_FOR_STATUS = String.static_array("failed", "in_progress", "succeeded")

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, failure_code : String | Nil = nil, failure_message : String | Nil = nil, status : String | Nil = nil, _type : String | Nil = nil, process_payment_intent : Stripe::TerminalReaderReaderResourceProcessPaymentIntentAction | Nil = nil, process_setup_intent : Stripe::TerminalReaderReaderResourceProcessSetupIntentAction | Nil = nil, refund_payment : Stripe::TerminalReaderReaderResourceRefundPaymentAction | Nil = nil, set_reader_display : Stripe::TerminalReaderReaderResourceSetReaderDisplayAction | Nil = nil)

Initializes the object @param [Hash] attributes Model attributes in the form of hash

Source

Instance methods

==(other : self)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

_type

Type of action performed by the reader.

Source
_type=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] _type Object to be assigned

Source
failure_code

Failure code, only set if status is failed.

Source
failure_code=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] failure_code Object to be assigned

Source
failure_message

Detailed failure message, only set if status is failed.

Source
failure_message=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] failure_message Object to be assigned

Source
hash(hasher)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

list_invalid_properties

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons

Source
process_payment_intent
Source
process_payment_intent=(new_value : Stripe::TerminalReaderReaderResourceProcessPaymentIntentAction | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] process_payment_intent Object to be assigned

Source
process_setup_intent
Source
process_setup_intent=(new_value : Stripe::TerminalReaderReaderResourceProcessSetupIntentAction | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] process_setup_intent Object to be assigned

Source
refund_payment
Source

Custom attribute writer method checking allowed values (enum). @param [Object] refund_payment Object to be assigned

Source
set_reader_display
Source
set_reader_display=(new_value : Stripe::TerminalReaderReaderResourceSetReaderDisplayAction | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] set_reader_display Object to be assigned

Source
status

Status of the action performed by the reader.

Source
status=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] status Object to be assigned

Source
valid?

Check to see if the all the properties in the model are valid @return true if the model is valid

Source