com.xero.models.accounting.Accounts Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xero-java Show documentation
Show all versions of xero-java Show documentation
This is the official Java SDK for Xero API
/*
* Accounting API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.0.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.xero.models.accounting;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.xero.models.accounting.Account;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
/**
* Accounts
*/
public class Accounts {
@JsonProperty("Accounts")
private List accounts = new ArrayList();
public Accounts accounts(List accounts) {
this.accounts = accounts;
return this;
}
public Accounts addAccountsItem(Account accountsItem) {
if (this.accounts == null) {
this.accounts = new ArrayList();
}
this.accounts.add(accountsItem);
return this;
}
/**
* Get accounts
* @return accounts
**/
@ApiModelProperty(value = "")
public List getAccounts() {
return accounts;
}
public void setAccounts(List accounts) {
this.accounts = accounts;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Accounts accounts = (Accounts) o;
return Objects.equals(this.accounts, accounts.accounts);
}
@Override
public int hashCode() {
return Objects.hash(accounts);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Accounts {\n");
sb.append(" accounts: ").append(toIndentedString(accounts)).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 ");
}
}