Inventoryz
Blueprint for managing a store's (your applications) entire collection of available products (inventory)
Functions
Link copied to clipboard
Search for a specified product by sku id.
Link copied to clipboard
abstract fun getProducts(type: Productz.Type?, promo: Productz.Promotion?): Map<String, Productz>
Content copied to clipboard
Get all available products (in cache), set productType to null to query all products. Available products are validated. Note: the list will be empty if the inventory has not been properly updated.
Link copied to clipboard
Link copied to clipboard
Validates if the inventory has collection of verified skus cached in-memory.
Link copied to clipboard
abstract fun queryInventory(products: Map<String, Productz.Type>): QueryResult<Map<String, Productz>>
Content copied to clipboard
Link copied to clipboard
abstract fun queryProduct(sku: String, type: Productz.Type): QueryResult<Productz>
Content copied to clipboard
kotlin coroutine function for querying a specific product
Link copied to clipboard
abstract fun updateInventory(products: List<Productz>?, type: Productz.Type)
Content copied to clipboard