return $self->new( %{$data->{Invoices}[0]} ) if ( ref($data->{Invoices}) eq 'ARRAY' and scalar(@{$data->{Invoices}})==1 );