Class: Stripe::SetupIntentCancelParams

Inherits:
RequestParams show all
Defined in:
lib/stripe/params/setup_intent_cancel_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

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

Returns a new instance of SetupIntentCancelParams.



11
12
13
14
# File 'lib/stripe/params/setup_intent_cancel_params.rb', line 11

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

Instance Attribute Details

#cancellation_reasonObject

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



7
8
9
# File 'lib/stripe/params/setup_intent_cancel_params.rb', line 7

def cancellation_reason
  @cancellation_reason
end

#expandObject

Specifies which fields in the response should be expanded.



9
10
11
# File 'lib/stripe/params/setup_intent_cancel_params.rb', line 9

def expand
  @expand
end