Class: Razorpay::Settlement
Overview
Instance Attribute Summary
Attributes inherited from Entity
#attributes
Class Method Summary
collapse
Methods inherited from Entity
#initialize, #method_missing, #respond_to_missing?, #to_json, #with_a_bang
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
in the class Razorpay::Entity
Class Method Details
.all(options = {}) ⇒ Object
20
21
22
|
# File 'lib/razorpay/settlement.rb', line 20
def self.all(options = {})
request.all options
end
|
.create(options = {}) ⇒ Object
24
25
26
27
28
29
|
# File 'lib/razorpay/settlement.rb', line 24
def self.create(options={})
if(!options.is_a?(String) && options.key?(:settle_full_balance))
options[:settle_full_balance] = (options[:settle_full_balance] ? 1 : 0)
end
request.post "ondemand", options
end
|
.fetch(id) ⇒ Object
12
13
14
|
# File 'lib/razorpay/settlement.rb', line 12
def self.fetch(id)
request.fetch id
end
|
.fetch_all_ondemand_settlement(options = {}) ⇒ Object
31
32
33
|
# File 'lib/razorpay/settlement.rb', line 31
def self.fetch_all_ondemand_settlement(options={})
request.get "ondemand", options
end
|
.fetch_ondemand_settlement_by_id(id, options = {}) ⇒ Object
35
36
37
|
# File 'lib/razorpay/settlement.rb', line 35
def self.fetch_ondemand_settlement_by_id(id, options={})
request.get "ondemand/#{id}", options
end
|
.reports(options = {}) ⇒ Object
16
17
18
|
# File 'lib/razorpay/settlement.rb', line 16
def self.reports(options={})
request.get "recon/combined", options
end
|
.request ⇒ Object
8
9
10
|
# File 'lib/razorpay/settlement.rb', line 8
def self.request
Razorpay::Request.new('settlements')
end
|