Sha256: 67178917749863f08cfe1087262827b76b05079f7ecb47c9e08dbce02b3c0577
Contents?: true
Size: 984 Bytes
Versions: 12
Compression:
Stored size: 984 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
12 entries across 12 versions & 1 rubygems