#---------------------------------------------------------------
# ____                   _ _         ____  _
#|  _ \ ___  _   _  __ _| | |_ _   _/ ___|| |__   __ _ _ __ ___
#| |_) / _ \| | | |/ _` | | __| | | \___ \| '_ \ / _` | '__/ _ \
#|  _ < (_) | |_| | (_| | | |_| |_| |___) | | | | (_| | | |  __/
#|_| \_\___/ \__, |\__,_|_|\__|\__, |____/|_| |_|\__,_|_|  \___|
#            |___/             |___/
#
# Copyright (C) 2014 RoyaltyShare, Inc.   All Rights Reserved
#---------------------------------------------------------------

package RPS::Import::MusicQubed::v3;

use strict;

use lib '/app/tools/common/lib';
use Common::Assert;
use Common::UTF8;

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

use base 'RPS::Import::MusicQubed::MusicQubedBase';

sub _fieldMap {
    my $self = shift;
    my %fieldMap = (
        'subscriptions' => {
            dateBegin        => 'B',
            dateEnd          => 'C',
            formatType       => 'D',
            productType      => 'G',
            artistName       => 'I',
            isrc             => 'H',
            trackName        => 'J',
            price            => 'O',
            units            => 'K',
            countryCode      => 'R',
            currencyCode     => 'U',
            serviceID        => 'Q',
        },
        'a la carte' => {
            dateBegin        => 'C',
            dateEnd          => 'D',
            formatType       => 'E',
            productType      => 'H',
            artistName       => 'J',
            isrc             => 'I',
            trackName        => 'K',
            price            => 'P',
            units            => 'L',
            countryCode      => 'R',
            currencyCode     => 'T',
            serviceID        => 'Q',
        },
    );

    return $fieldMap{lc $self->{sheetname}};
}

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