Plugin Directory

Changeset 3478140


Ignore:
Timestamp:
03/09/2026 01:07:16 PM (17 hours ago)
Author:
packlink
Message:

Release of version 3.6.5

Location:
packlink-pro-shipping/trunk
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • packlink-pro-shipping/trunk/changelog.txt

    r3454426 r3478140  
    11*** Packlink PRO Changelog ***
     2
     32026-03-09 - version 3.6.5
     4* Transformations applied to GR and LV postal codes
    25
    362026-02-04 - version 3.6.4
  • packlink-pro-shipping/trunk/composer.json

    r3454426 r3478140  
    22  "name": "packlink/woocommerce",
    33  "description": "Packlink WooCommerce Integration",
    4   "version": "3.6.4",
     4  "version": "3.6.5",
    55  "type": "library",
    66  "repositories": [
     
    1313  "require": {
    1414    "php": ">=5.6",
    15     "packlink/integration-core": "3.7.3",
     15    "packlink/integration-core": "3.7.5",
    1616    "ext-json": "*",
    1717    "ext-curl": "*",
  • packlink-pro-shipping/trunk/composer.lock

    r3454426 r3478140  
    55        "This file is @generated automatically"
    66    ],
    7     "content-hash": "315c94b3ecd5f9e79c77715c46ec7479",
     7    "content-hash": "d6a0d518feb1966ba8cd46db94f22ba6",
    88    "packages": [
    99        {
     
    6363        {
    6464            "name": "packlink/integration-core",
    65             "version": "v3.7.3",
     65            "version": "v3.7.5",
    6666            "source": {
    6767                "type": "git",
    6868                "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",
    7575                "shasum": ""
    7676            },
     
    111111            ],
    112112            "description": "Packlink integrations core library",
    113             "time": "2026-02-04T13:04:45+00:00"
     113            "time": "2026-03-09T11:30:00+00:00"
    114114        },
    115115        {
  • packlink-pro-shipping/trunk/packlink-pro-shipping.php

    r3454426 r3478140  
    1010 * Plugin URI: https://en.wordpress.org/plugins/packlink-pro-shipping/
    1111 * 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.4
     12 * Version: 3.6.5
    1313 * Author: Packlink Shipping S.L.
    1414 * Author URI: https://pro.packlink.es/
  • packlink-pro-shipping/trunk/readme.txt

    r3454440 r3478140  
    55Requires PHP: 5.5
    66Tested up to: 6.9
    7 Stable tag: 3.6.4
     7Stable tag: 3.6.5
    88License: LICENSE-2.0
    99License URI: http://www.apache.org/licenses/LICENSE-2.0
     
    9595== Changelog ==
    9696
     97#### 3.6.5 - March 9th, 2026
     98
     99**Updates**
     100- Transformations applied to GR and LV postal codes
     101
    97102#### 3.6.4 - February 4th, 2026
    98103
  • packlink-pro-shipping/trunk/vendor/autoload.php

    r3454426 r3478140  
    2323require_once __DIR__ . '/composer/autoload_real.php';
    2424
    25 return ComposerAutoloaderInit315c94b3ecd5f9e79c77715c46ec7479::getLoader();
     25return ComposerAutoloaderInitd6a0d518feb1966ba8cd46db94f22ba6::getLoader();
  • packlink-pro-shipping/trunk/vendor/composer/autoload_real.php

    r3454426 r3478140  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit315c94b3ecd5f9e79c77715c46ec7479
     5class ComposerAutoloaderInitd6a0d518feb1966ba8cd46db94f22ba6
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit315c94b3ecd5f9e79c77715c46ec7479', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInitd6a0d518feb1966ba8cd46db94f22ba6', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInit315c94b3ecd5f9e79c77715c46ec7479', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInitd6a0d518feb1966ba8cd46db94f22ba6', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         call_user_func(\Composer\Autoload\ComposerStaticInit315c94b3ecd5f9e79c77715c46ec7479::getInitializer($loader));
     32        call_user_func(\Composer\Autoload\ComposerStaticInitd6a0d518feb1966ba8cd46db94f22ba6::getInitializer($loader));
    3333
    3434        $loader->register(true);
  • packlink-pro-shipping/trunk/vendor/composer/autoload_static.php

    r3454426 r3478140  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit315c94b3ecd5f9e79c77715c46ec7479
     7class ComposerStaticInitd6a0d518feb1966ba8cd46db94f22ba6
    88{
    99    public static $prefixLengthsPsr4 = array (
     
    6363    {
    6464        return \Closure::bind(function () use ($loader) {
    65             $loader->prefixLengthsPsr4 = ComposerStaticInit315c94b3ecd5f9e79c77715c46ec7479::$prefixLengthsPsr4;
    66             $loader->prefixDirsPsr4 = ComposerStaticInit315c94b3ecd5f9e79c77715c46ec7479::$prefixDirsPsr4;
    67             $loader->classMap = ComposerStaticInit315c94b3ecd5f9e79c77715c46ec7479::$classMap;
     65            $loader->prefixLengthsPsr4 = ComposerStaticInitd6a0d518feb1966ba8cd46db94f22ba6::$prefixLengthsPsr4;
     66            $loader->prefixDirsPsr4 = ComposerStaticInitd6a0d518feb1966ba8cd46db94f22ba6::$prefixDirsPsr4;
     67            $loader->classMap = ComposerStaticInitd6a0d518feb1966ba8cd46db94f22ba6::$classMap;
    6868
    6969        }, null, ClassLoader::class);
  • packlink-pro-shipping/trunk/vendor/composer/installed.json

    r3454426 r3478140  
    6060        {
    6161            "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",
    6464            "source": {
    6565                "type": "git",
    6666                "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",
    7373                "shasum": ""
    7474            },
     
    8282                "phpunit/phpunit": "^4.8"
    8383            },
    84             "time": "2026-02-04T13:04:45+00:00",
     84            "time": "2026-03-09T11:30:00+00:00",
    8585            "type": "library",
    8686            "installation-source": "dist",
  • packlink-pro-shipping/trunk/vendor/composer/installed.php

    r3454426 r3478140  
    22    'root' => array(
    33        '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',
    66        'reference' => null,
    77        'type' => 'library',
     
    2121        ),
    2222        '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',
    2626            'type' => 'library',
    2727            'install_path' => __DIR__ . '/../packlink/integration-core',
     
    3030        ),
    3131        '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',
    3434            'reference' => null,
    3535            'type' => 'library',
  • packlink-pro-shipping/trunk/vendor/packlink/integration-core/CHANGELOG.md

    r3454426 r3478140  
    33
    44The 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
    513
    614## [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  
    2626use Packlink\BusinessLogic\OrderShipmentDetails\Exceptions\OrderShipmentDetailsNotFound;
    2727use Packlink\BusinessLogic\OrderShipmentDetails\OrderShipmentDetailsService;
     28use Packlink\BusinessLogic\PostalCode\PostalCodeTransformer;
    2829use Packlink\BusinessLogic\ShippingMethod\PackageTransformer;
    2930use Packlink\BusinessLogic\ShippingMethod\ShippingCostCalculator;
     
    422423        $draft->to = new Draft\Address();
    423424        $draft->to->country = $to->getCountry();
    424         $draft->to->zipCode = $to->getZipCode();
     425        $draft->to->zipCode = PostalCodeTransformer::transform($to->getCountry(), $to->getZipCode());
    425426        $draft->to->email = $to->getEmail();
    426427        $draft->to->name = $to->getName();
  • packlink-pro-shipping/trunk/vendor/packlink/integration-core/src/BusinessLogic/PostalCode/PostalCodeTransformer.php

    r3048950 r3478140  
    2727            '*** ***',
    2828            '**** ***',
     29        ),
     30        'GR' => array(
     31            '*** **',
    2932        ),
    3033        'IM' => array(
     
    7174    public static function transform($countryCode, $postalCode)
    7275    {
     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
    7385        if (!array_key_exists($countryCode, static::$map)) {
    7486            return $postalCode;
  • packlink-pro-shipping/trunk/vendor/packlink/integration-core/src/BusinessLogic/Tasks/UpdateShippingServicesTask.php

    r3265740 r3478140  
    1515use Packlink\BusinessLogic\ShippingMethod\Models\ShippingService;
    1616use Packlink\BusinessLogic\ShippingMethod\ShippingMethodService;
     17use Packlink\BusinessLogic\Utility\Php\Php55;
    1718
    1819/**
     
    253254    }
    254255
     256
    255257    /**
    256258     * Returns all special services from an API, and removes it from an array
     
    265267
    266268        foreach ($apiServices as $key => $service) {
    267             if (in_array(array('id' => self::SPECIAL_SERVICE_TAG), $service->tags, true)) {
     269            if ($this->hasSpecialTag($service)) {
    268270                $specialServices[] = $service;
    269271                unset($apiServices[$key]);
     
    272274
    273275        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);
    274292    }
    275293
Note: See TracChangeset for help on using the changeset viewer.