com.prowidesoftware.swift.model.mx.dic.CustomerAccount1 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;
/**
* Account owned by a customer.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CustomerAccount1", propOrder = {
"id",
"nm",
"sts",
"tp",
"ccy",
"mnthlyPmtVal",
"mnthlyRcvdVal",
"mnthlyTxNb",
"avrgBal",
"acctPurp",
"flrNtfctnAmt",
"clngNtfctnAmt",
"stmtCycl",
"clsgDt",
"rstrctn"
})
public class CustomerAccount1 {
@XmlElement(name = "Id", required = true)
protected AccountIdentification4Choice id;
@XmlElement(name = "Nm")
protected String nm;
@XmlElement(name = "Sts")
@XmlSchemaType(name = "string")
protected AccountStatus3Code sts;
@XmlElement(name = "Tp")
protected CashAccountType2 tp;
@XmlElement(name = "Ccy", required = true)
protected String ccy;
@XmlElement(name = "MnthlyPmtVal")
protected BigDecimal mnthlyPmtVal;
@XmlElement(name = "MnthlyRcvdVal")
protected BigDecimal mnthlyRcvdVal;
@XmlElement(name = "MnthlyTxNb")
protected String mnthlyTxNb;
@XmlElement(name = "AvrgBal")
protected BigDecimal avrgBal;
@XmlElement(name = "AcctPurp")
protected String acctPurp;
@XmlElement(name = "FlrNtfctnAmt")
protected BigDecimal flrNtfctnAmt;
@XmlElement(name = "ClngNtfctnAmt")
protected BigDecimal clngNtfctnAmt;
@XmlElement(name = "StmtCycl")
@XmlSchemaType(name = "string")
protected Frequency3Code stmtCycl;
@XmlElement(name = "ClsgDt", type = String.class)
@XmlJavaTypeAdapter(IsoDateAdapter.class)
@XmlSchemaType(name = "date")
protected LocalDate clsgDt;
@XmlElement(name = "Rstrctn")
protected List rstrctn;
/**
* Gets the value of the id property.
*
* @return
* possible object is
* {@link AccountIdentification4Choice }
*
*/
public AccountIdentification4Choice getId() {
return id;
}
/**
* Sets the value of the id property.
*
* @param value
* allowed object is
* {@link AccountIdentification4Choice }
*
*/
public CustomerAccount1 setId(AccountIdentification4Choice value) {
this.id = value;
return this;
}
/**
* Gets the value of the nm property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getNm() {
return nm;
}
/**
* Sets the value of the nm property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public CustomerAccount1 setNm(String value) {
this.nm = value;
return this;
}
/**
* Gets the value of the sts property.
*
* @return
* possible object is
* {@link AccountStatus3Code }
*
*/
public AccountStatus3Code getSts() {
return sts;
}
/**
* Sets the value of the sts property.
*
* @param value
* allowed object is
* {@link AccountStatus3Code }
*
*/
public CustomerAccount1 setSts(AccountStatus3Code value) {
this.sts = value;
return this;
}
/**
* Gets the value of the tp property.
*
* @return
* possible object is
* {@link CashAccountType2 }
*
*/
public CashAccountType2 getTp() {
return tp;
}
/**
* Sets the value of the tp property.
*
* @param value
* allowed object is
* {@link CashAccountType2 }
*
*/
public CustomerAccount1 setTp(CashAccountType2 value) {
this.tp = value;
return this;
}
/**
* Gets the value of the ccy property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCcy() {
return ccy;
}
/**
* Sets the value of the ccy property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public CustomerAccount1 setCcy(String value) {
this.ccy = value;
return this;
}
/**
* Gets the value of the mnthlyPmtVal property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getMnthlyPmtVal() {
return mnthlyPmtVal;
}
/**
* Sets the value of the mnthlyPmtVal property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public CustomerAccount1 setMnthlyPmtVal(BigDecimal value) {
this.mnthlyPmtVal = value;
return this;
}
/**
* Gets the value of the mnthlyRcvdVal property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getMnthlyRcvdVal() {
return mnthlyRcvdVal;
}
/**
* Sets the value of the mnthlyRcvdVal property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public CustomerAccount1 setMnthlyRcvdVal(BigDecimal value) {
this.mnthlyRcvdVal = value;
return this;
}
/**
* Gets the value of the mnthlyTxNb property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getMnthlyTxNb() {
return mnthlyTxNb;
}
/**
* Sets the value of the mnthlyTxNb property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public CustomerAccount1 setMnthlyTxNb(String value) {
this.mnthlyTxNb = value;
return this;
}
/**
* Gets the value of the avrgBal property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getAvrgBal() {
return avrgBal;
}
/**
* Sets the value of the avrgBal property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public CustomerAccount1 setAvrgBal(BigDecimal value) {
this.avrgBal = value;
return this;
}
/**
* Gets the value of the acctPurp property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getAcctPurp() {
return acctPurp;
}
/**
* Sets the value of the acctPurp property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public CustomerAccount1 setAcctPurp(String value) {
this.acctPurp = value;
return this;
}
/**
* Gets the value of the flrNtfctnAmt property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getFlrNtfctnAmt() {
return flrNtfctnAmt;
}
/**
* Sets the value of the flrNtfctnAmt property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public CustomerAccount1 setFlrNtfctnAmt(BigDecimal value) {
this.flrNtfctnAmt = value;
return this;
}
/**
* Gets the value of the clngNtfctnAmt property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getClngNtfctnAmt() {
return clngNtfctnAmt;
}
/**
* Sets the value of the clngNtfctnAmt property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public CustomerAccount1 setClngNtfctnAmt(BigDecimal value) {
this.clngNtfctnAmt = value;
return this;
}
/**
* Gets the value of the stmtCycl property.
*
* @return
* possible object is
* {@link Frequency3Code }
*
*/
public Frequency3Code getStmtCycl() {
return stmtCycl;
}
/**
* Sets the value of the stmtCycl property.
*
* @param value
* allowed object is
* {@link Frequency3Code }
*
*/
public CustomerAccount1 setStmtCycl(Frequency3Code value) {
this.stmtCycl = value;
return this;
}
/**
* Gets the value of the clsgDt property.
*
* @return
* possible object is
* {@link String }
*
*/
public LocalDate getClsgDt() {
return clsgDt;
}
/**
* Sets the value of the clsgDt property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public CustomerAccount1 setClsgDt(LocalDate value) {
this.clsgDt = value;
return this;
}
/**
* Gets the value of the rstrctn 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 rstrctn property.
*
*
* For example, to add a new item, do as follows:
*
* getRstrctn().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Restriction1 }
*
*
* @return
* The value of the rstrctn property.
*/
public List getRstrctn() {
if (rstrctn == null) {
rstrctn = new ArrayList<>();
}
return this.rstrctn;
}
@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 rstrctn list.
* @see #getRstrctn()
*
*/
public CustomerAccount1 addRstrctn(Restriction1 rstrctn) {
getRstrctn().add(rstrctn);
return this;
}
}