Sha256: e296f0458ec97dd07c6c36fb7b6f0ae132c3bd13b2da6395328924f7d4ed0469
Contents?: true
Size: 343 Bytes
Versions: 3
Compression:
Stored size: 343 Bytes
Contents
module Workarea decorate Payment, with: :forter do decorated do field :fraud_suspected, type: Boolean, default: false end def rollback!(options = {}) transactions = tenders.flat_map(&:transactions) operation = Workarea::Payment::Operation.new(transactions, options) operation.rollback! end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
workarea-forter-1.3.2 | app/models/workarea/payment.decorator |
workarea-forter-1.3.1 | app/models/workarea/payment.decorator |
workarea-forter-1.3.0 | app/models/workarea/payment.decorator |