package BookPub::Sale::Report::Royalty::Hyperion;

use strict;

use lib '/app/tools/bookpub/lib';
use base 'BookPub::Sale::Report::Royalty::BaseReport';

use constant HEADER_REPORT => "H\tSender\tRoyaltyShare, Inc.\tRecipient\tHyperion\tCurrency\tUSD\n";

sub _clientReportName { 'Hyperion' }

sub _getReportHeader { HEADER_REPORT }

sub _getReportData {
    my ( $self, %args ) = @_;

    my $collection = BookPub::DB::Item::RoyaltyReport::Hyperion->GetReportData(
        condition    => $args{condition},
        serviceID    => $args{serviceID},
        fileIDs      => $args{fileIDs},
        productType  => $args{productType},
        currencyCode => $args{currencyCode},
        feedId       => $args{feedId},
    );

    return $collection;
}

1;
