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

com.prowidesoftware.swift.model.mx.dic.Unit8 Maven / Gradle / Ivy

The newest version!

package com.prowidesoftware.swift.model.mx.dic;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;
import com.prowidesoftware.swift.model.mx.adapters.IsoDateAdapter;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlSchemaType;
import jakarta.xml.bind.annotation.XmlType;
import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
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;


/**
 * Information about units to transfer.
 * 
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Unit8", propOrder = {
    "unitsNb",
    "ordrDt",
    "acqstnDt",
    "certNb",
    "grp1Or2Units",
    "ref",
    "pricDtls",
    "txOvrhd",
    "othrAmt"
})
public class Unit8 {

    @XmlElement(name = "UnitsNb", required = true)
    protected BigDecimal unitsNb;
    @XmlElement(name = "OrdrDt", type = String.class)
    @XmlJavaTypeAdapter(IsoDateAdapter.class)
    @XmlSchemaType(name = "date")
    protected LocalDate ordrDt;
    @XmlElement(name = "AcqstnDt", type = String.class)
    @XmlJavaTypeAdapter(IsoDateAdapter.class)
    @XmlSchemaType(name = "date")
    protected LocalDate acqstnDt;
    @XmlElement(name = "CertNb")
    protected List certNb;
    @XmlElement(name = "Grp1Or2Units")
    @XmlSchemaType(name = "string")
    protected UKTaxGroupUnit1Code grp1Or2Units;
    @XmlElement(name = "Ref")
    protected String ref;
    @XmlElement(name = "PricDtls")
    protected UnitPrice23 pricDtls;
    @XmlElement(name = "TxOvrhd")
    protected TotalFeesAndTaxes40 txOvrhd;
    @XmlElement(name = "OthrAmt")
    protected List othrAmt;

    /**
     * Gets the value of the unitsNb property.
     * 
     * @return
     *     possible object is
     *     {@link BigDecimal }
     *     
     */
    public BigDecimal getUnitsNb() {
        return unitsNb;
    }

    /**
     * Sets the value of the unitsNb property.
     * 
     * @param value
     *     allowed object is
     *     {@link BigDecimal }
     *     
     */
    public Unit8 setUnitsNb(BigDecimal value) {
        this.unitsNb = value;
        return this;
    }

    /**
     * Gets the value of the ordrDt property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public LocalDate getOrdrDt() {
        return ordrDt;
    }

    /**
     * Sets the value of the ordrDt property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public Unit8 setOrdrDt(LocalDate value) {
        this.ordrDt = value;
        return this;
    }

    /**
     * Gets the value of the acqstnDt property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public LocalDate getAcqstnDt() {
        return acqstnDt;
    }

    /**
     * Sets the value of the acqstnDt property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public Unit8 setAcqstnDt(LocalDate value) {
        this.acqstnDt = value;
        return this;
    }

    /**
     * Gets the value of the certNb 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 Jakarta XML Binding object. * This is why there is not a {@code set} method for the certNb property. * *

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

     *    getCertNb().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link String } * * * @return * The value of the certNb property. */ public List getCertNb() { if (certNb == null) { certNb = new ArrayList<>(); } return this.certNb; } /** * Gets the value of the grp1Or2Units property. * * @return * possible object is * {@link UKTaxGroupUnit1Code } * */ public UKTaxGroupUnit1Code getGrp1Or2Units() { return grp1Or2Units; } /** * Sets the value of the grp1Or2Units property. * * @param value * allowed object is * {@link UKTaxGroupUnit1Code } * */ public Unit8 setGrp1Or2Units(UKTaxGroupUnit1Code value) { this.grp1Or2Units = value; return this; } /** * Gets the value of the ref property. * * @return * possible object is * {@link String } * */ public String getRef() { return ref; } /** * Sets the value of the ref property. * * @param value * allowed object is * {@link String } * */ public Unit8 setRef(String value) { this.ref = value; return this; } /** * Gets the value of the pricDtls property. * * @return * possible object is * {@link UnitPrice23 } * */ public UnitPrice23 getPricDtls() { return pricDtls; } /** * Sets the value of the pricDtls property. * * @param value * allowed object is * {@link UnitPrice23 } * */ public Unit8 setPricDtls(UnitPrice23 value) { this.pricDtls = value; return this; } /** * Gets the value of the txOvrhd property. * * @return * possible object is * {@link TotalFeesAndTaxes40 } * */ public TotalFeesAndTaxes40 getTxOvrhd() { return txOvrhd; } /** * Sets the value of the txOvrhd property. * * @param value * allowed object is * {@link TotalFeesAndTaxes40 } * */ public Unit8 setTxOvrhd(TotalFeesAndTaxes40 value) { this.txOvrhd = value; return this; } /** * Gets the value of the othrAmt 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 Jakarta XML Binding object. * This is why there is not a {@code set} method for the othrAmt property. * *

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

     *    getOthrAmt().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link OtherAmount1 } * * * @return * The value of the othrAmt property. */ public List getOthrAmt() { if (othrAmt == null) { othrAmt = new ArrayList<>(); } return this.othrAmt; } @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 certNb list. * @see #getCertNb() * */ public Unit8 addCertNb(String certNb) { getCertNb().add(certNb); return this; } /** * Adds a new item to the othrAmt list. * @see #getOthrAmt() * */ public Unit8 addOthrAmt(OtherAmount1 othrAmt) { getOthrAmt().add(othrAmt); return this; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy