import { Client } from '../client'; import type { Models } from '../models'; import { MarketStatus } from '../enums/market-status'; export declare class Markets { client: Client; constructor(client: Client); /** * * @param {number} params.limit - Page size (default 50, max 200). * @param {number} params.offset - Row offset for pagination (default 0). * @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'. * @throws {RevenexxException} * @returns {Promise<{}>} */ marketsList(params?: { limit?: number; offset?: number; order?: string; }): Promise<{}>; /** * * @param {number} limit - Page size (default 50, max 200). * @param {number} offset - Row offset for pagination (default 0). * @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'. * @throws {RevenexxException} * @returns {Promise<{}>} * @deprecated Use the object parameter style method for a better developer experience. */ marketsList(limit?: number, offset?: number, order?: string): Promise<{}>; /** * * @param {string} params.code - Market code (unique per tenant). * @param {string} params.name - * @param {string} params.currency - ISO 4217 code (default 'EUR'). * @param {boolean} params.isDefault - * @param {object} params.labels - Localized display names ({locale: label}). * @param {number} params.position - Sort position (default 0). * @param {MarketStatus} params.status - Default 'active'. * @throws {RevenexxException} * @returns {Promise} */ marketsCreate(params: { code: string; name: string; currency?: string; isDefault?: boolean; labels?: object; position?: number; status?: MarketStatus; }): Promise; /** * * @param {string} code - Market code (unique per tenant). * @param {string} name - * @param {string} currency - ISO 4217 code (default 'EUR'). * @param {boolean} isDefault - * @param {object} labels - Localized display names ({locale: label}). * @param {number} position - Sort position (default 0). * @param {MarketStatus} status - Default 'active'. * @throws {RevenexxException} * @returns {Promise} * @deprecated Use the object parameter style method for a better developer experience. */ marketsCreate(code: string, name: string, currency?: string, isDefault?: boolean, labels?: object, position?: number, status?: MarketStatus): Promise; /** * * @param {string} params.id - * @throws {RevenexxException} * @returns {Promise<{}>} */ marketsDelete(params: { id: string; }): Promise<{}>; /** * * @param {string} id - * @throws {RevenexxException} * @returns {Promise<{}>} * @deprecated Use the object parameter style method for a better developer experience. */ marketsDelete(id: string): Promise<{}>; /** * * @param {string} params.id - * @throws {RevenexxException} * @returns {Promise} */ marketsGet(params: { id: string; }): Promise; /** * * @param {string} id - * @throws {RevenexxException} * @returns {Promise} * @deprecated Use the object parameter style method for a better developer experience. */ marketsGet(id: string): Promise; /** * * @param {string} params.id - * @param {string} params.code - Market code (unique per tenant). * @param {string} params.currency - ISO 4217 code (default 'EUR'). * @param {boolean} params.isDefault - * @param {object} params.labels - Localized display names ({locale: label}). * @param {string} params.name - * @param {number} params.position - Sort position (default 0). * @param {MarketStatus} params.status - Default 'active'. * @throws {RevenexxException} * @returns {Promise} */ marketsUpdate(params: { id: string; code?: string; currency?: string; isDefault?: boolean; labels?: object; name?: string; position?: number; status?: MarketStatus; }): Promise; /** * * @param {string} id - * @param {string} code - Market code (unique per tenant). * @param {string} currency - ISO 4217 code (default 'EUR'). * @param {boolean} isDefault - * @param {object} labels - Localized display names ({locale: label}). * @param {string} name - * @param {number} position - Sort position (default 0). * @param {MarketStatus} status - Default 'active'. * @throws {RevenexxException} * @returns {Promise} * @deprecated Use the object parameter style method for a better developer experience. */ marketsUpdate(id: string, code?: string, currency?: string, isDefault?: boolean, labels?: object, name?: string, position?: number, status?: MarketStatus): Promise; /** * * @param {string} params.id - * @throws {RevenexxException} * @returns {Promise} */ marketsContext(params: { id: string; }): Promise; /** * * @param {string} id - * @throws {RevenexxException} * @returns {Promise} * @deprecated Use the object parameter style method for a better developer experience. */ marketsContext(id: string): Promise; /** * * @param {string} params.marketId - * @param {number} params.limit - Page size (default 50, max 200). * @param {number} params.offset - Row offset for pagination (default 0). * @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'. * @throws {RevenexxException} * @returns {Promise<{}>} */ marketsCurrenciesList(params: { marketId: string; limit?: number; offset?: number; order?: string; }): Promise<{}>; /** * * @param {string} marketId - * @param {number} limit - Page size (default 50, max 200). * @param {number} offset - Row offset for pagination (default 0). * @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'. * @throws {RevenexxException} * @returns {Promise<{}>} * @deprecated Use the object parameter style method for a better developer experience. */ marketsCurrenciesList(marketId: string, limit?: number, offset?: number, order?: string): Promise<{}>; /** * * @param {string} params.marketId - * @param {string} params.code - ISO 4217 code, e.g. EUR (unique per market). * @param {boolean} params.isDefault - * @param {number} params.position - Sort position (default 0). * @throws {RevenexxException} * @returns {Promise} */ marketsCurrenciesCreate(params: { marketId: string; code: string; isDefault?: boolean; position?: number; }): Promise; /** * * @param {string} marketId - * @param {string} code - ISO 4217 code, e.g. EUR (unique per market). * @param {boolean} isDefault - * @param {number} position - Sort position (default 0). * @throws {RevenexxException} * @returns {Promise} * @deprecated Use the object parameter style method for a better developer experience. */ marketsCurrenciesCreate(marketId: string, code: string, isDefault?: boolean, position?: number): Promise; /** * * @param {string} params.marketId - * @param {string} params.id - * @throws {RevenexxException} * @returns {Promise<{}>} */ marketsCurrenciesDelete(params: { marketId: string; id: string; }): Promise<{}>; /** * * @param {string} marketId - * @param {string} id - * @throws {RevenexxException} * @returns {Promise<{}>} * @deprecated Use the object parameter style method for a better developer experience. */ marketsCurrenciesDelete(marketId: string, id: string): Promise<{}>; /** * * @param {string} params.marketId - * @param {string} params.id - * @throws {RevenexxException} * @returns {Promise} */ marketsCurrenciesGet(params: { marketId: string; id: string; }): Promise; /** * * @param {string} marketId - * @param {string} id - * @throws {RevenexxException} * @returns {Promise} * @deprecated Use the object parameter style method for a better developer experience. */ marketsCurrenciesGet(marketId: string, id: string): Promise; /** * * @param {string} params.marketId - * @param {string} params.id - * @param {string} params.code - ISO 4217 code, e.g. EUR (unique per market). * @param {boolean} params.isDefault - * @param {number} params.position - Sort position (default 0). * @throws {RevenexxException} * @returns {Promise} */ marketsCurrenciesUpdate(params: { marketId: string; id: string; code?: string; isDefault?: boolean; position?: number; }): Promise; /** * * @param {string} marketId - * @param {string} id - * @param {string} code - ISO 4217 code, e.g. EUR (unique per market). * @param {boolean} isDefault - * @param {number} position - Sort position (default 0). * @throws {RevenexxException} * @returns {Promise} * @deprecated Use the object parameter style method for a better developer experience. */ marketsCurrenciesUpdate(marketId: string, id: string, code?: string, isDefault?: boolean, position?: number): Promise; /** * * @param {string} params.marketId - * @param {number} params.limit - Page size (default 50, max 200). * @param {number} params.offset - Row offset for pagination (default 0). * @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'. * @throws {RevenexxException} * @returns {Promise<{}>} */ marketsLocalesList(params: { marketId: string; limit?: number; offset?: number; order?: string; }): Promise<{}>; /** * * @param {string} marketId - * @param {number} limit - Page size (default 50, max 200). * @param {number} offset - Row offset for pagination (default 0). * @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'. * @throws {RevenexxException} * @returns {Promise<{}>} * @deprecated Use the object parameter style method for a better developer experience. */ marketsLocalesList(marketId: string, limit?: number, offset?: number, order?: string): Promise<{}>; /** * * @param {string} params.marketId - * @param {string} params.code - Locale code, e.g. 'de-DE' (unique per market). * @param {string} params.country - ISO 3166-1 alpha-2 country code. * @param {string} params.language - ISO 639-1 language code. * @param {boolean} params.isDefault - * @param {number} params.position - Sort position (default 0). * @throws {RevenexxException} * @returns {Promise} */ marketsLocalesCreate(params: { marketId: string; code: string; country: string; language: string; isDefault?: boolean; position?: number; }): Promise; /** * * @param {string} marketId - * @param {string} code - Locale code, e.g. 'de-DE' (unique per market). * @param {string} country - ISO 3166-1 alpha-2 country code. * @param {string} language - ISO 639-1 language code. * @param {boolean} isDefault - * @param {number} position - Sort position (default 0). * @throws {RevenexxException} * @returns {Promise} * @deprecated Use the object parameter style method for a better developer experience. */ marketsLocalesCreate(marketId: string, code: string, country: string, language: string, isDefault?: boolean, position?: number): Promise; /** * * @param {string} params.marketId - * @param {string} params.id - * @throws {RevenexxException} * @returns {Promise<{}>} */ marketsLocalesDelete(params: { marketId: string; id: string; }): Promise<{}>; /** * * @param {string} marketId - * @param {string} id - * @throws {RevenexxException} * @returns {Promise<{}>} * @deprecated Use the object parameter style method for a better developer experience. */ marketsLocalesDelete(marketId: string, id: string): Promise<{}>; /** * * @param {string} params.marketId - * @param {string} params.id - * @throws {RevenexxException} * @returns {Promise} */ marketsLocalesGet(params: { marketId: string; id: string; }): Promise; /** * * @param {string} marketId - * @param {string} id - * @throws {RevenexxException} * @returns {Promise} * @deprecated Use the object parameter style method for a better developer experience. */ marketsLocalesGet(marketId: string, id: string): Promise; /** * * @param {string} params.marketId - * @param {string} params.id - * @param {string} params.code - Locale code, e.g. 'de-DE' (unique per market). * @param {string} params.country - ISO 3166-1 alpha-2 country code. * @param {boolean} params.isDefault - * @param {string} params.language - ISO 639-1 language code. * @param {number} params.position - Sort position (default 0). * @throws {RevenexxException} * @returns {Promise} */ marketsLocalesUpdate(params: { marketId: string; id: string; code?: string; country?: string; isDefault?: boolean; language?: string; position?: number; }): Promise; /** * * @param {string} marketId - * @param {string} id - * @param {string} code - Locale code, e.g. 'de-DE' (unique per market). * @param {string} country - ISO 3166-1 alpha-2 country code. * @param {boolean} isDefault - * @param {string} language - ISO 639-1 language code. * @param {number} position - Sort position (default 0). * @throws {RevenexxException} * @returns {Promise} * @deprecated Use the object parameter style method for a better developer experience. */ marketsLocalesUpdate(marketId: string, id: string, code?: string, country?: string, isDefault?: boolean, language?: string, position?: number): Promise; /** * * @param {string} params.marketId - * @param {number} params.limit - Page size (default 50, max 200). * @param {number} params.offset - Row offset for pagination (default 0). * @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'. * @throws {RevenexxException} * @returns {Promise<{}>} */ marketsTaxClassesList(params: { marketId: string; limit?: number; offset?: number; order?: string; }): Promise<{}>; /** * * @param {string} marketId - * @param {number} limit - Page size (default 50, max 200). * @param {number} offset - Row offset for pagination (default 0). * @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'. * @throws {RevenexxException} * @returns {Promise<{}>} * @deprecated Use the object parameter style method for a better developer experience. */ marketsTaxClassesList(marketId: string, limit?: number, offset?: number, order?: string): Promise<{}>; /** * * @param {string} params.marketId - * @param {string} params.code - Tax class code (unique per market). * @param {string} params.name - * @param {boolean} params.isDefault - * @param {object} params.labels - Localized display names ({locale: label}). * @param {number} params.position - Sort position (default 0). * @param {number} params.rate - Tax rate in percent, 0–100 (default 0). * @throws {RevenexxException} * @returns {Promise} */ marketsTaxClassesCreate(params: { marketId: string; code: string; name: string; isDefault?: boolean; labels?: object; position?: number; rate?: number; }): Promise; /** * * @param {string} marketId - * @param {string} code - Tax class code (unique per market). * @param {string} name - * @param {boolean} isDefault - * @param {object} labels - Localized display names ({locale: label}). * @param {number} position - Sort position (default 0). * @param {number} rate - Tax rate in percent, 0–100 (default 0). * @throws {RevenexxException} * @returns {Promise} * @deprecated Use the object parameter style method for a better developer experience. */ marketsTaxClassesCreate(marketId: string, code: string, name: string, isDefault?: boolean, labels?: object, position?: number, rate?: number): Promise; /** * * @param {string} params.marketId - * @param {string} params.id - * @throws {RevenexxException} * @returns {Promise<{}>} */ marketsTaxClassesDelete(params: { marketId: string; id: string; }): Promise<{}>; /** * * @param {string} marketId - * @param {string} id - * @throws {RevenexxException} * @returns {Promise<{}>} * @deprecated Use the object parameter style method for a better developer experience. */ marketsTaxClassesDelete(marketId: string, id: string): Promise<{}>; /** * * @param {string} params.marketId - * @param {string} params.id - * @throws {RevenexxException} * @returns {Promise} */ marketsTaxClassesGet(params: { marketId: string; id: string; }): Promise; /** * * @param {string} marketId - * @param {string} id - * @throws {RevenexxException} * @returns {Promise} * @deprecated Use the object parameter style method for a better developer experience. */ marketsTaxClassesGet(marketId: string, id: string): Promise; /** * * @param {string} params.marketId - * @param {string} params.id - * @param {string} params.code - Tax class code (unique per market). * @param {boolean} params.isDefault - * @param {object} params.labels - Localized display names ({locale: label}). * @param {string} params.name - * @param {number} params.position - Sort position (default 0). * @param {number} params.rate - Tax rate in percent, 0–100 (default 0). * @throws {RevenexxException} * @returns {Promise} */ marketsTaxClassesUpdate(params: { marketId: string; id: string; code?: string; isDefault?: boolean; labels?: object; name?: string; position?: number; rate?: number; }): Promise; /** * * @param {string} marketId - * @param {string} id - * @param {string} code - Tax class code (unique per market). * @param {boolean} isDefault - * @param {object} labels - Localized display names ({locale: label}). * @param {string} name - * @param {number} position - Sort position (default 0). * @param {number} rate - Tax rate in percent, 0–100 (default 0). * @throws {RevenexxException} * @returns {Promise} * @deprecated Use the object parameter style method for a better developer experience. */ marketsTaxClassesUpdate(marketId: string, id: string, code?: string, isDefault?: boolean, labels?: object, name?: string, position?: number, rate?: number): Promise; }