Package com.adyen.model.balanceplatform
Class PaginatedBalanceAccountsResponse
- java.lang.Object
-
- com.adyen.model.balanceplatform.PaginatedBalanceAccountsResponse
-
public class PaginatedBalanceAccountsResponse extends Object
PaginatedBalanceAccountsResponse
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_BALANCE_ACCOUNTSstatic StringJSON_PROPERTY_HAS_NEXTstatic StringJSON_PROPERTY_HAS_PREVIOUS
-
Constructor Summary
Constructors Constructor Description PaginatedBalanceAccountsResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PaginatedBalanceAccountsResponseaddBalanceAccountsItem(BalanceAccountBase balanceAccountsItem)PaginatedBalanceAccountsResponsebalanceAccounts(List<BalanceAccountBase> balanceAccounts)List of balance accounts.booleanequals(Object o)Return true if this PaginatedBalanceAccountsResponse object is equal to o.static PaginatedBalanceAccountsResponsefromJson(String jsonString)Create an instance of PaginatedBalanceAccountsResponse given an JSON stringList<BalanceAccountBase>getBalanceAccounts()List of balance accounts.BooleangetHasNext()Indicates whether there are more items on the next page.BooleangetHasPrevious()Indicates whether there are more items on the previous page.inthashCode()PaginatedBalanceAccountsResponsehasNext(Boolean hasNext)Indicates whether there are more items on the next page.PaginatedBalanceAccountsResponsehasPrevious(Boolean hasPrevious)Indicates whether there are more items on the previous page.voidsetBalanceAccounts(List<BalanceAccountBase> balanceAccounts)List of balance accounts.voidsetHasNext(Boolean hasNext)Indicates whether there are more items on the next page.voidsetHasPrevious(Boolean hasPrevious)Indicates whether there are more items on the previous page.StringtoJson()Convert an instance of PaginatedBalanceAccountsResponse to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_BALANCE_ACCOUNTS
public static final String JSON_PROPERTY_BALANCE_ACCOUNTS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_HAS_NEXT
public static final String JSON_PROPERTY_HAS_NEXT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_HAS_PREVIOUS
public static final String JSON_PROPERTY_HAS_PREVIOUS
- See Also:
- Constant Field Values
-
-
Method Detail
-
balanceAccounts
public PaginatedBalanceAccountsResponse balanceAccounts(List<BalanceAccountBase> balanceAccounts)
List of balance accounts.- Parameters:
balanceAccounts-- Returns:
- the current
PaginatedBalanceAccountsResponseinstance, allowing for method chaining
-
addBalanceAccountsItem
public PaginatedBalanceAccountsResponse addBalanceAccountsItem(BalanceAccountBase balanceAccountsItem)
-
getBalanceAccounts
public List<BalanceAccountBase> getBalanceAccounts()
List of balance accounts.- Returns:
- balanceAccounts
-
setBalanceAccounts
public void setBalanceAccounts(List<BalanceAccountBase> balanceAccounts)
List of balance accounts.- Parameters:
balanceAccounts-
-
hasNext
public PaginatedBalanceAccountsResponse hasNext(Boolean hasNext)
Indicates whether there are more items on the next page.- Parameters:
hasNext-- Returns:
- the current
PaginatedBalanceAccountsResponseinstance, allowing for method chaining
-
getHasNext
public Boolean getHasNext()
Indicates whether there are more items on the next page.- Returns:
- hasNext
-
setHasNext
public void setHasNext(Boolean hasNext)
Indicates whether there are more items on the next page.- Parameters:
hasNext-
-
hasPrevious
public PaginatedBalanceAccountsResponse hasPrevious(Boolean hasPrevious)
Indicates whether there are more items on the previous page.- Parameters:
hasPrevious-- Returns:
- the current
PaginatedBalanceAccountsResponseinstance, allowing for method chaining
-
getHasPrevious
public Boolean getHasPrevious()
Indicates whether there are more items on the previous page.- Returns:
- hasPrevious
-
setHasPrevious
public void setHasPrevious(Boolean hasPrevious)
Indicates whether there are more items on the previous page.- Parameters:
hasPrevious-
-
equals
public boolean equals(Object o)
Return true if this PaginatedBalanceAccountsResponse object is equal to o.
-
fromJson
public static PaginatedBalanceAccountsResponse fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of PaginatedBalanceAccountsResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PaginatedBalanceAccountsResponse
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to PaginatedBalanceAccountsResponse
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of PaginatedBalanceAccountsResponse to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-