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