lib/finix/resources/transfer.rb in finix-0.16 vs lib/finix/resources/transfer.rb in finix-1.0.0
- old
+ new
@@ -1,12 +1,13 @@
module Finix
class Transfer
include Finix::Resource
include Finix::HypermediaRegistry
- define_hypermedia_types [:transfers]
+ define_hypermedia_types [:transfers, :funding_transfers, :fees]
- def reverse(refund_amount=0)
- self.reversals.create :refund_amount => refund_amount
+ def reverse(args=0)
+ atts = args.is_a?(Hash) ? {}.merge(args) : {:refund_amount => args}
+ self.reversals.create atts
end
end
end