Plugin Directory

Changeset 3254819


Ignore:
Timestamp:
03/12/2025 01:50:09 PM (12 months ago)
Author:
packlink
Message:

Release version 3.4.16

Location:
packlink-pro-shipping
Files:
997 added
29 edited

Legend:

Unmodified
Added
Removed
  • packlink-pro-shipping/trunk/composer.json

    r3245564 r3254819  
    22  "name": "packlink/woocommerce",
    33  "description": "Packlink WooCommerce Integration",
    4   "version": "3.4.15",
     4  "version": "3.4.16",
    55  "type": "library",
    66  "repositories": [
     
    1313  "require": {
    1414    "php": ">=5.6",
    15     "packlink/integration-core": "3.4.3",
     15    "packlink/integration-core": "3.4.12",
    1616    "ext-json": "*",
    1717    "ext-curl": "*",
  • packlink-pro-shipping/trunk/composer.lock

    r3118361 r3254819  
    55        "This file is @generated automatically"
    66    ],
    7     "content-hash": "058bcd2821fdf2294f9b9a9781423e3d",
     7    "content-hash": "5ba751b7c9263ee45633a5debb5dabe8",
    88    "packages": [
    99        {
     
    6363        {
    6464            "name": "packlink/integration-core",
    65             "version": "v3.4.3",
     65            "version": "v3.4.12",
    6666            "source": {
    6767                "type": "git",
    6868                "url": "git@github.com:packlink-dev/ecommerce_module_core.git",
    69                 "reference": "05aa4a7b11e5fa46f372fcde1fb32ea2863bec50"
    70             },
    71             "dist": {
    72                 "type": "zip",
    73                 "url": "https://api.github.com/repos/packlink-dev/ecommerce_module_core/zipball/05aa4a7b11e5fa46f372fcde1fb32ea2863bec50",
    74                 "reference": "05aa4a7b11e5fa46f372fcde1fb32ea2863bec50",
     69                "reference": "af5269c11c5182b503167aa6e700b59c77418af5"
     70            },
     71            "dist": {
     72                "type": "zip",
     73                "url": "https://api.github.com/repos/packlink-dev/ecommerce_module_core/zipball/af5269c11c5182b503167aa6e700b59c77418af5",
     74                "reference": "af5269c11c5182b503167aa6e700b59c77418af5",
    7575                "shasum": ""
    7676            },
     
    111111            ],
    112112            "description": "Packlink integrations core library",
    113             "time": "2024-07-08T12:03:29+00:00"
     113            "time": "2025-03-11T11:34:19+00:00"
    114114        },
    115115        {
  • packlink-pro-shipping/trunk/packlink-pro-shipping.php

    r3245564 r3254819  
    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.4.15
     12 * Version: 3.4.16
    1313 * Author: Packlink Shipping S.L.
    1414 * Author URI: https://pro.packlink.es/
  • packlink-pro-shipping/trunk/readme.txt

    r3245564 r3254819  
    6969== Changelog ==
    7070
     71#### 3.4.16 - March 12th, 2025
     72
     73**Updates**
     74- Add unsupported countries Morocco, United Arab Emirates and Monaco
     75
    7176#### 3.4.15 - February 21st, 2025
    7277
  • packlink-pro-shipping/trunk/resources/packlink/countries/de.json

    r3118361 r3254819  
    209209    "ME": "Montenegro",
    210210    "MS": "Montserrat",
    211     "MA": "Morocco",
     211    "MA": "Marokko",
    212212    "MZ": "Mozambique",
    213213    "MM": "Myanmar",
     
    254254    "SC": "Seychelles",
    255255    "SL": "Sierra Leone",
    256     "SG": "Singapore",
     256    "SG": "Singapur",
    257257    "SX": "Sint Maarten (Dutch part)",
    258258    "SK": "Slovakia",
     
    268268    "SJ": "Svalbard and Jan Mayen",
    269269    "SY": "Syrian Arab Republic",
    270     "TW": "Taiwan (Province of China)",
     270    "TW": "Taiwan (Provinz China)",
    271271    "TJ": "Tajikistan",
    272272    "TZ": "Tanzania, United Republic of",
     
    283283    "UG": "Uganda",
    284284    "UA": "Ukraine",
    285     "AE": "United Arab Emirates",
     285    "AE": "Vereinigte Arabische Emirate",
    286286    "UM": "United States Minor Outlying Islands",
    287287    "UY": "Uruguay",
  • packlink-pro-shipping/trunk/resources/packlink/countries/es.json

    r3118361 r3254819  
    176176    "IL": "Israel",
    177177    "JM": "Jamaica",
    178     "JP": "Japan",
     178    "JP": "Japón",
    179179    "JE": "Jersey",
    180180    "JO": "Jordan",
     
    205205    "FM": "Micronesia (Federated States of)",
    206206    "MD": "Moldova",
    207     "MC": "Monaco",
     207    "MC": "Mónaco",
    208208    "MN": "Mongolia",
    209209    "ME": "Montenegro",
    210210    "MS": "Montserrat",
    211     "MA": "Morocco",
     211    "MA": "Marruecos",
    212212    "MZ": "Mozambique",
    213213    "MM": "Myanmar",
     
    254254    "SC": "Seychelles",
    255255    "SL": "Sierra Leone",
    256     "SG": "Singapore",
     256    "SG": "Singapur",
    257257    "SX": "Sint Maarten (Dutch part)",
    258258    "SK": "Slovakia",
     
    268268    "SJ": "Svalbard and Jan Mayen",
    269269    "SY": "Syrian Arab Republic",
    270     "TW": "Taiwan (Province of China)",
     270    "TW": "Taiwán (provincia de China)",
    271271    "TJ": "Tajikistan",
    272272    "TZ": "Tanzania, United Republic of",
     
    283283    "UG": "Uganda",
    284284    "UA": "Ukraine",
    285     "AE": "United Arab Emirates",
     285    "AE": "Emiratos Árabes Unidos",
    286286    "UM": "United States Minor Outlying Islands",
    287287    "UY": "Uruguay",
  • packlink-pro-shipping/trunk/resources/packlink/countries/fr.json

    r3118361 r3254819  
    176176    "IL": "Israel",
    177177    "JM": "Jamaica",
    178     "JP": "Japan",
     178    "JP": "Japon",
    179179    "JE": "Jersey",
    180180    "JO": "Jordan",
     
    209209    "ME": "Montenegro",
    210210    "MS": "Montserrat",
    211     "MA": "Morocco",
     211    "MA": "Maroc",
    212212    "MZ": "Mozambique",
    213213    "MM": "Myanmar",
     
    254254    "SC": "Seychelles",
    255255    "SL": "Sierra Leone",
    256     "SG": "Singapore",
     256    "SG": "Singapour",
    257257    "SX": "Sint Maarten (Dutch part)",
    258258    "SK": "Slovakia",
     
    268268    "SJ": "Svalbard and Jan Mayen",
    269269    "SY": "Syrian Arab Republic",
    270     "TW": "Taiwan (Province of China)",
     270    "TW": "Taïwan (province de Chine)",
    271271    "TJ": "Tajikistan",
    272272    "TZ": "Tanzania, United Republic of",
     
    283283    "UG": "Uganda",
    284284    "UA": "Ukraine",
    285     "AE": "United Arab Emirates",
     285    "AE": "Émirats arabes unis",
    286286    "UM": "United States Minor Outlying Islands",
    287287    "UY": "Uruguay",
  • packlink-pro-shipping/trunk/resources/packlink/countries/it.json

    r3118361 r3254819  
    176176    "IL": "Israel",
    177177    "JM": "Jamaica",
    178     "JP": "Japan",
     178    "JP": "Giappone",
    179179    "JE": "Jersey",
    180180    "JO": "Jordan",
     
    209209    "ME": "Montenegro",
    210210    "MS": "Montserrat",
    211     "MA": "Morocco",
     211    "MA": "Marocco",
    212212    "MZ": "Mozambique",
    213213    "MM": "Myanmar",
     
    268268    "SJ": "Svalbard and Jan Mayen",
    269269    "SY": "Syrian Arab Republic",
    270     "TW": "Taiwan (Province of China)",
     270    "TW": "Taiwan (provincia della Cina)",
    271271    "TJ": "Tajikistan",
    272272    "TZ": "Tanzania, United Republic of",
     
    283283    "UG": "Uganda",
    284284    "UA": "Ukraine",
    285     "AE": "United Arab Emirates",
     285    "AE": "Emirati Arabi Uniti",
    286286    "UM": "United States Minor Outlying Islands",
    287287    "UY": "Uruguay",
  • packlink-pro-shipping/trunk/resources/packlink/countries/translations.csv

    r3118361 r3254819  
    106106countries,SK,Slovakia,Eslovaquia,Slowakei,Slovaquie,Slovacchia
    107107countries,DZ,Algeria,Argelia,Algerien,Algérie,Algeria
     108countries,JP,Japan,Japón,Japan,Japon,Giappone
     109countries,SG,Singapore,Singapur,Singapur,Singapour,Singapore
     110countries,TW,Taiwan,Taiwán,Taiwan,Taïwan,Taiwan
     111countries,MA,Morocco,Marruecos,Marokko,Maroc,Marocco
     112countries,AE,United Arab Emirates,Emiratos Árabes Unidos,Vereinigte Arabische Emirate,Émirats arabes unis,Emirati Arabi Uniti
     113countries,MC,Monaco,Mónaco,Monaco,Monaco,Monaco
    108114onboardingWelcome,header,Let's set up basic information so that<br>you can make shipments,Vamos a configurar tu información básica <br> para poder hacer envíos,"Richten Sie nun die grundlegenden Informationen ein, damit<br>Sie Versendungen vornehmen können",Configurez vos informations de base afin<br>d’effectuer des envois,È necessario impostare alcuni dati di base così che<br>potrai effettuare spedizioni
    109115onboardingWelcome,steps,It's just two steps that we need to go through to offer you the<br>carrier that best suits your needs,"Son solo dos pasos, los necesitamos para ofrecerte los servicios <br> de transporte que más se adaptan a tus necesidades.","In nur zwei Schritten können wir Ihnen den <br>Spediteur anbieten, der all Ihre Anforderungen erfüllt",Il ne vous reste que deux étapes pour savoir quel<br>transporteur répond le mieux à vos besoins,Si tratta di due semplici passaggi che dobbiamo completare per offrirti la<br>compagnia di trasporto che più si adatta alle tue esigenze
  • packlink-pro-shipping/trunk/resources/packlink/js/ConfigurationController.js

    r3118361 r3254819  
    5353            });
    5454
    55             mainPage.querySelector('#pl-navigate-customs').addEventListener('click', () => {
    56                 state.goToState('customs')
    57             })
     55            let customs = mainPage.querySelector('#pl-navigate-customs')
     56            if(customs) {
     57                customs.addEventListener('click', () => {
     58                    state.goToState('customs')
     59                })
     60            }
    5861
    5962            mainPage.querySelector('#pl-navigate-warehouse').addEventListener('click', () => {
  • packlink-pro-shipping/trunk/vendor/autoload.php

    r3245564 r3254819  
    55require_once __DIR__ . '/composer/autoload_real.php';
    66
    7 return ComposerAutoloaderInit136f077b267f8e64c4c05adbe7064013::getLoader();
     7return ComposerAutoloaderInit77a2c48a8088917a7448a74fea1769f2::getLoader();
  • packlink-pro-shipping/trunk/vendor/composer/autoload_real.php

    r3245564 r3254819  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit136f077b267f8e64c4c05adbe7064013
     5class ComposerAutoloaderInit77a2c48a8088917a7448a74fea1769f2
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit136f077b267f8e64c4c05adbe7064013', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInit77a2c48a8088917a7448a74fea1769f2', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
    29         spl_autoload_unregister(array('ComposerAutoloaderInit136f077b267f8e64c4c05adbe7064013', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInit77a2c48a8088917a7448a74fea1769f2', 'loadClassLoader'));
    3030
    3131        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
     
    3333            require __DIR__ . '/autoload_static.php';
    3434
    35             call_user_func(\Composer\Autoload\ComposerStaticInit136f077b267f8e64c4c05adbe7064013::getInitializer($loader));
     35            call_user_func(\Composer\Autoload\ComposerStaticInit77a2c48a8088917a7448a74fea1769f2::getInitializer($loader));
    3636        } else {
    3737            $map = require __DIR__ . '/autoload_namespaces.php';
  • packlink-pro-shipping/trunk/vendor/composer/autoload_static.php

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

    r3174461 r3254819  
    6060        {
    6161            "name": "packlink/integration-core",
    62             "version": "v3.4.3",
    63             "version_normalized": "3.4.3.0",
     62            "version": "v3.4.12",
     63            "version_normalized": "3.4.12.0",
    6464            "source": {
    6565                "type": "git",
    6666                "url": "git@github.com:packlink-dev/ecommerce_module_core.git",
    67                 "reference": "05aa4a7b11e5fa46f372fcde1fb32ea2863bec50"
    68             },
    69             "dist": {
    70                 "type": "zip",
    71                 "url": "https://api.github.com/repos/packlink-dev/ecommerce_module_core/zipball/05aa4a7b11e5fa46f372fcde1fb32ea2863bec50",
    72                 "reference": "05aa4a7b11e5fa46f372fcde1fb32ea2863bec50",
     67                "reference": "af5269c11c5182b503167aa6e700b59c77418af5"
     68            },
     69            "dist": {
     70                "type": "zip",
     71                "url": "https://api.github.com/repos/packlink-dev/ecommerce_module_core/zipball/af5269c11c5182b503167aa6e700b59c77418af5",
     72                "reference": "af5269c11c5182b503167aa6e700b59c77418af5",
    7373                "shasum": ""
    7474            },
     
    8282                "phpunit/phpunit": "^4.8"
    8383            },
    84             "time": "2024-07-08T12:03:29+00:00",
     84            "time": "2025-03-11T11:34:19+00:00",
    8585            "type": "library",
    8686            "installation-source": "dist",
  • packlink-pro-shipping/trunk/vendor/composer/installed.php

    r3245564 r3254819  
    11<?php return array(
    22    'root' => array(
    3         'pretty_version' => '3.4.15',
    4         'version' => '3.4.15.0',
     3        'pretty_version' => '3.4.16',
     4        'version' => '3.4.16.0',
    55        'type' => 'library',
    66        'install_path' => __DIR__ . '/../../',
     
    2121        ),
    2222        'packlink/integration-core' => array(
    23             'pretty_version' => 'v3.4.3',
    24             'version' => '3.4.3.0',
     23            'pretty_version' => 'v3.4.12',
     24            'version' => '3.4.12.0',
    2525            'type' => 'library',
    2626            'install_path' => __DIR__ . '/../packlink/integration-core',
    2727            'aliases' => array(),
    28             'reference' => '05aa4a7b11e5fa46f372fcde1fb32ea2863bec50',
     28            'reference' => 'af5269c11c5182b503167aa6e700b59c77418af5',
    2929            'dev_requirement' => false,
    3030        ),
    3131        'packlink/woocommerce' => array(
    32             'pretty_version' => '3.4.15',
    33             'version' => '3.4.15.0',
     32            'pretty_version' => '3.4.16',
     33            'version' => '3.4.16.0',
    3434            'type' => 'library',
    3535            'install_path' => __DIR__ . '/../../',
  • packlink-pro-shipping/trunk/vendor/packlink/integration-core/CHANGELOG.md

    r3118361 r3254819  
    33
    44The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
     5
     6## [3.4.11](https://github.com/packlink-dev/ecommerce_module_core/compare/v3.4.10...v3.4.11) - 2025-03-10
     7### Changed
     8- Add unsupported countries Morocco, United Arab Emirates and Monaco
     9
     10## [3.4.10](https://github.com/packlink-dev/ecommerce_module_core/compare/v3.4.9...v3.4.10) - 2025-01-30
     11### Changed
     12- Add unsupported countries Singapore and Taiwan
     13
     14## [3.4.9](https://github.com/packlink-dev/ecommerce_module_core/compare/v3.4.8...v3.4.9) - 2024-12-09
     15### Changed
     16- Add special handling for 429 - Too many retries exception
     17
     18## [3.4.8](https://github.com/packlink-dev/ecommerce_module_core/compare/v3.4.7...v3.4.8) - 2024-12-09
     19### Changed
     20- Add unsupported country Japan
     21
     22## [3.4.7](https://github.com/packlink-dev/ecommerce_module_core/compare/v3.4.6...v3.4.7) - 2024-11-20
     23### Changed
     24- Add index for context field in Scheduler entity
     25
     26## [3.4.6](https://github.com/packlink-dev/ecommerce_module_core/compare/v3.4.5...v3.4.6) - 2024-08-28
     27### Changed
     28- Add detection of expired drafts
     29
     30## [3.4.5](https://github.com/packlink-dev/ecommerce_module_core/compare/v3.4.4...v3.4.5) - 2024-07-30
     31### Changed
     32- Change BatchTaskCleanupTask to delete tasks in batches
     33
     34## [3.4.4](https://github.com/packlink-dev/ecommerce_module_core/compare/v3.4.3...v3.4.4) - 2024-07-12
     35### Changed
     36- Fix front for integrations which still doesn't support customs
    537
    638## [3.4.3](https://github.com/packlink-dev/ecommerce_module_core/compare/v3.4.2...v3.4.3) - 2024-07-08
  • packlink-pro-shipping/trunk/vendor/packlink/integration-core/src/Brands/Packlink/PacklinkConfigurationService.php

    r3118361 r3254819  
    206206            'code' => 'DZ',
    207207            'postal_code' => '16000',
     208        ),
     209        'JP' => array(
     210            'code' => 'JP',
     211            'postal_code' => '100-0001',
     212        ),
     213        'SG' => array(
     214            'code' => 'SG',
     215            'postal_code' => '018989',
     216        ),
     217        'TW' => array(
     218            'code' => 'TW',
     219            'postal_code' => '100',
     220        ),
     221        'MA' => array(
     222            'code' => 'MA',
     223            'postal_code' => '10000',
     224        ),
     225        'AE' => array(
     226            'code' => 'AE',
     227            'postal_code' => '1',
     228        ),
     229        'MC' => array(
     230            'code' => 'MC',
     231            'postal_code' => '98000',
    208232        ),
    209233    );
  • packlink-pro-shipping/trunk/vendor/packlink/integration-core/src/BusinessLogic/Order/OrderService.php

    r3118361 r3254819  
    44
    55use Exception;
     6use Logeecom\Infrastructure\Http\Exceptions\HttpAuthenticationException;
    67use Logeecom\Infrastructure\Http\Exceptions\HttpBaseException;
     8use Logeecom\Infrastructure\Http\Exceptions\HttpCommunicationException;
     9use Logeecom\Infrastructure\Http\Exceptions\HttpRequestException;
    710use Logeecom\Infrastructure\Logger\Logger;
    811use Logeecom\Infrastructure\ServiceRegister;
     
    104107     * @param string $customsId
    105108     *
     109     * @throws HttpAuthenticationException
     110     * @throws HttpBaseException
     111     * @throws HttpCommunicationException
     112     * @throws HttpRequestException
    106113     * @throws OrderShipmentDetailsNotFound
    107114     */
     
    184191     *
    185192     * @param Shipment $shipment Shipment DTO for given reference number.
     193     *
     194     * @throws HttpBaseException
     195     * @throws HttpAuthenticationException
     196     * @throws HttpCommunicationException
     197     * @throws HttpRequestException
    186198     */
    187199    public function updateTrackingInfo(Shipment $shipment)
     
    211223            );
    212224        } catch (HttpBaseException $e) {
     225            if ($e->getCode() === 429) {
     226                throw $e;
     227            }
     228
    213229            Logger::logWarning($e->getMessage(), 'Core', array(
    214230                'referenceId' => $shipment->reference,
  • packlink-pro-shipping/trunk/vendor/packlink/integration-core/src/BusinessLogic/OrderShipmentDetails/Models/OrderShipmentDetails.php

    r3118361 r3254819  
    4141        'currency',
    4242        'customsInvoiceId',
     43        'isExpired',
    4344    );
    4445    /**
     
    118119     */
    119120    private $customsInvoiceId = '';
     121    /**
     122     * @var bool
     123     */
     124    private $isExpired = false;
    120125
    121126    /**
     
    458463        $this->customsInvoiceId = $customsInvoiceId;
    459464    }
     465
     466    /**
     467     * @return bool
     468     */
     469    public function isExpired()
     470    {
     471        return $this->isExpired;
     472    }
     473
     474    /**
     475     * @param bool $isExpired
     476     */
     477    public function setIsExpired($isExpired)
     478    {
     479        $this->isExpired = $isExpired;
     480    }
    460481}
  • packlink-pro-shipping/trunk/vendor/packlink/integration-core/src/BusinessLogic/Resources/countries/de.json

    r3118361 r3254819  
    209209    "ME": "Montenegro",
    210210    "MS": "Montserrat",
    211     "MA": "Morocco",
     211    "MA": "Marokko",
    212212    "MZ": "Mozambique",
    213213    "MM": "Myanmar",
     
    254254    "SC": "Seychelles",
    255255    "SL": "Sierra Leone",
    256     "SG": "Singapore",
     256    "SG": "Singapur",
    257257    "SX": "Sint Maarten (Dutch part)",
    258258    "SK": "Slovakia",
     
    268268    "SJ": "Svalbard and Jan Mayen",
    269269    "SY": "Syrian Arab Republic",
    270     "TW": "Taiwan (Province of China)",
     270    "TW": "Taiwan (Provinz China)",
    271271    "TJ": "Tajikistan",
    272272    "TZ": "Tanzania, United Republic of",
     
    283283    "UG": "Uganda",
    284284    "UA": "Ukraine",
    285     "AE": "United Arab Emirates",
     285    "AE": "Vereinigte Arabische Emirate",
    286286    "UM": "United States Minor Outlying Islands",
    287287    "UY": "Uruguay",
  • packlink-pro-shipping/trunk/vendor/packlink/integration-core/src/BusinessLogic/Resources/countries/es.json

    r3118361 r3254819  
    176176    "IL": "Israel",
    177177    "JM": "Jamaica",
    178     "JP": "Japan",
     178    "JP": "Japón",
    179179    "JE": "Jersey",
    180180    "JO": "Jordan",
     
    205205    "FM": "Micronesia (Federated States of)",
    206206    "MD": "Moldova",
    207     "MC": "Monaco",
     207    "MC": "Mónaco",
    208208    "MN": "Mongolia",
    209209    "ME": "Montenegro",
    210210    "MS": "Montserrat",
    211     "MA": "Morocco",
     211    "MA": "Marruecos",
    212212    "MZ": "Mozambique",
    213213    "MM": "Myanmar",
     
    254254    "SC": "Seychelles",
    255255    "SL": "Sierra Leone",
    256     "SG": "Singapore",
     256    "SG": "Singapur",
    257257    "SX": "Sint Maarten (Dutch part)",
    258258    "SK": "Slovakia",
     
    268268    "SJ": "Svalbard and Jan Mayen",
    269269    "SY": "Syrian Arab Republic",
    270     "TW": "Taiwan (Province of China)",
     270    "TW": "Taiwán (provincia de China)",
    271271    "TJ": "Tajikistan",
    272272    "TZ": "Tanzania, United Republic of",
     
    283283    "UG": "Uganda",
    284284    "UA": "Ukraine",
    285     "AE": "United Arab Emirates",
     285    "AE": "Emiratos Árabes Unidos",
    286286    "UM": "United States Minor Outlying Islands",
    287287    "UY": "Uruguay",
  • packlink-pro-shipping/trunk/vendor/packlink/integration-core/src/BusinessLogic/Resources/countries/fr.json

    r3118361 r3254819  
    176176    "IL": "Israel",
    177177    "JM": "Jamaica",
    178     "JP": "Japan",
     178    "JP": "Japon",
    179179    "JE": "Jersey",
    180180    "JO": "Jordan",
     
    209209    "ME": "Montenegro",
    210210    "MS": "Montserrat",
    211     "MA": "Morocco",
     211    "MA": "Maroc",
    212212    "MZ": "Mozambique",
    213213    "MM": "Myanmar",
     
    254254    "SC": "Seychelles",
    255255    "SL": "Sierra Leone",
    256     "SG": "Singapore",
     256    "SG": "Singapour",
    257257    "SX": "Sint Maarten (Dutch part)",
    258258    "SK": "Slovakia",
     
    268268    "SJ": "Svalbard and Jan Mayen",
    269269    "SY": "Syrian Arab Republic",
    270     "TW": "Taiwan (Province of China)",
     270    "TW": "Taïwan (province de Chine)",
    271271    "TJ": "Tajikistan",
    272272    "TZ": "Tanzania, United Republic of",
     
    283283    "UG": "Uganda",
    284284    "UA": "Ukraine",
    285     "AE": "United Arab Emirates",
     285    "AE": "Émirats arabes unis",
    286286    "UM": "United States Minor Outlying Islands",
    287287    "UY": "Uruguay",
  • packlink-pro-shipping/trunk/vendor/packlink/integration-core/src/BusinessLogic/Resources/countries/it.json

    r3118361 r3254819  
    176176    "IL": "Israel",
    177177    "JM": "Jamaica",
    178     "JP": "Japan",
     178    "JP": "Giappone",
    179179    "JE": "Jersey",
    180180    "JO": "Jordan",
     
    209209    "ME": "Montenegro",
    210210    "MS": "Montserrat",
    211     "MA": "Morocco",
     211    "MA": "Marocco",
    212212    "MZ": "Mozambique",
    213213    "MM": "Myanmar",
     
    268268    "SJ": "Svalbard and Jan Mayen",
    269269    "SY": "Syrian Arab Republic",
    270     "TW": "Taiwan (Province of China)",
     270    "TW": "Taiwan (provincia della Cina)",
    271271    "TJ": "Tajikistan",
    272272    "TZ": "Tanzania, United Republic of",
     
    283283    "UG": "Uganda",
    284284    "UA": "Ukraine",
    285     "AE": "United Arab Emirates",
     285    "AE": "Emirati Arabi Uniti",
    286286    "UM": "United States Minor Outlying Islands",
    287287    "UY": "Uruguay",
  • packlink-pro-shipping/trunk/vendor/packlink/integration-core/src/BusinessLogic/Resources/countries/translations.csv

    r3118361 r3254819  
    106106countries,SK,Slovakia,Eslovaquia,Slowakei,Slovaquie,Slovacchia
    107107countries,DZ,Algeria,Argelia,Algerien,Algérie,Algeria
     108countries,JP,Japan,Japón,Japan,Japon,Giappone
     109countries,SG,Singapore,Singapur,Singapur,Singapour,Singapore
     110countries,TW,Taiwan,Taiwán,Taiwan,Taïwan,Taiwan
     111countries,MA,Morocco,Marruecos,Marokko,Maroc,Marocco
     112countries,AE,United Arab Emirates,Emiratos Árabes Unidos,Vereinigte Arabische Emirate,Émirats arabes unis,Emirati Arabi Uniti
     113countries,MC,Monaco,Mónaco,Monaco,Monaco,Monaco
    108114onboardingWelcome,header,Let's set up basic information so that<br>you can make shipments,Vamos a configurar tu información básica <br> para poder hacer envíos,"Richten Sie nun die grundlegenden Informationen ein, damit<br>Sie Versendungen vornehmen können",Configurez vos informations de base afin<br>d’effectuer des envois,È necessario impostare alcuni dati di base così che<br>potrai effettuare spedizioni
    109115onboardingWelcome,steps,It's just two steps that we need to go through to offer you the<br>carrier that best suits your needs,"Son solo dos pasos, los necesitamos para ofrecerte los servicios <br> de transporte que más se adaptan a tus necesidades.","In nur zwei Schritten können wir Ihnen den <br>Spediteur anbieten, der all Ihre Anforderungen erfüllt",Il ne vous reste que deux étapes pour savoir quel<br>transporteur répond le mieux à vos besoins,Si tratta di due semplici passaggi che dobbiamo completare per offrirti la<br>compagnia di trasporto che più si adatta alle tue esigenze
  • packlink-pro-shipping/trunk/vendor/packlink/integration-core/src/BusinessLogic/Resources/js/ConfigurationController.js

    r3118361 r3254819  
    5353            });
    5454
    55             mainPage.querySelector('#pl-navigate-customs').addEventListener('click', () => {
    56                 state.goToState('customs')
    57             })
     55            let customs = mainPage.querySelector('#pl-navigate-customs')
     56            if(customs) {
     57                customs.addEventListener('click', () => {
     58                    state.goToState('customs')
     59                })
     60            }
    5861
    5962            mainPage.querySelector('#pl-navigate-warehouse').addEventListener('click', () => {
  • packlink-pro-shipping/trunk/vendor/packlink/integration-core/src/BusinessLogic/Scheduler/Models/Schedule.php

    r3048950 r3254819  
    147147        $map = new IndexMap();
    148148        $map->addDateTimeIndex('nextSchedule');
     149        $map->addStringIndex('context');
    149150
    150151        return new EntityConfiguration($map, 'Schedule');
  • packlink-pro-shipping/trunk/vendor/packlink/integration-core/src/BusinessLogic/ShipmentDraft/ShipmentDraftService.php

    r3048950 r3254819  
    55use DateInterval;
    66use Logeecom\Infrastructure\Configuration\Configuration;
     7use Logeecom\Infrastructure\Logger\Logger;
    78use Logeecom\Infrastructure\ORM\RepositoryRegistry;
    89use Logeecom\Infrastructure\ServiceRegister;
     
    1112use Logeecom\Infrastructure\Utility\TimeProvider;
    1213use Packlink\BusinessLogic\BaseService;
     14use Packlink\BusinessLogic\Http\Proxy;
     15use Packlink\BusinessLogic\OrderShipmentDetails\OrderShipmentDetailsService;
    1316use Packlink\BusinessLogic\Scheduler\Models\HourlySchedule;
    1417use Packlink\BusinessLogic\Scheduler\Models\Schedule;
     
    117120
    118121    /**
     122     * Checks if draft is expired.
     123     *
     124     * @param string $reference
     125     *
     126     * @return bool
     127     */
     128    public function isDraftExpired($reference)
     129    {
     130        try {
     131            $shipment = $this->getProxy()->getShipment($reference);
     132
     133            if ($shipment) {
     134                return false;
     135            }
     136
     137            return true;
     138        } catch (\Exception $e) {
     139            Logger::logError($e->getMessage());
     140
     141            return false;
     142        }
     143    }
     144
     145    /**
    119146     * Enqueues delayed send draft task.
    120147     *
     
    156183        return ServiceRegister::getService(Configuration::CLASS_NAME);
    157184    }
     185
     186    /**
     187     * Retrieves proxy.
     188     *
     189     * @return Proxy | object
     190     */
     191    private function getProxy()
     192    {
     193        return ServiceRegister::getService(Proxy::CLASS_NAME);
     194    }
    158195}
  • packlink-pro-shipping/trunk/vendor/packlink/integration-core/src/BusinessLogic/Tasks/BatchTaskCleanupTask.php

    r3048950 r3254819  
    44
    55use Logeecom\Infrastructure\Logger\Logger;
     6use Logeecom\Infrastructure\ORM\Exceptions\EntityClassException;
    67use Logeecom\Infrastructure\ORM\QueryFilter\Operators;
    78use Logeecom\Infrastructure\ORM\QueryFilter\QueryFilter;
     
    2526class BatchTaskCleanupTask extends Task
    2627{
     28    const NUMBER_OF_TASKS = 5000;
     29    const NUMBER_OF_ITERATIONS = 20;
    2730    /**
    2831     * @var array
     
    112115     * @throws \Logeecom\Infrastructure\TaskExecution\Exceptions\AbortTaskExecutionException
    113116     * @throws \Logeecom\Infrastructure\ORM\Exceptions\RepositoryClassException
     117     * @throws EntityClassException
    114118     */
    115119    public function execute()
     
    125129        }
    126130
    127         $query = $this->getDeleteQuery();
     131        $query = $this->getQuery();
     132        $numberOfTasks = $repository->count($query);
    128133
    129134        $this->reportProgress(10);
    130135
    131         $repository->deleteWhere($query);
     136        $this->deleteInBatches($numberOfTasks, $query);
    132137
    133138        $this->reportProgress(100);
     139    }
     140
     141    /**
     142     * @param $numberOfTasks
     143     * @param QueryFilter $queryFilter
     144     *
     145     * @return void
     146     *
     147     * @throws \Logeecom\Infrastructure\ORM\Exceptions\RepositoryClassException
     148     * @throws \Logeecom\Infrastructure\ORM\Exceptions\RepositoryNotRegisteredException
     149     */
     150    protected function deleteInBatches($numberOfTasks, QueryFilter $queryFilter)
     151    {
     152        $repository = RepositoryRegistry::getQueueItemRepository();
     153        $queryFilter->setLimit(self::NUMBER_OF_TASKS);
     154        $i = 0;
     155
     156        while ($numberOfTasks > 0 && $i < self::NUMBER_OF_ITERATIONS) {
     157            $repository->deleteWhere($queryFilter);
     158
     159            $numberOfTasks -= self::NUMBER_OF_TASKS;
     160            $i++;
     161
     162            $this->reportProgress(10 + ($i + 1) * 3);
     163        }
    134164    }
    135165
     
    140170     * @throws \Logeecom\Infrastructure\ORM\Exceptions\QueryFilterInvalidParamException
    141171     */
    142     private function getDeleteQuery()
     172    private function getQuery()
    143173    {
    144174        $query = new QueryFilter();
  • packlink-pro-shipping/trunk/vendor/packlink/integration-core/src/BusinessLogic/Tasks/SendDraftTask.php

    r3118361 r3254819  
    3838     * @var string
    3939     */
    40     private $orderId;
     40    protected $orderId;
    4141    /**
    4242     * Order service instance.
     
    5656     * @var OrderShipmentDetailsService
    5757     */
    58     private $orderShipmentDetailsService;
     58    protected $orderShipmentDetailsService;
    5959    /**
    6060     * @var CustomsService
     
    160160        $this->setExecution();
    161161
    162         $isRepositoryRegistered = RepositoryRegistry::isRegistered(OrderShipmentDetails::getClassName());
    163         if ($isRepositoryRegistered && $this->isDraftCreated($this->orderId)) {
     162        if ($this->shouldNotSynchronize()) {
    164163            Logger::logInfo("Draft for order [{$this->orderId}] has been already created. Task is terminating.");
    165164            $this->reportProgress(100);
     
    203202
    204203    /**
     204     * @return bool
     205     */
     206    protected function shouldNotSynchronize()
     207    {
     208        $isRepositoryRegistered = RepositoryRegistry::isRegistered(OrderShipmentDetails::getClassName());
     209
     210        return $isRepositoryRegistered && $this->isDraftCreated($this->orderId);
     211    }
     212
     213    /**
    205214     * @param Draft $draft
    206215     * @param Order $order
     
    282291     * @return OrderShipmentDetailsService Service instance.
    283292     */
    284     private function getOrderShipmentDetailsService()
     293    protected function getOrderShipmentDetailsService()
    285294    {
    286295        if ($this->orderShipmentDetailsService === null) {
Note: See TracChangeset for help on using the changeset viewer.