diff --git a/lib/commercetools-api/src/Models/Common/Price.php b/lib/commercetools-api/src/Models/Common/Price.php index c3f4fd78af1..757dd3f0bcd 100644 --- a/lib/commercetools-api/src/Models/Common/Price.php +++ b/lib/commercetools-api/src/Models/Common/Price.php @@ -99,6 +99,7 @@ public function getValidUntil(); *

Is set if a ProductDiscount has been applied. * If set, the API uses the DiscountedPrice value for the Line Item price selection. * When a relative discount has been applied and the fraction part of the DiscountedPrice value is 0.5, the value is rounded in favor of the customer with half-down rounding.

+ *

If an absolute discount value exceeds the price of the Product Variant, the discounted price is a negative value.

* * @return null|DiscountedPrice diff --git a/lib/commercetools-api/src/Models/Common/PriceBuilder.php b/lib/commercetools-api/src/Models/Common/PriceBuilder.php index ee70fa17fb2..f071f23ba73 100644 --- a/lib/commercetools-api/src/Models/Common/PriceBuilder.php +++ b/lib/commercetools-api/src/Models/Common/PriceBuilder.php @@ -193,6 +193,7 @@ public function getValidUntil() *

Is set if a ProductDiscount has been applied. * If set, the API uses the DiscountedPrice value for the Line Item price selection. * When a relative discount has been applied and the fraction part of the DiscountedPrice value is 0.5, the value is rounded in favor of the customer with half-down rounding.

+ *

If an absolute discount value exceeds the price of the Product Variant, the discounted price is a negative value.

* * @return null|DiscountedPrice diff --git a/lib/commercetools-api/src/Models/Common/PriceModel.php b/lib/commercetools-api/src/Models/Common/PriceModel.php index 2746cb5925f..f4de6f9f169 100644 --- a/lib/commercetools-api/src/Models/Common/PriceModel.php +++ b/lib/commercetools-api/src/Models/Common/PriceModel.php @@ -307,6 +307,7 @@ public function getValidUntil() *

Is set if a ProductDiscount has been applied. * If set, the API uses the DiscountedPrice value for the Line Item price selection. * When a relative discount has been applied and the fraction part of the DiscountedPrice value is 0.5, the value is rounded in favor of the customer with half-down rounding.

+ *

If an absolute discount value exceeds the price of the Product Variant, the discounted price is a negative value.

