@Test void toTo() { AisConsentTO result = obaAisConsentMapper.toTo(getCmsAisAccountConsent()); assertEquals(getAisConsentTO(), result); }
public AisConsentTO toTo(CmsAisAccountConsent consent) { return new AisConsentTO(consent.getId(), resolveUserId(consent.getPsuIdDataList()), Optional.ofNullable(consent.getTppInfo()).map(TppInfo::getAuthorisationNumber).orElse(null), consent.getFrequencyPerDay(), toAccess(consent.getAccess()), consent.getValidUntil(), consent.isRecurringIndicator()); }
ObaAisConsentMapper { public AisConsentTO toTo(CmsAisAccountConsent consent) { return new AisConsentTO(consent.getId(), resolveUserId(consent.getPsuIdDataList()), Optional.ofNullable(consent.getTppInfo()).map(TppInfo::getAuthorisationNumber).orElse(null), consent.getFrequencyPerDay(), toAccess(consent.getAccess()), consent.getValidUntil(), consent.isRecurringIndicator()); } }
ObaAisConsentMapper { public AisConsentTO toTo(CmsAisAccountConsent consent) { return new AisConsentTO(consent.getId(), resolveUserId(consent.getPsuIdDataList()), Optional.ofNullable(consent.getTppInfo()).map(TppInfo::getAuthorisationNumber).orElse(null), consent.getFrequencyPerDay(), toAccess(consent.getAccess()), consent.getValidUntil(), consent.isRecurringIndicator()); }  }
ObaAisConsentMapper { public AisConsentTO toTo(CmsAisAccountConsent consent) { return new AisConsentTO(consent.getId(), resolveUserId(consent.getPsuIdDataList()), Optional.ofNullable(consent.getTppInfo()).map(TppInfo::getAuthorisationNumber).orElse(null), consent.getFrequencyPerDay(), toAccess(consent.getAccess()), consent.getValidUntil(), consent.isRecurringIndicator()); }  AisConsentTO toTo(CmsAisAccountConsent consent); AisAccountAccess accountAccess(AisAccountAccessInfoTO access, List<AccountDetailsTO> accountDetails); }
ObaAisConsentMapper { public AisConsentTO toTo(CmsAisAccountConsent consent) { return new AisConsentTO(consent.getId(), resolveUserId(consent.getPsuIdDataList()), Optional.ofNullable(consent.getTppInfo()).map(TppInfo::getAuthorisationNumber).orElse(null), consent.getFrequencyPerDay(), toAccess(consent.getAccess()), consent.getValidUntil(), consent.isRecurringIndicator()); }  AisConsentTO toTo(CmsAisAccountConsent consent); AisAccountAccess accountAccess(AisAccountAccessInfoTO access, List<AccountDetailsTO> accountDetails);  }