class Xs2aToSpiPiisConsentMapper {

    public abstract SpiPiisConsent mapToSpiPiisConsent(PiisConsent piisConsent)@Mapping(target = "account", expression = "java(toSpiAccountReference(piisConsent.getAccountReference()))")
    @Mapping(target = "cardExpiryDate", source = "consentData.cardExpiryDate")
    @Mapping(target = "cardInformation", source = "consentData.cardInformation")
    @Mapping(target = "cardNumber", source = "consentData.cardNumber")
    @Mapping(target = "psuData", source = "psuIdDataList")
    @Mapping(target = "registrationInformation", source = "consentData.registrationInformation")
    @Mapping(target = "requestDateTime", source = "creationTimestamp")
    @Mapping(target = "tppAuthorisationNumber", source = "consentTppInformation.tppInfo.authorisationNumber")
    public abstract SpiPiisConsent mapToSpiPiisConsent(PiisConsent piisConsent);

}