LookupsRepository
Repository for the lookups
endpoints. Generally, the API lookups are considered static. We can safely cache the responses in memory and reuse them so long as the requested locale remains the same between requests
Functions
Link copied to clipboard
fun fetchCategories(locale: Locale, forceRefresh: Boolean = false): LiveData<DataProviderLiveRequest<CategoriesResponse>>
Fetch the list of API defined document categories for the given locale Will use cached value if it exists, the provided locale matches the cache, and forceRefresh is false
Link copied to clipboard
fun fetchCurrencies(locale: Locale, forceRefresh: Boolean = false): LiveData<DataProviderLiveRequest<CurrenciesResponse>>
Fetch the list of API supported currencies for the given locale Will use cached value if it exists, the provided locale matches the cache, and forceRefresh is false
Link copied to clipboard
Fetch the list of API supported locales. Will use cached value if it exists and forceRefresh is false