Sha256: 1f36f9e0242d4198fd009dc8c1273f3e83bdf3d27af7bb68e8f5129235f86f62

Contents?: true

Size: 315 Bytes

Versions: 2

Compression:

Stored size: 315 Bytes

Contents

module Finix
  class Transfer
    include Finix::Resource
    include Finix::HypermediaRegistry

    define_hypermedia_types [:transfers, :funding_transfers, :fees]

    def reverse(args=0)
      atts = args.is_a?(Hash) ? {}.merge(args) : {:refund_amount => args}
      self.reversals.create atts
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
finix-1.0.1 lib/finix/resources/transfer.rb
finix-1.0.0 lib/finix/resources/transfer.rb