Class: AdminCurrenciesResource
Hierarchy
default
Copy to Clipboard↳
AdminCurrenciesResource
Copy to Clipboard
Methods
list
▸ list(query?
Copy to Clipboard, customHeaders?
Copy to Clipboard): ResponsePromise
Copy to Clipboard<AdminCurrenciesListRes
Copy to Clipboard>
Description
Copy to Clipboard
Lists currencies.
This feature is under development and may change in the future.
To use this feature please enable featureflag tax_inclusive_pricing
Copy to Clipboard in your medusa backend project.
Parameters
Name | Type |
---|---|
query? Copy to Clipboard | AdminGetCurrenciesParams Copy to Clipboard |
customHeaders Copy to Clipboard | Record Copy to Clipboard<string Copy to Clipboard, any Copy to Clipboard> |
Returns
ResponsePromise
Copy to Clipboard<AdminCurrenciesListRes
Copy to Clipboard>
the list of currencies as well as the pagination properties.
Defined in
medusa-js/src/resources/admin/currencies.ts:20
update
▸ update(code
Copy to Clipboard, payload
Copy to Clipboard, customHeaders?
Copy to Clipboard): ResponsePromise
Copy to Clipboard<AdminCurrenciesRes
Copy to Clipboard>
Description
Copy to Clipboard
Updates a currency
This feature is under development and may change in the future.
To use this feature please enable featureflag tax_inclusive_pricing
Copy to Clipboard in your medusa backend project.
Parameters
Name | Type | Description |
---|---|---|
code Copy to Clipboard | string Copy to Clipboard | code of the currency to update. |
payload Copy to Clipboard | AdminPostCurrenciesCurrencyReq Copy to Clipboard | update to apply to currency. |
customHeaders Copy to Clipboard | Record Copy to Clipboard<string Copy to Clipboard, any Copy to Clipboard> |
Returns
ResponsePromise
Copy to Clipboard<AdminCurrenciesRes
Copy to Clipboard>
the updated currency.