offsettingMeta
  :: OfxOut
  -- ^
  -> Tranche.Postline ()
  -- ^
offsettingMeta out = Tranche.Tranche () fields
  where
    fields = Fields.PostingFields
      { Fields._number = Nothing
      , Fields._flag = X.empty
      , Fields._account = _offsettingAccount out
      , Fields._fitid = X.empty
      , Fields._tags = Seq.empty
      , Fields._uid = X.empty
      , Fields._trnType = Nothing
      , Fields._origDate = Nothing
      , Fields._memo = Seq.empty
      }

-- | Given the OFX data, create a 'Transaction'.
offsettingMeta
  :: OfxOut
  -- ^
  -> Tranche.Postline ()
offsettingMeta out = Tranche.Tranche () fields
  where
    fields = Fields.PostingFields
      { Fields._number = Nothing
      , Fields._flag = X.empty
      , Fields._account = _offsettingAccount out
      , Fields._fitid = X.empty
      , Fields._tags = Seq.empty
      , Fields._uid = X.empty
      , Fields._trnType = Nothing
      , Fields._origDate = Nothing
      , Fields._memo = Seq.empty
      }

-- | Given the OFX data, create a 'Transaction'.
offsettingMeta out = Tranche.Tranche () fields
  where
    fields = Fields.PostingFields
      { Fields._number = Nothing
      , Fields._flag = X.empty
      , Fields._account = _offsettingAccount out
      , Fields._fitid = X.empty
      , Fields._tags = Seq.empty
      , Fields._uid = X.empty
      , Fields._trnType = Nothing
      , Fields._origDate = Nothing
      , Fields._memo = Seq.empty
      }

-- | Given the OFX data, create a 'Transaction'.