com.prowidesoftware.swift.model.mx.dic.PaymentInstruction15 Maven / Gradle / Ivy
Show all versions of pw-iso20022 Show documentation
package com.prowidesoftware.swift.model.mx.dic;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;
import com.prowidesoftware.swift.model.mx.adapters.IsoDateAdapter;
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 jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
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;
/**
* Characteristics that apply to the credit side of the payment transactions included in the direct debit initiation.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "PaymentInstruction15", propOrder = {
"pmtInfId",
"pmtMtd",
"btchBookg",
"nbOfTxs",
"ctrlSum",
"pmtTpInf",
"reqdColltnDt",
"cdtr",
"cdtrAcct",
"cdtrAgt",
"cdtrAgtAcct",
"ultmtCdtr",
"chrgBr",
"chrgsAcct",
"chrgsAcctAgt",
"cdtrSchmeId",
"drctDbtTxInf"
})
public class PaymentInstruction15 {
@XmlElement(name = "PmtInfId", required = true)
protected String pmtInfId;
@XmlElement(name = "PmtMtd", required = true)
@XmlSchemaType(name = "string")
protected PaymentMethod2Code pmtMtd;
@XmlElement(name = "BtchBookg")
protected Boolean btchBookg;
@XmlElement(name = "NbOfTxs")
protected String nbOfTxs;
@XmlElement(name = "CtrlSum")
protected BigDecimal ctrlSum;
@XmlElement(name = "PmtTpInf")
protected PaymentTypeInformation24 pmtTpInf;
@XmlElement(name = "ReqdColltnDt", required = true, type = String.class)
@XmlJavaTypeAdapter(IsoDateAdapter.class)
@XmlSchemaType(name = "date")
protected LocalDate reqdColltnDt;
@XmlElement(name = "Cdtr", required = true)
protected PartyIdentification43 cdtr;
@XmlElement(name = "CdtrAcct", required = true)
protected CashAccount24 cdtrAcct;
@XmlElement(name = "CdtrAgt", required = true)
protected BranchAndFinancialInstitutionIdentification5 cdtrAgt;
@XmlElement(name = "CdtrAgtAcct")
protected CashAccount24 cdtrAgtAcct;
@XmlElement(name = "UltmtCdtr")
protected PartyIdentification43 ultmtCdtr;
@XmlElement(name = "ChrgBr")
@XmlSchemaType(name = "string")
protected ChargeBearerType1Code chrgBr;
@XmlElement(name = "ChrgsAcct")
protected CashAccount24 chrgsAcct;
@XmlElement(name = "ChrgsAcctAgt")
protected BranchAndFinancialInstitutionIdentification5 chrgsAcctAgt;
@XmlElement(name = "CdtrSchmeId")
protected PartyIdentification43 cdtrSchmeId;
@XmlElement(name = "DrctDbtTxInf", required = true)
protected List drctDbtTxInf;
/**
* Gets the value of the pmtInfId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPmtInfId() {
return pmtInfId;
}
/**
* Sets the value of the pmtInfId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public PaymentInstruction15 setPmtInfId(String value) {
this.pmtInfId = value;
return this;
}
/**
* Gets the value of the pmtMtd property.
*
* @return
* possible object is
* {@link PaymentMethod2Code }
*
*/
public PaymentMethod2Code getPmtMtd() {
return pmtMtd;
}
/**
* Sets the value of the pmtMtd property.
*
* @param value
* allowed object is
* {@link PaymentMethod2Code }
*
*/
public PaymentInstruction15 setPmtMtd(PaymentMethod2Code value) {
this.pmtMtd = value;
return this;
}
/**
* Gets the value of the btchBookg property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isBtchBookg() {
return btchBookg;
}
/**
* Sets the value of the btchBookg property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public PaymentInstruction15 setBtchBookg(Boolean value) {
this.btchBookg = value;
return this;
}
/**
* Gets the value of the nbOfTxs property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getNbOfTxs() {
return nbOfTxs;
}
/**
* Sets the value of the nbOfTxs property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public PaymentInstruction15 setNbOfTxs(String value) {
this.nbOfTxs = 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 PaymentInstruction15 setCtrlSum(BigDecimal value) {
this.ctrlSum = value;
return this;
}
/**
* Gets the value of the pmtTpInf property.
*
* @return
* possible object is
* {@link PaymentTypeInformation24 }
*
*/
public PaymentTypeInformation24 getPmtTpInf() {
return pmtTpInf;
}
/**
* Sets the value of the pmtTpInf property.
*
* @param value
* allowed object is
* {@link PaymentTypeInformation24 }
*
*/
public PaymentInstruction15 setPmtTpInf(PaymentTypeInformation24 value) {
this.pmtTpInf = value;
return this;
}
/**
* Gets the value of the reqdColltnDt property.
*
* @return
* possible object is
* {@link String }
*
*/
public LocalDate getReqdColltnDt() {
return reqdColltnDt;
}
/**
* Sets the value of the reqdColltnDt property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public PaymentInstruction15 setReqdColltnDt(LocalDate value) {
this.reqdColltnDt = value;
return this;
}
/**
* Gets the value of the cdtr property.
*
* @return
* possible object is
* {@link PartyIdentification43 }
*
*/
public PartyIdentification43 getCdtr() {
return cdtr;
}
/**
* Sets the value of the cdtr property.
*
* @param value
* allowed object is
* {@link PartyIdentification43 }
*
*/
public PaymentInstruction15 setCdtr(PartyIdentification43 value) {
this.cdtr = value;
return this;
}
/**
* Gets the value of the cdtrAcct property.
*
* @return
* possible object is
* {@link CashAccount24 }
*
*/
public CashAccount24 getCdtrAcct() {
return cdtrAcct;
}
/**
* Sets the value of the cdtrAcct property.
*
* @param value
* allowed object is
* {@link CashAccount24 }
*
*/
public PaymentInstruction15 setCdtrAcct(CashAccount24 value) {
this.cdtrAcct = value;
return this;
}
/**
* Gets the value of the cdtrAgt property.
*
* @return
* possible object is
* {@link BranchAndFinancialInstitutionIdentification5 }
*
*/
public BranchAndFinancialInstitutionIdentification5 getCdtrAgt() {
return cdtrAgt;
}
/**
* Sets the value of the cdtrAgt property.
*
* @param value
* allowed object is
* {@link BranchAndFinancialInstitutionIdentification5 }
*
*/
public PaymentInstruction15 setCdtrAgt(BranchAndFinancialInstitutionIdentification5 value) {
this.cdtrAgt = value;
return this;
}
/**
* Gets the value of the cdtrAgtAcct property.
*
* @return
* possible object is
* {@link CashAccount24 }
*
*/
public CashAccount24 getCdtrAgtAcct() {
return cdtrAgtAcct;
}
/**
* Sets the value of the cdtrAgtAcct property.
*
* @param value
* allowed object is
* {@link CashAccount24 }
*
*/
public PaymentInstruction15 setCdtrAgtAcct(CashAccount24 value) {
this.cdtrAgtAcct = value;
return this;
}
/**
* Gets the value of the ultmtCdtr property.
*
* @return
* possible object is
* {@link PartyIdentification43 }
*
*/
public PartyIdentification43 getUltmtCdtr() {
return ultmtCdtr;
}
/**
* Sets the value of the ultmtCdtr property.
*
* @param value
* allowed object is
* {@link PartyIdentification43 }
*
*/
public PaymentInstruction15 setUltmtCdtr(PartyIdentification43 value) {
this.ultmtCdtr = value;
return this;
}
/**
* Gets the value of the chrgBr property.
*
* @return
* possible object is
* {@link ChargeBearerType1Code }
*
*/
public ChargeBearerType1Code getChrgBr() {
return chrgBr;
}
/**
* Sets the value of the chrgBr property.
*
* @param value
* allowed object is
* {@link ChargeBearerType1Code }
*
*/
public PaymentInstruction15 setChrgBr(ChargeBearerType1Code value) {
this.chrgBr = value;
return this;
}
/**
* Gets the value of the chrgsAcct property.
*
* @return
* possible object is
* {@link CashAccount24 }
*
*/
public CashAccount24 getChrgsAcct() {
return chrgsAcct;
}
/**
* Sets the value of the chrgsAcct property.
*
* @param value
* allowed object is
* {@link CashAccount24 }
*
*/
public PaymentInstruction15 setChrgsAcct(CashAccount24 value) {
this.chrgsAcct = value;
return this;
}
/**
* Gets the value of the chrgsAcctAgt property.
*
* @return
* possible object is
* {@link BranchAndFinancialInstitutionIdentification5 }
*
*/
public BranchAndFinancialInstitutionIdentification5 getChrgsAcctAgt() {
return chrgsAcctAgt;
}
/**
* Sets the value of the chrgsAcctAgt property.
*
* @param value
* allowed object is
* {@link BranchAndFinancialInstitutionIdentification5 }
*
*/
public PaymentInstruction15 setChrgsAcctAgt(BranchAndFinancialInstitutionIdentification5 value) {
this.chrgsAcctAgt = value;
return this;
}
/**
* Gets the value of the cdtrSchmeId property.
*
* @return
* possible object is
* {@link PartyIdentification43 }
*
*/
public PartyIdentification43 getCdtrSchmeId() {
return cdtrSchmeId;
}
/**
* Sets the value of the cdtrSchmeId property.
*
* @param value
* allowed object is
* {@link PartyIdentification43 }
*
*/
public PaymentInstruction15 setCdtrSchmeId(PartyIdentification43 value) {
this.cdtrSchmeId = 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 Jakarta XML Binding object.
* This is why there is not a {@code 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 DirectDebitTransactionInformation18 }
*
*
* @return
* The value of the drctDbtTxInf property.
*/
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 PaymentInstruction15 addDrctDbtTxInf(DirectDebitTransactionInformation18 drctDbtTxInf) {
getDrctDbtTxInf().add(drctDbtTxInf);
return this;
}
}