-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated API from documentation release
- Loading branch information
Auto Mation
committed
Sep 28, 2023
1 parent
67d35c4
commit a44de0c
Showing
7 changed files
with
98 additions
and
1 deletion.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
api-specs/api/types/cart-discount/CartDiscountTotalPriceTarget.raml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#%RAML 1.0 DataType | ||
(package): CartDiscount | ||
(beta): true | ||
type: CartDiscountTarget | ||
displayName: CartDiscountTotalPriceTarget | ||
discriminatorValue: totalPrice | ||
description: | | ||
Discount is applied to the total price of the [Cart](ctp:api:type:Cart). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#%RAML 1.0 DataType | ||
(package): Cart | ||
(beta): true | ||
(docs-uri): https://docs.commercetools.com/api/projects/carts#discountontotalprice | ||
displayName: DiscountOnTotalPrice | ||
type: object | ||
properties: | ||
discountedAmount: | ||
type: TypedMoney | ||
description: | | ||
Money value of the discount on the total price of the Cart or Order. | ||
includedDiscounts: | ||
type: DiscountedTotalPricePortion[] | ||
description: | | ||
Discounts that impact the total price of the Cart or Order. | ||
discountedNetAmount?: | ||
type: TypedMoney | ||
description: | | ||
Money value of the discount on the total net price of the Cart or Order. | ||
Present only when `taxedPrice` of the Cart or Order exists. | ||
discountedGrossAmount?: | ||
type: TypedMoney | ||
description: | | ||
Money value of the discount on the total gross price of the Cart or Order. | ||
Present only when `taxedPrice` of the Cart or Order exists. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#%RAML 1.0 DataType | ||
(package): Cart | ||
(beta): true | ||
(docs-uri): https://docs.commercetools.com/api/projects/carts#discountedtotalpriceportion | ||
displayName: DiscountedTotalPricePortion | ||
type: object | ||
properties: | ||
discount: | ||
type: CartDiscountReference | ||
description: | | ||
Cart Discount related to the discounted price. | ||
discountedAmount: | ||
type: TypedMoney | ||
description: | | ||
Money value of the discount. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters