Sha256: 751c688a161654b0bb9167ca5d631b59286469e1043ce0c30ec59d26a8db9b79
Contents?: true
Size: 610 Bytes
Versions: 1
Compression:
Stored size: 610 Bytes
Contents
# frozen_string_literal: true module Stripe class Subscription < APIResource extend Stripe::APIOperations::List extend Stripe::APIOperations::Create include Stripe::APIOperations::Save include Stripe::APIOperations::Delete OBJECT_NAME = "subscription".freeze custom_method :delete_discount, http_verb: :delete, http_path: "discount" save_nested_resource :source 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stripe-4.18.1 | lib/stripe/subscription.rb |