Sha256: c9e83e9ff1f31ad68d22b8488ac39fc107ccfa12eae1222755bcfa9449dce7d9
Contents?: true
Size: 741 Bytes
Versions: 9
Compression:
Stored size: 741 Bytes
Contents
require "omise/object" require "omise/search_scope" module Omise class Refund < OmiseObject self.endpoint = "/refunds" def self.search SearchScope.new(:refund) end def self.list(attributes = {}) List.new resource(location, attributes).get(attributes) end def reload(attributes = {}) assign_attributes resource(attributes).get(attributes) end def charge(options = {}) if !defined?(Charge) require "omise/charge" end expand_attribute Charge, "charge", options end def transaction(options = {}) if !defined?(Transaction) require "omise/transaction" end expand_attribute Transaction, "transaction", options end end end
Version data entries
9 entries across 9 versions & 1 rubygems