Sha256: 2b9e4c3fd48af3ea7acc401ff2a017edf5e0803dec95091ae2f015818745d7a5

Contents?: true

Size: 435 Bytes

Versions: 3

Compression:

Stored size: 435 Bytes

Contents

module Stripe
  class Subscription < APIResource
    extend Stripe::APIOperations::Create
    include Stripe::APIOperations::Update
    include Stripe::APIOperations::Delete
    extend Stripe::APIOperations::List

    def delete_discount
      _, opts = request(:delete, discount_url)
      initialize_from({ :discount => nil }, opts, true)
    end

    private

    def discount_url
      resource_url + '/discount'
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
stripe-1.43.1 lib/stripe/subscription.rb
stripe-1.43.0 lib/stripe/subscription.rb
stripe-1.42.0 lib/stripe/subscription.rb