package BookPub::Import::Importer::RoyaltyShare::Version2;

use strict;

use lib '/app/tools/bookpub/lib';
use base 'BookPub::Import::Importer::RoyaltyShare::Version1';

sub _fieldMap {
    {
        # Header
        currencyCode => 'H',

        # Body
        dateBegin          => 'A',
        dateEnd            => 'B',
        rServiceName       => 'D',
        isbn               => 'E',
        rTitle             => 'F',
        rSubtitle          => 'G',
        rAuthor            => 'H',
        rImprint           => 'J',
        rProductType       => 'K',
        rFormat            => 'L',
        countryCode        => 'M',
        rUnits             => 'N',
        priceType          => 'O',
        rListPrice         => 'P',
        rListPriceCurrency => 'Q',
        rDiscount          => 'R',
        conversionRate     => 'T',
        rUnitPrice         => 'U',
        rRevenue           => 'V',
    };
}

sub _headerIdentifier { ( dateBegin => 'Sale Start Date' ) }

1;
