Class: Razorpay::Dispute
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
.accept(id, options = {}) ⇒ Object
18
19
20
|
# File 'lib/razorpay/dispute.rb', line 18
def self.accept(id, options={})
request.post "#{id}/accept", options
end
|
.all(options = {}) ⇒ Object
14
15
16
|
# File 'lib/razorpay/dispute.rb', line 14
def self.all(options = {})
request.all options
end
|
.contest(id, options) ⇒ Object
22
23
24
|
# File 'lib/razorpay/dispute.rb', line 22
def self.contest(id, options)
request.patch "#{id}/contest", options
end
|
.fetch(id) ⇒ Object
10
11
12
|
# File 'lib/razorpay/dispute.rb', line 10
def self.fetch(id)
request.fetch id
end
|
.request ⇒ Object
6
7
8
|
# File 'lib/razorpay/dispute.rb', line 6
def self.request
Razorpay::Request.new('disputes')
end
|