NAME

Finance::Bank::SentinelBenefits::Csv401kConverter::QifWriter - Takes Finance::Bank::SentinelBenefits::Csv401kConverter::Line objects and writes them out to a QIF file

VERSION

version 1.3

SYNOPSIS

This class is responsible for taking a set of Lines and writing them out to QIF format. We use the class Finance::QIF to do the acutal writing to disk. If you pass it a secondary set of account information, it will also take any company matches, reverse their values, and write them to a secondary file. This is to allow you to keep track of your unvested balance.

Constructor

new()

  my $l = Finance::Bank::SentinelBenefits::Csv401kConverter::QifWrite->new( {
  main_output_filename => $main_output_filename,
  flip_output_filename => $flip_output_filename, ( optional )
  account           => $account,
  trade_date        => $trade_date,
  } );

Constructs a new QifWriter for the given trade date and account.  Each qif writer can only generate to one trade date and account, and one main file.

BUILD

Called by Moose infrastructure

Accessors

$l->account()

The account of the transactions

$l->output_file()

The output file name that the QIF lines are written to.

Methods

$l->output_line($line)

Writes one line out to the QIF file. Line is of type Finance::Bank::SentinelBenefits::Csv401kConverter::Line

$l->close()

Closes the writer, ensuring that data is flushed to disk. Calling output_line after this is an error.

LICENSE AND COPYRIGHT Copyright 2009-2023 David Solimano This file is part of Finance::Bank::SentinelBenefits::Csv401kConverter

Finance::Bank::SentinelBenefits::Csv401kConverter is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

Finance::Bank::SentinelBenefits::Csv401kConverter is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with Finance::Bank::SentinelBenefits::Csv401kConverter. If not, see <http://www.gnu.org/licenses/