Skip to content

Commit 0544341

Browse files
committed
Updated API from documentation release
1 parent 8aa2eab commit 0544341

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

api-specs/api/types/cart-discount/CartDiscountValueAbsoluteDraft.raml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ properties:
99
type: Money[]
1010
description: |
1111
Money values in different currencies.
12-
An absolute Cart 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 array has multiple values of the same currency, the API returns an [InvalidOperation](ctp:api:type:InvalidOperationError) error.
12+
An absolute Cart 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$.
1313
14-
If the array is empty, the discount does not apply.
14+
If the array is empty or has multiple values of the same currency, the API returns an [InvalidOperation](ctp:api:type:InvalidOperationError) error.
1515
applicationMode?:
1616
type: DiscountApplicationMode
1717
description: |

api-specs/api/types/cart-discount/CartDiscountValueFixedDraft.raml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ properties:
1111
type: TypedMoneyDraft[]
1212
description: |
1313
Money values provided either in [cent precision](ctp:api:type:Money) or [high precision](ctp:api:type:HighPrecisionMoneyDraft) for different currencies.
14-
A fixed Cart 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 discounted by 10€ and the matching $ price will be discounted to 15$. If the array has multiple values of the same currency, the API returns an [InvalidOperation](ctp:api:type:InvalidOperationError) error.
14+
A fixed Cart 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 discounted by 10€ and the matching $ price will be discounted to 15$.
1515
16-
If the array is empty, the discount does not apply.
16+
If the array is empty or has multiple values of the same currency, the API returns an [InvalidOperation](ctp:api:type:InvalidOperationError) error.
1717
applicationMode?:
1818
type: DiscountApplicationMode
1919
description: |

api-specs/api/types/product-discount/ProductDiscountValueAbsoluteDraft.raml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ properties:
1111
type: Money[]
1212
description: |
1313
Money values in different currencies.
14-
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 array has multiple values of the same currency, the API returns an [InvalidOperation](ctp:api:type:InvalidOperationError) error.
14+
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$.
1515
16-
If the array is empty, the discount does not apply.
16+
If the array is empty or has multiple values of the same currency, the API returns an [InvalidOperation](ctp:api:type:InvalidOperationError) error.

0 commit comments

Comments
 (0)