You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Convert the following request to use value objects.
$ups = newUPS\Rate([
'prod' => FALSE,
'accessKey' => 'XXXX',
'userId' => 'XXXX',
'password' => 'XXXX',
'shipperNumber' => 'XXXX',
'shipment' => $shipment,
'approvedCodes' => [
'03', // 1-5 business days'02', // 2 business days'01', // next business day 10:30am'13', // next business day by 3pm'14', // next business day by 8am
],
'requestAdapter' => newRateRequest\StubUPS(),
]);
Example:
$ups = newUPS\Rate;
$ups->setIsProduction(false);
$ups->setAccessKey('XXXX');
$ups->setUserId('XXXX');
$ups->setShipperNumber('XXXX');
$ups->setShipment($shipment);
$ups->setApprovedCodes([
'03', // 1-5 business days'02', // 2 business days'01', // next business day 10:30am'13', // next business day by 3pm'14', // next business day by 8am
]);
$ups->setRequestAdapter(newRateRequest\StubUPS());
The text was updated successfully, but these errors were encountered:
Convert the following request to use value objects.
Example:
The text was updated successfully, but these errors were encountered: