com.prowidesoftware.swift.model.mx.dic.Pacs00300101 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 FinancialInstitutionToFinancialInstitutionCustomerDirectDebit message is sent by the creditor agent to the debtor agent, directly or through other agents and/or a payment clearing and settlement system.
* It is used to collect funds from a debtor account for a creditor.
* Usage
* The FItoFICustomerDirectDebit message can contain one or more customer direct debit instructions.
* The FIToFICustomerDirectDebit message does not allow for grouping: the PaymentInformation block must be present once per occurrence of a DirectDebitTransactionInformation block.
* The FItoFICustomerDirectDebit message may or may not contain mandate related information, i.e. extracts from a mandate, such as the MandateIdentification or DateOfSignature. The FIToFICustomerDirectDebit message must not be considered as a mandate.
* The FItoFICustomerDirectDebit message can be used in domestic and cross-border scenarios.
*
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "pacs.003.001.01", propOrder = {
"grpHdr",
"drctDbtTxInf"
})
public class Pacs00300101 {
@XmlElement(name = "GrpHdr", required = true)
protected GroupHeader3 grpHdr;
@XmlElement(name = "DrctDbtTxInf", required = true)
protected List drctDbtTxInf;
/**
* Gets the value of the grpHdr property.
*
* @return
* possible object is
* {@link GroupHeader3 }
*
*/
public GroupHeader3 getGrpHdr() {
return grpHdr;
}
/**
* Sets the value of the grpHdr property.
*
* @param value
* allowed object is
* {@link GroupHeader3 }
*
*/
public Pacs00300101 setGrpHdr(GroupHeader3 value) {
this.grpHdr = value;
return this;
}
/**
* Gets the value of the drctDbtTxInf 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 drctDbtTxInf property.
*
*
* For example, to add a new item, do as follows:
*
* getDrctDbtTxInf().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link DirectDebitTransactionInformation2 }
*
*
*/
public List getDrctDbtTxInf() {
if (drctDbtTxInf == null) {
drctDbtTxInf = new ArrayList();
}
return this.drctDbtTxInf;
}
@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 drctDbtTxInf list.
* @see #getDrctDbtTxInf()
*
*/
public Pacs00300101 addDrctDbtTxInf(DirectDebitTransactionInformation2 drctDbtTxInf) {
getDrctDbtTxInf().add(drctDbtTxInf);
return this;
}
}