Sha256: fad3581022887999042b33510e6f5e8c1bedef7dd136f71398cfef1d274227cb

Contents?: true

Size: 511 Bytes

Versions: 13

Compression:

Stored size: 511 Bytes

Contents

# File generated from our OpenAPI spec
# frozen_string_literal: true

module Stripe
  module TestHelpers
    class RefundService < StripeService
      # 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

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
stripe-13.3.0.pre.beta.1 lib/stripe/services/test_helpers/refund_service.rb
stripe-13.2.0 lib/stripe/services/test_helpers/refund_service.rb
stripe-13.1.2 lib/stripe/services/test_helpers/refund_service.rb
stripe-13.2.0.pre.beta.3 lib/stripe/services/test_helpers/refund_service.rb
stripe-13.2.0.pre.beta.2 lib/stripe/services/test_helpers/refund_service.rb
stripe-13.1.1 lib/stripe/services/test_helpers/refund_service.rb
stripe-13.2.0.pre.beta.1 lib/stripe/services/test_helpers/refund_service.rb
stripe-13.1.0 lib/stripe/services/test_helpers/refund_service.rb
stripe-13.0.2 lib/stripe/services/test_helpers/refund_service.rb
stripe-13.1.0.pre.beta.3 lib/stripe/services/test_helpers/refund_service.rb
stripe-13.0.1 lib/stripe/services/test_helpers/refund_service.rb
stripe-13.1.0.pre.beta.2 lib/stripe/services/test_helpers/refund_service.rb
stripe-13.0.0 lib/stripe/services/test_helpers/refund_service.rb