Skip to main content

Class: SwapsResource

Hierarchy

  • default

    SwapsResource

Methods

create

create(payload, customHeaders?): ResponsePromise<StoreSwapsRes>

Description

Creates a swap from a cart

Parameters

NameType
payloadStorePostSwapsReq
customHeadersRecord<string, any>

Returns

ResponsePromise<StoreSwapsRes>

Defined in

medusa-js/src/resources/swaps.ts:12


retrieveByCartId

retrieveByCartId(cart_id, customHeaders?): ResponsePromise<StoreSwapsRes>

Description

Retrieves a swap by cart id

Parameters

NameTypeDescription
cart_idstringid of cart
customHeadersRecord<string, any>

Returns

ResponsePromise<StoreSwapsRes>

Defined in

medusa-js/src/resources/swaps.ts:23

Was this page helpful?