com.prowidesoftware.swift.model.mx.dic.LineItemDetails9 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 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;
/**
* Goods or services that are part of a commercial trade agreement.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "LineItemDetails9", propOrder = {
"lineItmId",
"qty",
"unitPric",
"pdctNm",
"pdctIdr",
"pdctChrtcs",
"pdctCtgy",
"pdctOrgn",
"adjstmnt",
"frghtChrgs",
"tax",
"ttlAmt"
})
public class LineItemDetails9 {
@XmlElement(name = "LineItmId", required = true)
protected String lineItmId;
@XmlElement(name = "Qty", required = true)
protected Quantity4 qty;
@XmlElement(name = "UnitPric")
protected UnitPrice9 unitPric;
@XmlElement(name = "PdctNm")
protected String pdctNm;
@XmlElement(name = "PdctIdr")
protected List pdctIdr;
@XmlElement(name = "PdctChrtcs")
protected List pdctChrtcs;
@XmlElement(name = "PdctCtgy")
protected List pdctCtgy;
@XmlElement(name = "PdctOrgn")
protected String pdctOrgn;
@XmlElement(name = "Adjstmnt")
protected List adjstmnt;
@XmlElement(name = "FrghtChrgs")
protected Charge13 frghtChrgs;
@XmlElement(name = "Tax")
protected List tax;
@XmlElement(name = "TtlAmt", required = true)
protected CurrencyAndAmount ttlAmt;
/**
* Gets the value of the lineItmId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getLineItmId() {
return lineItmId;
}
/**
* Sets the value of the lineItmId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public LineItemDetails9 setLineItmId(String value) {
this.lineItmId = value;
return this;
}
/**
* Gets the value of the qty property.
*
* @return
* possible object is
* {@link Quantity4 }
*
*/
public Quantity4 getQty() {
return qty;
}
/**
* Sets the value of the qty property.
*
* @param value
* allowed object is
* {@link Quantity4 }
*
*/
public LineItemDetails9 setQty(Quantity4 value) {
this.qty = value;
return this;
}
/**
* Gets the value of the unitPric property.
*
* @return
* possible object is
* {@link UnitPrice9 }
*
*/
public UnitPrice9 getUnitPric() {
return unitPric;
}
/**
* Sets the value of the unitPric property.
*
* @param value
* allowed object is
* {@link UnitPrice9 }
*
*/
public LineItemDetails9 setUnitPric(UnitPrice9 value) {
this.unitPric = value;
return this;
}
/**
* Gets the value of the pdctNm property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPdctNm() {
return pdctNm;
}
/**
* Sets the value of the pdctNm property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public LineItemDetails9 setPdctNm(String value) {
this.pdctNm = value;
return this;
}
/**
* Gets the value of the pdctIdr 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 pdctIdr property.
*
*
* For example, to add a new item, do as follows:
*
* getPdctIdr().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link ProductIdentifier2Choice }
*
*
*/
public List getPdctIdr() {
if (pdctIdr == null) {
pdctIdr = new ArrayList();
}
return this.pdctIdr;
}
/**
* Gets the value of the pdctChrtcs 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 pdctChrtcs property.
*
*
* For example, to add a new item, do as follows:
*
* getPdctChrtcs().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link ProductCharacteristics1Choice }
*
*
*/
public List getPdctChrtcs() {
if (pdctChrtcs == null) {
pdctChrtcs = new ArrayList();
}
return this.pdctChrtcs;
}
/**
* Gets the value of the pdctCtgy 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 pdctCtgy property.
*
*
* For example, to add a new item, do as follows:
*
* getPdctCtgy().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link ProductCategory1Choice }
*
*
*/
public List getPdctCtgy() {
if (pdctCtgy == null) {
pdctCtgy = new ArrayList();
}
return this.pdctCtgy;
}
/**
* Gets the value of the pdctOrgn property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPdctOrgn() {
return pdctOrgn;
}
/**
* Sets the value of the pdctOrgn property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public LineItemDetails9 setPdctOrgn(String value) {
this.pdctOrgn = 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 JAXB object.
* This is why there is not a 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 Adjustment4 }
*
*
*/
public List getAdjstmnt() {
if (adjstmnt == null) {
adjstmnt = new ArrayList();
}
return this.adjstmnt;
}
/**
* Gets the value of the frghtChrgs property.
*
* @return
* possible object is
* {@link Charge13 }
*
*/
public Charge13 getFrghtChrgs() {
return frghtChrgs;
}
/**
* Sets the value of the frghtChrgs property.
*
* @param value
* allowed object is
* {@link Charge13 }
*
*/
public LineItemDetails9 setFrghtChrgs(Charge13 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 JAXB object.
* This is why there is not a 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 Tax12 }
*
*
*/
public List getTax() {
if (tax == null) {
tax = new ArrayList();
}
return this.tax;
}
/**
* Gets the value of the ttlAmt property.
*
* @return
* possible object is
* {@link CurrencyAndAmount }
*
*/
public CurrencyAndAmount getTtlAmt() {
return ttlAmt;
}
/**
* Sets the value of the ttlAmt property.
*
* @param value
* allowed object is
* {@link CurrencyAndAmount }
*
*/
public LineItemDetails9 setTtlAmt(CurrencyAndAmount value) {
this.ttlAmt = 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 pdctIdr list.
* @see #getPdctIdr()
*
*/
public LineItemDetails9 addPdctIdr(ProductIdentifier2Choice pdctIdr) {
getPdctIdr().add(pdctIdr);
return this;
}
/**
* Adds a new item to the pdctChrtcs list.
* @see #getPdctChrtcs()
*
*/
public LineItemDetails9 addPdctChrtcs(ProductCharacteristics1Choice pdctChrtcs) {
getPdctChrtcs().add(pdctChrtcs);
return this;
}
/**
* Adds a new item to the pdctCtgy list.
* @see #getPdctCtgy()
*
*/
public LineItemDetails9 addPdctCtgy(ProductCategory1Choice pdctCtgy) {
getPdctCtgy().add(pdctCtgy);
return this;
}
/**
* Adds a new item to the adjstmnt list.
* @see #getAdjstmnt()
*
*/
public LineItemDetails9 addAdjstmnt(Adjustment4 adjstmnt) {
getAdjstmnt().add(adjstmnt);
return this;
}
/**
* Adds a new item to the tax list.
* @see #getTax()
*
*/
public LineItemDetails9 addTax(Tax12 tax) {
getTax().add(tax);
return this;
}
}