Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action Co-authored-by: Shahed Nasser <27354907+shahednasser@users.noreply.github.com>
1.2 KiB
1.2 KiB
displayed_sidebar
| displayed_sidebar |
|---|
| jsClientSidebar |
Interface: ICartCompletionStrategy
internal.internal.ICartCompletionStrategy
Implemented by
Methods
complete
▸ complete(cartId, idempotencyKey, context): Promise<CartCompletionResponse>
Takes a cart id and completes the cart. This for example takes place when creating an order or confirming a swap.
Parameters
| Name | Type | Description |
|---|---|---|
cartId |
string |
the id of the Cart to complete. |
idempotencyKey |
IdempotencyKey |
the idempotency key for the request |
context |
RequestContext |
the request context for the completion request |
Returns
Promise<CartCompletionResponse>
the response for the completion request
Defined in
packages/medusa/dist/interfaces/cart-completion-strategy.d.ts:19