ReceiptsApi

open class ReceiptsApi

Class for interfacing with the snabble Receipts API

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
open class ApiLink
Data class for api links
Link copied to clipboard
open class ApiOrder
Data class for api orders
Link copied to clipboard
open class ApiReceipt
Data class for api receipts
Link copied to clipboard
Interface for getting the raw receipts response
Link copied to clipboard
Interface for getting the a parsed receipts response

Functions

Link copied to clipboard
open fun get(receiptUpdateCallback: ReceiptsApi.ReceiptUpdateCallback)
Fetch receipts from the backend, parsed as a list of ReceiptInfo
Link copied to clipboard
open fun getRaw(rawReceiptUpdateCallback: ReceiptsApi.RawReceiptUpdateCallback)
Fetch receipts from the backend, providing the raw json document as a data class