diff --git a/composer.json b/composer.json index 15893c834..d3dcaca4e 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "myparcelnl/woocommerce", "version": "4.23.0", "require": { - "myparcelnl/sdk": "~7.8.0" + "myparcelnl/sdk": "^7.15.4" }, "autoload": { "psr-4": { diff --git a/includes/class-wcmp-data.php b/includes/class-wcmp-data.php index 8942f1203..15d0e9c66 100644 --- a/includes/class-wcmp-data.php +++ b/includes/class-wcmp-data.php @@ -51,6 +51,7 @@ class WCMP_Data AbstractConsignment::PACKAGE_TYPE_MAILBOX => 2000, AbstractConsignment::PACKAGE_TYPE_LETTER => 2000, AbstractConsignment::PACKAGE_TYPE_DIGITAL_STAMP => 2000, + AbstractConsignment::PACKAGE_TYPE_PACKAGE_SMALL => 5000, ]; public const DEFAULT_COUNTRY_CODE = 'NL'; @@ -78,6 +79,7 @@ public function __construct() AbstractConsignment::PACKAGE_TYPE_MAILBOX_NAME, AbstractConsignment::PACKAGE_TYPE_LETTER_NAME, AbstractConsignment::PACKAGE_TYPE_DIGITAL_STAMP_NAME, + AbstractConsignment::PACKAGE_TYPE_PACKAGE_SMALL_NAME, ]; self::$packageTypesHuman = [ @@ -85,6 +87,7 @@ public function __construct() AbstractConsignment::PACKAGE_TYPE_MAILBOX_NAME => __('Mailbox', 'woocommerce-myparcel'), AbstractConsignment::PACKAGE_TYPE_LETTER_NAME => __('Unpaid letter', 'woocommerce-myparcel'), AbstractConsignment::PACKAGE_TYPE_DIGITAL_STAMP_NAME => __('Digital stamp', 'woocommerce-myparcel'), + AbstractConsignment::PACKAGE_TYPE_PACKAGE_SMALL_NAME => __('Small package', 'woocommerce-myparcel'), ]; self::$deliveryTypesHuman = [ diff --git a/package.json b/package.json index 0f568d634..b42204ad0 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ }, "homepage": "https://github.com/myparcelnl/woocommerce#readme", "dependencies": { - "@myparcel/delivery-options": "^5.7.4" + "@myparcel/delivery-options": "^5.17.0" }, "devDependencies": { "@babel/core": "^7.13.10",