package BookPub::Import::Importer::ZolaBooks::Version1;

use strict;

use lib '/app/tools/common/lib';
use Common::Country;

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

sub _headerIdentifier { ( rTitle => 'Title' ) }

sub _fieldMap {
    {
        countryCode    => 'S',
        rState         => 'T',
        rPostalCode    => 'V',
        dateBegin      => 'B',
        rIsbn13        => 'D',
        rTitle         => 'F',
        rAuthor        => 'E',
        rImprint       => 'H',
        rUnits         => 'J',
        rListPrice     => 'N',
        rPurchasePrice => 'O',
        rDiscount      => 'L',
        rRevenue       => 'P',
    };
}

sub purchaseType { BookPub::DB::Item::Sale::kPurchaseTypeDownload }
sub priceType    { 'agency' }
sub rServiceName { 'Zola Books' }
sub currencyCode { 'USD' }
sub productType  { BookPub::DB::Item::Sale::kProductTypeEBook }

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