From 91e51f02cfd6524ec9953d8f6acff7b4378aad48 Mon Sep 17 00:00:00 2001 From: Logeecom Belgrade Date: Tue, 10 Dec 2024 14:33:52 +0100 Subject: [PATCH] Release version 3.4.8 (#92) * Added indexing for the context field in the Scheduler. CR-SET50 * Release version 3.4.7 * Add unsupported country Japan ISSUE: CS-6346 * Release version 3.4.8 ISSUE: CS-6346 --------- Co-authored-by: Sofija Dokmanovic Co-authored-by: Marija Co-authored-by: Sofija Dokmanovic --- CHANGELOG.md | 4 ++++ src/Brands/Packlink/PacklinkConfigurationService.php | 4 ++++ src/BusinessLogic/Resources/countries/es.json | 2 +- src/BusinessLogic/Resources/countries/fr.json | 2 +- src/BusinessLogic/Resources/countries/it.json | 2 +- src/BusinessLogic/Resources/countries/translations.csv | 1 + tests/BusinessLogic/Country/WarehouseCountryServiceTest.php | 2 +- tests/BusinessLogic/Tasks/UpdateShippingServicesTaskTest.php | 2 ++ 8 files changed, 15 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 460da018..be56874f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). +## [3.4.8](https://github.com/packlink-dev/ecommerce_module_core/compare/v3.4.7...v3.4.8) - 2024-12-09 +### Changed +- Add unsupported country Japan + ## [3.4.7](https://github.com/packlink-dev/ecommerce_module_core/compare/v3.4.6...v3.4.7) - 2024-11-20 ### Changed - Add index for context field in Scheduler entity diff --git a/src/Brands/Packlink/PacklinkConfigurationService.php b/src/Brands/Packlink/PacklinkConfigurationService.php index 95c4040a..6ab11832 100644 --- a/src/Brands/Packlink/PacklinkConfigurationService.php +++ b/src/Brands/Packlink/PacklinkConfigurationService.php @@ -206,6 +206,10 @@ class PacklinkConfigurationService implements BrandConfigurationService 'code' => 'DZ', 'postal_code' => '16000', ), + 'JP' => array( + 'code' => 'JP', + 'postal_code' => '100-0001', + ), ); /** diff --git a/src/BusinessLogic/Resources/countries/es.json b/src/BusinessLogic/Resources/countries/es.json index 5a58bc50..e88b0395 100644 --- a/src/BusinessLogic/Resources/countries/es.json +++ b/src/BusinessLogic/Resources/countries/es.json @@ -175,7 +175,7 @@ "IM": "Isle of Man", "IL": "Israel", "JM": "Jamaica", - "JP": "Japan", + "JP": "Japón", "JE": "Jersey", "JO": "Jordan", "KZ": "Kazakhstan", diff --git a/src/BusinessLogic/Resources/countries/fr.json b/src/BusinessLogic/Resources/countries/fr.json index 2917f57c..84555a8c 100644 --- a/src/BusinessLogic/Resources/countries/fr.json +++ b/src/BusinessLogic/Resources/countries/fr.json @@ -175,7 +175,7 @@ "IM": "Isle of Man", "IL": "Israel", "JM": "Jamaica", - "JP": "Japan", + "JP": "Japon", "JE": "Jersey", "JO": "Jordan", "KZ": "Kazakhstan", diff --git a/src/BusinessLogic/Resources/countries/it.json b/src/BusinessLogic/Resources/countries/it.json index ea45a264..7aa7e186 100644 --- a/src/BusinessLogic/Resources/countries/it.json +++ b/src/BusinessLogic/Resources/countries/it.json @@ -175,7 +175,7 @@ "IM": "Isle of Man", "IL": "Israel", "JM": "Jamaica", - "JP": "Japan", + "JP": "Giappone", "JE": "Jersey", "JO": "Jordan", "KZ": "Kazakhstan", diff --git a/src/BusinessLogic/Resources/countries/translations.csv b/src/BusinessLogic/Resources/countries/translations.csv index e86479a9..8144f566 100644 --- a/src/BusinessLogic/Resources/countries/translations.csv +++ b/src/BusinessLogic/Resources/countries/translations.csv @@ -105,6 +105,7 @@ countries,CY,Cyprus,Chipre,Zypern,Chypre,Cipro countries,SI,Slovenia,Slovenia,Slowenien,Slovénie,Slovenia countries,SK,Slovakia,Eslovaquia,Slowakei,Slovaquie,Slovacchia countries,DZ,Algeria,Argelia,Algerien,Algérie,Algeria +countries,JP,Japan,Japón,Japan,Japon,Giappone onboardingWelcome,header,Let's set up basic information so that
you can make shipments,Vamos a configurar tu información básica
para poder hacer envíos,"Richten Sie nun die grundlegenden Informationen ein, damit
Sie Versendungen vornehmen können",Configurez vos informations de base afin
d’effectuer des envois,È necessario impostare alcuni dati di base così che
potrai effettuare spedizioni onboardingWelcome,steps,It's just two steps that we need to go through to offer you the
carrier that best suits your needs,"Son solo dos pasos, los necesitamos para ofrecerte los servicios
de transporte que más se adaptan a tus necesidades.","In nur zwei Schritten können wir Ihnen den
Spediteur anbieten, der all Ihre Anforderungen erfüllt",Il ne vous reste que deux étapes pour savoir quel
transporteur répond le mieux à vos besoins,Si tratta di due semplici passaggi che dobbiamo completare per offrirti la
compagnia di trasporto che più si adatta alle tue esigenze onboardingWelcome,stepOne,Set parcel details,Configurar los detalles del paquete,Paketangaben einfügen,Configurez les informations sur le colis,Imposta i dettagli del pacco diff --git a/tests/BusinessLogic/Country/WarehouseCountryServiceTest.php b/tests/BusinessLogic/Country/WarehouseCountryServiceTest.php index f2179960..89934426 100644 --- a/tests/BusinessLogic/Country/WarehouseCountryServiceTest.php +++ b/tests/BusinessLogic/Country/WarehouseCountryServiceTest.php @@ -23,7 +23,7 @@ public function testGetSupportedCountries() $countries = $service->getSupportedCountries(); $this->assertNotEmpty($countries); - $this->assertCount(42, $countries); + $this->assertCount(43, $countries); $this->assertArrayHasKey('MX', $countries); $this->assertEquals('Mexico', $countries['MX']->name); $this->assertEquals('MX', $countries['MX']->code); diff --git a/tests/BusinessLogic/Tasks/UpdateShippingServicesTaskTest.php b/tests/BusinessLogic/Tasks/UpdateShippingServicesTaskTest.php index f5bdfeec..7f7139c3 100644 --- a/tests/BusinessLogic/Tasks/UpdateShippingServicesTaskTest.php +++ b/tests/BusinessLogic/Tasks/UpdateShippingServicesTaskTest.php @@ -313,6 +313,7 @@ public function testExecuteNewAndDelete() new HttpResponse(200, array(), '[]'), new HttpResponse(200, array(), '[]'), new HttpResponse(200, array(), '[]'), + new HttpResponse(200, array(), '[]'), ) ); @@ -400,6 +401,7 @@ protected function getValidMockResponses() new HttpResponse(200, array(), '[]'), new HttpResponse(200, array(), '[]'), new HttpResponse(200, array(), '[]'), + new HttpResponse(200, array(), '[]'), ); }