ReceiptApi class

Constructors

ReceiptApi(String _sdkId)

Properties

encrypted EncryptedReceiptApi
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tryAndRecover TryAndRecoverReceiptApi
final

Methods

createDelegationDeAnonymizationMetadata(Receipt entity, Set<String> delegates) Future<void>
createReceipt(DecryptedReceipt entity) Future<DecryptedReceipt>
decrypt(EncryptedReceipt receipt) Future<DecryptedReceipt>
decryptPatientIdOf(Receipt receipt) Future<Set<String>>
deleteReceipt(String entityId) Future<DocIdentifier>
deleteReceipts(List<String> entityIds) Future<List<DocIdentifier>>
encryptAndSetReceiptAttachment(Receipt receipt, String blobType, Uint8List attachment) Future<EncryptedReceipt>
getAndDecryptReceiptAttachment(Receipt receipt, String attachmentId) Future<Uint8List>
getEncryptionKeysOf(Receipt receipt) Future<Set<HexString>>
getRawReceiptAttachment(String receiptId, String attachmentId) Future<Uint8List>
getReceipt(String entityId) Future<DecryptedReceipt>
hasWriteAccess(Receipt receipt) Future<bool>
listByReference(String reference) Future<List<DecryptedReceipt>>
logReceipt(User user, String docId, List<String> refs, String blobType, Uint8List blob) Future<Receipt>
modifyReceipt(DecryptedReceipt entity) Future<DecryptedReceipt>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setRawReceiptAttachment(String receiptId, String rev, String blobType, Uint8List attachment) Future<EncryptedReceipt>
shareWith(String delegateId, DecryptedReceipt receipt, {ReceiptShareOptions? options}) Future<DecryptedReceipt>
shareWithMany(DecryptedReceipt receipt, Map<String, ReceiptShareOptions> delegates) Future<DecryptedReceipt>
toString() String
A string representation of this object.
inherited
tryDecrypt(EncryptedReceipt receipt) Future<Receipt>
withEncryptionMetadata(DecryptedReceipt? base, Patient? patient, {User? user, Map<String, AccessLevel> delegates = const {}, SecretIdUseOption secretId = SecretIdUseOption.UseAnySharedWithParent}) Future<DecryptedReceipt>

Operators

operator ==(Object other) bool
The equality operator.
inherited