de.adorsys.multibanking.banking_gateway_b2c.model.AccountAccessTO Maven / Gradle / Ivy
/*
* Bankinggateway B2C Rest API
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 0.2-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package de.adorsys.multibanking.banking_gateway_b2c.model;
import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import de.adorsys.multibanking.banking_gateway_b2c.model.AccountReferenceTO;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
/**
* AccountAccessTO
*/
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2020-03-31T11:42:30.614Z[UTC]")
public class AccountAccessTO {
@SerializedName("accounts")
private List accounts = null;
@SerializedName("balances")
private List balances = null;
@SerializedName("transactions")
private List transactions = null;
public AccountAccessTO accounts(List accounts) {
this.accounts = accounts;
return this;
}
public AccountAccessTO addAccountsItem(AccountReferenceTO accountsItem) {
if (this.accounts == null) {
this.accounts = new ArrayList<>();
}
this.accounts.add(accountsItem);
return this;
}
/**
* Get accounts
* @return accounts
**/
@Schema(description = "")
public List getAccounts() {
return accounts;
}
public void setAccounts(List accounts) {
this.accounts = accounts;
}
public AccountAccessTO balances(List balances) {
this.balances = balances;
return this;
}
public AccountAccessTO addBalancesItem(AccountReferenceTO balancesItem) {
if (this.balances == null) {
this.balances = new ArrayList<>();
}
this.balances.add(balancesItem);
return this;
}
/**
* Get balances
* @return balances
**/
@Schema(description = "")
public List getBalances() {
return balances;
}
public void setBalances(List balances) {
this.balances = balances;
}
public AccountAccessTO transactions(List transactions) {
this.transactions = transactions;
return this;
}
public AccountAccessTO addTransactionsItem(AccountReferenceTO transactionsItem) {
if (this.transactions == null) {
this.transactions = new ArrayList<>();
}
this.transactions.add(transactionsItem);
return this;
}
/**
* Get transactions
* @return transactions
**/
@Schema(description = "")
public List getTransactions() {
return transactions;
}
public void setTransactions(List transactions) {
this.transactions = transactions;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AccountAccessTO accountAccessTO = (AccountAccessTO) o;
return Objects.equals(this.accounts, accountAccessTO.accounts) &&
Objects.equals(this.balances, accountAccessTO.balances) &&
Objects.equals(this.transactions, accountAccessTO.transactions);
}
@Override
public int hashCode() {
return Objects.hash(accounts, balances, transactions);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AccountAccessTO {\n");
sb.append(" accounts: ").append(toIndentedString(accounts)).append("\n");
sb.append(" balances: ").append(toIndentedString(balances)).append("\n");
sb.append(" transactions: ").append(toIndentedString(transactions)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}