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

Version Path
chargebee-2.40.0 lib/chargebee/models/usage.rb
chargebee-2.38.1 lib/chargebee/models/usage.rb
chargebee-2.38.0 lib/chargebee/models/usage.rb
chargebee-2.37.1 lib/chargebee/models/usage.rb
chargebee-2.37.0 lib/chargebee/models/usage.rb
chargebee-2.36.2 lib/chargebee/models/usage.rb
chargebee-2.36.1 lib/chargebee/models/usage.rb
chargebee-2.36.0 lib/chargebee/models/usage.rb
chargebee-2.35.0 lib/chargebee/models/usage.rb
chargebee-2.34.0 lib/chargebee/models/usage.rb
chargebee-2.33.0 lib/chargebee/models/usage.rb
chargebee-2.32.0 lib/chargebee/models/usage.rb
chargebee-2.31.1 lib/chargebee/models/usage.rb
chargebee-2.31.0 lib/chargebee/models/usage.rb
chargebee-2.30.0 lib/chargebee/models/usage.rb
chargebee-2.29.0 lib/chargebee/models/usage.rb
chargebee-2.28.0 lib/chargebee/models/usage.rb
chargebee-2.27.1 lib/chargebee/models/usage.rb
chargebee-2.27.0 lib/chargebee/models/usage.rb
chargebee-2.26.1 lib/chargebee/models/usage.rb