Package de.adorsys.psd2.model
Class AccountAccess
- java.lang.Object
-
- de.adorsys.psd2.model.AccountAccess
-
@Validated @Generated(value="io.swagger.codegen.v3.generators.java.SpringCodegen", date="2020-11-12T17:35:11.808068+02:00[Europe/Kiev]") public class AccountAccess extends ObjectRequested access services for a consent.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAccountAccess.AllPsd2EnumOptional if supported by API provider.static classAccountAccess.AvailableAccountsEnumOptional if supported by API provider.static classAccountAccess.AvailableAccountsWithBalanceEnumOptional if supported by API provider.
-
Constructor Summary
Constructors Constructor Description AccountAccess()
-
Method Summary
-
-
-
Method Detail
-
accounts
public AccountAccess accounts(List<AccountReference> accounts)
-
addAccountsItem
public AccountAccess addAccountsItem(AccountReference accountsItem)
-
getAccounts
@Valid public @Valid List<AccountReference> getAccounts()
Is asking for detailed account information. If the array is empty in a request, the TPP is asking for an accessible account list. This may be restricted in a PSU/ASPSP authorization dialogue. If the array is empty, also the arrays for balances, additionalInformation sub attributes or transactions shall be empty, if used.- Returns:
- accounts
-
setAccounts
public void setAccounts(List<AccountReference> accounts)
-
balances
public AccountAccess balances(List<AccountReference> balances)
-
addBalancesItem
public AccountAccess addBalancesItem(AccountReference balancesItem)
-
getBalances
@Valid public @Valid List<AccountReference> getBalances()
Is asking for balances of the addressed accounts. If the array is empty in the request, the TPP is asking for the balances of all accessible account lists. This may be restricted in a PSU/ASPSP authorization dialogue. If the array is empty, also the arrays for accounts, additionalInformation sub attributes or transactions shall be empty, if used.- Returns:
- balances
-
setBalances
public void setBalances(List<AccountReference> balances)
-
transactions
public AccountAccess transactions(List<AccountReference> transactions)
-
addTransactionsItem
public AccountAccess addTransactionsItem(AccountReference transactionsItem)
-
getTransactions
@Valid public @Valid List<AccountReference> getTransactions()
Is asking for transactions of the addressed accounts. If the array is empty in the request, the TPP is asking for the transactions of all accessible account lists. This may be restricted in a PSU/ASPSP authorization dialogue. If the array is empty, also the arrays for accounts, additionalInformation sub attributes or balances shall be empty, if used.- Returns:
- transactions
-
setTransactions
public void setTransactions(List<AccountReference> transactions)
-
additionalInformation
public AccountAccess additionalInformation(AdditionalInformationAccess additionalInformation)
-
getAdditionalInformation
@Valid public @Valid AdditionalInformationAccess getAdditionalInformation()
Get additionalInformation- Returns:
- additionalInformation
-
setAdditionalInformation
public void setAdditionalInformation(AdditionalInformationAccess additionalInformation)
-
availableAccounts
public AccountAccess availableAccounts(AccountAccess.AvailableAccountsEnum availableAccounts)
-
getAvailableAccounts
public AccountAccess.AvailableAccountsEnum getAvailableAccounts()
Optional if supported by API provider. The values \"allAccounts\" and \"allAccountsWithOwnerName\" are admitted. The support of the \"allAccountsWithOwnerName\" value by the ASPSP is optional.- Returns:
- availableAccounts
-
setAvailableAccounts
public void setAvailableAccounts(AccountAccess.AvailableAccountsEnum availableAccounts)
-
availableAccountsWithBalance
public AccountAccess availableAccountsWithBalance(AccountAccess.AvailableAccountsWithBalanceEnum availableAccountsWithBalance)
-
getAvailableAccountsWithBalance
public AccountAccess.AvailableAccountsWithBalanceEnum getAvailableAccountsWithBalance()
Optional if supported by API provider. The values \"allAccounts\" and \"allAccountsWithOwnerName\" are admitted. The support of the \"allAccountsWithOwnerName\" value by the ASPSP is optional.- Returns:
- availableAccountsWithBalance
-
setAvailableAccountsWithBalance
public void setAvailableAccountsWithBalance(AccountAccess.AvailableAccountsWithBalanceEnum availableAccountsWithBalance)
-
allPsd2
public AccountAccess allPsd2(AccountAccess.AllPsd2Enum allPsd2)
-
getAllPsd2
public AccountAccess.AllPsd2Enum getAllPsd2()
Optional if supported by API provider. The values \"allAccounts\" and \"allAccountsWithOwnerName\" are admitted. The support of the \"allAccountsWithOwnerName\" value by the ASPSP is optional.- Returns:
- allPsd2
-
setAllPsd2
public void setAllPsd2(AccountAccess.AllPsd2Enum allPsd2)
-
restrictedTo
public AccountAccess restrictedTo(List<String> restrictedTo)
-
addRestrictedToItem
public AccountAccess addRestrictedToItem(String restrictedToItem)
-
getRestrictedTo
public List<String> getRestrictedTo()
If the TPP requests access to accounts via availableAccounts (List of available accounts), global or bank driven consents, the TPP may include this element to restrict access to the referred account types. Absence of the element is interpreted as \"no restriction\" (therefore access to accounts of all types is requested). The element may only occur, if each of the elements - accounts - balances - transactions is either not present or contains an empty array.- Returns:
- restrictedTo
-
-