com.intuit.ipp.data.OLBTxnDetail Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ipp-v3-java-data Show documentation
Show all versions of ipp-v3-java-data Show documentation
IPP Java V3 DevKit Data project - FMS Entities generation
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.7
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2018.12.08 at 07:59:36 PM PST
//
package com.intuit.ipp.data;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import com.intuit.sb.cdm.util.v3.DateAdapter;
import org.jvnet.jaxb2_commons.lang.Equals2;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy2;
import org.jvnet.jaxb2_commons.lang.HashCode2;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy2;
import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;
/**
* Describes OLBTransaction instance - one per
* transaction downloaded
*
* Java class for OLBTxnDetail complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="OLBTxnDetail">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="PostDate" type="{http://www.w3.org/2001/XMLSchema}date" minOccurs="0"/>
* <element name="TxnDate" type="{http://www.w3.org/2001/XMLSchema}date" minOccurs="0"/>
* <element name="Amount" type="{http://www.w3.org/2001/XMLSchema}decimal" minOccurs="0"/>
* <element name="ReferenceNumber" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="TxnStatus" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "OLBTxnDetail", propOrder = {
"postDate",
"txnDate",
"amount",
"referenceNumber",
"txnStatus"
})
public class OLBTxnDetail implements Serializable, Equals2, HashCode2
{
private final static long serialVersionUID = 1L;
@XmlElement(name = "PostDate", type = String.class)
@XmlJavaTypeAdapter(DateAdapter.class)
@XmlSchemaType(name = "date")
protected Date postDate;
@XmlElement(name = "TxnDate", type = String.class)
@XmlJavaTypeAdapter(DateAdapter.class)
@XmlSchemaType(name = "date")
protected Date txnDate;
@XmlElement(name = "Amount")
protected BigDecimal amount;
@XmlElement(name = "ReferenceNumber")
protected String referenceNumber;
@XmlElement(name = "TxnStatus")
protected String txnStatus;
/**
* Gets the value of the postDate property.
*
* @return
* possible object is
* {@link String }
*
*/
public Date getPostDate() {
return postDate;
}
/**
* Sets the value of the postDate property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPostDate(Date value) {
this.postDate = value;
}
/**
* Gets the value of the txnDate property.
*
* @return
* possible object is
* {@link String }
*
*/
public Date getTxnDate() {
return txnDate;
}
/**
* Sets the value of the txnDate property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTxnDate(Date value) {
this.txnDate = value;
}
/**
* Gets the value of the amount property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getAmount() {
return amount;
}
/**
* Sets the value of the amount property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setAmount(BigDecimal value) {
this.amount = value;
}
/**
* Gets the value of the referenceNumber property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getReferenceNumber() {
return referenceNumber;
}
/**
* Sets the value of the referenceNumber property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setReferenceNumber(String value) {
this.referenceNumber = value;
}
/**
* Gets the value of the txnStatus property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTxnStatus() {
return txnStatus;
}
/**
* Sets the value of the txnStatus property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTxnStatus(String value) {
this.txnStatus = value;
}
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy2 strategy) {
if ((object == null)||(this.getClass()!= object.getClass())) {
return false;
}
if (this == object) {
return true;
}
final OLBTxnDetail that = ((OLBTxnDetail) object);
{
Date lhsPostDate;
lhsPostDate = this.getPostDate();
Date rhsPostDate;
rhsPostDate = that.getPostDate();
if (!strategy.equals(LocatorUtils.property(thisLocator, "postDate", lhsPostDate), LocatorUtils.property(thatLocator, "postDate", rhsPostDate), lhsPostDate, rhsPostDate, (this.postDate!= null), (that.postDate!= null))) {
return false;
}
}
{
Date lhsTxnDate;
lhsTxnDate = this.getTxnDate();
Date rhsTxnDate;
rhsTxnDate = that.getTxnDate();
if (!strategy.equals(LocatorUtils.property(thisLocator, "txnDate", lhsTxnDate), LocatorUtils.property(thatLocator, "txnDate", rhsTxnDate), lhsTxnDate, rhsTxnDate, (this.txnDate!= null), (that.txnDate!= null))) {
return false;
}
}
{
BigDecimal lhsAmount;
lhsAmount = this.getAmount();
BigDecimal rhsAmount;
rhsAmount = that.getAmount();
if (!strategy.equals(LocatorUtils.property(thisLocator, "amount", lhsAmount), LocatorUtils.property(thatLocator, "amount", rhsAmount), lhsAmount, rhsAmount, (this.amount!= null), (that.amount!= null))) {
return false;
}
}
{
String lhsReferenceNumber;
lhsReferenceNumber = this.getReferenceNumber();
String rhsReferenceNumber;
rhsReferenceNumber = that.getReferenceNumber();
if (!strategy.equals(LocatorUtils.property(thisLocator, "referenceNumber", lhsReferenceNumber), LocatorUtils.property(thatLocator, "referenceNumber", rhsReferenceNumber), lhsReferenceNumber, rhsReferenceNumber, (this.referenceNumber!= null), (that.referenceNumber!= null))) {
return false;
}
}
{
String lhsTxnStatus;
lhsTxnStatus = this.getTxnStatus();
String rhsTxnStatus;
rhsTxnStatus = that.getTxnStatus();
if (!strategy.equals(LocatorUtils.property(thisLocator, "txnStatus", lhsTxnStatus), LocatorUtils.property(thatLocator, "txnStatus", rhsTxnStatus), lhsTxnStatus, rhsTxnStatus, (this.txnStatus!= null), (that.txnStatus!= null))) {
return false;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy2 strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) {
int currentHashCode = 1;
{
Date thePostDate;
thePostDate = this.getPostDate();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "postDate", thePostDate), currentHashCode, thePostDate, (this.postDate!= null));
}
{
Date theTxnDate;
theTxnDate = this.getTxnDate();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "txnDate", theTxnDate), currentHashCode, theTxnDate, (this.txnDate!= null));
}
{
BigDecimal theAmount;
theAmount = this.getAmount();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "amount", theAmount), currentHashCode, theAmount, (this.amount!= null));
}
{
String theReferenceNumber;
theReferenceNumber = this.getReferenceNumber();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "referenceNumber", theReferenceNumber), currentHashCode, theReferenceNumber, (this.referenceNumber!= null));
}
{
String theTxnStatus;
theTxnStatus = this.getTxnStatus();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "txnStatus", theTxnStatus), currentHashCode, theTxnStatus, (this.txnStatus!= null));
}
return currentHashCode;
}
public int hashCode() {
final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.INSTANCE;
return this.hashCode(null, strategy);
}
}