package BookPub::Import::Importer::Numilog::Version3;

use strict;

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

sub _fieldMap {
    {
        rFormat            => 'H',
        rTitle             => 'C',
        rIsbn13            => 'G',
        countryCode        => 'T',
        rUnits             => 'I',
        rListPrice         => 'W',
        rListPriceCurrency => 'W1',
        rPurchasePrice     => 'V',
        rDiscount          => 'P',
        rRevenue           => 'O',
        currencyCode       => 'O1',
    };
}

sub _unverifiedFieldMap {
    {
        authorLastName  => 'D',
        authorFirstName => 'E',
    };
}

# Need to override the base class here
sub rPurchasePriceCurrency { }
sub rTaxAmount             { }
sub rTaxUnitPrice          { }

sub countryCode {
    my $self        = shift;
    my $countryCode = $self->_getByFieldName('countryCode');

    return $countryCode;
}

1;
