Class: Stripe::PaymentIntentService::TriggerActionParams

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/payment_intent_service.rb

Defined Under Namespace

Classes: ScanQrCode

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(expand: nil, scan_qr_code: nil, type: nil) ⇒ TriggerActionParams

Returns a new instance of TriggerActionParams.



11448
11449
11450
11451
11452
# File 'lib/stripe/services/payment_intent_service.rb', line 11448

def initialize(expand: nil, scan_qr_code: nil, type: nil)
  @expand = expand
  @scan_qr_code = scan_qr_code
  @type = type
end

Instance Attribute Details

#expandObject

Specifies which fields in the response should be expanded.



11442
11443
11444
# File 'lib/stripe/services/payment_intent_service.rb', line 11442

def expand
  @expand
end

#scan_qr_codeObject

True to simulate success, false to simulate failure.



11444
11445
11446
# File 'lib/stripe/services/payment_intent_service.rb', line 11444

def scan_qr_code
  @scan_qr_code
end

#typeObject

The type of action to be simulated.



11446
11447
11448
# File 'lib/stripe/services/payment_intent_service.rb', line 11446

def type
  @type
end