Package com.adyen.model.marketpayfund
Class AccountHolderBalanceResponse
- java.lang.Object
-
- com.adyen.model.marketpayfund.AccountHolderBalanceResponse
-
public class AccountHolderBalanceResponse extends Object
AccountHolderBalanceResponse
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_BALANCE_PER_ACCOUNTstatic StringJSON_PROPERTY_INVALID_FIELDSstatic StringJSON_PROPERTY_PSP_REFERENCEstatic StringJSON_PROPERTY_RESULT_CODEstatic StringJSON_PROPERTY_TOTAL_BALANCE
-
Constructor Summary
Constructors Constructor Description AccountHolderBalanceResponse()
-
Method Summary
-
-
-
Field Detail
-
JSON_PROPERTY_BALANCE_PER_ACCOUNT
public static final String JSON_PROPERTY_BALANCE_PER_ACCOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_INVALID_FIELDS
public static final String JSON_PROPERTY_INVALID_FIELDS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PSP_REFERENCE
public static final String JSON_PROPERTY_PSP_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_RESULT_CODE
public static final String JSON_PROPERTY_RESULT_CODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TOTAL_BALANCE
public static final String JSON_PROPERTY_TOTAL_BALANCE
- See Also:
- Constant Field Values
-
-
Method Detail
-
balancePerAccount
public AccountHolderBalanceResponse balancePerAccount(List<AccountDetailBalance> balancePerAccount)
-
addBalancePerAccountItem
public AccountHolderBalanceResponse addBalancePerAccountItem(AccountDetailBalance balancePerAccountItem)
-
getBalancePerAccount
public List<AccountDetailBalance> getBalancePerAccount()
A list of each account and their balances.- Returns:
- balancePerAccount
-
setBalancePerAccount
public void setBalancePerAccount(List<AccountDetailBalance> balancePerAccount)
-
invalidFields
public AccountHolderBalanceResponse invalidFields(List<ErrorFieldType> invalidFields)
-
addInvalidFieldsItem
public AccountHolderBalanceResponse addInvalidFieldsItem(ErrorFieldType invalidFieldsItem)
-
getInvalidFields
public List<ErrorFieldType> getInvalidFields()
Contains field validation errors that would prevent requests from being processed.- Returns:
- invalidFields
-
setInvalidFields
public void setInvalidFields(List<ErrorFieldType> invalidFields)
-
pspReference
public AccountHolderBalanceResponse pspReference(String pspReference)
-
getPspReference
public String getPspReference()
The reference of a request. Can be used to uniquely identify the request.- Returns:
- pspReference
-
setPspReference
public void setPspReference(String pspReference)
-
resultCode
public AccountHolderBalanceResponse resultCode(String resultCode)
-
getResultCode
public String getResultCode()
The result code.- Returns:
- resultCode
-
setResultCode
public void setResultCode(String resultCode)
-
totalBalance
public AccountHolderBalanceResponse totalBalance(DetailBalance totalBalance)
-
getTotalBalance
public DetailBalance getTotalBalance()
Get totalBalance- Returns:
- totalBalance
-
setTotalBalance
public void setTotalBalance(DetailBalance totalBalance)
-
equals
public boolean equals(Object o)
Return true if this AccountHolderBalanceResponse object is equal to o.
-
fromJson
public static AccountHolderBalanceResponse fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of AccountHolderBalanceResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AccountHolderBalanceResponse
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to AccountHolderBalanceResponse
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of AccountHolderBalanceResponse to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-