Sha256: 85bd0067c48e60ecda3b27c52597422b3669800fbd1c7a195f7d18a90c1e8bf2

Contents?: true

Size: 744 Bytes

Versions: 3

Compression:

Stored size: 744 Bytes

Contents

module ChargeBee
  class Addon < Model

  attr_accessor :id, :name, :invoice_name, :type, :charge_type, :price, :period, :period_unit,
  :unit, :status, :archived_at

  # OPERATIONS
  #-----------
    
  def self.create(params, env=nil)
    Request.send('post', "/addons", params, env)
  end    

  def self.update(id, params={}, env=nil)
    Request.send('post', "/addons/#{id.to_s}", params, env)
  end    

  def self.list(params={}, env=nil)
    Request.send('get', "/addons", params, env)
  end    

  def self.retrieve(id, env=nil)
    Request.send('get', "/addons/#{id.to_s}", {}, env)
  end    

  def self.delete(id, env=nil)
    Request.send('post', "/addons/#{id.to_s}/delete", {}, env)
  end    

  end # ~Addon
end # ~ChargeBee    

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
chargebee-1.3.9 lib/chargebee/models/addon.rb
chargebee-1.3.8 lib/chargebee/models/addon.rb
chargebee-1.3.7 lib/chargebee/models/addon.rb