
com.prowidesoftware.swift.model.mx.dic.PaymentInstrument6 Maven / Gradle / Ivy
Show all versions of pw-iso20022 Show documentation
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 = "PaymentInstrument6", propOrder = {
"sttlmCcy",
"cshAcct",
"chq"
})
public class PaymentInstrument6 {
@XmlElement(name = "SttlmCcy", required = true)
protected String sttlmCcy;
@XmlElement(name = "CshAcct")
protected List cshAcct;
@XmlElement(name = "Chq")
protected Cheque4 chq;
/**
* 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 PaymentInstrument6 setSttlmCcy(String value) {
this.sttlmCcy = value;
return this;
}
/**
* Gets the value of the cshAcct 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 cshAcct property.
*
*
* For example, to add a new item, do as follows:
*
* getCshAcct().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link CashAccount4 }
*
*
*/
public List getCshAcct() {
if (cshAcct == null) {
cshAcct = new ArrayList();
}
return this.cshAcct;
}
/**
* Gets the value of the chq property.
*
* @return
* possible object is
* {@link Cheque4 }
*
*/
public Cheque4 getChq() {
return chq;
}
/**
* Sets the value of the chq property.
*
* @param value
* allowed object is
* {@link Cheque4 }
*
*/
public PaymentInstrument6 setChq(Cheque4 value) {
this.chq = 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 cshAcct list.
* @see #getCshAcct()
*
*/
public PaymentInstrument6 addCshAcct(CashAccount4 cshAcct) {
getCshAcct().add(cshAcct);
return this;
}
}