helenye-stripe dc5174725f
Add RBI annotations for fields and params (#1559)
* Introduce types to ruby

* rubocop

* forgot these files

* other request methods

* more tests, fix for raw request

* Add README entry for types

* rebase and regen
2025-03-31 14:29:41 -07:00

29 lines
746 B
Ruby

# File generated from our OpenAPI spec
# frozen_string_literal: true
module Stripe
module TestHelpers
class RefundService < StripeService
class ExpireParams < Stripe::RequestParams
# Specifies which fields in the response should be expanded.
attr_accessor :expand
def initialize(expand: nil)
@expand = expand
end
end
# Expire a refund with a status of requires_action.
def expire(refund, params = {}, opts = {})
request(
method: :post,
path: format("/v1/test_helpers/refunds/%<refund>s/expire", { refund: CGI.escape(refund) }),
params: params,
opts: opts,
base_address: :api
)
end
end
end
end