
com.prowidesoftware.swift.model.mx.dic.PaymentInstrument9 Maven / Gradle / Ivy
package com.prowidesoftware.swift.model.mx.dic;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.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;
/**
* Instrument that has or represents monetary value and is used to process a payment instruction.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "PaymentInstrument9", propOrder = {
"sttlmCcy",
"cshAcctDtls",
"chqDtls",
"bkrsDrftDtls"
})
public class PaymentInstrument9 {
@XmlElement(name = "SttlmCcy", required = true)
protected String sttlmCcy;
@XmlElement(name = "CshAcctDtls")
protected List cshAcctDtls;
@XmlElement(name = "ChqDtls")
protected Cheque4 chqDtls;
@XmlElement(name = "BkrsDrftDtls")
protected Cheque4 bkrsDrftDtls;
/**
* Gets the value of the sttlmCcy property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSttlmCcy() {
return sttlmCcy;
}
/**
* Sets the value of the sttlmCcy property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public PaymentInstrument9 setSttlmCcy(String value) {
this.sttlmCcy = value;
return this;
}
/**
* Gets the value of the cshAcctDtls 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 JAXB object.
* This is why there is not a set
method for the cshAcctDtls property.
*
*
* For example, to add a new item, do as follows:
*
* getCshAcctDtls().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link CashAccount4 }
*
*
*/
public List getCshAcctDtls() {
if (cshAcctDtls == null) {
cshAcctDtls = new ArrayList();
}
return this.cshAcctDtls;
}
/**
* Gets the value of the chqDtls property.
*
* @return
* possible object is
* {@link Cheque4 }
*
*/
public Cheque4 getChqDtls() {
return chqDtls;
}
/**
* Sets the value of the chqDtls property.
*
* @param value
* allowed object is
* {@link Cheque4 }
*
*/
public PaymentInstrument9 setChqDtls(Cheque4 value) {
this.chqDtls = value;
return this;
}
/**
* Gets the value of the bkrsDrftDtls property.
*
* @return
* possible object is
* {@link Cheque4 }
*
*/
public Cheque4 getBkrsDrftDtls() {
return bkrsDrftDtls;
}
/**
* Sets the value of the bkrsDrftDtls property.
*
* @param value
* allowed object is
* {@link Cheque4 }
*
*/
public PaymentInstrument9 setBkrsDrftDtls(Cheque4 value) {
this.bkrsDrftDtls = value;
return this;
}
@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 cshAcctDtls list.
* @see #getCshAcctDtls()
*
*/
public PaymentInstrument9 addCshAcctDtls(CashAccount4 cshAcctDtls) {
getCshAcctDtls().add(cshAcctDtls);
return this;
}
}