class Omise::Refund
Public Class Methods
list(attributes = {})
click to toggle source
# File lib/omise/refund.rb, line 12 def self.list(attributes = {}) List.new resource(location, attributes).get(attributes) end
search()
click to toggle source
# File lib/omise/refund.rb, line 8 def self.search SearchScope.new(:refund) end
Public Instance Methods
charge(options = {})
click to toggle source
# File lib/omise/refund.rb, line 20 def charge(options = {}) if !defined?(Charge) require "omise/charge" end expand_attribute Charge, "charge", options end
reload(attributes = {})
click to toggle source
# File lib/omise/refund.rb, line 16 def reload(attributes = {}) assign_attributes resource(attributes).get(attributes) end
transaction(options = {})
click to toggle source
# File lib/omise/refund.rb, line 28 def transaction(options = {}) if !defined?(Transaction) require "omise/transaction" end expand_attribute Transaction, "transaction", options end