com.adyen.model.marketpay.AccountTransactionList Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of adyen-java-api-library Show documentation
Show all versions of adyen-java-api-library Show documentation
Adyen API Client Library for Java
/*
* ######
* ######
* ############ ####( ###### #####. ###### ############ ############
* ############# #####( ###### #####. ###### ############# #############
* ###### #####( ###### #####. ###### ##### ###### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ######
* ############# ############# ############# ############# ##### ######
* ############ ############ ############# ############ ##### ######
* ######
* #############
* ############
*
* Adyen Java API Library
*
* Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
package com.adyen.model.marketpay;
import com.google.gson.annotations.SerializedName;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import static com.adyen.util.Util.toIndentedString;
/**
* AccountTransactionList
*/
public class AccountTransactionList {
@SerializedName("accountCode")
private String accountCode = null;
@SerializedName("hasNextPage")
private Boolean hasNextPage = null;
@SerializedName("transactions")
private List transactions = null;
public AccountTransactionList accountCode(String accountCode) {
this.accountCode = accountCode;
return this;
}
/**
* The code of the account.
*
* @return accountCode
**/
public String getAccountCode() {
return accountCode;
}
public void setAccountCode(String accountCode) {
this.accountCode = accountCode;
}
public AccountTransactionList hasNextPage(Boolean hasNextPage) {
this.hasNextPage = hasNextPage;
return this;
}
/**
* Indicates whether there is a next page of transactions available.
*
* @return hasNextPage
**/
public Boolean isHasNextPage() {
return hasNextPage;
}
public void setHasNextPage(Boolean hasNextPage) {
this.hasNextPage = hasNextPage;
}
public AccountTransactionList transactions(List transactions) {
this.transactions = transactions;
return this;
}
public AccountTransactionList addTransactionsItem(Transaction transactionsItem) {
if (this.transactions == null) {
this.transactions = new ArrayList<>();
}
this.transactions.add(transactionsItem);
return this;
}
/**
* The list of transactions.
*
* @return transactions
**/
public List getTransactions() {
return transactions;
}
public void setTransactions(List transactions) {
this.transactions = transactions;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AccountTransactionList accountTransactionList = (AccountTransactionList) o;
return Objects.equals(this.accountCode, accountTransactionList.accountCode) &&
Objects.equals(this.hasNextPage, accountTransactionList.hasNextPage) &&
Objects.equals(this.transactions, accountTransactionList.transactions);
}
@Override
public int hashCode() {
return Objects.hash(accountCode, hasNextPage, transactions);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AccountTransactionList {\n");
sb.append(" accountCode: ").append(toIndentedString(accountCode)).append("\n");
sb.append(" hasNextPage: ").append(toIndentedString(hasNextPage)).append("\n");
sb.append(" transactions: ").append(toIndentedString(transactions)).append("\n");
sb.append("}");
return sb.toString();
}
}