Skip to content

Commit 8944651

Browse files
committed
Updated API from documentation release
1 parent 4f29151 commit 8944651

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

api-specs/api/types/common/Price.raml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ properties:
4848
Is set if a [ProductDiscount](ctp:api:type:ProductDiscount) has been applied.
4949
If set, the API uses the DiscountedPrice value for the [Line Item price selection](/../api/pricing-and-discounts-overview#line-item-price-selection).
5050
When a [relative discount](ctp:api:type:ProductDiscountValueRelative) 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](https://en.wikipedia.org/wiki/Rounding#Round_half_down).
51+
52+
If an [absolute discount](ctp:api:type:ProductDiscountValueAbsolute) value exceeds the price of the Product Variant, the discounted price is a negative value.
5153
tiers?:
5254
type: PriceTier[]
5355
description: |

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,6 @@ properties:
1313
Money values in different currencies.
1414
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 value exceeds the price of a Product Variant, the discounted price (of the Product Variant) will be a negative value.
17+
1618
If the array is empty or has multiple values of the same currency, the API returns an [InvalidOperation](ctp:api:type:InvalidOperationError) error.

api-specs/api/types/standalone-price/StandalonePrice.raml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ properties:
7979
description: |
8080
Set if a matching [ProductDiscount](ctp:api:type:ProductDiscount) exists. If set, the API uses the `discounted` value for the [Line Item price selection](/../api/pricing-and-discounts-overview#line-item-price-selection).
8181
When a [relative discount](/../api/projects/productDiscounts#productdiscountvaluerelative) 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](https://en.wikipedia.org/wiki/Rounding#Round_half_down).
82+
83+
If an [absolute discount](ctp:api:type:ProductDiscountValueAbsolute) value exceeds the price of the Product Variant, the discounted price is a negative value.
8284
custom?:
8385
type: CustomFields
8486
description: |

0 commit comments

Comments
 (0)