com.prowidesoftware.swift.model.mx.dic.DebitAuthorisationResponseV05 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;
/**
* Scope
* The DebitAuthorisationResponse message is sent by an account owner to its account servicing institution. This message is used to approve or reject a debit authorisation request.
* Usage
* The DebitAuthorisationResponse message:
* - is used to reply to a Debit Authorisation Request message;
* - covers one and only one payment instruction at a time. If an account owner needs to reply to several DebitAuthorisationRequest messages, then multiple DebitAuthorisationResponse messages must be sent;
* - indicates whether the account owner agrees with the request by means of a code. It also allows further details to be given about the debit authorisation, such as acceptable amount and value date for the debit;
* - must be used exclusively between the account owner and the account servicing institution. It must not be used in place of a Resolution Of Investigation message between subsequent agents.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "DebitAuthorisationResponseV05", propOrder = {
"assgnmt",
"_case",
"conf",
"splmtryData"
})
public class DebitAuthorisationResponseV05 {
@XmlElement(name = "Assgnmt", required = true)
protected CaseAssignment5 assgnmt;
@XmlElement(name = "Case")
protected Case5 _case;
@XmlElement(name = "Conf", required = true)
protected DebitAuthorisationConfirmation2 conf;
@XmlElement(name = "SplmtryData")
protected List splmtryData;
/**
* Gets the value of the assgnmt property.
*
* @return
* possible object is
* {@link CaseAssignment5 }
*
*/
public CaseAssignment5 getAssgnmt() {
return assgnmt;
}
/**
* Sets the value of the assgnmt property.
*
* @param value
* allowed object is
* {@link CaseAssignment5 }
*
*/
public DebitAuthorisationResponseV05 setAssgnmt(CaseAssignment5 value) {
this.assgnmt = value;
return this;
}
/**
* Gets the value of the case property.
*
* @return
* possible object is
* {@link Case5 }
*
*/
public Case5 getCase() {
return _case;
}
/**
* Sets the value of the case property.
*
* @param value
* allowed object is
* {@link Case5 }
*
*/
public DebitAuthorisationResponseV05 setCase(Case5 value) {
this._case = value;
return this;
}
/**
* Gets the value of the conf property.
*
* @return
* possible object is
* {@link DebitAuthorisationConfirmation2 }
*
*/
public DebitAuthorisationConfirmation2 getConf() {
return conf;
}
/**
* Sets the value of the conf property.
*
* @param value
* allowed object is
* {@link DebitAuthorisationConfirmation2 }
*
*/
public DebitAuthorisationResponseV05 setConf(DebitAuthorisationConfirmation2 value) {
this.conf = value;
return this;
}
/**
* 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 JAXB object.
* This is why there is not a 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 }
*
*
*/
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 splmtryData list.
* @see #getSplmtryData()
*
*/
public DebitAuthorisationResponseV05 addSplmtryData(SupplementaryData1 splmtryData) {
getSplmtryData().add(splmtryData);
return this;
}
}