Skip to content

Commit 7a509b5

Browse files
committed
build(codegen): updating SDK
1 parent bdf97d0 commit 7a509b5

File tree

10 files changed

+10
-0
lines changed

10 files changed

+10
-0
lines changed

lib/commercetools-api/src/Models/Common/Price.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ public function getValidUntil();
9999
* <p>Is set if a <a href="ctp:api:type:ProductDiscount">ProductDiscount</a> has been applied.
100100
* 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>.
101101
* 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>
102+
* <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>
102103
*
103104
104105
* @return null|DiscountedPrice

lib/commercetools-api/src/Models/Common/PriceBuilder.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ public function getValidUntil()
193193
* <p>Is set if a <a href="ctp:api:type:ProductDiscount">ProductDiscount</a> has been applied.
194194
* 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>.
195195
* 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>
196+
* <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>
196197
*
197198
198199
* @return null|DiscountedPrice

lib/commercetools-api/src/Models/Common/PriceModel.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@ public function getValidUntil()
307307
* <p>Is set if a <a href="ctp:api:type:ProductDiscount">ProductDiscount</a> has been applied.
308308
* 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>.
309309
* 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>
310+
* <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>
310311
*
311312
*
312313
* @return null|DiscountedPrice

lib/commercetools-api/src/Models/ProductDiscount/ProductDiscountValueAbsoluteDraft.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ interface ProductDiscountValueAbsoluteDraft extends ProductDiscountValueDraft
1919
/**
2020
* <p>Money values in different currencies.
2121
* 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>
22+
* <p>If the value exceeds the price of a Product Variant, the discounted price (of the Product Variant) will be a negative value.</p>
2223
* <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>
2324
*
2425

lib/commercetools-api/src/Models/ProductDiscount/ProductDiscountValueAbsoluteDraftBuilder.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ final class ProductDiscountValueAbsoluteDraftBuilder implements Builder
3030
/**
3131
* <p>Money values in different currencies.
3232
* 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>
33+
* <p>If the value exceeds the price of a Product Variant, the discounted price (of the Product Variant) will be a negative value.</p>
3334
* <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>
3435
*
3536

lib/commercetools-api/src/Models/ProductDiscount/ProductDiscountValueAbsoluteDraftModel.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ public function getType()
6666
/**
6767
* <p>Money values in different currencies.
6868
* 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>
69+
* <p>If the value exceeds the price of a Product Variant, the discounted price (of the Product Variant) will be a negative value.</p>
6970
* <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>
7071
*
7172
*

lib/commercetools-api/src/Models/StandalonePrice/StandalonePrice.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ public function getTiers();
165165
/**
166166
* <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>.
167167
* 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>
168+
* <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>
168169
*
169170
170171
* @return null|DiscountedPrice

lib/commercetools-api/src/Models/StandalonePrice/StandalonePriceBuilder.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@ public function getTiers()
329329
/**
330330
* <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>.
331331
* 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>
332+
* <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>
332333
*
333334
334335
* @return null|DiscountedPrice

lib/commercetools-api/src/Models/StandalonePrice/StandalonePriceModel.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,7 @@ public function getTiers()
532532
/**
533533
* <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>.
534534
* 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>
535+
* <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>
535536
*
536537
*
537538
* @return null|DiscountedPrice

references.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -500,3 +500,4 @@ c6e3250e705b0c6fb714d7a6e0210872f9bfe0d5
500500
e111bc9d132c5da4dc43085c1983efa8cbdf91d3
501501
e60554cf51abaeb40bb26716fb27ada4c135b40f
502502
0ccd9d7c7f9d43d7c437c69ec81c50b0d4ddc641
503+
8944651449b819cb620a4a763e0432bdf57cd708

0 commit comments

Comments
 (0)