com.prowidesoftware.swift.model.mx.dic.AggregationTransaction3 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.OffsetDateTime;
import java.util.ArrayList;
import java.util.List;
import com.prowidesoftware.swift.model.mx.adapters.IsoDateTimeAdapter;
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;
/**
* Payment transaction with an aggregated amount.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "AggregationTransaction3", propOrder = {
"frstPmtDtTm",
"lastPmtDtTm",
"nbOfPmts",
"indvPmt"
})
public class AggregationTransaction3 {
@XmlElement(name = "FrstPmtDtTm", type = String.class)
@XmlJavaTypeAdapter(IsoDateTimeAdapter.class)
@XmlSchemaType(name = "dateTime")
protected OffsetDateTime frstPmtDtTm;
@XmlElement(name = "LastPmtDtTm", type = String.class)
@XmlJavaTypeAdapter(IsoDateTimeAdapter.class)
@XmlSchemaType(name = "dateTime")
protected OffsetDateTime lastPmtDtTm;
@XmlElement(name = "NbOfPmts")
protected BigDecimal nbOfPmts;
@XmlElement(name = "IndvPmt")
protected List indvPmt;
/**
* Gets the value of the frstPmtDtTm property.
*
* @return
* possible object is
* {@link String }
*
*/
public OffsetDateTime getFrstPmtDtTm() {
return frstPmtDtTm;
}
/**
* Sets the value of the frstPmtDtTm property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public AggregationTransaction3 setFrstPmtDtTm(OffsetDateTime value) {
this.frstPmtDtTm = value;
return this;
}
/**
* Gets the value of the lastPmtDtTm property.
*
* @return
* possible object is
* {@link String }
*
*/
public OffsetDateTime getLastPmtDtTm() {
return lastPmtDtTm;
}
/**
* Sets the value of the lastPmtDtTm property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public AggregationTransaction3 setLastPmtDtTm(OffsetDateTime value) {
this.lastPmtDtTm = value;
return this;
}
/**
* Gets the value of the nbOfPmts property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getNbOfPmts() {
return nbOfPmts;
}
/**
* Sets the value of the nbOfPmts property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public AggregationTransaction3 setNbOfPmts(BigDecimal value) {
this.nbOfPmts = value;
return this;
}
/**
* Gets the value of the indvPmt 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 indvPmt property.
*
*
* For example, to add a new item, do as follows:
*
* getIndvPmt().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link DetailedAmount21 }
*
*
* @return
* The value of the indvPmt property.
*/
public List getIndvPmt() {
if (indvPmt == null) {
indvPmt = new ArrayList<>();
}
return this.indvPmt;
}
@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 indvPmt list.
* @see #getIndvPmt()
*
*/
public AggregationTransaction3 addIndvPmt(DetailedAmount21 indvPmt) {
getIndvPmt().add(indvPmt);
return this;
}
}