From 795ae316fffe54a74fe3f430c580d288be20a64e Mon Sep 17 00:00:00 2001 From: Neur0toxine Date: Tue, 14 Dec 2021 15:10:41 +0300 Subject: [PATCH] add `priceWithDiscount` to billing info --- src/Model/Entity/Integration/BillingInfo.php | 8 ++++++++ tests/src/ResourceGroup/IntegrationTests.php | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/Model/Entity/Integration/BillingInfo.php b/src/Model/Entity/Integration/BillingInfo.php index 7d1810e..30c516d 100644 --- a/src/Model/Entity/Integration/BillingInfo.php +++ b/src/Model/Entity/Integration/BillingInfo.php @@ -27,6 +27,14 @@ class BillingInfo */ public $price; + /** + * @var float + * + * @JMS\Type("float") + * @JMS\SerializedName("priceWithDiscount") + */ + public $priceWithDiscount; + /** * @var \RetailCrm\Api\Model\Entity\Integration\Currency * diff --git a/tests/src/ResourceGroup/IntegrationTests.php b/tests/src/ResourceGroup/IntegrationTests.php index 58d0afe..bbec7bc 100644 --- a/tests/src/ResourceGroup/IntegrationTests.php +++ b/tests/src/ResourceGroup/IntegrationTests.php @@ -164,7 +164,8 @@ EOF; "success": true, "info": { "billingInfo": { - "price": 0, + "price": 2, + "priceWithDiscount": 1, "currency": { "name": "Рубль", "shortName": "руб.",