Sha256: 4863d870397027c301604844dbd27e529b57d69fe36eb353e27e4fb5c7b771e2
Contents?: true
Size: 981 Bytes
Versions: 45
Compression:
Stored size: 981 Bytes
Contents
module ChargeBee class Usage < Model attr_accessor :id, :usage_date, :subscription_id, :item_price_id, :invoice_id, :line_item_id, :quantity, :source, :note, :resource_version, :updated_at, :created_at # OPERATIONS #----------- def self.create(id, params, env=nil, headers={}) Request.send('post', uri_path("subscriptions",id.to_s,"usages"), params, env, headers) end def self.retrieve(id, params, env=nil, headers={}) Request.send('get', uri_path("subscriptions",id.to_s,"usages"), params, env, headers) end def self.delete(id, params, env=nil, headers={}) Request.send('post', uri_path("subscriptions",id.to_s,"delete_usage"), params, env, headers) end def self.list(params, env=nil, headers={}) Request.send_list_request('get', uri_path("usages"), params, env, headers) end def self.pdf(params, env=nil, headers={}) Request.send('post', uri_path("usages","pdf"), params, env, headers) end end # ~Usage end # ~ChargeBee
Version data entries
45 entries across 45 versions & 1 rubygems