Sha256: 64e877aef31c87f4f2cfa37164dc96eb6b3cb643354b45c0564e81dd81316712

Contents?: true

Size: 995 Bytes

Versions: 65

Compression:

Stored size: 995 Bytes

Contents

module ChargeBee
  class PromotionalCredit < Model

  attr_accessor :id, :customer_id, :type, :amount_in_decimal, :amount, :currency_code, :description,
  :credit_type, :reference, :closing_balance, :done_by, :created_at

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

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

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

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

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

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

  end # ~PromotionalCredit
end # ~ChargeBee

Version data entries

65 entries across 65 versions & 1 rubygems

Version Path
chargebee-2.49.0 lib/chargebee/models/promotional_credit.rb
chargebee-2.48.0 lib/chargebee/models/promotional_credit.rb
chargebee-2.47.1 lib/chargebee/models/promotional_credit.rb
chargebee-2.47.0 lib/chargebee/models/promotional_credit.rb
chargebee-2.47.0.beta.1 lib/chargebee/models/promotional_credit.rb
chargebee-2.46.0 lib/chargebee/models/promotional_credit.rb
chargebee-2.45.0 lib/chargebee/models/promotional_credit.rb
chargebee-2.44.1 lib/chargebee/models/promotional_credit.rb
chargebee-2.44.0 lib/chargebee/models/promotional_credit.rb
chargebee-2.43.0 lib/chargebee/models/promotional_credit.rb
chargebee-2.42.0 lib/chargebee/models/promotional_credit.rb
chargebee-2.41.0 lib/chargebee/models/promotional_credit.rb
chargebee-2.40.0 lib/chargebee/models/promotional_credit.rb
chargebee-2.38.1 lib/chargebee/models/promotional_credit.rb
chargebee-2.38.0 lib/chargebee/models/promotional_credit.rb
chargebee-2.37.1 lib/chargebee/models/promotional_credit.rb
chargebee-2.37.0 lib/chargebee/models/promotional_credit.rb
chargebee-2.36.2 lib/chargebee/models/promotional_credit.rb
chargebee-2.36.1 lib/chargebee/models/promotional_credit.rb
chargebee-2.36.0 lib/chargebee/models/promotional_credit.rb