Sha256: a4467664bfea09cebfb28a0a870734646ed6a622631fc6b7cc8f54a7e53c8822
Contents?: true
Size: 1.11 KB
Versions: 4
Compression:
Stored size: 1.11 KB
Contents
module ChargeBee class Estimate < Model class LineItem < Model attr_accessor :date_from, :date_to, :unit_amount, :quantity, :is_taxed, :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, :price_type, :sub_total, :line_items, :discounts, :taxes # OPERATIONS #----------- def self.create_subscription(params, env=nil, headers={}) Request.send('post', uri_path("estimates","create_subscription"), params, env, headers) end def self.update_subscription(params, env=nil, headers={}) Request.send('post', uri_path("estimates","update_subscription"), params, env, headers) end def self.renewal_estimate(id, params={}, env=nil, headers={}) Request.send('get', uri_path("subscriptions",id.to_s,"renewal_estimate"), params, env, headers) end end # ~Estimate end # ~ChargeBee
Version data entries
4 entries across 4 versions & 1 rubygems