com.prowidesoftware.swift.model.mx.dic.TotalsPerBankTransactionCode3 Maven / Gradle / Ivy
Show all versions of pw-iso20022 Show documentation
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.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;
/**
* Set of elements used to provide the total sum of entries per bank transaction code.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "TotalsPerBankTransactionCode3", propOrder = {
"nbOfNtries",
"sum",
"ttlNetNtry",
"fcstInd",
"bkTxCd",
"avlbty"
})
public class TotalsPerBankTransactionCode3 {
@XmlElement(name = "NbOfNtries")
protected String nbOfNtries;
@XmlElement(name = "Sum")
protected BigDecimal sum;
@XmlElement(name = "TtlNetNtry")
protected AmountAndDirection35 ttlNetNtry;
@XmlElement(name = "FcstInd")
protected Boolean fcstInd;
@XmlElement(name = "BkTxCd", required = true)
protected BankTransactionCodeStructure4 bkTxCd;
@XmlElement(name = "Avlbty")
protected List avlbty;
/**
* Gets the value of the nbOfNtries property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getNbOfNtries() {
return nbOfNtries;
}
/**
* Sets the value of the nbOfNtries property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public TotalsPerBankTransactionCode3 setNbOfNtries(String value) {
this.nbOfNtries = value;
return this;
}
/**
* Gets the value of the sum property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getSum() {
return sum;
}
/**
* Sets the value of the sum property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public TotalsPerBankTransactionCode3 setSum(BigDecimal value) {
this.sum = value;
return this;
}
/**
* Gets the value of the ttlNetNtry property.
*
* @return
* possible object is
* {@link AmountAndDirection35 }
*
*/
public AmountAndDirection35 getTtlNetNtry() {
return ttlNetNtry;
}
/**
* Sets the value of the ttlNetNtry property.
*
* @param value
* allowed object is
* {@link AmountAndDirection35 }
*
*/
public TotalsPerBankTransactionCode3 setTtlNetNtry(AmountAndDirection35 value) {
this.ttlNetNtry = value;
return this;
}
/**
* Gets the value of the fcstInd property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isFcstInd() {
return fcstInd;
}
/**
* Sets the value of the fcstInd property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public TotalsPerBankTransactionCode3 setFcstInd(Boolean value) {
this.fcstInd = value;
return this;
}
/**
* Gets the value of the bkTxCd property.
*
* @return
* possible object is
* {@link BankTransactionCodeStructure4 }
*
*/
public BankTransactionCodeStructure4 getBkTxCd() {
return bkTxCd;
}
/**
* Sets the value of the bkTxCd property.
*
* @param value
* allowed object is
* {@link BankTransactionCodeStructure4 }
*
*/
public TotalsPerBankTransactionCode3 setBkTxCd(BankTransactionCodeStructure4 value) {
this.bkTxCd = value;
return this;
}
/**
* Gets the value of the avlbty 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 avlbty property.
*
*
* For example, to add a new item, do as follows:
*
* getAvlbty().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link CashBalanceAvailability2 }
*
*
* @return
* The value of the avlbty property.
*/
public List getAvlbty() {
if (avlbty == null) {
avlbty = new ArrayList<>();
}
return this.avlbty;
}
@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 avlbty list.
* @see #getAvlbty()
*
*/
public TotalsPerBankTransactionCode3 addAvlbty(CashBalanceAvailability2 avlbty) {
getAvlbty().add(avlbty);
return this;
}
}