com.prowidesoftware.swift.model.mx.dic.DebitAuthorisationRequestV06 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 Debit Authorisation Request message is sent by an account servicing institution to an account owner. This message is used to request authorisation to debit an account.
* Usage
* The Debit Authorisation Request message must be answered with a Debit Authorisation Response message.
* The Debit Authorisation Request message can be used to request debit authorisation in a:
* - request to modify payment case (in the case of a lower final amount or change of creditor)
* - request to cancel payment case (full amount)
* - unable to apply case (the creditor whose account has been credited is not the intended beneficiary)
* - claim non receipt case (the creditor whose account has been credited is not the intended beneficiary)
* The Debit Authorisation Request message covers one and only one payment instruction at a time. If an account servicing institution needs to request debit authorisation for several instructions, then multiple Debit Authorisation Request messages must be sent.
* The Debit Authorisation Request must be used exclusively between the account servicing institution and the account owner. It must not be used in place of a Request To Modify Payment or Request To Cancel Payment message between subsequent agents.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "DebitAuthorisationRequestV06", propOrder = {
"assgnmt",
"_case",
"undrlyg",
"dtl",
"splmtryData"
})
public class DebitAuthorisationRequestV06 {
@XmlElement(name = "Assgnmt", required = true)
protected CaseAssignment4 assgnmt;
@XmlElement(name = "Case")
protected Case4 _case;
@XmlElement(name = "Undrlyg", required = true)
protected UnderlyingTransaction4Choice undrlyg;
@XmlElement(name = "Dtl", required = true)
protected DebitAuthorisation2 dtl;
@XmlElement(name = "SplmtryData")
protected List splmtryData;
/**
* Gets the value of the assgnmt property.
*
* @return
* possible object is
* {@link CaseAssignment4 }
*
*/
public CaseAssignment4 getAssgnmt() {
return assgnmt;
}
/**
* Sets the value of the assgnmt property.
*
* @param value
* allowed object is
* {@link CaseAssignment4 }
*
*/
public DebitAuthorisationRequestV06 setAssgnmt(CaseAssignment4 value) {
this.assgnmt = value;
return this;
}
/**
* Gets the value of the case property.
*
* @return
* possible object is
* {@link Case4 }
*
*/
public Case4 getCase() {
return _case;
}
/**
* Sets the value of the case property.
*
* @param value
* allowed object is
* {@link Case4 }
*
*/
public DebitAuthorisationRequestV06 setCase(Case4 value) {
this._case = value;
return this;
}
/**
* Gets the value of the undrlyg property.
*
* @return
* possible object is
* {@link UnderlyingTransaction4Choice }
*
*/
public UnderlyingTransaction4Choice getUndrlyg() {
return undrlyg;
}
/**
* Sets the value of the undrlyg property.
*
* @param value
* allowed object is
* {@link UnderlyingTransaction4Choice }
*
*/
public DebitAuthorisationRequestV06 setUndrlyg(UnderlyingTransaction4Choice value) {
this.undrlyg = value;
return this;
}
/**
* Gets the value of the dtl property.
*
* @return
* possible object is
* {@link DebitAuthorisation2 }
*
*/
public DebitAuthorisation2 getDtl() {
return dtl;
}
/**
* Sets the value of the dtl property.
*
* @param value
* allowed object is
* {@link DebitAuthorisation2 }
*
*/
public DebitAuthorisationRequestV06 setDtl(DebitAuthorisation2 value) {
this.dtl = 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 DebitAuthorisationRequestV06 addSplmtryData(SupplementaryData1 splmtryData) {
getSplmtryData().add(splmtryData);
return this;
}
}