Subject: | Rate selection fails due to response warning |
UPS OnLine tools recently added a warning in their response for rate
selection:
'ErrorDescription' => 'Your invoice may vary from the displayed
reference rates',
'ErrorCode' => '110971',
'ErrorSeverity' => 'Warning'
The request_rate() (and shop_for_rates() by extension) functions fail
regardless of the severity of the error:
if ( my $error = $response->{Response}->{Error} ) {
return $self->set_error( $error->{ErrorDescription} );
}