lib/chargebee/models/promotional_credit.rb in chargebee-2.6.4 vs lib/chargebee/models/promotional_credit.rb in chargebee-2.6.5

- old
+ new

@@ -1,31 +1,31 @@ -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 +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 \ No newline at end of file