Sha256: c4766422c3352ad1199f3ccf0a77774d62b4de00a0be5d20792b5d4e7e8bba50

Contents?: true

Size: 1008 Bytes

Versions: 3

Compression:

Stored size: 1008 Bytes

Contents

module ChargeBee
  class PriceVariant < Model

    class Attribute < Model
      attr_accessor :name, :value
    end

  attr_accessor :id, :name, :external_name, :description, :status, :created_at, :resource_version,
  :updated_at, :archived_at, :attributes

  # OPERATIONS
  #-----------

  def self.create(params, env=nil, headers={})
    Request.send('post', uri_path("price_variants"), params, env, headers)
  end

  def self.retrieve(id, env=nil, headers={})
    Request.send('get', uri_path("price_variants",id.to_s), {}, env, headers)
  end

  def self.update(id, params, env=nil, headers={})
    Request.send('post', uri_path("price_variants",id.to_s), params, env, headers)
  end

  def self.delete(id, env=nil, headers={})
    Request.send('post', uri_path("price_variants",id.to_s,"delete"), {}, env, headers)
  end

  def self.list(params={}, env=nil, headers={})
    Request.send_list_request('get', uri_path("price_variants"), params, env, headers)
  end

  end # ~PriceVariant
end # ~ChargeBee

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
chargebee-2.40.0 lib/chargebee/models/price_variant.rb
chargebee-2.38.1 lib/chargebee/models/price_variant.rb
chargebee-2.38.0 lib/chargebee/models/price_variant.rb