Class: Stripe::PaymentIntent::TriggerActionParams

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/resources/payment_intent.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.



14524
14525
14526
14527
14528
# File 'lib/stripe/resources/payment_intent.rb', line 14524

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.



14518
14519
14520
# File 'lib/stripe/resources/payment_intent.rb', line 14518

def expand
  @expand
end

#scan_qr_codeObject

True to simulate success, false to simulate failure.



14520
14521
14522
# File 'lib/stripe/resources/payment_intent.rb', line 14520

def scan_qr_code
  @scan_qr_code
end

#typeObject

The type of action to be simulated.



14522
14523
14524
# File 'lib/stripe/resources/payment_intent.rb', line 14522

def type
  @type
end