Sha256: 34a72ca86e5812edc0c22d79c9b7982188022efdef8c812f097ebadea30323cf
Contents?: true
Size: 615 Bytes
Versions: 3
Compression:
Stored size: 615 Bytes
Contents
module Balanced # A Refund represents a reversal of funds from a Debit. A Debit can have # many Refunds associated with it up to the total amount of the original # Debit. Funds are returned to your Marketplace's Merchant Account # proportional to the amoun of the Refund. # class Refund include Balanced::Resource def initialize attributes = {} Balanced::Utils.stringify_keys! attributes unless attributes.has_key? 'uri' attributes['uri'] = Balanced::Marketplace.my_marketplace.send(self.class.collection_name + '_uri') end super attributes end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
balanced-0.3.2 | lib/balanced/resources/refund.rb |
balanced-0.3.1 | lib/balanced/resources/refund.rb |
balanced-0.3.0 | lib/balanced/resources/refund.rb |