Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/commercetools-api/src/Models/Common/Price.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ public function getValidUntil();
* <p>Is set if a <a href="ctp:api:type:ProductDiscount">ProductDiscount</a> has been applied.
* If set, the API uses the DiscountedPrice value for the <a href="/../api/pricing-and-discounts-overview#line-item-price-selection">Line Item price selection</a>.
* When a <a href="ctp:api:type:ProductDiscountValueRelative">relative discount</a> has been applied and the fraction part of the DiscountedPrice <code>value</code> is 0.5, the <code>value</code> is rounded in favor of the customer with <a href="https://en.wikipedia.org/wiki/Rounding#Round_half_down">half-down rounding</a>.</p>
* <p>If an <a href="ctp:api:type:ProductDiscountValueAbsolute">absolute discount</a> value exceeds the price of the Product Variant, the discounted price is a negative value.</p>
*

* @return null|DiscountedPrice
Expand Down
1 change: 1 addition & 0 deletions lib/commercetools-api/src/Models/Common/PriceBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ public function getValidUntil()
* <p>Is set if a <a href="ctp:api:type:ProductDiscount">ProductDiscount</a> has been applied.
* If set, the API uses the DiscountedPrice value for the <a href="/../api/pricing-and-discounts-overview#line-item-price-selection">Line Item price selection</a>.
* When a <a href="ctp:api:type:ProductDiscountValueRelative">relative discount</a> has been applied and the fraction part of the DiscountedPrice <code>value</code> is 0.5, the <code>value</code> is rounded in favor of the customer with <a href="https://en.wikipedia.org/wiki/Rounding#Round_half_down">half-down rounding</a>.</p>
* <p>If an <a href="ctp:api:type:ProductDiscountValueAbsolute">absolute discount</a> value exceeds the price of the Product Variant, the discounted price is a negative value.</p>
*

* @return null|DiscountedPrice
Expand Down
1 change: 1 addition & 0 deletions lib/commercetools-api/src/Models/Common/PriceModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ public function getValidUntil()
* <p>Is set if a <a href="ctp:api:type:ProductDiscount">ProductDiscount</a> has been applied.
* If set, the API uses the DiscountedPrice value for the <a href="/../api/pricing-and-discounts-overview#line-item-price-selection">Line Item price selection</a>.
* When a <a href="ctp:api:type:ProductDiscountValueRelative">relative discount</a> has been applied and the fraction part of the DiscountedPrice <code>value</code> is 0.5, the <code>value</code> is rounded in favor of the customer with <a href="https://en.wikipedia.org/wiki/Rounding#Round_half_down">half-down rounding</a>.</p>
* <p>If an <a href="ctp:api:type:ProductDiscountValueAbsolute">absolute discount</a> value exceeds the price of the Product Variant, the discounted price is a negative value.</p>
*
*
* @return null|DiscountedPrice
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ interface ProductDiscountValueAbsoluteDraft extends ProductDiscountValueDraft
/**
* <p>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$.</p>
* <p>If the value exceeds the price of a Product Variant, the discounted price (of the Product Variant) will be a negative value.</p>
* <p>If the array is empty or has multiple values of the same currency, the API returns an <a href="ctp:api:type:InvalidOperationError">InvalidOperation</a> error.</p>
*

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ final class ProductDiscountValueAbsoluteDraftBuilder implements Builder
/**
* <p>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$.</p>
* <p>If the value exceeds the price of a Product Variant, the discounted price (of the Product Variant) will be a negative value.</p>
* <p>If the array is empty or has multiple values of the same currency, the API returns an <a href="ctp:api:type:InvalidOperationError">InvalidOperation</a> error.</p>
*

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ public function getType()
/**
* <p>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$.</p>
* <p>If the value exceeds the price of a Product Variant, the discounted price (of the Product Variant) will be a negative value.</p>
* <p>If the array is empty or has multiple values of the same currency, the API returns an <a href="ctp:api:type:InvalidOperationError">InvalidOperation</a> error.</p>
*
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ public function getTiers();
/**
* <p>Set if a matching <a href="ctp:api:type:ProductDiscount">ProductDiscount</a> exists. If set, the API uses the <code>discounted</code> value for the <a href="/../api/pricing-and-discounts-overview#line-item-price-selection">Line Item price selection</a>.
* When a <a href="/../api/projects/productDiscounts#productdiscountvaluerelative">relative discount</a> is applied and the fraction part of the <code>discounted</code> price is 0.5, the discounted price is rounded in favor of the customer with the <a href="https://en.wikipedia.org/wiki/Rounding#Round_half_down">half down rounding</a>.</p>
* <p>If an <a href="ctp:api:type:ProductDiscountValueAbsolute">absolute discount</a> value exceeds the price of the Product Variant, the discounted price is a negative value.</p>
*

* @return null|DiscountedPrice
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@ public function getTiers()
/**
* <p>Set if a matching <a href="ctp:api:type:ProductDiscount">ProductDiscount</a> exists. If set, the API uses the <code>discounted</code> value for the <a href="/../api/pricing-and-discounts-overview#line-item-price-selection">Line Item price selection</a>.
* When a <a href="/../api/projects/productDiscounts#productdiscountvaluerelative">relative discount</a> is applied and the fraction part of the <code>discounted</code> price is 0.5, the discounted price is rounded in favor of the customer with the <a href="https://en.wikipedia.org/wiki/Rounding#Round_half_down">half down rounding</a>.</p>
* <p>If an <a href="ctp:api:type:ProductDiscountValueAbsolute">absolute discount</a> value exceeds the price of the Product Variant, the discounted price is a negative value.</p>
*

* @return null|DiscountedPrice
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,7 @@ public function getTiers()
/**
* <p>Set if a matching <a href="ctp:api:type:ProductDiscount">ProductDiscount</a> exists. If set, the API uses the <code>discounted</code> value for the <a href="/../api/pricing-and-discounts-overview#line-item-price-selection">Line Item price selection</a>.
* When a <a href="/../api/projects/productDiscounts#productdiscountvaluerelative">relative discount</a> is applied and the fraction part of the <code>discounted</code> price is 0.5, the discounted price is rounded in favor of the customer with the <a href="https://en.wikipedia.org/wiki/Rounding#Round_half_down">half down rounding</a>.</p>
* <p>If an <a href="ctp:api:type:ProductDiscountValueAbsolute">absolute discount</a> value exceeds the price of the Product Variant, the discounted price is a negative value.</p>
*
*
* @return null|DiscountedPrice
Expand Down
1 change: 1 addition & 0 deletions references.txt
Original file line number Diff line number Diff line change
Expand Up @@ -500,3 +500,4 @@ c6e3250e705b0c6fb714d7a6e0210872f9bfe0d5
e111bc9d132c5da4dc43085c1983efa8cbdf91d3
e60554cf51abaeb40bb26716fb27ada4c135b40f
0ccd9d7c7f9d43d7c437c69ec81c50b0d4ddc641
8944651449b819cb620a4a763e0432bdf57cd708