Files
medusa-store/docs/content/references/js-client/classes/AdminCurrenciesResource.md
Shahed Nasser 8ca9354c50 docs: updated js client reference (#2414)
* docs: updated js client reference

* docs: fixed link
2022-10-11 16:32:41 +03:00

2.1 KiB

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.

Defined in

medusa-js/src/resources/admin/currencies.ts:43