Sha256: f1d5b2adbe5780ad1cee373a495d944b7c20720bba92e411dc83e5aa0b9280dd

Contents?: true

Size: 1.28 KB

Versions: 51

Compression:

Stored size: 1.28 KB

Contents

module ChargeBee
  class DifferentialPrice < Model

    class Tier < Model
      attr_accessor :starting_unit, :ending_unit, :price, :starting_unit_in_decimal, :ending_unit_in_decimal, :price_in_decimal
    end

    class ParentPeriod < Model
      attr_accessor :period_unit, :period
    end

  attr_accessor :id, :item_price_id, :parent_item_id, :price, :price_in_decimal, :status, :resource_version,
  :updated_at, :created_at, :modified_at, :tiers, :currency_code, :parent_periods

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

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

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

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

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

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

  end # ~DifferentialPrice
end # ~ChargeBee

Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
chargebee-2.45.0 lib/chargebee/models/differential_price.rb
chargebee-2.44.1 lib/chargebee/models/differential_price.rb
chargebee-2.44.0 lib/chargebee/models/differential_price.rb
chargebee-2.43.0 lib/chargebee/models/differential_price.rb
chargebee-2.42.0 lib/chargebee/models/differential_price.rb
chargebee-2.41.0 lib/chargebee/models/differential_price.rb
chargebee-2.40.0 lib/chargebee/models/differential_price.rb
chargebee-2.38.1 lib/chargebee/models/differential_price.rb
chargebee-2.38.0 lib/chargebee/models/differential_price.rb
chargebee-2.37.1 lib/chargebee/models/differential_price.rb
chargebee-2.37.0 lib/chargebee/models/differential_price.rb
chargebee-2.36.2 lib/chargebee/models/differential_price.rb
chargebee-2.36.1 lib/chargebee/models/differential_price.rb
chargebee-2.36.0 lib/chargebee/models/differential_price.rb
chargebee-2.35.0 lib/chargebee/models/differential_price.rb
chargebee-2.34.0 lib/chargebee/models/differential_price.rb
chargebee-2.33.0 lib/chargebee/models/differential_price.rb
chargebee-2.32.0 lib/chargebee/models/differential_price.rb
chargebee-2.31.1 lib/chargebee/models/differential_price.rb
chargebee-2.31.0 lib/chargebee/models/differential_price.rb