Class: Stripe::Terminal::Reader::Action

Inherits:
StripeObject show all
Defined in:
lib/stripe/resources/terminal/reader.rb

Defined Under Namespace

Classes: CollectInputs, CollectPaymentMethod, ConfirmPaymentIntent, ProcessPaymentIntent, ProcessSetupIntent, RefundPayment, SetReaderDisplay

Constant Summary

Constants inherited from StripeObject

StripeObject::RESERVED_FIELD_NAMES

Instance Attribute Summary collapse

Attributes inherited from StripeObject

#last_response

Class Method Summary collapse

Methods inherited from StripeObject

#==, #[], #[]=, #_get_inner_class_type, additive_object_param, additive_object_param?, #as_json, construct_from, #deleted?, #dirty!, #each, #eql?, #hash, #initialize, #inspect, #keys, #marshal_dump, #marshal_load, protected_fields, #serialize_params, #to_hash, #to_json, #to_s, #update_attributes, #values

Constructor Details

This class inherits a constructor from Stripe::StripeObject

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Stripe::StripeObject

Instance Attribute Details

#collect_inputsObject (readonly)

Represents a reader action to collect customer inputs



452
453
454
# File 'lib/stripe/resources/terminal/reader.rb', line 452

def collect_inputs
  @collect_inputs
end

#collect_payment_methodObject (readonly)

Represents a reader action to collect a payment method



454
455
456
# File 'lib/stripe/resources/terminal/reader.rb', line 454

def collect_payment_method
  @collect_payment_method
end

#confirm_payment_intentObject (readonly)

Represents a reader action to confirm a payment



456
457
458
# File 'lib/stripe/resources/terminal/reader.rb', line 456

def confirm_payment_intent
  @confirm_payment_intent
end

#failure_codeObject (readonly)

Failure code, only set if status is ‘failed`.



458
459
460
# File 'lib/stripe/resources/terminal/reader.rb', line 458

def failure_code
  @failure_code
end

#failure_messageObject (readonly)

Detailed failure message, only set if status is ‘failed`.



460
461
462
# File 'lib/stripe/resources/terminal/reader.rb', line 460

def failure_message
  @failure_message
end

#process_payment_intentObject (readonly)

Represents a reader action to process a payment intent



462
463
464
# File 'lib/stripe/resources/terminal/reader.rb', line 462

def process_payment_intent
  @process_payment_intent
end

#process_setup_intentObject (readonly)

Represents a reader action to process a setup intent



464
465
466
# File 'lib/stripe/resources/terminal/reader.rb', line 464

def process_setup_intent
  @process_setup_intent
end

#refund_paymentObject (readonly)

Represents a reader action to refund a payment



466
467
468
# File 'lib/stripe/resources/terminal/reader.rb', line 466

def refund_payment
  @refund_payment
end

#set_reader_displayObject (readonly)

Represents a reader action to set the reader display



468
469
470
# File 'lib/stripe/resources/terminal/reader.rb', line 468

def set_reader_display
  @set_reader_display
end

#statusObject (readonly)

Status of the action performed by the reader.



470
471
472
# File 'lib/stripe/resources/terminal/reader.rb', line 470

def status
  @status
end

#typeObject (readonly)

Type of action performed by the reader.



472
473
474
# File 'lib/stripe/resources/terminal/reader.rb', line 472

def type
  @type
end

Class Method Details

.field_remappingsObject



486
487
488
# File 'lib/stripe/resources/terminal/reader.rb', line 486

def self.field_remappings
  @field_remappings = {}
end

.inner_class_typesObject



474
475
476
477
478
479
480
481
482
483
484
# File 'lib/stripe/resources/terminal/reader.rb', line 474

def self.inner_class_types
  @inner_class_types = {
    collect_inputs: CollectInputs,
    collect_payment_method: CollectPaymentMethod,
    confirm_payment_intent: ConfirmPaymentIntent,
    process_payment_intent: ProcessPaymentIntent,
    process_setup_intent: ProcessSetupIntent,
    refund_payment: RefundPayment,
    set_reader_display: SetReaderDisplay,
  }
end