Sha256: 3864a6476db337f7361bcb03e0e517c553e20e295de8183330b79099534bfc07

Contents?: true

Size: 919 Bytes

Versions: 7

Compression:

Stored size: 919 Bytes

Contents

# File generated from our OpenAPI spec
# frozen_string_literal: true

module Stripe
  module TestHelpers
    class TestClock < APIResource
      extend Stripe::APIOperations::Create
      include Stripe::APIOperations::Delete
      extend Stripe::APIOperations::List

      OBJECT_NAME = "test_helpers.test_clock"

      def advance(params = {}, opts = {})
        request_stripe_object(
          method: :post,
          path: format("/v1/test_helpers/test_clocks/%<test_clock>s/advance", { test_clock: CGI.escape(self["id"]) }),
          params: params,
          opts: opts
        )
      end

      def self.advance(test_clock, params = {}, opts = {})
        request_stripe_object(
          method: :post,
          path: format("/v1/test_helpers/test_clocks/%<test_clock>s/advance", { test_clock: CGI.escape(test_clock) }),
          params: params,
          opts: opts
        )
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
stripe-7.1.0 lib/stripe/resources/test_helpers/test_clock.rb
stripe-7.1.0.pre.beta.2 lib/stripe/resources/test_helpers/test_clock.rb
stripe-7.1.0.pre.beta.1 lib/stripe/resources/test_helpers/test_clock.rb
stripe-7.0.0 lib/stripe/resources/test_helpers/test_clock.rb
stripe-6.6.0.pre.beta.1 lib/stripe/resources/test_helpers/test_clock.rb
stripe-6.5.0 lib/stripe/resources/test_helpers/test_clock.rb
stripe-6.4.0 lib/stripe/resources/test_helpers/test_clock.rb