Sha256: 13b7d615c8d7411bb5c2b26c122d852f3cf3e1efb871afe2042104f23fe29c45
Contents?: true
Size: 1.02 KB
Versions: 14
Compression:
Stored size: 1.02 KB
Contents
module ChargeBee class Estimate < Model class LineItem < Model attr_accessor :date_from, :date_to, :unit_amount, :quantity, :tax, :tax_rate, :amount, :description, :type, :entity_type, :entity_id end class Discount < Model attr_accessor :amount, :description, :type, :entity_id end class Tax < Model attr_accessor :amount, :description end attr_accessor :created_at, :recurring, :subscription_id, :subscription_status, :term_ends_at, :collect_now, :amount, :sub_total, :line_items, :discounts, :taxes # OPERATIONS #----------- def self.create_subscription(params, env=nil) Request.send('post', uri_path("estimates","create_subscription"), params, env) end def self.update_subscription(params, env=nil) Request.send('post', uri_path("estimates","update_subscription"), params, env) end def self.renewal_estimate(id, params={}, env=nil) Request.send('get', uri_path("subscriptions",id.to_s,"renewal_estimate"), params, env) end end # ~Estimate end # ~ChargeBee
Version data entries
14 entries across 14 versions & 1 rubygems