package BookPub::Import::Importer::Feedbooks::Version3;

use strict;

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

sub _fieldMap {
    {
        rPriceType             => 'G',
        currencyCode           => 'F',
        countryCode            => 'E',
        dateBegin              => 'D',
        rIsbn13                => 'A',
        rTitle                 => 'B',
        rUnits                 => 'C',
        rListPrice             => 'J',
        rListPriceCurrency     => 'F',
        rPurchasePrice         => 'I',
        rPurchasePriceCurrency => 'F',
        rDiscount              => 'M',
        rRevenue               => 'O',
    };
}

sub rTaxUnitPrice {
    my $self = shift;

    return $self->rPurchasePrice - $self->rListPrice;
}

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