exportBillAsPDF

suspend fun exportBillAsPDF(bill: Bill, applicationId: String): ApiResult<Uri>

Creates a pdf file containing a bill from the user's bill list

Return

(Success) ->ApiResult.Success<Uri> containing a Uri for the newly created PDF File
(Generic Error) ->ApiResult.GenericError with codes:
250 -> User is not logged in
400 -> Returns if the bill could not be exported
401 -> Unauthorized
403 -> Returns if the appUser is not authorized to access the bill
440 -> Returns if the bill could not be found
405 -> Returns if failed to save pdf to storage
440 -> Failed to Refresh Token
499 -> Unknown Error occurred
(Network Error) ->ApiResult.NetworkError\

Parameters

bill

Bill which should be exported to a PDF file

applicationId

String Valid application id of the calling application. Used for FileProvider Authority