package BookPub::Import::Importer::IngramDigital::Version7;

use strict;

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

sub _fieldMap {
    {
        currencyCode         => 'O',
        countryCode          => 'R',
        dateBegin            => 'H',
        dateEnd              => 'H',
        rIsbn13              => 'D',
        rTitle               => 'A',
        rAuthor              => 'B',
        rUnits               => 'M',
        rListPrice           => 'G',
        rListPriceCurrency   => 'O',
        rDiscount            => 'L',
        rRevenue             => 'N',
        rTransactionCategory => 'I',
    };
}

sub _headerIdentifier { ( rAuthor => 'AUTHOR' ) }

sub purchaseType  { BookPub::DB::Item::Sale::kPurchaseTypeDownload }
sub priceType     { 'rrp' }
sub productType   { BookPub::DB::Item::Sale::kProductTypeEBook }
sub _useIsSaleRec { 1 }
sub _dateFormat   { ['text'] }

1;

