Class: Stripe::PaymentIntentService::CancelParams

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



6678
6679
6680
6681
# File 'lib/stripe/services/payment_intent_service.rb', line 6678

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`



6674
6675
6676
# File 'lib/stripe/services/payment_intent_service.rb', line 6674

def cancellation_reason
  @cancellation_reason
end

#expandObject

Specifies which fields in the response should be expanded.



6676
6677
6678
# File 'lib/stripe/services/payment_intent_service.rb', line 6676

def expand
  @expand
end