Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Release version 3.4.10 #94

Merged
merged 2 commits into from
Feb 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.10](https://github.com/packlink-dev/ecommerce_module_core/compare/v3.4.9...v3.4.10) - 2025-01-30
### Changed
- Add unsupported countries Singapore and Taiwan

## [3.4.9](https://github.com/packlink-dev/ecommerce_module_core/compare/v3.4.8...v3.4.9) - 2024-12-09
### Changed
- Add special handling for 429 - Too many retries exception
Expand Down
8 changes: 8 additions & 0 deletions src/Brands/Packlink/PacklinkConfigurationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,14 @@ class PacklinkConfigurationService implements BrandConfigurationService
'code' => 'JP',
'postal_code' => '100-0001',
),
'SG' => array(
'code' => 'SG',
'postal_code' => '018989',
),
'TW' => array(
'code' => 'TW',
'postal_code' => '100',
),
);

/**
Expand Down
4 changes: 2 additions & 2 deletions src/BusinessLogic/Resources/countries/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@
"RS": "Serbia",
"SC": "Seychelles",
"SL": "Sierra Leone",
"SG": "Singapore",
"SG": "Singapur",
"SX": "Sint Maarten (Dutch part)",
"SK": "Slovakia",
"SI": "Slovenia",
Expand All @@ -267,7 +267,7 @@
"SR": "Suriname",
"SJ": "Svalbard and Jan Mayen",
"SY": "Syrian Arab Republic",
"TW": "Taiwan (Province of China)",
"TW": "Taiwan (Provinz China)",
"TJ": "Tajikistan",
"TZ": "Tanzania, United Republic of",
"TH": "Thailand",
Expand Down
4 changes: 2 additions & 2 deletions src/BusinessLogic/Resources/countries/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@
"RS": "Serbia",
"SC": "Seychelles",
"SL": "Sierra Leone",
"SG": "Singapore",
"SG": "Singapur",
"SX": "Sint Maarten (Dutch part)",
"SK": "Slovakia",
"SI": "Slovenia",
Expand All @@ -267,7 +267,7 @@
"SR": "Suriname",
"SJ": "Svalbard and Jan Mayen",
"SY": "Syrian Arab Republic",
"TW": "Taiwan (Province of China)",
"TW": "Taiwán (provincia de China)",
"TJ": "Tajikistan",
"TZ": "Tanzania, United Republic of",
"TH": "Thailand",
Expand Down
4 changes: 2 additions & 2 deletions src/BusinessLogic/Resources/countries/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@
"RS": "Serbia",
"SC": "Seychelles",
"SL": "Sierra Leone",
"SG": "Singapore",
"SG": "Singapour",
"SX": "Sint Maarten (Dutch part)",
"SK": "Slovakia",
"SI": "Slovenia",
Expand All @@ -267,7 +267,7 @@
"SR": "Suriname",
"SJ": "Svalbard and Jan Mayen",
"SY": "Syrian Arab Republic",
"TW": "Taiwan (Province of China)",
"TW": "Taïwan (province de Chine)",
"TJ": "Tajikistan",
"TZ": "Tanzania, United Republic of",
"TH": "Thailand",
Expand Down
2 changes: 1 addition & 1 deletion src/BusinessLogic/Resources/countries/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@
"SR": "Suriname",
"SJ": "Svalbard and Jan Mayen",
"SY": "Syrian Arab Republic",
"TW": "Taiwan (Province of China)",
"TW": "Taiwan (provincia della Cina)",
"TJ": "Tajikistan",
"TZ": "Tanzania, United Republic of",
"TH": "Thailand",
Expand Down
2 changes: 2 additions & 0 deletions src/BusinessLogic/Resources/countries/translations.csv
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ 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
countries,SG,Singapore,Singapur,Singapur,Singapour,Singapore
countries,TW,Taiwan,Taiwán,Taiwan,Taïwan,Taiwan
onboardingWelcome,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
onboardingWelcome,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
onboardingWelcome,stepOne,Set parcel details,Configurar los detalles del paquete,Paketangaben einfügen,Configurez les informations sur le colis,Imposta i dettagli del pacco
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function testGetSupportedCountries()
$countries = $service->getSupportedCountries();

$this->assertNotEmpty($countries);
$this->assertCount(43, $countries);
$this->assertCount(45, $countries);
$this->assertArrayHasKey('MX', $countries);
$this->assertEquals('Mexico', $countries['MX']->name);
$this->assertEquals('MX', $countries['MX']->code);
Expand Down
4 changes: 4 additions & 0 deletions tests/BusinessLogic/Tasks/UpdateShippingServicesTaskTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,8 @@ public function testExecuteNewAndDelete()
new HttpResponse(200, array(), '[]'),
new HttpResponse(200, array(), '[]'),
new HttpResponse(200, array(), '[]'),
new HttpResponse(200, array(), '[]'),
new HttpResponse(200, array(), '[]'),
)
);

Expand Down Expand Up @@ -402,6 +404,8 @@ protected function getValidMockResponses()
new HttpResponse(200, array(), '[]'),
new HttpResponse(200, array(), '[]'),
new HttpResponse(200, array(), '[]'),
new HttpResponse(200, array(), '[]'),
new HttpResponse(200, array(), '[]'),
);
}

Expand Down