package RPS::Import::Orchard::v31;

use strict;
use warnings;

use lib '/app/tools/rps/lib';

use parent qw/RPS::Import::Orchard::v30/;

# This importer is the same as v30, but it overrides the formatType method
# Field mapping remain the same as in v30.

sub formatType {
    my $self = shift;

    my $service = $self->_getByFieldName('serviceID') || '';
    return RPS::File::Sale::FORMAT_SYNC          if ( $service =~ /youtube/i );
    # RSD-11462
    return RPS::File::Sale::FORMAT_NON_EPHEMERAL if $self->serviceID == Client::Service::DSP_SOUNDEXCHANGE;

    return $self->SUPER::formatType;
}

1;
