package pl.firmatpp.kierowca.data.upload

import pl.firmatpp.kierowca.data.model.DispatchSheetUploadReceiptDto

object DispatchSheetUploadReceiptVerifier {
    fun matches(upload: DispatchSheetUploadEntity, receipt: DispatchSheetUploadReceiptDto): Boolean =
        upload.clientRequestId == receipt.clientRequestId &&
            upload.contentSha256.equals(receipt.contentSha256, ignoreCase = true) &&
            receipt.serverPhotoId.isNotBlank()
}
