
com.xero.models.bankfeeds.StartBalance Maven / Gradle / Ivy
/*
* Xero Bank Feeds API
* The Bank Feeds API is a closed API that is only available to financial institutions that have an established financial services partnership with Xero. If you're an existing financial services partner that wants access, contact your local Partner Manager. If you're a financial institution who wants to provide bank feeds to your business customers, contact us to become a financial services partner.
*
* 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.bankfeeds;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.xero.api.StringUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Objects;
/** The starting balance of the statement */
@ApiModel(description = "The starting balance of the statement")
public class StartBalance {
StringUtil util = new StringUtil();
@JsonProperty("amount")
private Double amount;
@JsonProperty("creditDebitIndicator")
private CreditDebitIndicator creditDebitIndicator;
/**
* decimal(19,4) unsigned Opening/closing balance amount.
*
* @param amount Double
* @return StartBalance
*/
public StartBalance amount(Double amount) {
this.amount = amount;
return this;
}
/**
* decimal(19,4) unsigned Opening/closing balance amount.
*
* @return amount
*/
@ApiModelProperty(
example = "9.0000",
value = "decimal(19,4) unsigned Opening/closing balance amount.")
/**
* decimal(19,4) unsigned Opening/closing balance amount.
*
* @return amount Double
*/
public Double getAmount() {
return amount;
}
/**
* decimal(19,4) unsigned Opening/closing balance amount.
*
* @param amount Double
*/
public void setAmount(Double amount) {
this.amount = amount;
}
/**
* creditDebitIndicator
*
* @param creditDebitIndicator CreditDebitIndicator
* @return StartBalance
*/
public StartBalance creditDebitIndicator(CreditDebitIndicator creditDebitIndicator) {
this.creditDebitIndicator = creditDebitIndicator;
return this;
}
/**
* Get creditDebitIndicator
*
* @return creditDebitIndicator
*/
@ApiModelProperty(value = "")
/**
* creditDebitIndicator
*
* @return creditDebitIndicator CreditDebitIndicator
*/
public CreditDebitIndicator getCreditDebitIndicator() {
return creditDebitIndicator;
}
/**
* creditDebitIndicator
*
* @param creditDebitIndicator CreditDebitIndicator
*/
public void setCreditDebitIndicator(CreditDebitIndicator creditDebitIndicator) {
this.creditDebitIndicator = creditDebitIndicator;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
StartBalance startBalance = (StartBalance) o;
return Objects.equals(this.amount, startBalance.amount)
&& Objects.equals(this.creditDebitIndicator, startBalance.creditDebitIndicator);
}
@Override
public int hashCode() {
return Objects.hash(amount, creditDebitIndicator);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class StartBalance {\n");
sb.append(" amount: ").append(toIndentedString(amount)).append("\n");
sb.append(" creditDebitIndicator: ")
.append(toIndentedString(creditDebitIndicator))
.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 ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy