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