Sha256: 8a3b1c9796dcdac6a3ed32a32c5c6102524efd489b52f21fda7d44ada36437bc
Contents?: true
Size: 911 Bytes
Versions: 5
Compression:
Stored size: 911 Bytes
Contents
module ChargeBee class Estimate < Model attr_accessor :created_at, :subscription_estimate, :invoice_estimate, :next_invoice_estimate, :credit_note_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 end # ~Estimate end # ~ChargeBee
Version data entries
5 entries across 5 versions & 1 rubygems