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

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


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

import java.io.Serializable;
import java.math.BigDecimal;
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 javax.xml.datatype.XMLGregorianCalendar;
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.IDType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.InstructionIDType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.PaidAmountType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.PaidDateType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.PaidTimeType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.ReceivedDateType;


/**
 * 
 * 
 * <?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. Details</ccts:DictionaryEntryName><ccts:Definition>Information directly relating to a specific payment.</ccts:Definition><ccts:ObjectClass>Payment</ccts:ObjectClass></ccts:Component>
 * 
* * *

Java class for PaymentType complex type. * *

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

 * <complexType name="PaymentType">
 *   <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}PaidAmount" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}ReceivedDate" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}PaidDate" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}PaidTime" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}InstructionID" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "PaymentType", propOrder = { "id", "paidAmount", "receivedDate", "paidDate", "paidTime", "instructionID" }) public class PaymentType implements Serializable { @XmlElement(name = "ID", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") private IDType id; @XmlElement(name = "PaidAmount", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") private PaidAmountType paidAmount; @XmlElement(name = "ReceivedDate", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") private ReceivedDateType receivedDate; @XmlElement(name = "PaidDate", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") private PaidDateType paidDate; @XmlElement(name = "PaidTime", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") private PaidTimeType paidTime; @XmlElement(name = "InstructionID", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") private InstructionIDType instructionID; /** * Default constructor * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * */ public PaymentType() { } /** * *
     * <?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. Identifier</ccts:DictionaryEntryName><ccts:Definition>Identifies the payment.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Payment</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. Paid_ Amount. Amount</ccts:DictionaryEntryName><ccts:Definition>The amount paid.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Payment</ccts:ObjectClass><ccts:PropertyTermQualifier>Paid</ccts:PropertyTermQualifier><ccts:PropertyTerm>Amount</ccts:PropertyTerm><ccts:RepresentationTerm>Amount</ccts:RepresentationTerm><ccts:DataType>Amount. Type</ccts:DataType></ccts:Component>
     * 
* * * @return * possible object is * {@link PaidAmountType } * */ @Nullable public PaidAmountType getPaidAmount() { return paidAmount; } /** * Sets the value of the paidAmount property. * * @param value * allowed object is * {@link PaidAmountType } * */ public void setPaidAmount( @Nullable PaidAmountType value) { this.paidAmount = 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. Received_ Date. Date</ccts:DictionaryEntryName><ccts:Definition>The date on which the payment was received.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Payment</ccts:ObjectClass><ccts:PropertyTermQualifier>Received</ccts:PropertyTermQualifier><ccts:PropertyTerm>Date</ccts:PropertyTerm><ccts:RepresentationTerm>Date</ccts:RepresentationTerm><ccts:DataType>Date. Type</ccts:DataType></ccts:Component>
     * 
* * * @return * possible object is * {@link ReceivedDateType } * */ @Nullable public ReceivedDateType getReceivedDate() { return receivedDate; } /** * Sets the value of the receivedDate property. * * @param value * allowed object is * {@link ReceivedDateType } * */ public void setReceivedDate( @Nullable ReceivedDateType value) { this.receivedDate = 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. Paid_ Date. Date</ccts:DictionaryEntryName><ccts:Definition>The date at which the payment was made.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Payment</ccts:ObjectClass><ccts:PropertyTermQualifier>Paid</ccts:PropertyTermQualifier><ccts:PropertyTerm>Date</ccts:PropertyTerm><ccts:RepresentationTerm>Date</ccts:RepresentationTerm><ccts:DataType>Date. Type</ccts:DataType></ccts:Component>
     * 
* * * @return * possible object is * {@link PaidDateType } * */ @Nullable public PaidDateType getPaidDate() { return paidDate; } /** * Sets the value of the paidDate property. * * @param value * allowed object is * {@link PaidDateType } * */ public void setPaidDate( @Nullable PaidDateType value) { this.paidDate = 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. Paid_ Time. Time</ccts:DictionaryEntryName><ccts:Definition>The time at which the payment was made.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Payment</ccts:ObjectClass><ccts:PropertyTermQualifier>Paid</ccts:PropertyTermQualifier><ccts:PropertyTerm>Time</ccts:PropertyTerm><ccts:RepresentationTerm>Time</ccts:RepresentationTerm><ccts:DataType>Time. Type</ccts:DataType></ccts:Component>
     * 
* * * @return * possible object is * {@link PaidTimeType } * */ @Nullable public PaidTimeType getPaidTime() { return paidTime; } /** * Sets the value of the paidTime property. * * @param value * allowed object is * {@link PaidTimeType } * */ public void setPaidTime( @Nullable PaidTimeType value) { this.paidTime = 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. Instruction Identifier. Identifier</ccts:DictionaryEntryName><ccts:Definition>Identifies the Payment Instruction.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Payment</ccts:ObjectClass><ccts:PropertyTerm>Instruction Identifier</ccts:PropertyTerm><ccts:RepresentationTerm>Identifier</ccts:RepresentationTerm><ccts:DataType>Identifier. Type</ccts:DataType></ccts:Component>
     * 
* * * @return * possible object is * {@link InstructionIDType } * */ @Nullable public InstructionIDType getInstructionID() { return instructionID; } /** * Sets the value of the instructionID property. * * @param value * allowed object is * {@link InstructionIDType } * */ public void setInstructionID( @Nullable InstructionIDType value) { this.instructionID = 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 PaymentType rhs = ((PaymentType) o); if (!EqualsUtils.equals(id, rhs.id)) { return false; } if (!EqualsUtils.equals(paidAmount, rhs.paidAmount)) { return false; } if (!EqualsUtils.equals(receivedDate, rhs.receivedDate)) { return false; } if (!EqualsUtils.equals(paidDate, rhs.paidDate)) { return false; } if (!EqualsUtils.equals(paidTime, rhs.paidTime)) { return false; } if (!EqualsUtils.equals(instructionID, rhs.instructionID)) { return false; } return true; } /** * Created by phloc-jaxb22-plugin -Xphloc-equalshashcode * */ @Override public int hashCode() { return new HashCodeGenerator(this).append(id).append(paidAmount).append(receivedDate).append(paidDate).append(paidTime).append(instructionID).getHashCode(); } /** * Created by phloc-jaxb22-plugin -Xphloc-tostring * */ @Override public String toString() { return new ToStringGenerator(this).append("id", id).append("paidAmount", paidAmount).append("receivedDate", receivedDate).append("paidDate", paidDate).append("paidTime", paidTime).append("instructionID", instructionID).toString(); } /** * Special setter with value of type XMLGregorianCalendar * 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 ReceivedDateType and never null */ @Nonnull public ReceivedDateType setReceivedDate( @Nullable final XMLGregorianCalendar valueParam) { ReceivedDateType aObj = getReceivedDate(); if (aObj == null) { aObj = new ReceivedDateType(valueParam); setReceivedDate(aObj); } else { aObj.setValue(valueParam); } return aObj; } /** * Special setter with value of type XMLGregorianCalendar * 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 PaidTimeType and never null */ @Nonnull public PaidTimeType setPaidTime( @Nullable final XMLGregorianCalendar valueParam) { PaidTimeType aObj = getPaidTime(); if (aObj == null) { aObj = new PaidTimeType(valueParam); setPaidTime(aObj); } else { aObj.setValue(valueParam); } return aObj; } /** * Special setter with value of type XMLGregorianCalendar * 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 PaidDateType and never null */ @Nonnull public PaidDateType setPaidDate( @Nullable final XMLGregorianCalendar valueParam) { PaidDateType aObj = getPaidDate(); if (aObj == null) { aObj = new PaidDateType(valueParam); setPaidDate(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 InstructionIDType and never null */ @Nonnull public InstructionIDType setInstructionID( @Nullable final String valueParam) { InstructionIDType aObj = getInstructionID(); if (aObj == null) { aObj = new InstructionIDType(valueParam); setInstructionID(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 PaidAmountType and never null */ @Nonnull public PaidAmountType setPaidAmount( @Nullable final BigDecimal valueParam) { PaidAmountType aObj = getPaidAmount(); if (aObj == null) { aObj = new PaidAmountType(valueParam); setPaidAmount(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 PaidAmountType object * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @return * Either the value of the contained PaidAmountType object or null */ @Nullable public BigDecimal getPaidAmountValue() { PaidAmountType aObj = getPaidAmount(); return ((aObj == null)?null:aObj.getValue()); } /** * Get the value of the contained ReceivedDateType object * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @return * Either the value of the contained ReceivedDateType object or null */ @Nullable public XMLGregorianCalendar getReceivedDateValue() { ReceivedDateType aObj = getReceivedDate(); return ((aObj == null)?null:aObj.getValue()); } /** * Get the value of the contained PaidDateType object * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @return * Either the value of the contained PaidDateType object or null */ @Nullable public XMLGregorianCalendar getPaidDateValue() { PaidDateType aObj = getPaidDate(); return ((aObj == null)?null:aObj.getValue()); } /** * Get the value of the contained PaidTimeType object * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @return * Either the value of the contained PaidTimeType object or null */ @Nullable public XMLGregorianCalendar getPaidTimeValue() { PaidTimeType aObj = getPaidTime(); return ((aObj == null)?null:aObj.getValue()); } /** * Get the value of the contained InstructionIDType object * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @return * Either the value of the contained InstructionIDType object or null */ @Nullable public String getInstructionIDValue() { InstructionIDType aObj = getInstructionID(); return ((aObj == null)?null:aObj.getValue()); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy