com.prowidesoftware.swift.model.mx.dic.ContractRegistration6 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 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;
/**
* Document that a user must file with an authorized servicer for each contract that involves foreign currency transactions with non residents.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ContractRegistration6", propOrder = {
"ctrctRegnOpngId",
"prty",
"ctrct",
"ctrctBal",
"pmtSchdlTp",
"prvsRegnId",
"addtlInf",
"attchmnt",
"splmtryData"
})
public class ContractRegistration6 {
@XmlElement(name = "CtrctRegnOpngId", required = true)
protected String ctrctRegnOpngId;
@XmlElement(name = "Prty", required = true)
@XmlSchemaType(name = "string")
protected Priority2Code prty;
@XmlElement(name = "Ctrct", required = true)
protected UnderlyingContract3Choice ctrct;
@XmlElement(name = "CtrctBal")
protected List ctrctBal;
@XmlElement(name = "PmtSchdlTp")
protected PaymentScheduleType2Choice pmtSchdlTp;
@XmlElement(name = "PrvsRegnId")
protected List prvsRegnId;
@XmlElement(name = "AddtlInf")
protected String addtlInf;
@XmlElement(name = "Attchmnt")
protected List attchmnt;
@XmlElement(name = "SplmtryData")
protected List splmtryData;
/**
* Gets the value of the ctrctRegnOpngId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCtrctRegnOpngId() {
return ctrctRegnOpngId;
}
/**
* Sets the value of the ctrctRegnOpngId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public ContractRegistration6 setCtrctRegnOpngId(String value) {
this.ctrctRegnOpngId = value;
return this;
}
/**
* Gets the value of the prty property.
*
* @return
* possible object is
* {@link Priority2Code }
*
*/
public Priority2Code getPrty() {
return prty;
}
/**
* Sets the value of the prty property.
*
* @param value
* allowed object is
* {@link Priority2Code }
*
*/
public ContractRegistration6 setPrty(Priority2Code value) {
this.prty = value;
return this;
}
/**
* Gets the value of the ctrct property.
*
* @return
* possible object is
* {@link UnderlyingContract3Choice }
*
*/
public UnderlyingContract3Choice getCtrct() {
return ctrct;
}
/**
* Sets the value of the ctrct property.
*
* @param value
* allowed object is
* {@link UnderlyingContract3Choice }
*
*/
public ContractRegistration6 setCtrct(UnderlyingContract3Choice value) {
this.ctrct = value;
return this;
}
/**
* Gets the value of the ctrctBal 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 ctrctBal property.
*
*
* For example, to add a new item, do as follows:
*
* getCtrctBal().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link ContractBalance1 }
*
*
* @return
* The value of the ctrctBal property.
*/
public List getCtrctBal() {
if (ctrctBal == null) {
ctrctBal = new ArrayList<>();
}
return this.ctrctBal;
}
/**
* Gets the value of the pmtSchdlTp property.
*
* @return
* possible object is
* {@link PaymentScheduleType2Choice }
*
*/
public PaymentScheduleType2Choice getPmtSchdlTp() {
return pmtSchdlTp;
}
/**
* Sets the value of the pmtSchdlTp property.
*
* @param value
* allowed object is
* {@link PaymentScheduleType2Choice }
*
*/
public ContractRegistration6 setPmtSchdlTp(PaymentScheduleType2Choice value) {
this.pmtSchdlTp = value;
return this;
}
/**
* Gets the value of the prvsRegnId 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 prvsRegnId property.
*
*
* For example, to add a new item, do as follows:
*
* getPrvsRegnId().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link DocumentIdentification22 }
*
*
* @return
* The value of the prvsRegnId property.
*/
public List getPrvsRegnId() {
if (prvsRegnId == null) {
prvsRegnId = new ArrayList<>();
}
return this.prvsRegnId;
}
/**
* Gets the value of the addtlInf property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getAddtlInf() {
return addtlInf;
}
/**
* Sets the value of the addtlInf property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public ContractRegistration6 setAddtlInf(String value) {
this.addtlInf = value;
return this;
}
/**
* Gets the value of the attchmnt 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 attchmnt property.
*
*
* For example, to add a new item, do as follows:
*
* getAttchmnt().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link DocumentGeneralInformation5 }
*
*
* @return
* The value of the attchmnt property.
*/
public List getAttchmnt() {
if (attchmnt == null) {
attchmnt = new ArrayList<>();
}
return this.attchmnt;
}
/**
* Gets the value of the splmtryData 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 splmtryData property.
*
*
* For example, to add a new item, do as follows:
*
* getSplmtryData().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link SupplementaryData1 }
*
*
* @return
* The value of the splmtryData property.
*/
public List getSplmtryData() {
if (splmtryData == null) {
splmtryData = new ArrayList<>();
}
return this.splmtryData;
}
@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 ctrctBal list.
* @see #getCtrctBal()
*
*/
public ContractRegistration6 addCtrctBal(ContractBalance1 ctrctBal) {
getCtrctBal().add(ctrctBal);
return this;
}
/**
* Adds a new item to the prvsRegnId list.
* @see #getPrvsRegnId()
*
*/
public ContractRegistration6 addPrvsRegnId(DocumentIdentification22 prvsRegnId) {
getPrvsRegnId().add(prvsRegnId);
return this;
}
/**
* Adds a new item to the attchmnt list.
* @see #getAttchmnt()
*
*/
public ContractRegistration6 addAttchmnt(DocumentGeneralInformation5 attchmnt) {
getAttchmnt().add(attchmnt);
return this;
}
/**
* Adds a new item to the splmtryData list.
* @see #getSplmtryData()
*
*/
public ContractRegistration6 addSplmtryData(SupplementaryData1 splmtryData) {
getSplmtryData().add(splmtryData);
return this;
}
}