com.prowidesoftware.swift.model.mx.dic.AccountSwitchDetails1 Maven / Gradle / Ivy
Show all versions of pw-iso20022 Show documentation
package com.prowidesoftware.swift.model.mx.dic;
import java.time.LocalDate;
import java.time.OffsetDateTime;
import java.util.ArrayList;
import java.util.List;
import com.prowidesoftware.swift.model.mx.adapters.IsoDateAdapter;
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;
/**
* Details of the account switch, including its status and any response codes.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "AccountSwitchDetails1", propOrder = {
"unqRefNb",
"rtgUnqRefNb",
"swtchRcvdDtTm",
"swtchDt",
"swtchTp",
"swtchSts",
"balTrfWndw",
"rspn"
})
public class AccountSwitchDetails1 {
@XmlElement(name = "UnqRefNb", required = true)
protected String unqRefNb;
@XmlElement(name = "RtgUnqRefNb", required = true)
protected String rtgUnqRefNb;
@XmlElement(name = "SwtchRcvdDtTm", type = String.class)
@XmlJavaTypeAdapter(IsoDateTimeAdapter.class)
@XmlSchemaType(name = "dateTime")
protected OffsetDateTime swtchRcvdDtTm;
@XmlElement(name = "SwtchDt", type = String.class)
@XmlJavaTypeAdapter(IsoDateAdapter.class)
@XmlSchemaType(name = "date")
protected LocalDate swtchDt;
@XmlElement(name = "SwtchTp", required = true)
@XmlSchemaType(name = "string")
protected SwitchType1Code swtchTp;
@XmlElement(name = "SwtchSts")
@XmlSchemaType(name = "string")
protected SwitchStatus1Code swtchSts;
@XmlElement(name = "BalTrfWndw")
@XmlSchemaType(name = "string")
protected BalanceTransferWindow1Code balTrfWndw;
@XmlElement(name = "Rspn")
protected List rspn;
/**
* Gets the value of the unqRefNb property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getUnqRefNb() {
return unqRefNb;
}
/**
* Sets the value of the unqRefNb property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public AccountSwitchDetails1 setUnqRefNb(String value) {
this.unqRefNb = value;
return this;
}
/**
* Gets the value of the rtgUnqRefNb property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRtgUnqRefNb() {
return rtgUnqRefNb;
}
/**
* Sets the value of the rtgUnqRefNb property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public AccountSwitchDetails1 setRtgUnqRefNb(String value) {
this.rtgUnqRefNb = value;
return this;
}
/**
* Gets the value of the swtchRcvdDtTm property.
*
* @return
* possible object is
* {@link String }
*
*/
public OffsetDateTime getSwtchRcvdDtTm() {
return swtchRcvdDtTm;
}
/**
* Sets the value of the swtchRcvdDtTm property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public AccountSwitchDetails1 setSwtchRcvdDtTm(OffsetDateTime value) {
this.swtchRcvdDtTm = value;
return this;
}
/**
* Gets the value of the swtchDt property.
*
* @return
* possible object is
* {@link String }
*
*/
public LocalDate getSwtchDt() {
return swtchDt;
}
/**
* Sets the value of the swtchDt property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public AccountSwitchDetails1 setSwtchDt(LocalDate value) {
this.swtchDt = value;
return this;
}
/**
* Gets the value of the swtchTp property.
*
* @return
* possible object is
* {@link SwitchType1Code }
*
*/
public SwitchType1Code getSwtchTp() {
return swtchTp;
}
/**
* Sets the value of the swtchTp property.
*
* @param value
* allowed object is
* {@link SwitchType1Code }
*
*/
public AccountSwitchDetails1 setSwtchTp(SwitchType1Code value) {
this.swtchTp = value;
return this;
}
/**
* Gets the value of the swtchSts property.
*
* @return
* possible object is
* {@link SwitchStatus1Code }
*
*/
public SwitchStatus1Code getSwtchSts() {
return swtchSts;
}
/**
* Sets the value of the swtchSts property.
*
* @param value
* allowed object is
* {@link SwitchStatus1Code }
*
*/
public AccountSwitchDetails1 setSwtchSts(SwitchStatus1Code value) {
this.swtchSts = value;
return this;
}
/**
* Gets the value of the balTrfWndw property.
*
* @return
* possible object is
* {@link BalanceTransferWindow1Code }
*
*/
public BalanceTransferWindow1Code getBalTrfWndw() {
return balTrfWndw;
}
/**
* Sets the value of the balTrfWndw property.
*
* @param value
* allowed object is
* {@link BalanceTransferWindow1Code }
*
*/
public AccountSwitchDetails1 setBalTrfWndw(BalanceTransferWindow1Code value) {
this.balTrfWndw = value;
return this;
}
/**
* Gets the value of the rspn 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 rspn property.
*
*
* For example, to add a new item, do as follows:
*
* getRspn().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link ResponseDetails1 }
*
*
* @return
* The value of the rspn property.
*/
public List getRspn() {
if (rspn == null) {
rspn = new ArrayList<>();
}
return this.rspn;
}
@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 rspn list.
* @see #getRspn()
*
*/
public AccountSwitchDetails1 addRspn(ResponseDetails1 rspn) {
getRspn().add(rspn);
return this;
}
}