Skip to content

Commit 85ec5b5

Browse files
committed
Updated API from documentation release
1 parent 1b925f1 commit 85ec5b5

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ enum:
1616
1717
The quantity cannot be [increased](ctp:api:type:CartChangeLineItemQuantityAction), and it won't be merged when [adding](ctp:api:type:CartAddLineItemAction) the same Line Item to the Cart.
1818
If the gift is [removed](ctp:api:type:CartRemoveLineItemAction), an entry is added to the `refusedGifts` array and the discount won't be applied to the Cart.
19-
The price cannot be changed [externally](ctp:api:type:CartSetLineItemTotalPriceAction).
19+
20+
The `totalPrice` is always `0` and cannot be changed externally via the [setLineItemTotalPrice](ctp:api:type:CartSetLineItemTotalPriceAction) action.
2021
2122
All other updates, such as the ones related to Custom Fields, can be used.

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ discriminatorValue: setLineItemTotalPrice
66
example: !include ../../../examples/Cart/CartSetLineItemTotalPriceAction.json
77
description: |
88
Sets the [LineItem](ctp:api:type:LineItem) `totalPrice` and `price`, and changes the `priceMode` to `ExternalTotal` [LineItemPriceMode](ctp:api:type:LineItemPriceMode).
9+
Cannot be used on Gift Line Items (see [LineItemMode](ctp:api:type:LineItemMode)).
910
properties:
1011
lineItemId?:
1112
type: string

api-specs/checkout/api.raml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ traits:
8383
projectKey:
8484
type: string
8585
description: Identifier of your Checkout entity and `key` of your [Project](/../api/projects/project#project).
86+
displayName: Project
8687
/payment-intents:
88+
displayName: Payment Intents
8789
/{paymentId}:
8890
(annotations.methodName): withPaymentId
8991
uriParameters:
@@ -92,6 +94,7 @@ traits:
9294
description: |
9395
`id` of the [Payment](/../api/projects/payments).
9496
post:
97+
displayName: Manage Payment by ID
9598
is:
9699
- secured_by_manage_payments
97100
body:
@@ -111,7 +114,9 @@ traits:
111114
body:
112115
type: ErrorResponse
113116
/transactions:
117+
displayName: Transactions
114118
post:
119+
displayName: Create Transaction
115120
is:
116121
- secured_by_manage_transactions
117122
body:
@@ -141,6 +146,7 @@ traits:
141146
description: |
142147
`id` of the [Transaction](/transactions-api#transaction).
143148
get:
149+
displayName: Get Transaction by ID
144150
is:
145151
- secured_by_view_transactions
146152
description: |
@@ -164,6 +170,7 @@ traits:
164170
description: |
165171
`key` of the [Transaction](/transactions-api#transaction).
166172
get:
173+
displayName: Get Transaction by key
167174
is:
168175
- secured_by_view_transactions
169176
description: |

0 commit comments

Comments
 (0)