com.prowidesoftware.swift.model.mx.dic.SaleContext2 Maven / Gradle / Ivy
Show all versions of pw-iso20022 Show documentation
package com.prowidesoftware.swift.model.mx.dic;
import java.math.BigDecimal;
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;
/**
* Sale context in which the transaction is performed.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "SaleContext2", propOrder = {
"saleId",
"saleRefNb",
"saleRcncltnId",
"cshrId",
"shftNb",
"purchsOrdrNb",
"invcNb",
"dlvryNoteNb",
"spnsrdMrchnt",
"spltPmt",
"rmngAmt",
"addtlSaleData"
})
public class SaleContext2 {
@XmlElement(name = "SaleId")
protected String saleId;
@XmlElement(name = "SaleRefNb")
protected String saleRefNb;
@XmlElement(name = "SaleRcncltnId")
protected String saleRcncltnId;
@XmlElement(name = "CshrId")
protected String cshrId;
@XmlElement(name = "ShftNb")
protected String shftNb;
@XmlElement(name = "PurchsOrdrNb")
protected String purchsOrdrNb;
@XmlElement(name = "InvcNb")
protected String invcNb;
@XmlElement(name = "DlvryNoteNb")
protected String dlvryNoteNb;
@XmlElement(name = "SpnsrdMrchnt")
protected List spnsrdMrchnt;
@XmlElement(name = "SpltPmt")
protected Boolean spltPmt;
@XmlElement(name = "RmngAmt")
protected BigDecimal rmngAmt;
@XmlElement(name = "AddtlSaleData")
protected String addtlSaleData;
/**
* Gets the value of the saleId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSaleId() {
return saleId;
}
/**
* Sets the value of the saleId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public SaleContext2 setSaleId(String value) {
this.saleId = value;
return this;
}
/**
* Gets the value of the saleRefNb property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSaleRefNb() {
return saleRefNb;
}
/**
* Sets the value of the saleRefNb property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public SaleContext2 setSaleRefNb(String value) {
this.saleRefNb = value;
return this;
}
/**
* Gets the value of the saleRcncltnId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSaleRcncltnId() {
return saleRcncltnId;
}
/**
* Sets the value of the saleRcncltnId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public SaleContext2 setSaleRcncltnId(String value) {
this.saleRcncltnId = value;
return this;
}
/**
* Gets the value of the cshrId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCshrId() {
return cshrId;
}
/**
* Sets the value of the cshrId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public SaleContext2 setCshrId(String value) {
this.cshrId = value;
return this;
}
/**
* Gets the value of the shftNb property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getShftNb() {
return shftNb;
}
/**
* Sets the value of the shftNb property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public SaleContext2 setShftNb(String value) {
this.shftNb = value;
return this;
}
/**
* Gets the value of the purchsOrdrNb property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPurchsOrdrNb() {
return purchsOrdrNb;
}
/**
* Sets the value of the purchsOrdrNb property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public SaleContext2 setPurchsOrdrNb(String value) {
this.purchsOrdrNb = value;
return this;
}
/**
* Gets the value of the invcNb property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getInvcNb() {
return invcNb;
}
/**
* Sets the value of the invcNb property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public SaleContext2 setInvcNb(String value) {
this.invcNb = value;
return this;
}
/**
* Gets the value of the dlvryNoteNb property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDlvryNoteNb() {
return dlvryNoteNb;
}
/**
* Sets the value of the dlvryNoteNb property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public SaleContext2 setDlvryNoteNb(String value) {
this.dlvryNoteNb = value;
return this;
}
/**
* Gets the value of the spnsrdMrchnt 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 spnsrdMrchnt property.
*
*
* For example, to add a new item, do as follows:
*
* getSpnsrdMrchnt().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Organisation26 }
*
*
*/
public List getSpnsrdMrchnt() {
if (spnsrdMrchnt == null) {
spnsrdMrchnt = new ArrayList();
}
return this.spnsrdMrchnt;
}
/**
* Gets the value of the spltPmt property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isSpltPmt() {
return spltPmt;
}
/**
* Sets the value of the spltPmt property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public SaleContext2 setSpltPmt(Boolean value) {
this.spltPmt = value;
return this;
}
/**
* Gets the value of the rmngAmt property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getRmngAmt() {
return rmngAmt;
}
/**
* Sets the value of the rmngAmt property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public SaleContext2 setRmngAmt(BigDecimal value) {
this.rmngAmt = value;
return this;
}
/**
* Gets the value of the addtlSaleData property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getAddtlSaleData() {
return addtlSaleData;
}
/**
* Sets the value of the addtlSaleData property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public SaleContext2 setAddtlSaleData(String value) {
this.addtlSaleData = value;
return this;
}
@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 spnsrdMrchnt list.
* @see #getSpnsrdMrchnt()
*
*/
public SaleContext2 addSpnsrdMrchnt(Organisation26 spnsrdMrchnt) {
getSpnsrdMrchnt().add(spnsrdMrchnt);
return this;
}
}