refactor/added the consentReferenceId ConsentProvider

This commit is contained in:
hongwei 2024-12-03 09:10:39 +01:00
parent 6c014e7698
commit e168487152
2 changed files with 6 additions and 0 deletions

View File

@ -180,6 +180,11 @@ trait ConsentTrait {
* Specified end date and time for the transaction query period. If the field does not contain information or if it is not sent in the request, the end date will be 90 calendar days prior to the creation of the consent.
*/
def transactionToDateTime: Date
/**
* this will be a UUID later. now only use the primacyKey.toString for it.
*/
def consentReferenceId: String
}
object ConsentStatus extends Enumeration {

View File

@ -321,6 +321,7 @@ class MappedConsent extends ConsentTrait with LongKeyedMapper[MappedConsent] wit
override def transactionToDateTime= mTransactionToDateTime.get
override def creationDateTime= createdAt.get
override def statusUpdateDateTime= mStatusUpdateDateTime.get
override def consentReferenceId = id.get.toString
}