Sha256: f9346013c7952fb3e25ea2b64b38fb2ddb902c944c00561b6179213e6e8c74d8
Contents?: true
Size: 419 Bytes
Versions: 3
Compression:
Stored size: 419 Bytes
Contents
module Finix class Authorization include Finix::Resource include Finix::HypermediaRegistry define_hypermedia_types [:authorizations] def void self.void_me = true self.save end def capture(attrs={}) if attrs['capture_amount'].nil? attrs['capture_amount'] = self.amount end self.attributes = self.attributes.merge attrs self.save end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
finix-1.0.1 | lib/finix/resources/authorization.rb |
finix-1.0.0 | lib/finix/resources/authorization.rb |
finix-0.16 | lib/finix/resources/authorization.rb |