com.prowidesoftware.swift.model.mx.dic.TradeAgreement13 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;
/**
* Contractual details related to the agreement between parties.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "TradeAgreement13", propOrder = {
"buyr",
"sellr",
"qtnDocId",
"ctrctDocId",
"buyrOrdrIdDoc",
"addtlRefDoc",
"incotrms"
})
public class TradeAgreement13 {
@XmlElement(name = "Buyr", required = true)
protected TradeParty3 buyr;
@XmlElement(name = "Sellr", required = true)
protected TradeParty3 sellr;
@XmlElement(name = "QtnDocId")
protected DocumentIdentification22 qtnDocId;
@XmlElement(name = "CtrctDocId")
protected DocumentIdentification22 ctrctDocId;
@XmlElement(name = "BuyrOrdrIdDoc")
protected DocumentIdentification22 buyrOrdrIdDoc;
@XmlElement(name = "AddtlRefDoc")
protected List addtlRefDoc;
@XmlElement(name = "Incotrms")
protected Incoterms3 incotrms;
/**
* Gets the value of the buyr property.
*
* @return
* possible object is
* {@link TradeParty3 }
*
*/
public TradeParty3 getBuyr() {
return buyr;
}
/**
* Sets the value of the buyr property.
*
* @param value
* allowed object is
* {@link TradeParty3 }
*
*/
public TradeAgreement13 setBuyr(TradeParty3 value) {
this.buyr = value;
return this;
}
/**
* Gets the value of the sellr property.
*
* @return
* possible object is
* {@link TradeParty3 }
*
*/
public TradeParty3 getSellr() {
return sellr;
}
/**
* Sets the value of the sellr property.
*
* @param value
* allowed object is
* {@link TradeParty3 }
*
*/
public TradeAgreement13 setSellr(TradeParty3 value) {
this.sellr = value;
return this;
}
/**
* Gets the value of the qtnDocId property.
*
* @return
* possible object is
* {@link DocumentIdentification22 }
*
*/
public DocumentIdentification22 getQtnDocId() {
return qtnDocId;
}
/**
* Sets the value of the qtnDocId property.
*
* @param value
* allowed object is
* {@link DocumentIdentification22 }
*
*/
public TradeAgreement13 setQtnDocId(DocumentIdentification22 value) {
this.qtnDocId = value;
return this;
}
/**
* Gets the value of the ctrctDocId property.
*
* @return
* possible object is
* {@link DocumentIdentification22 }
*
*/
public DocumentIdentification22 getCtrctDocId() {
return ctrctDocId;
}
/**
* Sets the value of the ctrctDocId property.
*
* @param value
* allowed object is
* {@link DocumentIdentification22 }
*
*/
public TradeAgreement13 setCtrctDocId(DocumentIdentification22 value) {
this.ctrctDocId = value;
return this;
}
/**
* Gets the value of the buyrOrdrIdDoc property.
*
* @return
* possible object is
* {@link DocumentIdentification22 }
*
*/
public DocumentIdentification22 getBuyrOrdrIdDoc() {
return buyrOrdrIdDoc;
}
/**
* Sets the value of the buyrOrdrIdDoc property.
*
* @param value
* allowed object is
* {@link DocumentIdentification22 }
*
*/
public TradeAgreement13 setBuyrOrdrIdDoc(DocumentIdentification22 value) {
this.buyrOrdrIdDoc = value;
return this;
}
/**
* Gets the value of the addtlRefDoc 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 addtlRefDoc property.
*
*
* For example, to add a new item, do as follows:
*
* getAddtlRefDoc().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link DocumentGeneralInformation2 }
*
*
*/
public List getAddtlRefDoc() {
if (addtlRefDoc == null) {
addtlRefDoc = new ArrayList();
}
return this.addtlRefDoc;
}
/**
* Gets the value of the incotrms property.
*
* @return
* possible object is
* {@link Incoterms3 }
*
*/
public Incoterms3 getIncotrms() {
return incotrms;
}
/**
* Sets the value of the incotrms property.
*
* @param value
* allowed object is
* {@link Incoterms3 }
*
*/
public TradeAgreement13 setIncotrms(Incoterms3 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 addtlRefDoc list.
* @see #getAddtlRefDoc()
*
*/
public TradeAgreement13 addAddtlRefDoc(DocumentGeneralInformation2 addtlRefDoc) {
getAddtlRefDoc().add(addtlRefDoc);
return this;
}
}