From 3236ee542bd7c6113fb6bd92a2ea59e9fe32ce05 Mon Sep 17 00:00:00 2001 From: Henry Malicha <33023479+hmalicha@users.noreply.github.com> Date: Fri, 29 Jul 2022 16:20:14 +0200 Subject: [PATCH 1/2] added new value --- .../SellingPartner/Model/MerchantFulfillment/LabelFormat.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/LabelFormat.php b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/LabelFormat.php index 56998ff0e..8803de4c0 100644 --- a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/LabelFormat.php +++ b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/LabelFormat.php @@ -41,6 +41,8 @@ class LabelFormat public const PDF = 'PDF'; public const PNG = 'PNG'; + + public const ZPL = 'ZPL'; public const ZPL203 = 'ZPL203'; @@ -65,6 +67,7 @@ public static function getAllowableEnumValues() : array return [ self::PDF, self::PNG, + self::ZPL, self::ZPL203, self::ZPL300, self::SHIPPING_SERVICE_DEFAULT, From c669b8c2bafb30c5de3806c63c7842ff065a98b0 Mon Sep 17 00:00:00 2001 From: Joshua Schaak Date: Tue, 23 Aug 2022 11:42:11 +0200 Subject: [PATCH 2/2] Update Address.php --- .../Model/MerchantFulfillment/Address.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/Address.php b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/Address.php index e90703e17..ab02ca887 100644 --- a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/Address.php +++ b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/Address.php @@ -260,9 +260,9 @@ public function listInvalidProperties() : array $invalidProperties[] = "'name' can't be null"; } - if ((\mb_strlen($this->container['name']) > 30)) { - $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 30."; - } +// if ((\mb_strlen($this->container['name']) > 30)) { +// $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 30."; +// } if ($this->container['address_line1'] === null) { $invalidProperties[] = "'address_line1' can't be null"; @@ -345,9 +345,9 @@ public function getName() : string */ public function setName(string $name) : self { - if ((\mb_strlen($name) > 30)) { - throw new \InvalidArgumentException('invalid length for $name when calling Address., must be smaller than or equal to 30.'); - } +// if ((\mb_strlen($name) > 30)) { +// throw new \InvalidArgumentException('invalid length for $name when calling Address., must be smaller than or equal to 30.'); +// } $this->container['name'] = $name;