You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/Price.java
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -106,6 +106,7 @@ public interface Price extends com.commercetools.api.models.Customizable<Price>,
106
106
107
107
/**
108
108
* <p>Is set if a <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductDiscount" rel="nofollow">ProductDiscount</a> has been applied. If set, the API uses the DiscountedPrice value for the <span>Line Item price selection</span>. When a <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductDiscountValueRelative" rel="nofollow">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 <span>half-down rounding</span>.</p>
109
+
* <p>If an <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductDiscountValueAbsolute" rel="nofollow">absolute discount</a> value exceeds the price of the Product Variant, the discounted price is a negative value.</p>
109
110
* @return discounted
110
111
*/
111
112
@Valid
@@ -195,6 +196,7 @@ public interface Price extends com.commercetools.api.models.Customizable<Price>,
195
196
196
197
/**
197
198
* <p>Is set if a <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductDiscount" rel="nofollow">ProductDiscount</a> has been applied. If set, the API uses the DiscountedPrice value for the <span>Line Item price selection</span>. When a <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductDiscountValueRelative" rel="nofollow">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 <span>half-down rounding</span>.</p>
199
+
* <p>If an <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductDiscountValueAbsolute" rel="nofollow">absolute discount</a> value exceeds the price of the Product Variant, the discounted price is a negative value.</p>
Copy file name to clipboardExpand all lines: commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/PriceBuilder.java
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -213,6 +213,7 @@ public PriceBuilder validUntil(@Nullable final java.time.ZonedDateTime validUnti
213
213
214
214
/**
215
215
* <p>Is set if a <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductDiscount" rel="nofollow">ProductDiscount</a> has been applied. If set, the API uses the DiscountedPrice value for the <span>Line Item price selection</span>. When a <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductDiscountValueRelative" rel="nofollow">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 <span>half-down rounding</span>.</p>
216
+
* <p>If an <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductDiscountValueAbsolute" rel="nofollow">absolute discount</a> value exceeds the price of the Product Variant, the discounted price is a negative value.</p>
216
217
* @param builder function to build the discounted value
217
218
* @return Builder
218
219
*/
@@ -225,6 +226,7 @@ public PriceBuilder discounted(
225
226
226
227
/**
227
228
* <p>Is set if a <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductDiscount" rel="nofollow">ProductDiscount</a> has been applied. If set, the API uses the DiscountedPrice value for the <span>Line Item price selection</span>. When a <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductDiscountValueRelative" rel="nofollow">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 <span>half-down rounding</span>.</p>
229
+
* <p>If an <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductDiscountValueAbsolute" rel="nofollow">absolute discount</a> value exceeds the price of the Product Variant, the discounted price is a negative value.</p>
228
230
* @param builder function to build the discounted value
229
231
* @return Builder
230
232
*/
@@ -237,6 +239,7 @@ public PriceBuilder withDiscounted(
237
239
238
240
/**
239
241
* <p>Is set if a <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductDiscount" rel="nofollow">ProductDiscount</a> has been applied. If set, the API uses the DiscountedPrice value for the <span>Line Item price selection</span>. When a <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductDiscountValueRelative" rel="nofollow">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 <span>half-down rounding</span>.</p>
242
+
* <p>If an <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductDiscountValueAbsolute" rel="nofollow">absolute discount</a> value exceeds the price of the Product Variant, the discounted price is a negative value.</p>
240
243
* @param discounted value to be set
241
244
* @return Builder
242
245
*/
@@ -493,6 +496,7 @@ public java.time.ZonedDateTime getValidUntil() {
493
496
494
497
/**
495
498
* <p>Is set if a <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductDiscount" rel="nofollow">ProductDiscount</a> has been applied. If set, the API uses the DiscountedPrice value for the <span>Line Item price selection</span>. When a <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductDiscountValueRelative" rel="nofollow">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 <span>half-down rounding</span>.</p>
499
+
* <p>If an <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductDiscountValueAbsolute" rel="nofollow">absolute discount</a> value exceeds the price of the Product Variant, the discounted price is a negative value.</p>
Copy file name to clipboardExpand all lines: commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/PriceImpl.java
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -147,6 +147,7 @@ public java.time.ZonedDateTime getValidUntil() {
147
147
148
148
/**
149
149
* <p>Is set if a <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductDiscount" rel="nofollow">ProductDiscount</a> has been applied. If set, the API uses the DiscountedPrice value for the <span>Line Item price selection</span>. When a <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductDiscountValueRelative" rel="nofollow">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 <span>half-down rounding</span>.</p>
150
+
* <p>If an <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductDiscountValueAbsolute" rel="nofollow">absolute discount</a> value exceeds the price of the Product Variant, the discounted price is a negative value.</p>
Copy file name to clipboardExpand all lines: commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_discount/ProductDiscountValueAbsoluteDraft.java
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -43,6 +43,7 @@ public interface ProductDiscountValueAbsoluteDraft
43
43
44
44
/**
45
45
* <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>
46
+
* <p>If the value exceeds the price of a Product Variant, the discounted price (of the Product Variant) will be a negative value.</p>
46
47
* <p>If the array is empty or has multiple values of the same currency, the API returns an <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error.</p>
47
48
* @return money
48
49
*/
@@ -53,6 +54,7 @@ public interface ProductDiscountValueAbsoluteDraft
53
54
54
55
/**
55
56
* <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>
57
+
* <p>If the value exceeds the price of a Product Variant, the discounted price (of the Product Variant) will be a negative value.</p>
56
58
* <p>If the array is empty or has multiple values of the same currency, the API returns an <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error.</p>
57
59
* @param money values to be set
58
60
*/
@@ -62,6 +64,7 @@ public interface ProductDiscountValueAbsoluteDraft
62
64
63
65
/**
64
66
* <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>
67
+
* <p>If the value exceeds the price of a Product Variant, the discounted price (of the Product Variant) will be a negative value.</p>
65
68
* <p>If the array is empty or has multiple values of the same currency, the API returns an <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error.</p>
Copy file name to clipboardExpand all lines: commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_discount/ProductDiscountValueAbsoluteDraftBuilder.java
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,7 @@ public class ProductDiscountValueAbsoluteDraftBuilder implements Builder<Product
26
26
27
27
/**
28
28
* <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>
29
+
* <p>If the value exceeds the price of a Product Variant, the discounted price (of the Product Variant) will be a negative value.</p>
29
30
* <p>If the array is empty or has multiple values of the same currency, the API returns an <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error.</p>
30
31
* @param money value to be set
31
32
* @return Builder
@@ -38,6 +39,7 @@ public ProductDiscountValueAbsoluteDraftBuilder money(final com.commercetools.ap
38
39
39
40
/**
40
41
* <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>
42
+
* <p>If the value exceeds the price of a Product Variant, the discounted price (of the Product Variant) will be a negative value.</p>
41
43
* <p>If the array is empty or has multiple values of the same currency, the API returns an <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error.</p>
42
44
* @param money value to be set
43
45
* @return Builder
@@ -51,6 +53,7 @@ public ProductDiscountValueAbsoluteDraftBuilder money(
51
53
52
54
/**
53
55
* <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>
56
+
* <p>If the value exceeds the price of a Product Variant, the discounted price (of the Product Variant) will be a negative value.</p>
54
57
* <p>If the array is empty or has multiple values of the same currency, the API returns an <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error.</p>
55
58
* @param money value to be set
56
59
* @return Builder
@@ -67,6 +70,7 @@ public ProductDiscountValueAbsoluteDraftBuilder plusMoney(
67
70
68
71
/**
69
72
* <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>
73
+
* <p>If the value exceeds the price of a Product Variant, the discounted price (of the Product Variant) will be a negative value.</p>
70
74
* <p>If the array is empty or has multiple values of the same currency, the API returns an <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error.</p>
71
75
* @param builder function to build the money value
72
76
* @return Builder
@@ -83,6 +87,7 @@ public ProductDiscountValueAbsoluteDraftBuilder plusMoney(
83
87
84
88
/**
85
89
* <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>
90
+
* <p>If the value exceeds the price of a Product Variant, the discounted price (of the Product Variant) will be a negative value.</p>
86
91
* <p>If the array is empty or has multiple values of the same currency, the API returns an <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error.</p>
87
92
* @param builder function to build the money value
88
93
* @return Builder
@@ -97,6 +102,7 @@ public ProductDiscountValueAbsoluteDraftBuilder withMoney(
97
102
98
103
/**
99
104
* <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>
105
+
* <p>If the value exceeds the price of a Product Variant, the discounted price (of the Product Variant) will be a negative value.</p>
100
106
* <p>If the array is empty or has multiple values of the same currency, the API returns an <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error.</p>
101
107
* @param builder function to build the money value
102
108
* @return Builder
@@ -109,6 +115,7 @@ public ProductDiscountValueAbsoluteDraftBuilder addMoney(
109
115
110
116
/**
111
117
* <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>
118
+
* <p>If the value exceeds the price of a Product Variant, the discounted price (of the Product Variant) will be a negative value.</p>
112
119
* <p>If the array is empty or has multiple values of the same currency, the API returns an <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error.</p>
113
120
* @param builder function to build the money value
114
121
* @return Builder
@@ -121,6 +128,7 @@ public ProductDiscountValueAbsoluteDraftBuilder setMoney(
121
128
122
129
/**
123
130
* <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>
131
+
* <p>If the value exceeds the price of a Product Variant, the discounted price (of the Product Variant) will be a negative value.</p>
124
132
* <p>If the array is empty or has multiple values of the same currency, the API returns an <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error.</p>
Copy file name to clipboardExpand all lines: commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_discount/ProductDiscountValueAbsoluteDraftImpl.java
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -53,6 +53,7 @@ public String getType() {
53
53
54
54
/**
55
55
* <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>
56
+
* <p>If the value exceeds the price of a Product Variant, the discounted price (of the Product Variant) will be a negative value.</p>
56
57
* <p>If the array is empty or has multiple values of the same currency, the API returns an <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error.</p>
0 commit comments