Sha256: cebc88e10f7bce1ec4192382ea37a32d1b842d1bbe07732690e64cdf73c00cb9
Contents?: true
Size: 1.83 KB
Versions: 20
Compression:
Stored size: 1.83 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 def self.pause_subscription(id, params={}, env=nil, headers={}) Request.send('post', uri_path("subscriptions",id.to_s,"pause_subscription_estimate"), params, env, headers) end def self.resume_subscription(id, params={}, env=nil, headers={}) Request.send('post', uri_path("subscriptions",id.to_s,"resume_subscription_estimate"), params, env, headers) end end # ~Estimate end # ~ChargeBee
Version data entries
20 entries across 20 versions & 1 rubygems