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