Sha256: d76e6de5aa473b8bbdf0266904f2402ba4f1710bd2bdfa0f4f047ba2988596e3
Contents?: true
Size: 735 Bytes
Versions: 3
Compression:
Stored size: 735 Bytes
Contents
module Balanced # A Credit represents a transfer of funds from your Marketplace's # escrow account to a Merchant's Account within your Marketplace. # # By default, a Credit is sent to the most recently added funding # destination associated with an Account. You may specify a specific # funding source. # class Credit include Balanced::Resource include Balanced::HypermediaRegistry define_hypermedia_types [:credits] def reverse(options={}) amount = options[:amount] description = options[:description] reversal = Reversal.new( :href => self.reversals.href, :amount => amount, :description => description ) reversal.save end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
balanced-1.0.1 | lib/balanced/resources/credit.rb |
balanced-1.0 | lib/balanced/resources/credit.rb |
balanced-1.0.beta1 | lib/balanced/resources/credit.rb |