remove mapServiceCodeToApiClass override
This commit is contained in:
@@ -153,7 +153,7 @@ class Usps_Api_Bridge extends Module
|
||||
|
||||
return $helper->generateForm([$fields_form]);
|
||||
}
|
||||
public function calculateRate($params, $shipping_cost, $products, $originalModule)
|
||||
public function calculateRate($params, $shipping_cost, $products, $originalModule)
|
||||
{
|
||||
require_once(dirname(__FILE__) . '/classes/UspsV3Client.php');
|
||||
|
||||
@@ -403,7 +403,7 @@ class Usps_Api_Bridge extends Module
|
||||
*/
|
||||
private function mapServiceCodeToApiClass($oldCode, $isInternational)
|
||||
{
|
||||
$this->externalLog(['mapServiceCodeToApiClass' => ['oldCode' => $oldCode, 'isInternational' => $isInternational]]);
|
||||
// $this->externalLog(['mapServiceCodeToApiClass' => ['oldCode' => $oldCode, 'isInternational' => $isInternational]]);
|
||||
// 1. Define the Standard Map
|
||||
$map = [
|
||||
// DOMESTIC
|
||||
@@ -429,7 +429,7 @@ class Usps_Api_Bridge extends Module
|
||||
|
||||
// 2. International Override Logic
|
||||
// If the destination is International, but the mapped class is Domestic, swap it.
|
||||
if ($isInternational) {
|
||||
/* if ($isInternational) {
|
||||
switch ($apiClass) {
|
||||
case 'PRIORITY_MAIL':
|
||||
return 'PRIORITY_MAIL_INTERNATIONAL';
|
||||
@@ -444,7 +444,7 @@ class Usps_Api_Bridge extends Module
|
||||
case 'LIBRARY_MAIL':
|
||||
return 'FIRST-CLASS_PACKAGE_INTERNATIONAL_SERVICE';
|
||||
}
|
||||
}
|
||||
} */
|
||||
|
||||
return $apiClass;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user