package RPS::Import::Merlin::v54;

use strict;

use base 'RPS::Import::Merlin::Pandora';

sub _fieldMap {
    {
        labelName    => 'U',
        countryCode  => 'Q',
        dateBegin    => 'B',
        productType  => 'P',
        formatType   => 'M',
        artistName   => 'G',
        upc          => 'D',
        isrc         => 'C',
        trackName    => 'E',
        units        => 'H',
        price        => 'J',
        currencyCode => 'I',
    }
}

sub _headerIdentifier { ( upc => 'UPC' ) }

sub units { shift->_getByFieldName("units") }

sub formatType {
    my $self   = shift;

    return RPS::File::Sale::FORMAT_STREAM if ($self->_getByFieldName('formatType') =~ /^PremiumAccessStream$/i);
    $self->SUPER::formatType();
}

1;
