Sha256: 43ba2dc16034e573709fd73bd04d84d316717900df3ee3f50acab99ef59647db

Contents?: true

Size: 774 Bytes

Versions: 39

Compression:

Stored size: 774 Bytes

Contents

# File generated from our OpenAPI spec
# frozen_string_literal: true

module Stripe
  class SubscriptionSchedule < APIResource
    extend Stripe::APIOperations::Create
    extend Stripe::APIOperations::List
    include Stripe::APIOperations::Save

    OBJECT_NAME = "subscription_schedule"

    custom_method :cancel, http_verb: :post
    custom_method :release, http_verb: :post

    def cancel(params = {}, opts = {})
      request_stripe_object(
        method: :post,
        path: resource_url + "/cancel",
        params: params,
        opts: opts
      )
    end

    def release(params = {}, opts = {})
      request_stripe_object(
        method: :post,
        path: resource_url + "/release",
        params: params,
        opts: opts
      )
    end
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
stripe-6.3.0 lib/stripe/resources/subscription_schedule.rb
stripe-6.2.0 lib/stripe/resources/subscription_schedule.rb
stripe-6.1.0 lib/stripe/resources/subscription_schedule.rb
stripe-6.0.0 lib/stripe/resources/subscription_schedule.rb
stripe-5.55.0 lib/stripe/resources/subscription_schedule.rb
stripe-5.54.0 lib/stripe/resources/subscription_schedule.rb
stripe-5.53.0 lib/stripe/resources/subscription_schedule.rb
stripe-5.52.0 lib/stripe/resources/subscription_schedule.rb
stripe-5.50.0 lib/stripe/resources/subscription_schedule.rb
stripe-5.49.0 lib/stripe/resources/subscription_schedule.rb
stripe-5.48.0 lib/stripe/resources/subscription_schedule.rb
stripe-5.47.0 lib/stripe/resources/subscription_schedule.rb
stripe-5.46.0 lib/stripe/resources/subscription_schedule.rb
stripe-5.45.0 lib/stripe/resources/subscription_schedule.rb
stripe-5.44.0 lib/stripe/resources/subscription_schedule.rb
stripe-5.43.0 lib/stripe/resources/subscription_schedule.rb
stripe-5.42.0 lib/stripe/resources/subscription_schedule.rb
stripe-5.41.0 lib/stripe/resources/subscription_schedule.rb
stripe-5.40.0 lib/stripe/resources/subscription_schedule.rb
stripe-5.39.0 lib/stripe/resources/subscription_schedule.rb