com.prowidesoftware.swift.model.mx.dic.PartyRegistrationAndGuaranteeAcknowledgementV01 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;
/**
* The message PartyManagementPaymentAcknowledgement is sent from a trade partner to any partner requested through a PartyManagementPaymentAcknowledgemenNotification message to acknowledge the notified factoring service agreement. Depending on legal contexts, the acknowledgement may be required in order for the financial service agreement to become effective.
* The message references related messages and may include referenced data.
* The message can carry digital signatures if required by context.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "PartyRegistrationAndGuaranteeAcknowledgementV01", propOrder = {
"hdr",
"ackList",
"ackCnt",
"itmCnt",
"ctrlSum",
"attchdMsg"
})
public class PartyRegistrationAndGuaranteeAcknowledgementV01 {
@XmlElement(name = "Hdr", required = true)
protected BusinessLetter1 hdr;
@XmlElement(name = "AckList", required = true)
protected List ackList;
@XmlElement(name = "AckCnt", required = true)
protected String ackCnt;
@XmlElement(name = "ItmCnt")
protected String itmCnt;
@XmlElement(name = "CtrlSum")
protected BigDecimal ctrlSum;
@XmlElement(name = "AttchdMsg")
protected List attchdMsg;
/**
* Gets the value of the hdr property.
*
* @return
* possible object is
* {@link BusinessLetter1 }
*
*/
public BusinessLetter1 getHdr() {
return hdr;
}
/**
* Sets the value of the hdr property.
*
* @param value
* allowed object is
* {@link BusinessLetter1 }
*
*/
public PartyRegistrationAndGuaranteeAcknowledgementV01 setHdr(BusinessLetter1 value) {
this.hdr = value;
return this;
}
/**
* Gets the value of the ackList 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 ackList property.
*
*
* For example, to add a new item, do as follows:
*
* getAckList().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link FinancingAgreementList1Tsin01200101 }
*
*
* @return
* The value of the ackList property.
*/
public List getAckList() {
if (ackList == null) {
ackList = new ArrayList<>();
}
return this.ackList;
}
/**
* Gets the value of the ackCnt property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getAckCnt() {
return ackCnt;
}
/**
* Sets the value of the ackCnt property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public PartyRegistrationAndGuaranteeAcknowledgementV01 setAckCnt(String value) {
this.ackCnt = value;
return this;
}
/**
* Gets the value of the itmCnt property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getItmCnt() {
return itmCnt;
}
/**
* Sets the value of the itmCnt property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public PartyRegistrationAndGuaranteeAcknowledgementV01 setItmCnt(String value) {
this.itmCnt = value;
return this;
}
/**
* Gets the value of the ctrlSum property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getCtrlSum() {
return ctrlSum;
}
/**
* Sets the value of the ctrlSum property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public PartyRegistrationAndGuaranteeAcknowledgementV01 setCtrlSum(BigDecimal value) {
this.ctrlSum = value;
return this;
}
/**
* Gets the value of the attchdMsg 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 attchdMsg property.
*
*
* For example, to add a new item, do as follows:
*
* getAttchdMsg().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link EncapsulatedBusinessMessage1 }
*
*
* @return
* The value of the attchdMsg property.
*/
public List getAttchdMsg() {
if (attchdMsg == null) {
attchdMsg = new ArrayList<>();
}
return this.attchdMsg;
}
@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 ackList list.
* @see #getAckList()
*
*/
public PartyRegistrationAndGuaranteeAcknowledgementV01 addAckList(FinancingAgreementList1Tsin01200101 ackList) {
getAckList().add(ackList);
return this;
}
/**
* Adds a new item to the attchdMsg list.
* @see #getAttchdMsg()
*
*/
public PartyRegistrationAndGuaranteeAcknowledgementV01 addAttchdMsg(EncapsulatedBusinessMessage1 attchdMsg) {
getAttchdMsg().add(attchdMsg);
return this;
}
}