Files
medusa-store/www/apps/docs/content/references/js-client/interfaces/internal-8.internal.ICartCompletionStrategy.md
github-actions[bot] daea35fe73 chore(docs): Generated JS Client Reference (#5334)
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>
2023-10-10 17:47:07 +00:00

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