Class: Stripe::SetupIntent::CancelParams

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



3044
3045
3046
3047
# File 'lib/stripe/resources/setup_intent.rb', line 3044

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`



3040
3041
3042
# File 'lib/stripe/resources/setup_intent.rb', line 3040

def cancellation_reason
  @cancellation_reason
end

#expandObject

Specifies which fields in the response should be expanded.



3042
3043
3044
# File 'lib/stripe/resources/setup_intent.rb', line 3042

def expand
  @expand
end