Class: SwapsResource
Hierarchy
default
↳
SwapsResource
Methods
create
▸ create(payload
, customHeaders?
): ResponsePromise
<StoreSwapsRes
>
Description
Creates a swap from a cart
Parameters
Name | Type |
---|---|
payload | StorePostSwapsReq |
customHeaders | Record <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
Name | Type | Description |
---|---|---|
cart_id | string | id of cart |
customHeaders | Record <string , any > |
Returns
ResponsePromise
<StoreSwapsRes
>