Skip to main content

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

NameType
query?AdminGetCurrenciesParams
customHeadersRecord<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

NameTypeDescription
codestringcode of the currency to update.
payloadAdminPostCurrenciesCurrencyRequpdate to apply to currency.
customHeadersRecord<string, any>

Returns

ResponsePromise<AdminCurrenciesRes>

the updated currency.

Defined in

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