All Downloads are FREE. Search and download functionalities are using the official Maven repository.

oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2.PaymentTermsType Maven / Gradle / Ivy


package oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Nonnegative;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
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 com.phloc.commons.annotations.ReturnsMutableObject;
import com.phloc.commons.equals.EqualsUtils;
import com.phloc.commons.hash.HashCodeGenerator;
import com.phloc.commons.string.ToStringGenerator;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.AmountType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.IDType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.NoteType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.PaymentMeansIDType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.PenaltySurchargePercentType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.PrepaidPaymentReferenceIDType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.ReferenceEventCodeType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.SettlementDiscountPercentType;


/**
 * 
 * 
 * <?xml version="1.0" encoding="UTF-8"?><ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ccts:ComponentType>ABIE</ccts:ComponentType><ccts:DictionaryEntryName>Payment Terms. Details</ccts:DictionaryEntryName><ccts:Definition>Information about Payment Terms.</ccts:Definition><ccts:ObjectClass>Payment Terms</ccts:ObjectClass></ccts:Component>
 * 
* * *

Java class for PaymentTermsType complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType name="PaymentTermsType">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}ID" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}PaymentMeansID" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}PrepaidPaymentReferenceID" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}Note" maxOccurs="unbounded" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}ReferenceEventCode" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}SettlementDiscountPercent" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}PenaltySurchargePercent" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}Amount" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}SettlementPeriod" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}PenaltyPeriod" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "PaymentTermsType", propOrder = { "id", "paymentMeansID", "prepaidPaymentReferenceID", "note", "referenceEventCode", "settlementDiscountPercent", "penaltySurchargePercent", "amount", "settlementPeriod", "penaltyPeriod" }) public class PaymentTermsType implements Serializable { @XmlElement(name = "ID", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") private IDType id; @XmlElement(name = "PaymentMeansID", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") private PaymentMeansIDType paymentMeansID; @XmlElement(name = "PrepaidPaymentReferenceID", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") private PrepaidPaymentReferenceIDType prepaidPaymentReferenceID; @XmlElement(name = "Note", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") private List note; @XmlElement(name = "ReferenceEventCode", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") private ReferenceEventCodeType referenceEventCode; @XmlElement(name = "SettlementDiscountPercent", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") private SettlementDiscountPercentType settlementDiscountPercent; @XmlElement(name = "PenaltySurchargePercent", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") private PenaltySurchargePercentType penaltySurchargePercent; @XmlElement(name = "Amount", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") private AmountType amount; @XmlElement(name = "SettlementPeriod") private PeriodType settlementPeriod; @XmlElement(name = "PenaltyPeriod") private PeriodType penaltyPeriod; /** * Default constructor * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * */ public PaymentTermsType() { } /** * *
     * <?xml version="1.0" encoding="UTF-8"?><ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ccts:ComponentType>BBIE</ccts:ComponentType><ccts:DictionaryEntryName>Payment Terms. Identifier</ccts:DictionaryEntryName><ccts:Definition>Identifies the Payment Terms.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Payment Terms</ccts:ObjectClass><ccts:PropertyTerm>Identifier</ccts:PropertyTerm><ccts:RepresentationTerm>Identifier</ccts:RepresentationTerm><ccts:DataType>Identifier. Type</ccts:DataType></ccts:Component>
     * 
* * * @return * possible object is * {@link IDType } * */ @Nullable public IDType getID() { return id; } /** * Sets the value of the id property. * * @param value * allowed object is * {@link IDType } * */ public void setID( @Nullable IDType value) { this.id = value; } /** * *
     * <?xml version="1.0" encoding="UTF-8"?><ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ccts:ComponentType>BBIE</ccts:ComponentType><ccts:DictionaryEntryName>Payment Terms. Payment Means Identifier. Identifier</ccts:DictionaryEntryName><ccts:Definition>Identifies the applicable Payment Means.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Payment Terms</ccts:ObjectClass><ccts:PropertyTerm>Payment Means Identifier</ccts:PropertyTerm><ccts:RepresentationTerm>Identifier</ccts:RepresentationTerm><ccts:DataType>Identifier. Type</ccts:DataType></ccts:Component>
     * 
* * * @return * possible object is * {@link PaymentMeansIDType } * */ @Nullable public PaymentMeansIDType getPaymentMeansID() { return paymentMeansID; } /** * Sets the value of the paymentMeansID property. * * @param value * allowed object is * {@link PaymentMeansIDType } * */ public void setPaymentMeansID( @Nullable PaymentMeansIDType value) { this.paymentMeansID = value; } /** * *
     * <?xml version="1.0" encoding="UTF-8"?><ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ccts:ComponentType>BBIE</ccts:ComponentType><ccts:DictionaryEntryName>Payment Terms. Prepaid Payment Reference Identifier. Identifier</ccts:DictionaryEntryName><ccts:Definition>Identifies prepaid payment.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Payment Terms</ccts:ObjectClass><ccts:PropertyTerm>Prepaid Payment Reference Identifier</ccts:PropertyTerm><ccts:RepresentationTerm>Identifier</ccts:RepresentationTerm><ccts:DataType>Identifier. Type</ccts:DataType></ccts:Component>
     * 
* * * @return * possible object is * {@link PrepaidPaymentReferenceIDType } * */ @Nullable public PrepaidPaymentReferenceIDType getPrepaidPaymentReferenceID() { return prepaidPaymentReferenceID; } /** * Sets the value of the prepaidPaymentReferenceID property. * * @param value * allowed object is * {@link PrepaidPaymentReferenceIDType } * */ public void setPrepaidPaymentReferenceID( @Nullable PrepaidPaymentReferenceIDType value) { this.prepaidPaymentReferenceID = value; } /** * *
     * <?xml version="1.0" encoding="UTF-8"?><ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ccts:ComponentType>BBIE</ccts:ComponentType><ccts:DictionaryEntryName>Payment Terms. Note. Text</ccts:DictionaryEntryName><ccts:Definition>Free-form text applying to the Payment Terms. This element may contain notes or any other similar information that is not contained explicitly in another structure.</ccts:Definition><ccts:Cardinality>0..n</ccts:Cardinality><ccts:ObjectClass>Payment Terms</ccts:ObjectClass><ccts:PropertyTerm>Note</ccts:PropertyTerm><ccts:RepresentationTerm>Text</ccts:RepresentationTerm><ccts:DataType>Text. Type</ccts:DataType></ccts:Component>
     * 
* Gets the value of the note 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 note property. * *

* For example, to add a new item, do as follows: *

     *    getNote().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link NoteType } * * */ @Nonnull @ReturnsMutableObject(reason = "JAXB implementation style") public List getNote() { if (note == null) { note = new ArrayList(); } return this.note; } /** * *

     * <?xml version="1.0" encoding="UTF-8"?><ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ccts:ComponentType>BBIE</ccts:ComponentType><ccts:DictionaryEntryName>Payment Terms. Reference_ Event Code. Code</ccts:DictionaryEntryName><ccts:Definition>The event from which terms are offered for a length of time, identified by a standard code.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Payment Terms</ccts:ObjectClass><ccts:PropertyTermQualifier>Reference</ccts:PropertyTermQualifier><ccts:PropertyTerm>Event Code</ccts:PropertyTerm><ccts:RepresentationTerm>Code</ccts:RepresentationTerm><ccts:DataType>Code. Type</ccts:DataType></ccts:Component>
     * 
* * * @return * possible object is * {@link ReferenceEventCodeType } * */ @Nullable public ReferenceEventCodeType getReferenceEventCode() { return referenceEventCode; } /** * Sets the value of the referenceEventCode property. * * @param value * allowed object is * {@link ReferenceEventCodeType } * */ public void setReferenceEventCode( @Nullable ReferenceEventCodeType value) { this.referenceEventCode = value; } /** * *
     * <?xml version="1.0" encoding="UTF-8"?><ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ccts:ComponentType>BBIE</ccts:ComponentType><ccts:DictionaryEntryName>Payment Terms. Settlement_ Discount Percent. Percent</ccts:DictionaryEntryName><ccts:Definition>The settlement discount rate (percentage) offered for payment within the settlement period.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Payment Terms</ccts:ObjectClass><ccts:PropertyTermQualifier>Settlement</ccts:PropertyTermQualifier><ccts:PropertyTerm>Discount Percent</ccts:PropertyTerm><ccts:RepresentationTerm>Percent</ccts:RepresentationTerm><ccts:DataType>Percent. Type</ccts:DataType></ccts:Component>
     * 
* * * @return * possible object is * {@link SettlementDiscountPercentType } * */ @Nullable public SettlementDiscountPercentType getSettlementDiscountPercent() { return settlementDiscountPercent; } /** * Sets the value of the settlementDiscountPercent property. * * @param value * allowed object is * {@link SettlementDiscountPercentType } * */ public void setSettlementDiscountPercent( @Nullable SettlementDiscountPercentType value) { this.settlementDiscountPercent = value; } /** * *
     * <?xml version="1.0" encoding="UTF-8"?><ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ccts:ComponentType>BBIE</ccts:ComponentType><ccts:DictionaryEntryName>Payment Terms. Penalty_ Surcharge Percent. Percent</ccts:DictionaryEntryName><ccts:Definition>The penalty rate (percentage) charged for late payment.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Payment Terms</ccts:ObjectClass><ccts:PropertyTermQualifier>Penalty</ccts:PropertyTermQualifier><ccts:PropertyTerm>Surcharge Percent</ccts:PropertyTerm><ccts:RepresentationTerm>Percent</ccts:RepresentationTerm><ccts:DataType>Percent. Type</ccts:DataType></ccts:Component>
     * 
* * * @return * possible object is * {@link PenaltySurchargePercentType } * */ @Nullable public PenaltySurchargePercentType getPenaltySurchargePercent() { return penaltySurchargePercent; } /** * Sets the value of the penaltySurchargePercent property. * * @param value * allowed object is * {@link PenaltySurchargePercentType } * */ public void setPenaltySurchargePercent( @Nullable PenaltySurchargePercentType value) { this.penaltySurchargePercent = value; } /** * *
     * <?xml version="1.0" encoding="UTF-8"?><ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ccts:ComponentType>BBIE</ccts:ComponentType><ccts:DictionaryEntryName>Payment Terms. Amount</ccts:DictionaryEntryName><ccts:Definition>The payment amount for the Payment Terms.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Payment Terms</ccts:ObjectClass><ccts:PropertyTerm>Amount</ccts:PropertyTerm><ccts:RepresentationTerm>Amount</ccts:RepresentationTerm><ccts:DataType>Amount. Type</ccts:DataType></ccts:Component>
     * 
* * * @return * possible object is * {@link AmountType } * */ @Nullable public AmountType getAmount() { return amount; } /** * Sets the value of the amount property. * * @param value * allowed object is * {@link AmountType } * */ public void setAmount( @Nullable AmountType value) { this.amount = value; } /** * *
     * <?xml version="1.0" encoding="UTF-8"?><ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ccts:ComponentType>ASBIE</ccts:ComponentType><ccts:DictionaryEntryName>Payment Terms. Settlement_ Period. Period</ccts:DictionaryEntryName><ccts:Definition>An association to Settlement Period.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Payment Terms</ccts:ObjectClass><ccts:PropertyTermQualifier>Settlement</ccts:PropertyTermQualifier><ccts:PropertyTerm>Period</ccts:PropertyTerm><ccts:AssociatedObjectClass>Period</ccts:AssociatedObjectClass></ccts:Component>
     * 
* * * @return * possible object is * {@link PeriodType } * */ @Nullable public PeriodType getSettlementPeriod() { return settlementPeriod; } /** * Sets the value of the settlementPeriod property. * * @param value * allowed object is * {@link PeriodType } * */ public void setSettlementPeriod( @Nullable PeriodType value) { this.settlementPeriod = value; } /** * *
     * <?xml version="1.0" encoding="UTF-8"?><ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ccts:ComponentType>ASBIE</ccts:ComponentType><ccts:DictionaryEntryName>Payment Terms. Penalty_ Period. Period</ccts:DictionaryEntryName><ccts:Definition>An association to Penalty Period.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Payment Terms</ccts:ObjectClass><ccts:PropertyTermQualifier>Penalty</ccts:PropertyTermQualifier><ccts:PropertyTerm>Period</ccts:PropertyTerm><ccts:AssociatedObjectClass>Period</ccts:AssociatedObjectClass></ccts:Component>
     * 
* * * @return * possible object is * {@link PeriodType } * */ @Nullable public PeriodType getPenaltyPeriod() { return penaltyPeriod; } /** * Sets the value of the penaltyPeriod property. * * @param value * allowed object is * {@link PeriodType } * */ public void setPenaltyPeriod( @Nullable PeriodType value) { this.penaltyPeriod = value; } /** * Created by phloc-jaxb22-plugin -Xphloc-equalshashcode * */ @Override public boolean equals(final Object o) { if (o == this) { return true; } if ((o == null)||(!getClass().equals(o.getClass()))) { return false; } final PaymentTermsType rhs = ((PaymentTermsType) o); if (!EqualsUtils.equals(id, rhs.id)) { return false; } if (!EqualsUtils.equals(paymentMeansID, rhs.paymentMeansID)) { return false; } if (!EqualsUtils.equals(prepaidPaymentReferenceID, rhs.prepaidPaymentReferenceID)) { return false; } if (!EqualsUtils.equals(note, rhs.note)) { return false; } if (!EqualsUtils.equals(referenceEventCode, rhs.referenceEventCode)) { return false; } if (!EqualsUtils.equals(settlementDiscountPercent, rhs.settlementDiscountPercent)) { return false; } if (!EqualsUtils.equals(penaltySurchargePercent, rhs.penaltySurchargePercent)) { return false; } if (!EqualsUtils.equals(amount, rhs.amount)) { return false; } if (!EqualsUtils.equals(settlementPeriod, rhs.settlementPeriod)) { return false; } if (!EqualsUtils.equals(penaltyPeriod, rhs.penaltyPeriod)) { return false; } return true; } /** * Created by phloc-jaxb22-plugin -Xphloc-equalshashcode * */ @Override public int hashCode() { return new HashCodeGenerator(this).append(id).append(paymentMeansID).append(prepaidPaymentReferenceID).append(note).append(referenceEventCode).append(settlementDiscountPercent).append(penaltySurchargePercent).append(amount).append(settlementPeriod).append(penaltyPeriod).getHashCode(); } /** * Created by phloc-jaxb22-plugin -Xphloc-tostring * */ @Override public String toString() { return new ToStringGenerator(this).append("id", id).append("paymentMeansID", paymentMeansID).append("prepaidPaymentReferenceID", prepaidPaymentReferenceID).append("note", note).append("referenceEventCode", referenceEventCode).append("settlementDiscountPercent", settlementDiscountPercent).append("penaltySurchargePercent", penaltySurchargePercent).append("amount", amount).append("settlementPeriod", settlementPeriod).append("penaltyPeriod", penaltyPeriod).toString(); } /** * Created by phloc-jaxb22-plugin -Xphloc-list-extension * * @param aList * The new list member to set. May be null. */ public void setNote( @Nullable final List aList) { note = aList; } /** * Created by phloc-jaxb22-plugin -Xphloc-list-extension * * @return * true if at least one item is contained, false otherwise. */ public boolean hasNoteEntries() { return (!getNote().isEmpty()); } /** * Created by phloc-jaxb22-plugin -Xphloc-list-extension * * @return * true if no item is contained, false otherwise. */ public boolean hasNoNoteEntries() { return getNote().isEmpty(); } /** * Created by phloc-jaxb22-plugin -Xphloc-list-extension * * @return * The number of contained elements. Always ≥ 0. */ @Nonnegative public int getNoteCount() { return getNote().size(); } /** * Created by phloc-jaxb22-plugin -Xphloc-list-extension * * @param index * The index to retrieve * @return * The element at the specified index. May be null * @throws ArrayIndexOutOfBoundsException * if the index is invalid! */ @Nullable public NoteType getNoteAtIndex( @Nonnegative final int index) { return getNote().get(index); } /** * Special setter with value of type BigDecimal * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @param valueParam * The value to be set. May be null. * @return * The created intermediary object of type SettlementDiscountPercentType and never null */ @Nonnull public SettlementDiscountPercentType setSettlementDiscountPercent( @Nullable final BigDecimal valueParam) { SettlementDiscountPercentType aObj = getSettlementDiscountPercent(); if (aObj == null) { aObj = new SettlementDiscountPercentType(valueParam); setSettlementDiscountPercent(aObj); } else { aObj.setValue(valueParam); } return aObj; } /** * Special setter with value of type BigDecimal * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @param valueParam * The value to be set. May be null. * @return * The created intermediary object of type PenaltySurchargePercentType and never null */ @Nonnull public PenaltySurchargePercentType setPenaltySurchargePercent( @Nullable final BigDecimal valueParam) { PenaltySurchargePercentType aObj = getPenaltySurchargePercent(); if (aObj == null) { aObj = new PenaltySurchargePercentType(valueParam); setPenaltySurchargePercent(aObj); } else { aObj.setValue(valueParam); } return aObj; } /** * Special setter with value of type String * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @param valueParam * The value to be set. May be null. * @return * The created intermediary object of type IDType and never null */ @Nonnull public IDType setID( @Nullable final String valueParam) { IDType aObj = getID(); if (aObj == null) { aObj = new IDType(valueParam); setID(aObj); } else { aObj.setValue(valueParam); } return aObj; } /** * Special setter with value of type String * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @param valueParam * The value to be set. May be null. * @return * The created intermediary object of type PaymentMeansIDType and never null */ @Nonnull public PaymentMeansIDType setPaymentMeansID( @Nullable final String valueParam) { PaymentMeansIDType aObj = getPaymentMeansID(); if (aObj == null) { aObj = new PaymentMeansIDType(valueParam); setPaymentMeansID(aObj); } else { aObj.setValue(valueParam); } return aObj; } /** * Special setter with value of type String * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @param valueParam * The value to be set. May be null. * @return * The created intermediary object of type PrepaidPaymentReferenceIDType and never null */ @Nonnull public PrepaidPaymentReferenceIDType setPrepaidPaymentReferenceID( @Nullable final String valueParam) { PrepaidPaymentReferenceIDType aObj = getPrepaidPaymentReferenceID(); if (aObj == null) { aObj = new PrepaidPaymentReferenceIDType(valueParam); setPrepaidPaymentReferenceID(aObj); } else { aObj.setValue(valueParam); } return aObj; } /** * Special setter with value of type BigDecimal * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @param valueParam * The value to be set. May be null. * @return * The created intermediary object of type AmountType and never null */ @Nonnull public AmountType setAmount( @Nullable final BigDecimal valueParam) { AmountType aObj = getAmount(); if (aObj == null) { aObj = new AmountType(valueParam); setAmount(aObj); } else { aObj.setValue(valueParam); } return aObj; } /** * Special setter with value of type String * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @param valueParam * The value to be set. May be null. * @return * The created intermediary object of type ReferenceEventCodeType and never null */ @Nonnull public ReferenceEventCodeType setReferenceEventCode( @Nullable final String valueParam) { ReferenceEventCodeType aObj = getReferenceEventCode(); if (aObj == null) { aObj = new ReferenceEventCodeType(valueParam); setReferenceEventCode(aObj); } else { aObj.setValue(valueParam); } return aObj; } /** * Get the value of the contained IDType object * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @return * Either the value of the contained IDType object or null */ @Nullable public String getIDValue() { IDType aObj = getID(); return ((aObj == null)?null:aObj.getValue()); } /** * Get the value of the contained PaymentMeansIDType object * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @return * Either the value of the contained PaymentMeansIDType object or null */ @Nullable public String getPaymentMeansIDValue() { PaymentMeansIDType aObj = getPaymentMeansID(); return ((aObj == null)?null:aObj.getValue()); } /** * Get the value of the contained PrepaidPaymentReferenceIDType object * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @return * Either the value of the contained PrepaidPaymentReferenceIDType object or null */ @Nullable public String getPrepaidPaymentReferenceIDValue() { PrepaidPaymentReferenceIDType aObj = getPrepaidPaymentReferenceID(); return ((aObj == null)?null:aObj.getValue()); } /** * Get the value of the contained ReferenceEventCodeType object * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @return * Either the value of the contained ReferenceEventCodeType object or null */ @Nullable public String getReferenceEventCodeValue() { ReferenceEventCodeType aObj = getReferenceEventCode(); return ((aObj == null)?null:aObj.getValue()); } /** * Get the value of the contained SettlementDiscountPercentType object * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @return * Either the value of the contained SettlementDiscountPercentType object or null */ @Nullable public BigDecimal getSettlementDiscountPercentValue() { SettlementDiscountPercentType aObj = getSettlementDiscountPercent(); return ((aObj == null)?null:aObj.getValue()); } /** * Get the value of the contained PenaltySurchargePercentType object * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @return * Either the value of the contained PenaltySurchargePercentType object or null */ @Nullable public BigDecimal getPenaltySurchargePercentValue() { PenaltySurchargePercentType aObj = getPenaltySurchargePercent(); return ((aObj == null)?null:aObj.getValue()); } /** * Get the value of the contained AmountType object * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @return * Either the value of the contained AmountType object or null */ @Nullable public BigDecimal getAmountValue() { AmountType aObj = getAmount(); return ((aObj == null)?null:aObj.getValue()); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy