import { NonNullablePaths } from '@wix/sdk-types'; /** * A currency that can be displayed on a site. * Site currencies control which currencies visitors can view prices in. * When a currency is enabled for a site, prices are automatically converted from their original currency using up-to-date exchange rates. */ interface SiteCurrency { /** * Three-letter currency code, in [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes) format. * @maxLength 3 * @format CURRENCY */ code?: string; } interface SetCurrenciesRequest { /** * List of currencies to enable for the site. * This list replaces any previously configured currencies. * Pass an empty array to disable currency conversion. * @maxSize 156 */ currencies?: SiteCurrency[]; } interface SetCurrenciesResponse { } interface GetCurrenciesRequest { } interface GetCurrenciesResponse { /** List of currencies currently enabled for the site. */ currencies?: SiteCurrency[]; } interface SetCheckoutCurrenciesRequest { /** * The new checkout currency list * @maxSize 156 */ currencies?: SiteCurrency[]; } interface SetCheckoutCurrenciesResponse { } interface GetCheckoutCurrenciesRequest { } interface GetCheckoutCurrenciesResponse { /** Currencies supported in checkout */ currencies?: SiteCurrency[]; } /** * Sets the list of currencies that can be displayed on the site. * * When you set currencies for a site, visitors can view prices in any of these currencies. * Prices are automatically converted using up-to-date exchange rates. * The supplied list completely replaces the previous currency list. * * To disable currency conversion entirely, pass an empty array. * @public * @permissionId CURRENCY_CONVERTER.MODIFY_SITE_CURRENCIES * @applicableIdentity APP * @fqn com.wixpress.currency.site.settings.api.v1.SiteCurrencySettings.SetCurrencies */ declare function setCurrencies(options?: SetCurrenciesOptions): Promise; interface SetCurrenciesOptions { /** * List of currencies to enable for the site. * This list replaces any previously configured currencies. * Pass an empty array to disable currency conversion. * @maxSize 156 */ currencies?: SiteCurrency[]; } /** * Retrieves the list of currencies that can be displayed on the site. * * Returns all currencies that are currently enabled for the site. * Visitors can view prices in any of these currencies. * @public * @permissionId CURRENCY_CONVERTER.READ_SITE_CURRENCIES * @applicableIdentity APP * @fqn com.wixpress.currency.site.settings.api.v1.SiteCurrencySettings.GetCurrencies */ declare function getCurrencies(): Promise>; export { type GetCheckoutCurrenciesRequest, type GetCheckoutCurrenciesResponse, type GetCurrenciesRequest, type GetCurrenciesResponse, type SetCheckoutCurrenciesRequest, type SetCheckoutCurrenciesResponse, type SetCurrenciesOptions, type SetCurrenciesRequest, type SetCurrenciesResponse, type SiteCurrency, getCurrencies, setCurrencies };