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

Version Path
chargebee-2.49.0 lib/chargebee/models/usage.rb
chargebee-2.48.0 lib/chargebee/models/usage.rb
chargebee-2.47.1 lib/chargebee/models/usage.rb
chargebee-2.47.0 lib/chargebee/models/usage.rb
chargebee-2.47.0.beta.1 lib/chargebee/models/usage.rb
chargebee-2.46.0 lib/chargebee/models/usage.rb
chargebee-2.45.0 lib/chargebee/models/usage.rb
chargebee-2.44.1 lib/chargebee/models/usage.rb
chargebee-2.44.0 lib/chargebee/models/usage.rb
chargebee-2.43.0 lib/chargebee/models/usage.rb
chargebee-2.42.0 lib/chargebee/models/usage.rb
chargebee-2.41.0 lib/chargebee/models/usage.rb