* * * @return null|DiscountedPrice diff --git a/lib/commercetools-api/src/Models/ProductDiscount/ProductDiscountValueAbsoluteDraft.php b/lib/commercetools-api/src/Models/ProductDiscount/ProductDiscountValueAbsoluteDraft.php index e009812a61c..87f76cfbe75 100644 --- a/lib/commercetools-api/src/Models/ProductDiscount/ProductDiscountValueAbsoluteDraft.php +++ b/lib/commercetools-api/src/Models/ProductDiscount/ProductDiscountValueAbsoluteDraft.php @@ -19,6 +19,7 @@ interface ProductDiscountValueAbsoluteDraft extends ProductDiscountValueDraft /** *

Money values in different currencies. * An absolute Product Discount will match a price only if the array contains a value with the same currency. For example, if it contains 10€ and 15$, the matching € price will be decreased by 10€ and the matching $ price will be decreased by 15$.

+ *

If the value exceeds the price of a Product Variant, the discounted price (of the Product Variant) will be a negative value.

*

If the array is empty or has multiple values of the same currency, the API returns an InvalidOperation error.

* diff --git a/lib/commercetools-api/src/Models/ProductDiscount/ProductDiscountValueAbsoluteDraftBuilder.php b/lib/commercetools-api/src/Models/ProductDiscount/ProductDiscountValueAbsoluteDraftBuilder.php index 257c47936a6..573fd8a7b51 100644 --- a/lib/commercetools-api/src/Models/ProductDiscount/ProductDiscountValueAbsoluteDraftBuilder.php +++ b/lib/commercetools-api/src/Models/ProductDiscount/ProductDiscountValueAbsoluteDraftBuilder.php @@ -30,6 +30,7 @@ final class ProductDiscountValueAbsoluteDraftBuilder implements Builder /** *

Money values in different currencies. * An absolute Product Discount will match a price only if the array contains a value with the same currency. For example, if it contains 10€ and 15$, the matching € price will be decreased by 10€ and the matching $ price will be decreased by 15$.

+ *

If the value exceeds the price of a Product Variant, the discounted price (of the Product Variant) will be a negative value.

*

If the array is empty or has multiple values of the same currency, the API returns an InvalidOperation error.

* diff --git a/lib/commercetools-api/src/Models/ProductDiscount/ProductDiscountValueAbsoluteDraftModel.php b/lib/commercetools-api/src/Models/ProductDiscount/ProductDiscountValueAbsoluteDraftModel.php index f918609d3d6..b5d779ad1c7 100644 --- a/lib/commercetools-api/src/Models/ProductDiscount/ProductDiscountValueAbsoluteDraftModel.php +++ b/lib/commercetools-api/src/Models/ProductDiscount/ProductDiscountValueAbsoluteDraftModel.php @@ -66,6 +66,7 @@ public function getType() /** *

Money values in different currencies. * An absolute Product Discount will match a price only if the array contains a value with the same currency. For example, if it contains 10€ and 15$, the matching € price will be decreased by 10€ and the matching $ price will be decreased by 15$.

+ *

If the value exceeds the price of a Product Variant, the discounted price (of the Product Variant) will be a negative value.

*

If the array is empty or has multiple values of the same currency, the API returns an InvalidOperation error.

* * diff --git a/lib/commercetools-api/src/Models/StandalonePrice/StandalonePrice.php b/lib/commercetools-api/src/Models/StandalonePrice/StandalonePrice.php index 1f4ad72fea2..e0549882787 100644 --- a/lib/commercetools-api/src/Models/StandalonePrice/StandalonePrice.php +++ b/lib/commercetools-api/src/Models/StandalonePrice/StandalonePrice.php @@ -165,6 +165,7 @@ public function getTiers(); /** *

Set if a matching ProductDiscount exists. If set, the API uses the discounted value for the Line Item price selection. * When a relative discount is applied and the fraction part of the discounted price is 0.5, the discounted price is rounded in favor of the customer with the half down rounding.

+ *

If an absolute discount value exceeds the price of the Product Variant, the discounted price is a negative value.

* * @return null|DiscountedPrice diff --git a/lib/commercetools-api/src/Models/StandalonePrice/StandalonePriceBuilder.php b/lib/commercetools-api/src/Models/StandalonePrice/StandalonePriceBuilder.php index c5b68c10619..af607d96df7 100644 --- a/lib/commercetools-api/src/Models/StandalonePrice/StandalonePriceBuilder.php +++ b/lib/commercetools-api/src/Models/StandalonePrice/StandalonePriceBuilder.php @@ -329,6 +329,7 @@ public function getTiers() /** *

Set if a matching ProductDiscount exists. If set, the API uses the discounted value for the Line Item price selection. * When a relative discount is applied and the fraction part of the discounted price is 0.5, the discounted price is rounded in favor of the customer with the half down rounding.

+ *

If an absolute discount value exceeds the price of the Product Variant, the discounted price is a negative value.

* * @return null|DiscountedPrice diff --git a/lib/commercetools-api/src/Models/StandalonePrice/StandalonePriceModel.php b/lib/commercetools-api/src/Models/StandalonePrice/StandalonePriceModel.php index 16924968778..51a9b059a37 100644 --- a/lib/commercetools-api/src/Models/StandalonePrice/StandalonePriceModel.php +++ b/lib/commercetools-api/src/Models/StandalonePrice/StandalonePriceModel.php @@ -532,6 +532,7 @@ public function getTiers() /** *

Set if a matching ProductDiscount exists. If set, the API uses the discounted value for the Line Item price selection. * When a relative discount is applied and the fraction part of the discounted price is 0.5, the discounted price is rounded in favor of the customer with the half down rounding.

+ *

If an absolute discount value exceeds the price of the Product Variant, the discounted price is a negative value.

* * * @return null|DiscountedPrice diff --git a/references.txt b/references.txt index 3665f7e12a3..312678ce63f 100644 --- a/references.txt +++ b/references.txt @@ -500,3 +500,4 @@ c6e3250e705b0c6fb714d7a6e0210872f9bfe0d5 e111bc9d132c5da4dc43085c1983efa8cbdf91d3 e60554cf51abaeb40bb26716fb27ada4c135b40f 0ccd9d7c7f9d43d7c437c69ec81c50b0d4ddc641 +8944651449b819cb620a4a763e0432bdf57cd708