LookupsDataProvider

interface LookupsDataProvider

Data provider containing requests to the "Lookups" endpoints. The lookups endpoints provide information on some API defined user-presentable content:

  • getLocales - the locales supported by the API for lookups requests

  • getCurrencies - The currencies supported by the API (document data)

  • getCategories - The document categories defined by the API (document data)

Functions

getCategories
Link copied to clipboard
abstract suspend fun getCategories(locale: String?): DataProviderResponse<CategoriesResponse>
Fetch the list of available document categories
getCurrencies
Link copied to clipboard
abstract suspend fun getCurrencies(locale: String?): DataProviderResponse<CurrenciesResponse>
Fetch the list of API supported currencies
getLocales
Link copied to clipboard
abstract suspend fun getLocales(): DataProviderResponse<LocalesResponse>
Fetch the list of locales supported by the API

Inheritors

TestLookupsDataProvider
Link copied to clipboard
LookupsDataProviderImpl
Link copied to clipboard