class Omise::Dispute
Public Class Methods
list(attributes = {})
click to toggle source
# File lib/omise/dispute.rb, line 14 def self.list(attributes = {}) status = attributes.delete(:status) List.new resource(location(status), attributes).get(attributes) end
retrieve(id = nil, attributes = {})
click to toggle source
# File lib/omise/dispute.rb, line 19 def self.retrieve(id = nil, attributes = {}) new resource(location(id), attributes).get(attributes) end
search()
click to toggle source
# File lib/omise/dispute.rb, line 10 def self.search SearchScope.new(:dispute) end
Public Instance Methods
accept(attributes = {})
click to toggle source
# File lib/omise/dispute.rb, line 31 def accept(attributes = {}) assign_attributes nested_resource("accept", attributes).patch(attributes) end
charge(options = {})
click to toggle source
# File lib/omise/dispute.rb, line 35 def charge(options = {}) if !defined?(Charge) require "omise/charge" end expand_attribute Charge, "charge", options end
documents(options = {})
click to toggle source
# File lib/omise/dispute.rb, line 43 def documents(options = {}) list_nested_resource DocumentList, "documents", options end
reload(attributes = {})
click to toggle source
# File lib/omise/dispute.rb, line 23 def reload(attributes = {}) assign_attributes resource(attributes).get(attributes) end
update(attributes = {})
click to toggle source
# File lib/omise/dispute.rb, line 27 def update(attributes = {}) assign_attributes resource(attributes).patch(attributes) end