@Service public class AccountReferenceInConsentUpdater extends Object
| Constructor and Description |
|---|
AccountReferenceInConsentUpdater() |
| Modifier and Type | Method and Description |
|---|---|
void |
rewriteAccountAccess(@NotNull String consentId,
@NotNull Xs2aAccountAccess newAccountAccess)
Overwrites existing account access with the new one.
|
CmsResponse<AccountConsent> |
updateAccountReferences(@NotNull String consentId,
@NotNull Xs2aAccountAccess existingAccess,
@NotNull List<Xs2aAccountDetails> accountDetails)
Updates account resourceIDs in existing account access.
|
CmsResponse<AccountConsent> |
updateCardAccountReferences(String consentId,
Xs2aAccountAccess existingAccess,
List<Xs2aCardAccountDetails> accountDetails)
Updates card account resource IDs in existing account access.
|
public void rewriteAccountAccess(@NotNull
@NotNull String consentId,
@NotNull
@NotNull Xs2aAccountAccess newAccountAccess)
consentId - an external ID of consent, where account access to be storednewAccountAccess - new object with account accessespublic CmsResponse<AccountConsent> updateAccountReferences(@NotNull @NotNull String consentId, @NotNull @NotNull Xs2aAccountAccess existingAccess, @NotNull @NotNull List<Xs2aAccountDetails> accountDetails)
consentId - an external ID of consent, where account access to be storedexistingAccess - existing account access of the consentaccountDetails - list of account details with referenceId setpublic CmsResponse<AccountConsent> updateCardAccountReferences(String consentId, Xs2aAccountAccess existingAccess, List<Xs2aCardAccountDetails> accountDetails)
consentId - an external ID of consent, where account access to be storedexistingAccess - existing account access of the consentaccountDetails - list of account details with referenceId setCopyright © 2020. All rights reserved.