my @email;
my @cc;
push @email, $databookseller->{bookselleremail} if $databookseller->{bookselleremail};
push @email, $datacontact->{email} if ( $datacontact && $datacontact->{email} );
unless (@email) {
warn "Bookseller $dataorders->[0]->{booksellerid} without emails";
sub to_api_mapping {
return {
bookselleremail => undef,
currency => undef,
listprice => 'list_currency',
invoiceprice => 'invoice_currency',
my ($struct) = @_;
for my $field (
'bookselleremail',
'currency', 'invoiceprice',
'listprice', 'contacts'
)
-