Skip to content

Commit d084ab1

Browse files
committed
Updated API from documentation release
1 parent c841db1 commit d084ab1

19 files changed

+35
-1
lines changed

api-specs/api/types/cart/CustomLineItemDraft.raml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ properties:
2525
description: |
2626
Money value of the Custom Line Item.
2727
The value can be negative.
28+
29+
To set the money value in high precision, use [HighPrecisionMoneyDraft](ctp:api:type:HighPrecisionMoneyDraft).
2830
slug:
2931
type: string
3032
description: |

api-specs/api/types/cart/ExternalLineItemTotalPrice.raml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ properties:
77
type: Money
88
description: |
99
Price of the Line Item.
10+
11+
To set the money value in high precision, use [HighPrecisionMoneyDraft](ctp:api:type:HighPrecisionMoneyDraft).
1012
totalPrice:
1113
type: Money
1214
description: |

api-specs/api/types/cart/LineItemDraft.raml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ properties:
5757
type: Money
5858
description: |
5959
Sets the [LineItem](ctp:api:type:LineItem) `price` value, and the `priceMode` to `ExternalPrice` [LineItemPriceMode](ctp:api:type:LineItemPriceMode).
60+
61+
To set the money value in high precision, use [HighPrecisionMoneyDraft](ctp:api:type:HighPrecisionMoneyDraft).
6062
externalTotalPrice?:
6163
type: ExternalLineItemTotalPrice
6264
description: |

api-specs/api/types/cart/updates/CartAddCustomLineItemAction.raml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ properties:
2020
description: |
2121
Money value of the Custom Line Item.
2222
The value can be negative.
23+
24+
To set the money value in high precision, use [HighPrecisionMoneyDraft](ctp:api:type:HighPrecisionMoneyDraft).
2325
name:
2426
type: LocalizedString
2527
description: |

api-specs/api/types/cart/updates/CartAddLineItemAction.raml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ properties:
7171
type: Money
7272
description: |
7373
Sets the [LineItem](ctp:api:type:LineItem) `price` value, and the `priceMode` to `ExternalPrice` [LineItemPriceMode](ctp:api:type:LineItemPriceMode).
74+
75+
To set the money value in high precision, use [HighPrecisionMoneyDraft](ctp:api:type:HighPrecisionMoneyDraft).
7476
externalTotalPrice?:
7577
type: ExternalLineItemTotalPrice
7678
description: |

api-specs/api/types/cart/updates/CartChangeCustomLineItemMoneyAction.raml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ properties:
1717
type: Money
1818
description: |
1919
Value to set. Must not be empty. Can be a negative amount.
20+
21+
To set the money value in high precision, use [HighPrecisionMoneyDraft](ctp:api:type:HighPrecisionMoneyDraft).

api-specs/api/types/cart/updates/CartChangeLineItemQuantityAction.raml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ properties:
4242
Sets the [LineItem](ctp:api:type:LineItem) `price` to the given value when changing the quantity of a Line Item.
4343
4444
The LineItem price is updated as described in Line Item price selection.
45+
46+
To set the money value in high precision, use [HighPrecisionMoneyDraft](ctp:api:type:HighPrecisionMoneyDraft).
4547
externalTotalPrice?:
4648
type: ExternalLineItemTotalPrice
4749
description: |

api-specs/api/types/cart/updates/CartRemoveLineItemAction.raml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ properties:
2626
type: Money
2727
description: |
2828
Sets the [LineItem](ctp:api:type:LineItem) `price` to the given value when decreasing the quantity of a Line Item with the `ExternalPrice` [LineItemPriceMode](ctp:api:type:LineItemPriceMode).
29+
30+
To set the money value in high precision, use [HighPrecisionMoneyDraft](ctp:api:type:HighPrecisionMoneyDraft).
2931
externalTotalPrice?:
3032
type: ExternalLineItemTotalPrice
3133
description: |

api-specs/api/types/cart/updates/CartSetLineItemPriceAction.raml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,5 @@ properties:
2020
description: |
2121
Value to set.
2222
If `externalPrice` is not given and the `priceMode` is `ExternalPrice`, the external price is unset and the `priceMode` is set to `Platform`.
23+
24+
To set the money value in high precision, use [HighPrecisionMoneyDraft](ctp:api:type:HighPrecisionMoneyDraft).

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ properties:
77
type: Money
88
description: |
99
Sets the money value for the discounted price.
10-
1110
To set the money value in high precision, use [HighPrecisionMoneyDraft](ctp:api:type:HighPrecisionMoneyDraft).
1211
discount:
1312
type: ProductDiscountReference

0 commit comments

Comments
 (0)