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

package RPS::Import::BelieveDigital::v6;

use strict;

use lib '/app/tools/rps/lib';
use base 'RPS::Import::BelieveDigital::v4';

sub _fieldMap {
    {
        labelName     => 'F',
        serviceID     => 'C',
        countryCode   => 'D',
        dateBegin     => 'B',
        dateEnd       => 'B',
        formatType    => 'N',
        artistName    => 'G',
        upc           => 'J',
        albumName     => 'G',
        isrc          => 'K',
        trackName     => 'I',
        units         => 'O',
        price         => 'V',
    }
}

sub saleDates {
    my $self = shift;

    my $dateBegin;
    my $dateEnd;

    my $startDate = $self->_getDateBegin();
    my $endDate   = $self->_getDateEnd();

    if( $startDate && $endDate )
    {
        ($dateBegin,$dateEnd) = $self->_getDates( date_begin => $startDate, date_end => $endDate );
    }

    return ($dateBegin, $dateEnd);
}

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