From 12d8381b80ce9c062de318c4c153dd61b1a18354 Mon Sep 17 00:00:00 2001 From: Andrey Muriy Date: Thu, 27 Apr 2023 16:05:24 +0300 Subject: [PATCH] Add itemDeclaredValues field to deliveryData --- .../Entity/Orders/Delivery/DeliveryData.php | 8 +++++ .../Orders/Delivery/ItemDeclaredValue.php | 31 +++++++++++++++++++ .../Delivery/ItemDeclaredValueProduct.php | 23 ++++++++++++++ 3 files changed, 62 insertions(+) create mode 100644 src/Model/Entity/Orders/Delivery/ItemDeclaredValue.php create mode 100644 src/Model/Entity/Orders/Delivery/ItemDeclaredValueProduct.php diff --git a/src/Model/Entity/Orders/Delivery/DeliveryData.php b/src/Model/Entity/Orders/Delivery/DeliveryData.php index a99348a..261b7d3 100644 --- a/src/Model/Entity/Orders/Delivery/DeliveryData.php +++ b/src/Model/Entity/Orders/Delivery/DeliveryData.php @@ -671,4 +671,12 @@ class DeliveryData * @JMS\SerializedName("service") */ public $service; + + /** + * @var ItemDeclaredValue[] + * + * @JMS\Type("array") + * @JMS\SerializedName("itemDeclaredValues") + */ + public $itemDeclaredValues; } diff --git a/src/Model/Entity/Orders/Delivery/ItemDeclaredValue.php b/src/Model/Entity/Orders/Delivery/ItemDeclaredValue.php new file mode 100644 index 0000000..94b3ff4 --- /dev/null +++ b/src/Model/Entity/Orders/Delivery/ItemDeclaredValue.php @@ -0,0 +1,31 @@ +