com.prowidesoftware.swift.model.mx.dic.LineItem15 Maven / Gradle / Ivy
Show all versions of pw-iso20022 Show documentation
package com.prowidesoftware.swift.model.mx.dic;
import java.util.ArrayList;
import java.util.List;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.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;
/**
* Commercial details of a trade transaction between a buyer and a seller.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "LineItem15", propOrder = {
"purchsOrdrRef",
"fnlSubmissn",
"comrclLineItms",
"lineItmsTtlAmt",
"adjstmnt",
"frghtChrgs",
"tax",
"ttlNetAmt",
"buyrDfndInf",
"sellrDfndInf",
"incotrms"
})
public class LineItem15 {
@XmlElement(name = "PurchsOrdrRef", required = true)
protected DocumentIdentification7 purchsOrdrRef;
@XmlElement(name = "FnlSubmissn")
protected boolean fnlSubmissn;
@XmlElement(name = "ComrclLineItms", required = true)
protected List comrclLineItms;
@XmlElement(name = "LineItmsTtlAmt", required = true)
protected CurrencyAndAmount lineItmsTtlAmt;
@XmlElement(name = "Adjstmnt")
protected List adjstmnt;
@XmlElement(name = "FrghtChrgs")
protected Charge25 frghtChrgs;
@XmlElement(name = "Tax")
protected List tax;
@XmlElement(name = "TtlNetAmt", required = true)
protected CurrencyAndAmount ttlNetAmt;
@XmlElement(name = "BuyrDfndInf")
protected List buyrDfndInf;
@XmlElement(name = "SellrDfndInf")
protected List sellrDfndInf;
@XmlElement(name = "Incotrms")
protected Incoterms4 incotrms;
/**
* Gets the value of the purchsOrdrRef property.
*
* @return
* possible object is
* {@link DocumentIdentification7 }
*
*/
public DocumentIdentification7 getPurchsOrdrRef() {
return purchsOrdrRef;
}
/**
* Sets the value of the purchsOrdrRef property.
*
* @param value
* allowed object is
* {@link DocumentIdentification7 }
*
*/
public LineItem15 setPurchsOrdrRef(DocumentIdentification7 value) {
this.purchsOrdrRef = value;
return this;
}
/**
* Gets the value of the fnlSubmissn property.
*
*/
public boolean isFnlSubmissn() {
return fnlSubmissn;
}
/**
* Sets the value of the fnlSubmissn property.
*
*/
public LineItem15 setFnlSubmissn(boolean value) {
this.fnlSubmissn = value;
return this;
}
/**
* Gets the value of the comrclLineItms 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 comrclLineItms property.
*
*
* For example, to add a new item, do as follows:
*
* getComrclLineItms().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link LineItemDetails14 }
*
*
* @return
* The value of the comrclLineItms property.
*/
public List getComrclLineItms() {
if (comrclLineItms == null) {
comrclLineItms = new ArrayList<>();
}
return this.comrclLineItms;
}
/**
* Gets the value of the lineItmsTtlAmt property.
*
* @return
* possible object is
* {@link CurrencyAndAmount }
*
*/
public CurrencyAndAmount getLineItmsTtlAmt() {
return lineItmsTtlAmt;
}
/**
* Sets the value of the lineItmsTtlAmt property.
*
* @param value
* allowed object is
* {@link CurrencyAndAmount }
*
*/
public LineItem15 setLineItmsTtlAmt(CurrencyAndAmount value) {
this.lineItmsTtlAmt = value;
return this;
}
/**
* Gets the value of the adjstmnt 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 adjstmnt property.
*
*
* For example, to add a new item, do as follows:
*
* getAdjstmnt().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Adjustment6 }
*
*
* @return
* The value of the adjstmnt property.
*/
public List getAdjstmnt() {
if (adjstmnt == null) {
adjstmnt = new ArrayList<>();
}
return this.adjstmnt;
}
/**
* Gets the value of the frghtChrgs property.
*
* @return
* possible object is
* {@link Charge25 }
*
*/
public Charge25 getFrghtChrgs() {
return frghtChrgs;
}
/**
* Sets the value of the frghtChrgs property.
*
* @param value
* allowed object is
* {@link Charge25 }
*
*/
public LineItem15 setFrghtChrgs(Charge25 value) {
this.frghtChrgs = value;
return this;
}
/**
* Gets the value of the tax 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 tax property.
*
*
* For example, to add a new item, do as follows:
*
* getTax().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Tax22 }
*
*
* @return
* The value of the tax property.
*/
public List getTax() {
if (tax == null) {
tax = new ArrayList<>();
}
return this.tax;
}
/**
* Gets the value of the ttlNetAmt property.
*
* @return
* possible object is
* {@link CurrencyAndAmount }
*
*/
public CurrencyAndAmount getTtlNetAmt() {
return ttlNetAmt;
}
/**
* Sets the value of the ttlNetAmt property.
*
* @param value
* allowed object is
* {@link CurrencyAndAmount }
*
*/
public LineItem15 setTtlNetAmt(CurrencyAndAmount value) {
this.ttlNetAmt = value;
return this;
}
/**
* Gets the value of the buyrDfndInf 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 buyrDfndInf property.
*
*
* For example, to add a new item, do as follows:
*
* getBuyrDfndInf().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link UserDefinedInformation1 }
*
*
* @return
* The value of the buyrDfndInf property.
*/
public List getBuyrDfndInf() {
if (buyrDfndInf == null) {
buyrDfndInf = new ArrayList<>();
}
return this.buyrDfndInf;
}
/**
* Gets the value of the sellrDfndInf 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 sellrDfndInf property.
*
*
* For example, to add a new item, do as follows:
*
* getSellrDfndInf().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link UserDefinedInformation1 }
*
*
* @return
* The value of the sellrDfndInf property.
*/
public List getSellrDfndInf() {
if (sellrDfndInf == null) {
sellrDfndInf = new ArrayList<>();
}
return this.sellrDfndInf;
}
/**
* Gets the value of the incotrms property.
*
* @return
* possible object is
* {@link Incoterms4 }
*
*/
public Incoterms4 getIncotrms() {
return incotrms;
}
/**
* Sets the value of the incotrms property.
*
* @param value
* allowed object is
* {@link Incoterms4 }
*
*/
public LineItem15 setIncotrms(Incoterms4 value) {
this.incotrms = 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 comrclLineItms list.
* @see #getComrclLineItms()
*
*/
public LineItem15 addComrclLineItms(LineItemDetails14 comrclLineItms) {
getComrclLineItms().add(comrclLineItms);
return this;
}
/**
* Adds a new item to the adjstmnt list.
* @see #getAdjstmnt()
*
*/
public LineItem15 addAdjstmnt(Adjustment6 adjstmnt) {
getAdjstmnt().add(adjstmnt);
return this;
}
/**
* Adds a new item to the tax list.
* @see #getTax()
*
*/
public LineItem15 addTax(Tax22 tax) {
getTax().add(tax);
return this;
}
/**
* Adds a new item to the buyrDfndInf list.
* @see #getBuyrDfndInf()
*
*/
public LineItem15 addBuyrDfndInf(UserDefinedInformation1 buyrDfndInf) {
getBuyrDfndInf().add(buyrDfndInf);
return this;
}
/**
* Adds a new item to the sellrDfndInf list.
* @see #getSellrDfndInf()
*
*/
public LineItem15 addSellrDfndInf(UserDefinedInformation1 sellrDfndInf) {
getSellrDfndInf().add(sellrDfndInf);
return this;
}
}