Changeset 3478140
- Timestamp:
- 03/09/2026 01:07:16 PM (17 hours ago)
- Location:
- packlink-pro-shipping/trunk
- Files:
-
- 14 edited
-
changelog.txt (modified) (1 diff)
-
composer.json (modified) (2 diffs)
-
composer.lock (modified) (3 diffs)
-
packlink-pro-shipping.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
vendor/autoload.php (modified) (1 diff)
-
vendor/composer/autoload_real.php (modified) (2 diffs)
-
vendor/composer/autoload_static.php (modified) (2 diffs)
-
vendor/composer/installed.json (modified) (2 diffs)
-
vendor/composer/installed.php (modified) (3 diffs)
-
vendor/packlink/integration-core/CHANGELOG.md (modified) (1 diff)
-
vendor/packlink/integration-core/src/BusinessLogic/Order/OrderService.php (modified) (2 diffs)
-
vendor/packlink/integration-core/src/BusinessLogic/PostalCode/PostalCodeTransformer.php (modified) (2 diffs)
-
vendor/packlink/integration-core/src/BusinessLogic/Tasks/UpdateShippingServicesTask.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
packlink-pro-shipping/trunk/changelog.txt
r3454426 r3478140 1 1 *** Packlink PRO Changelog *** 2 3 2026-03-09 - version 3.6.5 4 * Transformations applied to GR and LV postal codes 2 5 3 6 2026-02-04 - version 3.6.4 -
packlink-pro-shipping/trunk/composer.json
r3454426 r3478140 2 2 "name": "packlink/woocommerce", 3 3 "description": "Packlink WooCommerce Integration", 4 "version": "3.6. 4",4 "version": "3.6.5", 5 5 "type": "library", 6 6 "repositories": [ … … 13 13 "require": { 14 14 "php": ">=5.6", 15 "packlink/integration-core": "3.7. 3",15 "packlink/integration-core": "3.7.5", 16 16 "ext-json": "*", 17 17 "ext-curl": "*", -
packlink-pro-shipping/trunk/composer.lock
r3454426 r3478140 5 5 "This file is @generated automatically" 6 6 ], 7 "content-hash": " 315c94b3ecd5f9e79c77715c46ec7479",7 "content-hash": "d6a0d518feb1966ba8cd46db94f22ba6", 8 8 "packages": [ 9 9 { … … 63 63 { 64 64 "name": "packlink/integration-core", 65 "version": "v3.7. 3",65 "version": "v3.7.5", 66 66 "source": { 67 67 "type": "git", 68 68 "url": "git@github.com:packlink-dev/ecommerce_module_core.git", 69 "reference": " 745833642d0c42629fe196c4c109f0e5f98fa6e5"70 }, 71 "dist": { 72 "type": "zip", 73 "url": "https://api.github.com/repos/packlink-dev/ecommerce_module_core/zipball/ 745833642d0c42629fe196c4c109f0e5f98fa6e5",74 "reference": " 745833642d0c42629fe196c4c109f0e5f98fa6e5",69 "reference": "a7555db04f646af3c02c1c33ed7533838dad4d51" 70 }, 71 "dist": { 72 "type": "zip", 73 "url": "https://api.github.com/repos/packlink-dev/ecommerce_module_core/zipball/a7555db04f646af3c02c1c33ed7533838dad4d51", 74 "reference": "a7555db04f646af3c02c1c33ed7533838dad4d51", 75 75 "shasum": "" 76 76 }, … … 111 111 ], 112 112 "description": "Packlink integrations core library", 113 "time": "2026-0 2-04T13:04:45+00:00"113 "time": "2026-03-09T11:30:00+00:00" 114 114 }, 115 115 { -
packlink-pro-shipping/trunk/packlink-pro-shipping.php
r3454426 r3478140 10 10 * Plugin URI: https://en.wordpress.org/plugins/packlink-pro-shipping/ 11 11 * Description: Save up to 70% on your shipping costs. No fixed fees, no minimum shipping volume required. Manage all your shipments in a single platform. 12 * Version: 3.6. 412 * Version: 3.6.5 13 13 * Author: Packlink Shipping S.L. 14 14 * Author URI: https://pro.packlink.es/ -
packlink-pro-shipping/trunk/readme.txt
r3454440 r3478140 5 5 Requires PHP: 5.5 6 6 Tested up to: 6.9 7 Stable tag: 3.6. 47 Stable tag: 3.6.5 8 8 License: LICENSE-2.0 9 9 License URI: http://www.apache.org/licenses/LICENSE-2.0 … … 95 95 == Changelog == 96 96 97 #### 3.6.5 - March 9th, 2026 98 99 **Updates** 100 - Transformations applied to GR and LV postal codes 101 97 102 #### 3.6.4 - February 4th, 2026 98 103 -
packlink-pro-shipping/trunk/vendor/autoload.php
r3454426 r3478140 23 23 require_once __DIR__ . '/composer/autoload_real.php'; 24 24 25 return ComposerAutoloaderInit 315c94b3ecd5f9e79c77715c46ec7479::getLoader();25 return ComposerAutoloaderInitd6a0d518feb1966ba8cd46db94f22ba6::getLoader(); -
packlink-pro-shipping/trunk/vendor/composer/autoload_real.php
r3454426 r3478140 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 315c94b3ecd5f9e79c77715c46ec74795 class ComposerAutoloaderInitd6a0d518feb1966ba8cd46db94f22ba6 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit 315c94b3ecd5f9e79c77715c46ec7479', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInitd6a0d518feb1966ba8cd46db94f22ba6', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 29 spl_autoload_unregister(array('ComposerAutoloaderInit 315c94b3ecd5f9e79c77715c46ec7479', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInitd6a0d518feb1966ba8cd46db94f22ba6', 'loadClassLoader')); 30 30 31 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInit 315c94b3ecd5f9e79c77715c46ec7479::getInitializer($loader));32 call_user_func(\Composer\Autoload\ComposerStaticInitd6a0d518feb1966ba8cd46db94f22ba6::getInitializer($loader)); 33 33 34 34 $loader->register(true); -
packlink-pro-shipping/trunk/vendor/composer/autoload_static.php
r3454426 r3478140 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 315c94b3ecd5f9e79c77715c46ec74797 class ComposerStaticInitd6a0d518feb1966ba8cd46db94f22ba6 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 63 63 { 64 64 return \Closure::bind(function () use ($loader) { 65 $loader->prefixLengthsPsr4 = ComposerStaticInit 315c94b3ecd5f9e79c77715c46ec7479::$prefixLengthsPsr4;66 $loader->prefixDirsPsr4 = ComposerStaticInit 315c94b3ecd5f9e79c77715c46ec7479::$prefixDirsPsr4;67 $loader->classMap = ComposerStaticInit 315c94b3ecd5f9e79c77715c46ec7479::$classMap;65 $loader->prefixLengthsPsr4 = ComposerStaticInitd6a0d518feb1966ba8cd46db94f22ba6::$prefixLengthsPsr4; 66 $loader->prefixDirsPsr4 = ComposerStaticInitd6a0d518feb1966ba8cd46db94f22ba6::$prefixDirsPsr4; 67 $loader->classMap = ComposerStaticInitd6a0d518feb1966ba8cd46db94f22ba6::$classMap; 68 68 69 69 }, null, ClassLoader::class); -
packlink-pro-shipping/trunk/vendor/composer/installed.json
r3454426 r3478140 60 60 { 61 61 "name": "packlink/integration-core", 62 "version": "v3.7. 3",63 "version_normalized": "3.7. 3.0",62 "version": "v3.7.5", 63 "version_normalized": "3.7.5.0", 64 64 "source": { 65 65 "type": "git", 66 66 "url": "git@github.com:packlink-dev/ecommerce_module_core.git", 67 "reference": " 745833642d0c42629fe196c4c109f0e5f98fa6e5"68 }, 69 "dist": { 70 "type": "zip", 71 "url": "https://api.github.com/repos/packlink-dev/ecommerce_module_core/zipball/ 745833642d0c42629fe196c4c109f0e5f98fa6e5",72 "reference": " 745833642d0c42629fe196c4c109f0e5f98fa6e5",67 "reference": "a7555db04f646af3c02c1c33ed7533838dad4d51" 68 }, 69 "dist": { 70 "type": "zip", 71 "url": "https://api.github.com/repos/packlink-dev/ecommerce_module_core/zipball/a7555db04f646af3c02c1c33ed7533838dad4d51", 72 "reference": "a7555db04f646af3c02c1c33ed7533838dad4d51", 73 73 "shasum": "" 74 74 }, … … 82 82 "phpunit/phpunit": "^4.8" 83 83 }, 84 "time": "2026-0 2-04T13:04:45+00:00",84 "time": "2026-03-09T11:30:00+00:00", 85 85 "type": "library", 86 86 "installation-source": "dist", -
packlink-pro-shipping/trunk/vendor/composer/installed.php
r3454426 r3478140 2 2 'root' => array( 3 3 'name' => 'packlink/woocommerce', 4 'pretty_version' => '3.6. 4',5 'version' => '3.6. 4.0',4 'pretty_version' => '3.6.5', 5 'version' => '3.6.5.0', 6 6 'reference' => null, 7 7 'type' => 'library', … … 21 21 ), 22 22 'packlink/integration-core' => array( 23 'pretty_version' => 'v3.7. 3',24 'version' => '3.7. 3.0',25 'reference' => ' 745833642d0c42629fe196c4c109f0e5f98fa6e5',23 'pretty_version' => 'v3.7.5', 24 'version' => '3.7.5.0', 25 'reference' => 'a7555db04f646af3c02c1c33ed7533838dad4d51', 26 26 'type' => 'library', 27 27 'install_path' => __DIR__ . '/../packlink/integration-core', … … 30 30 ), 31 31 'packlink/woocommerce' => array( 32 'pretty_version' => '3.6. 4',33 'version' => '3.6. 4.0',32 'pretty_version' => '3.6.5', 33 'version' => '3.6.5.0', 34 34 'reference' => null, 35 35 'type' => 'library', -
packlink-pro-shipping/trunk/vendor/packlink/integration-core/CHANGELOG.md
r3454426 r3478140 3 3 4 4 The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). 5 6 ## [3.7.5](https://github.com/packlink-dev/ecommerce_module_core/compare/v3.7.4...v3.7.5) - 2026-03-09 7 ### Changed 8 - Transformations applied to GR and LV postal codes 9 10 ## [3.7.4](https://github.com/packlink-dev/ecommerce_module_core/compare/v3.7.3...v3.7.4) - 2026-02-06 11 ### Changed 12 - Fix shipping service special tag check 5 13 6 14 ## [3.7.3](https://github.com/packlink-dev/ecommerce_module_core/compare/v3.7.2...v3.7.3) - 2026-02-04 -
packlink-pro-shipping/trunk/vendor/packlink/integration-core/src/BusinessLogic/Order/OrderService.php
r3454426 r3478140 26 26 use Packlink\BusinessLogic\OrderShipmentDetails\Exceptions\OrderShipmentDetailsNotFound; 27 27 use Packlink\BusinessLogic\OrderShipmentDetails\OrderShipmentDetailsService; 28 use Packlink\BusinessLogic\PostalCode\PostalCodeTransformer; 28 29 use Packlink\BusinessLogic\ShippingMethod\PackageTransformer; 29 30 use Packlink\BusinessLogic\ShippingMethod\ShippingCostCalculator; … … 422 423 $draft->to = new Draft\Address(); 423 424 $draft->to->country = $to->getCountry(); 424 $draft->to->zipCode = $to->getZipCode();425 $draft->to->zipCode = PostalCodeTransformer::transform($to->getCountry(), $to->getZipCode()); 425 426 $draft->to->email = $to->getEmail(); 426 427 $draft->to->name = $to->getName(); -
packlink-pro-shipping/trunk/vendor/packlink/integration-core/src/BusinessLogic/PostalCode/PostalCodeTransformer.php
r3048950 r3478140 27 27 '*** ***', 28 28 '**** ***', 29 ), 30 'GR' => array( 31 '*** **', 29 32 ), 30 33 'IM' => array( … … 71 74 public static function transform($countryCode, $postalCode) 72 75 { 76 // Special case for LV postal codes. 77 if ($countryCode === 'LV') { 78 if (strpos($postalCode, 'LV-') === 0) { 79 return substr($postalCode, 3); 80 } 81 82 return $postalCode; 83 } 84 73 85 if (!array_key_exists($countryCode, static::$map)) { 74 86 return $postalCode; -
packlink-pro-shipping/trunk/vendor/packlink/integration-core/src/BusinessLogic/Tasks/UpdateShippingServicesTask.php
r3265740 r3478140 15 15 use Packlink\BusinessLogic\ShippingMethod\Models\ShippingService; 16 16 use Packlink\BusinessLogic\ShippingMethod\ShippingMethodService; 17 use Packlink\BusinessLogic\Utility\Php\Php55; 17 18 18 19 /** … … 253 254 } 254 255 256 255 257 /** 256 258 * Returns all special services from an API, and removes it from an array … … 265 267 266 268 foreach ($apiServices as $key => $service) { 267 if ( in_array(array('id' => self::SPECIAL_SERVICE_TAG), $service->tags, true)) {269 if ($this->hasSpecialTag($service)) { 268 270 $specialServices[] = $service; 269 271 unset($apiServices[$key]); … … 272 274 273 275 return $specialServices; 276 } 277 278 /** 279 * Checks if a service has special_service_tag 280 * 281 * @param ShippingServiceDetails $service 282 * 283 * @return bool 284 */ 285 protected function hasSpecialTag($service) 286 { 287 $tags = isset($service->tags) ? $service->tags : array(); 288 289 $tagIds = array_values(Php55::arrayColumn($tags, 'id')); 290 291 return in_array(self::SPECIAL_SERVICE_TAG, $tagIds, true); 274 292 } 275 293
Note: See TracChangeset
for help on using the changeset viewer.