stripe-ruby/lib/stripe/params/payment_intent_cancel_params.rb
helenye-stripe 3919242336
⚠️ Unify resource and service method parameters into one class (#1670)
* updated rubocop

* manual changes

* generated changes

* remove commented

* Add typed: true annotations to rbi

* regenerate

---------

Co-authored-by: David Brownman <xavdid@stripe.com>
2025-09-29 17:54:48 -07:00

17 lines
556 B
Ruby

# File generated from our OpenAPI spec
# frozen_string_literal: true
module Stripe
class PaymentIntentCancelParams < Stripe::RequestParams
# Reason for canceling this PaymentIntent. Possible values are: `duplicate`, `fraudulent`, `requested_by_customer`, or `abandoned`
attr_accessor :cancellation_reason
# Specifies which fields in the response should be expanded.
attr_accessor :expand
def initialize(cancellation_reason: nil, expand: nil)
@cancellation_reason = cancellation_reason
@expand = expand
end
end
end