package BookPub::Import::Importer::Wheelers::Version1;

use strict;

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

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

sub purchaseType { BookPub::DB::Item::Sale::kPurchaseTypeDownload }
sub priceType    { 'rrp' }
sub rServiceName { 'Wheelers' }
sub productType  { BookPub::DB::Item::Sale::kProductTypeEBook }
sub _dateFormat  { [ 'eur', 'iso' ] }

sub _fieldMap {
    {
        dateBegin    => 'B',
        rIsbn13      => 'C',
        rFormat      => 'D',
        rTitle       => 'E',
        rAuthor      => 'F',
        rUnits       => 'G',
        rListPrice   => 'H',
        rRevenue     => 'J',
        currencyCode => 'K',
        countryCode  => 'L',
    };
}

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