Sha256: 3e5d738abd3d2b6cc8540aef9214ae45282f8e097d0a352bc2cf708c4fb559d2
Contents?: true
Size: 1.46 KB
Versions: 12
Compression:
Stored size: 1.46 KB
Contents
module ChargeBee class Estimate < Model attr_accessor :created_at, :subscription_estimate, :invoice_estimate, :invoice_estimates, :next_invoice_estimate, :credit_note_estimates, :unbilled_charge_estimates # OPERATIONS #----------- def self.create_subscription(params, env=nil, headers={}) Request.send('post', uri_path("estimates","create_subscription"), params, env, headers) end def self.create_sub_for_customer_estimate(id, params, env=nil, headers={}) Request.send('get', uri_path("customers",id.to_s,"create_subscription_estimate"), 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 def self.upcoming_invoices_estimate(id, env=nil, headers={}) Request.send('get', uri_path("customers",id.to_s,"upcoming_invoices_estimate"), {}, env, headers) end def self.change_term_end(id, params={}, env=nil, headers={}) Request.send('post', uri_path("subscriptions",id.to_s,"change_term_end_estimate"), params, env, headers) end def self.cancel_subscription(id, params={}, env=nil, headers={}) Request.send('post', uri_path("subscriptions",id.to_s,"cancel_subscription_estimate"), params, env, headers) end end # ~Estimate end # ~ChargeBee
Version data entries
12 entries across 12 versions & 1 rubygems