remove mapServiceCodeToApiClass override

This commit is contained in:
O K
2025-12-27 13:37:29 +02:00
parent 0cd6bc2aa6
commit 59e991ca68

View File

@@ -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;
}