package BookPub::Import::Importer::Google::Version13;

use strict;

use Common::Assert;
use Data::Dumper;

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

sub _fieldMap {
    {
        dateBegin          => 'B',
        rUnits             => 'E',
        rIsbn13            => 'G',
        rImprint           => 'H',
        rTitle             => 'I',
        rAuthor            => 'J',
        rListPriceCurrency => 'K',
        rListPrice         => 'L',
        countryCode        => 'M',
        rDiscount          => 'N',
        currencyCode       => 'P',
        conversionRate     => 'R',
        rRevenue           => 'Q',
    };
}

sub rDiscount {
    my $self     = shift;
    my $discount = $self->SUPER::rDiscount();

    return 1 - $discount;
}

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