package RPS::Import::Curve::v4;

use strict;
use warnings;

use lib '/app/tools/rps/lib';
use RPS::Import::ServiceMap;

use base 'RPS::Import::Curve::v3';

sub physical { 2 }

sub _fieldMapExtended {
    {
        mixed => {
            option1 => {
                countryCode     => 'H',
                dateBegin       => 'D',
                formatType      => 'V',
                clientProductID => 'J',
                upc             => 'I',
                albumName       => 'K',
                isrc            => 'P',
                trackName       => 'Q',
                units           => 'X',
                priceLevel      => 'W',
                currencyCode    => 'AO',
                totalRevenue    => 'AT',
                price           => 'AK',
                mediaType       => 'V',
            }
        }
    };
}

sub _unverifiedFieldMapExtended {
    {
        mixed => {
            option1 => {
                _productTypePhys   => 'V',
                _productTypeDig    => 'B',
                _releaseArtistName => 'M',
                _trackArtistName   => 'S',
                _netUnits          => 'X',
                # we should use the allowed field names or add new ones to
                # /app/tools/rps/templates/mapface/map.xsl
                service            => 'F', # physical
                retailer           => 'E', # digital
            }
        }
    };
}

sub _headerIdentifierExtended {
    {
        mixed => {
            option1 => { upc => 'Barcode' },
        },
    };
}


1;
