com.prowidesoftware.swift.model.mx.dic.CashEntry2 Maven / Gradle / Ivy
package com.prowidesoftware.swift.model.mx.dic;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlSchemaType;
import jakarta.xml.bind.annotation.XmlType;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* Posting of an item to a cash account, in the context of a cash transaction, that results in an increase or decrease to the balance of the account.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CashEntry2", propOrder = {
"amt",
"dt",
"sts",
"id",
"stmtId",
"acctSvcrRef",
"addtlNtryInf"
})
public class CashEntry2 {
@XmlElement(name = "Amt")
protected ActiveCurrencyAndAmount amt;
@XmlElement(name = "Dt")
protected DateAndDateTime2Choice dt;
@XmlElement(name = "Sts")
@XmlSchemaType(name = "string")
protected EntryStatus1Code sts;
@XmlElement(name = "Id")
protected String id;
@XmlElement(name = "StmtId")
protected String stmtId;
@XmlElement(name = "AcctSvcrRef")
protected BigDecimal acctSvcrRef;
@XmlElement(name = "AddtlNtryInf")
protected List addtlNtryInf;
/**
* Gets the value of the amt property.
*
* @return
* possible object is
* {@link ActiveCurrencyAndAmount }
*
*/
public ActiveCurrencyAndAmount getAmt() {
return amt;
}
/**
* Sets the value of the amt property.
*
* @param value
* allowed object is
* {@link ActiveCurrencyAndAmount }
*
*/
public CashEntry2 setAmt(ActiveCurrencyAndAmount value) {
this.amt = value;
return this;
}
/**
* Gets the value of the dt property.
*
* @return
* possible object is
* {@link DateAndDateTime2Choice }
*
*/
public DateAndDateTime2Choice getDt() {
return dt;
}
/**
* Sets the value of the dt property.
*
* @param value
* allowed object is
* {@link DateAndDateTime2Choice }
*
*/
public CashEntry2 setDt(DateAndDateTime2Choice value) {
this.dt = value;
return this;
}
/**
* Gets the value of the sts property.
*
* @return
* possible object is
* {@link EntryStatus1Code }
*
*/
public EntryStatus1Code getSts() {
return sts;
}
/**
* Sets the value of the sts property.
*
* @param value
* allowed object is
* {@link EntryStatus1Code }
*
*/
public CashEntry2 setSts(EntryStatus1Code value) {
this.sts = value;
return this;
}
/**
* Gets the value of the id property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getId() {
return id;
}
/**
* Sets the value of the id property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public CashEntry2 setId(String value) {
this.id = value;
return this;
}
/**
* Gets the value of the stmtId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getStmtId() {
return stmtId;
}
/**
* Sets the value of the stmtId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public CashEntry2 setStmtId(String value) {
this.stmtId = value;
return this;
}
/**
* Gets the value of the acctSvcrRef property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getAcctSvcrRef() {
return acctSvcrRef;
}
/**
* Sets the value of the acctSvcrRef property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public CashEntry2 setAcctSvcrRef(BigDecimal value) {
this.acctSvcrRef = value;
return this;
}
/**
* Gets the value of the addtlNtryInf property.
*
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the Jakarta XML Binding object.
* This is why there is not a {@code set} method for the addtlNtryInf property.
*
*
* For example, to add a new item, do as follows:
*
* getAddtlNtryInf().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
* @return
* The value of the addtlNtryInf property.
*/
public List getAddtlNtryInf() {
if (addtlNtryInf == null) {
addtlNtryInf = new ArrayList<>();
}
return this.addtlNtryInf;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
}
@Override
public boolean equals(Object that) {
return EqualsBuilder.reflectionEquals(this, that);
}
@Override
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}
/**
* Adds a new item to the addtlNtryInf list.
* @see #getAddtlNtryInf()
*
*/
public CashEntry2 addAddtlNtryInf(String addtlNtryInf) {
getAddtlNtryInf().add(addtlNtryInf);
return this;
}
}