Sha256: aef0dc6a1421ab6b1baf1c6cfc0d4e579b1a935c1064be50ca059773e46bd7c0

Contents?: true

Size: 975 Bytes

Versions: 32

Compression:

Stored size: 975 Bytes

Contents

module ChargeBee
  class PromotionalCredit < Model

  attr_accessor :id, :customer_id, :type, :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

32 entries across 32 versions & 1 rubygems

Version Path
chargebee-2.7.9 lib/chargebee/models/promotional_credit.rb
chargebee-2.7.8 lib/chargebee/models/promotional_credit.rb
chargebee-2.7.7 lib/chargebee/models/promotional_credit.rb
chargebee-2.7.6 lib/chargebee/models/promotional_credit.rb
chargebee-2.7.5 lib/chargebee/models/promotional_credit.rb
chargebee-2.7.4 lib/chargebee/models/promotional_credit.rb
chargebee-2.7.3 lib/chargebee/models/promotional_credit.rb
chargebee-2.7.2 lib/chargebee/models/promotional_credit.rb
chargebee-2.7.1 lib/chargebee/models/promotional_credit.rb
chargebee-2.7.0 lib/chargebee/models/promotional_credit.rb
chargebee-2.6.9 lib/chargebee/models/promotional_credit.rb
chargebee-2.6.8 lib/chargebee/models/promotional_credit.rb
chargebee-2.6.7 lib/chargebee/models/promotional_credit.rb
chargebee-2.6.6 lib/chargebee/models/promotional_credit.rb
chargebee-2.6.5 lib/chargebee/models/promotional_credit.rb
chargebee-2.6.2 lib/chargebee/models/promotional_credit.rb
chargebee-2.6.1 lib/chargebee/models/promotional_credit.rb
chargebee-2.6.0 lib/chargebee/models/promotional_credit.rb
chargebee-2.5.9 lib/chargebee/models/promotional_credit.rb
chargebee-2.5.8 lib/chargebee/models/promotional_credit.rb