Class: Stripe::SetupIntentService::CancelParams

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



2577
2578
2579
2580
# File 'lib/stripe/services/setup_intent_service.rb', line 2577

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`



2573
2574
2575
# File 'lib/stripe/services/setup_intent_service.rb', line 2573

def cancellation_reason
  @cancellation_reason
end

#expandObject

Specifies which fields in the response should be expanded.



2575
2576
2577
# File 'lib/stripe/services/setup_intent_service.rb', line 2575

def expand
  @expand
end