Skip to content

Commit

Permalink
Updated API from documentation release
Browse files Browse the repository at this point in the history
  • Loading branch information
ct-sdks[bot] committed May 16, 2024
1 parent a7b0a9c commit 9478271
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions api-specs/api/resources/orders.raml
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,9 @@ post:
post:
description: |
You can either create multiple Order Edits for an Order and apply them sequentially to an Order, or create multiple Order Edits parallelly (as alternatives to each other) and apply one of them to the Order.
You can only create an Order Edit if the [InventoryMode](/projects/carts#inventorymode) of the Order and its [LineItems](/projects/carts#lineitem) is `None`.
securedBy: [oauth_2_0: { scopes: ['manage_order_edits:{projectKey}'] }]
body:
application/json:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ type: OrderEditUpdateAction
displayName: OrderEditAddStagedActionAction
discriminatorValue: addStagedAction
description: |
If the [edit was applied](ctp:api:endpoint:/{projectKey}/orders/edits/{id}/apply:POST), this cannot be updated.
The `stagedActions` field cannot be updated if the Order Edit `result` is [OrderEdit Applied](/projects/order-edits#orderedit-applied).
properties:
stagedAction:
type: StagedOrderUpdateAction
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ type: OrderEditUpdateAction
displayName: OrderEditSetStagedActionsAction
discriminatorValue: setStagedActions
description: |
If the [edit is applied](ctp:api:endpoint:/{projectKey}/orders/edits/{id}/apply:POST), `stagedActions` cannot be updated.
The `stagedActions` field cannot be updated if the Order Edit `result` is [OrderEdit Applied](/projects/order-edits#orderedit-applied).
properties:
stagedActions:
type: StagedOrderUpdateAction[]
Expand Down

0 comments on commit 9478271

Please sign in to comment.