package BookPub::Import::Importer::Amazon::Version49;

use strict;
use Date::Calc qw( Add_Delta_YM );

use lib '/app/tools/bookpub/lib';
use base 'BookPub::Import::Importer::Amazon::Version32';

sub _headerIdentifier { ( serviceProductID => 'ASIN' ) }

sub _fieldMap {
    my $self = shift;

    my %fieldMap = (
        49 => {
            serviceProductID   => 'B',
            currencyCode       => 'V',
            countryCode        => 'W',
            dateBegin          => 'A',
            rFormat            => 'I',
            rIsbn13            => 'E',
            rTitle             => 'F',
            rAuthor            => 'G',
            rImprint           => 'H',
            rUnits             => 'L',
            rSales             => 'J',
            rReturns           => 'K',
            rAdjustments       => 'N',
            rListPrice         => 'Q',
            rListPriceCurrency => 'R',
            rPurchasePrice     => 'O',
            rDiscount          => 'S',
            rRevenue           => 'U',
        },
    );

    return $fieldMap{ $self->_version() };
}

###
1;    # Play nicely.
###
