com.prowidesoftware.swift.model.mx.dic.LineItemDetails10 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 = "LineItemDetails10", propOrder = {
"lineItmId",
"qty",
"qtyTlrnce",
"unitPric",
"pricTlrnce",
"pdctNm",
"pdctIdr",
"pdctChrtcs",
"pdctCtgy",
"pdctOrgn",
"shipmntSchdl",
"rtgSummry",
"adjstmnt",
"frghtChrgs",
"tax",
"ttlAmt",
"incotrms"
})
public class LineItemDetails10 {
@XmlElement(name = "LineItmId", required = true)
protected String lineItmId;
@XmlElement(name = "Qty", required = true)
protected Quantity9 qty;
@XmlElement(name = "QtyTlrnce")
protected PercentageTolerance1 qtyTlrnce;
@XmlElement(name = "UnitPric")
protected UnitPrice18 unitPric;
@XmlElement(name = "PricTlrnce")
protected PercentageTolerance1 pricTlrnce;
@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 List pdctOrgn;
@XmlElement(name = "ShipmntSchdl")
protected ShipmentSchedule2Choice shipmntSchdl;
@XmlElement(name = "RtgSummry")
protected TransportMeans5 rtgSummry;
@XmlElement(name = "Adjstmnt")
protected List adjstmnt;
@XmlElement(name = "FrghtChrgs")
protected Charge24 frghtChrgs;
@XmlElement(name = "Tax")
protected List tax;
@XmlElement(name = "TtlAmt", required = true)
protected CurrencyAndAmount ttlAmt;
@XmlElement(name = "Incotrms")
protected Incoterms4 incotrms;
/**
* 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 LineItemDetails10 setLineItmId(String value) {
this.lineItmId = value;
return this;
}
/**
* Gets the value of the qty property.
*
* @return
* possible object is
* {@link Quantity9 }
*
*/
public Quantity9 getQty() {
return qty;
}
/**
* Sets the value of the qty property.
*
* @param value
* allowed object is
* {@link Quantity9 }
*
*/
public LineItemDetails10 setQty(Quantity9 value) {
this.qty = value;
return this;
}
/**
* Gets the value of the qtyTlrnce property.
*
* @return
* possible object is
* {@link PercentageTolerance1 }
*
*/
public PercentageTolerance1 getQtyTlrnce() {
return qtyTlrnce;
}
/**
* Sets the value of the qtyTlrnce property.
*
* @param value
* allowed object is
* {@link PercentageTolerance1 }
*
*/
public LineItemDetails10 setQtyTlrnce(PercentageTolerance1 value) {
this.qtyTlrnce = value;
return this;
}
/**
* Gets the value of the unitPric property.
*
* @return
* possible object is
* {@link UnitPrice18 }
*
*/
public UnitPrice18 getUnitPric() {
return unitPric;
}
/**
* Sets the value of the unitPric property.
*
* @param value
* allowed object is
* {@link UnitPrice18 }
*
*/
public LineItemDetails10 setUnitPric(UnitPrice18 value) {
this.unitPric = value;
return this;
}
/**
* Gets the value of the pricTlrnce property.
*
* @return
* possible object is
* {@link PercentageTolerance1 }
*
*/
public PercentageTolerance1 getPricTlrnce() {
return pricTlrnce;
}
/**
* Sets the value of the pricTlrnce property.
*
* @param value
* allowed object is
* {@link PercentageTolerance1 }
*
*/
public LineItemDetails10 setPricTlrnce(PercentageTolerance1 value) {
this.pricTlrnce = 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 LineItemDetails10 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.
*
*
* 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 pdctOrgn property.
*
*
* For example, to add a new item, do as follows:
*
* getPdctOrgn().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
*/
public List getPdctOrgn() {
if (pdctOrgn == null) {
pdctOrgn = new ArrayList();
}
return this.pdctOrgn;
}
/**
* Gets the value of the shipmntSchdl property.
*
* @return
* possible object is
* {@link ShipmentSchedule2Choice }
*
*/
public ShipmentSchedule2Choice getShipmntSchdl() {
return shipmntSchdl;
}
/**
* Sets the value of the shipmntSchdl property.
*
* @param value
* allowed object is
* {@link ShipmentSchedule2Choice }
*
*/
public LineItemDetails10 setShipmntSchdl(ShipmentSchedule2Choice value) {
this.shipmntSchdl = value;
return this;
}
/**
* Gets the value of the rtgSummry property.
*
* @return
* possible object is
* {@link TransportMeans5 }
*
*/
public TransportMeans5 getRtgSummry() {
return rtgSummry;
}
/**
* Sets the value of the rtgSummry property.
*
* @param value
* allowed object is
* {@link TransportMeans5 }
*
*/
public LineItemDetails10 setRtgSummry(TransportMeans5 value) {
this.rtgSummry = 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 Adjustment7 }
*
*
*/
public List getAdjstmnt() {
if (adjstmnt == null) {
adjstmnt = new ArrayList();
}
return this.adjstmnt;
}
/**
* Gets the value of the frghtChrgs property.
*
* @return
* possible object is
* {@link Charge24 }
*
*/
public Charge24 getFrghtChrgs() {
return frghtChrgs;
}
/**
* Sets the value of the frghtChrgs property.
*
* @param value
* allowed object is
* {@link Charge24 }
*
*/
public LineItemDetails10 setFrghtChrgs(Charge24 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 Tax23 }
*
*
*/
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 LineItemDetails10 setTtlAmt(CurrencyAndAmount value) {
this.ttlAmt = value;
return this;
}
/**
* 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 LineItemDetails10 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 pdctIdr list.
* @see #getPdctIdr()
*
*/
public LineItemDetails10 addPdctIdr(ProductIdentifier2Choice pdctIdr) {
getPdctIdr().add(pdctIdr);
return this;
}
/**
* Adds a new item to the pdctChrtcs list.
* @see #getPdctChrtcs()
*
*/
public LineItemDetails10 addPdctChrtcs(ProductCharacteristics1Choice pdctChrtcs) {
getPdctChrtcs().add(pdctChrtcs);
return this;
}
/**
* Adds a new item to the pdctCtgy list.
* @see #getPdctCtgy()
*
*/
public LineItemDetails10 addPdctCtgy(ProductCategory1Choice pdctCtgy) {
getPdctCtgy().add(pdctCtgy);
return this;
}
/**
* Adds a new item to the pdctOrgn list.
* @see #getPdctOrgn()
*
*/
public LineItemDetails10 addPdctOrgn(String pdctOrgn) {
getPdctOrgn().add(pdctOrgn);
return this;
}
/**
* Adds a new item to the adjstmnt list.
* @see #getAdjstmnt()
*
*/
public LineItemDetails10 addAdjstmnt(Adjustment7 adjstmnt) {
getAdjstmnt().add(adjstmnt);
return this;
}
/**
* Adds a new item to the tax list.
* @see #getTax()
*
*/
public LineItemDetails10 addTax(Tax23 tax) {
getTax().add(tax);
return this;
}
}