Class: Razorpay::Transfer
Overview
Transfer class handles all refund objects
Instance Attribute Summary
Attributes inherited from Entity
#attributes
Class Method Summary
collapse
Instance 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
15
16
17
|
# File 'lib/razorpay/transfer.rb', line 15
def self.all(options = {})
request.all options
end
|
.create(options) ⇒ Object
11
12
13
|
# File 'lib/razorpay/transfer.rb', line 11
def self.create(options)
request.create options
end
|
.fetch(id) ⇒ Object
19
20
21
|
# File 'lib/razorpay/transfer.rb', line 19
def self.fetch(id)
request.fetch id
end
|
.fetch_settlements ⇒ Object
31
32
33
|
# File 'lib/razorpay/transfer.rb', line 31
def self.fetch_settlements
request.get "?expand[]=recipient_settlement"
end
|
.request ⇒ Object
7
8
9
|
# File 'lib/razorpay/transfer.rb', line 7
def self.request
Razorpay::Request.new('transfers')
end
|
Instance Method Details
#edit(options = {}) ⇒ Object
23
24
25
|
# File 'lib/razorpay/transfer.rb', line 23
def edit(options = {})
self.class.request.patch id, options
end
|
#reverse(options = {}) ⇒ Object
27
28
29
|
# File 'lib/razorpay/transfer.rb', line 27
def reverse(options = {})
self.class.request.post "#{id}/reversals", options
end
|