com.prowidesoftware.swift.model.mx.dic.ExtendOrPayQuery1 Maven / Gradle / Ivy
Show all versions of pw-iso20022 Show documentation
package com.prowidesoftware.swift.model.mx.dic;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;
import com.prowidesoftware.swift.model.mx.adapters.IsoDateAdapter;
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 jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
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;
/**
* Undertaking extend or pay query details.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ExtendOrPayQuery1", propOrder = {
"udrtkgId",
"dmndDtls",
"reqdXpryDt",
"bkInstrs",
"bkCtct",
"nclsdFile",
"addtlInf"
})
public class ExtendOrPayQuery1 {
@XmlElement(name = "UdrtkgId", required = true)
protected Undertaking9 udrtkgId;
@XmlElement(name = "DmndDtls", required = true)
protected Demand2 dmndDtls;
@XmlElement(name = "ReqdXpryDt", required = true, type = String.class)
@XmlJavaTypeAdapter(IsoDateAdapter.class)
@XmlSchemaType(name = "date")
protected LocalDate reqdXpryDt;
@XmlElement(name = "BkInstrs")
protected BankInstructions1 bkInstrs;
@XmlElement(name = "BkCtct")
protected List bkCtct;
@XmlElement(name = "NclsdFile")
protected List nclsdFile;
@XmlElement(name = "AddtlInf")
protected List addtlInf;
/**
* Gets the value of the udrtkgId property.
*
* @return
* possible object is
* {@link Undertaking9 }
*
*/
public Undertaking9 getUdrtkgId() {
return udrtkgId;
}
/**
* Sets the value of the udrtkgId property.
*
* @param value
* allowed object is
* {@link Undertaking9 }
*
*/
public ExtendOrPayQuery1 setUdrtkgId(Undertaking9 value) {
this.udrtkgId = value;
return this;
}
/**
* Gets the value of the dmndDtls property.
*
* @return
* possible object is
* {@link Demand2 }
*
*/
public Demand2 getDmndDtls() {
return dmndDtls;
}
/**
* Sets the value of the dmndDtls property.
*
* @param value
* allowed object is
* {@link Demand2 }
*
*/
public ExtendOrPayQuery1 setDmndDtls(Demand2 value) {
this.dmndDtls = value;
return this;
}
/**
* Gets the value of the reqdXpryDt property.
*
* @return
* possible object is
* {@link String }
*
*/
public LocalDate getReqdXpryDt() {
return reqdXpryDt;
}
/**
* Sets the value of the reqdXpryDt property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public ExtendOrPayQuery1 setReqdXpryDt(LocalDate value) {
this.reqdXpryDt = value;
return this;
}
/**
* Gets the value of the bkInstrs property.
*
* @return
* possible object is
* {@link BankInstructions1 }
*
*/
public BankInstructions1 getBkInstrs() {
return bkInstrs;
}
/**
* Sets the value of the bkInstrs property.
*
* @param value
* allowed object is
* {@link BankInstructions1 }
*
*/
public ExtendOrPayQuery1 setBkInstrs(BankInstructions1 value) {
this.bkInstrs = value;
return this;
}
/**
* Gets the value of the bkCtct 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 bkCtct property.
*
*
* For example, to add a new item, do as follows:
*
* getBkCtct().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Contacts3 }
*
*
* @return
* The value of the bkCtct property.
*/
public List getBkCtct() {
if (bkCtct == null) {
bkCtct = new ArrayList<>();
}
return this.bkCtct;
}
/**
* Gets the value of the nclsdFile 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 nclsdFile property.
*
*
* For example, to add a new item, do as follows:
*
* getNclsdFile().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Document9 }
*
*
* @return
* The value of the nclsdFile property.
*/
public List getNclsdFile() {
if (nclsdFile == null) {
nclsdFile = new ArrayList<>();
}
return this.nclsdFile;
}
/**
* Gets the value of the addtlInf 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 addtlInf property.
*
*
* For example, to add a new item, do as follows:
*
* getAddtlInf().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
* @return
* The value of the addtlInf property.
*/
public List getAddtlInf() {
if (addtlInf == null) {
addtlInf = new ArrayList<>();
}
return this.addtlInf;
}
@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 bkCtct list.
* @see #getBkCtct()
*
*/
public ExtendOrPayQuery1 addBkCtct(Contacts3 bkCtct) {
getBkCtct().add(bkCtct);
return this;
}
/**
* Adds a new item to the nclsdFile list.
* @see #getNclsdFile()
*
*/
public ExtendOrPayQuery1 addNclsdFile(Document9 nclsdFile) {
getNclsdFile().add(nclsdFile);
return this;
}
/**
* Adds a new item to the addtlInf list.
* @see #getAddtlInf()
*
*/
public ExtendOrPayQuery1 addAddtlInf(String addtlInf) {
getAddtlInf().add(addtlInf);
return this;
}
}