Class: Stripe::PaymentIntent::CancelParams

Inherits:
RequestParams show all
Defined in:
lib/stripe/resources/payment_intent.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(cancellation_reason: nil, expand: nil) ⇒ CancelParams

Returns a new instance of CancelParams.



8534
8535
8536
8537
# File 'lib/stripe/resources/payment_intent.rb', line 8534

def initialize(cancellation_reason: nil, expand: nil)
  @cancellation_reason = cancellation_reason
  @expand = expand
end

Instance Attribute Details

#cancellation_reasonObject

Reason for canceling this PaymentIntent. Possible values are: ‘duplicate`, `fraudulent`, `requested_by_customer`, or `abandoned`



8530
8531
8532
# File 'lib/stripe/resources/payment_intent.rb', line 8530

def cancellation_reason
  @cancellation_reason
end

#expandObject

Specifies which fields in the response should be expanded.



8532
8533
8534
# File 'lib/stripe/resources/payment_intent.rb', line 8532

def expand
  @expand
end