com.intuit.ipp.data.RefundReceipt 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.03.01 at 02:14:53 PM PST
//
package com.intuit.ipp.data;
import java.io.Serializable;
import java.math.BigDecimal;
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.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;
/**
* Financial transaction representing a refund (or
* credit) of payment or part of a payment for goods or services that
* have been sold.
*
* Java class for RefundReceipt complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="RefundReceipt">
* <complexContent>
* <extension base="{http://schema.intuit.com/finance/v3}SalesTransaction">
* <sequence>
* <element name="RemainingCredit" type="{http://www.w3.org/2001/XMLSchema}decimal" minOccurs="0"/>
* <element name="RefundReceiptEx" type="{http://schema.intuit.com/finance/v3}IntuitAnyType" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "RefundReceipt", propOrder = {
"remainingCredit",
"refundReceiptEx"
})
public class RefundReceipt
extends SalesTransaction
implements Serializable, Equals2, HashCode2
{
private final static long serialVersionUID = 1L;
@XmlElement(name = "RemainingCredit")
protected BigDecimal remainingCredit;
@XmlElement(name = "RefundReceiptEx")
protected IntuitAnyType refundReceiptEx;
/**
* Gets the value of the remainingCredit property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getRemainingCredit() {
return remainingCredit;
}
/**
* Sets the value of the remainingCredit property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setRemainingCredit(BigDecimal value) {
this.remainingCredit = value;
}
/**
* Gets the value of the refundReceiptEx property.
*
* @return
* possible object is
* {@link IntuitAnyType }
*
*/
public IntuitAnyType getRefundReceiptEx() {
return refundReceiptEx;
}
/**
* Sets the value of the refundReceiptEx property.
*
* @param value
* allowed object is
* {@link IntuitAnyType }
*
*/
public void setRefundReceiptEx(IntuitAnyType value) {
this.refundReceiptEx = 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;
}
if (!super.equals(thisLocator, thatLocator, object, strategy)) {
return false;
}
final RefundReceipt that = ((RefundReceipt) object);
{
BigDecimal lhsRemainingCredit;
lhsRemainingCredit = this.getRemainingCredit();
BigDecimal rhsRemainingCredit;
rhsRemainingCredit = that.getRemainingCredit();
if (!strategy.equals(LocatorUtils.property(thisLocator, "remainingCredit", lhsRemainingCredit), LocatorUtils.property(thatLocator, "remainingCredit", rhsRemainingCredit), lhsRemainingCredit, rhsRemainingCredit, (this.remainingCredit!= null), (that.remainingCredit!= null))) {
return false;
}
}
{
IntuitAnyType lhsRefundReceiptEx;
lhsRefundReceiptEx = this.getRefundReceiptEx();
IntuitAnyType rhsRefundReceiptEx;
rhsRefundReceiptEx = that.getRefundReceiptEx();
if (!strategy.equals(LocatorUtils.property(thisLocator, "refundReceiptEx", lhsRefundReceiptEx), LocatorUtils.property(thatLocator, "refundReceiptEx", rhsRefundReceiptEx), lhsRefundReceiptEx, rhsRefundReceiptEx, (this.refundReceiptEx!= null), (that.refundReceiptEx!= 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 = super.hashCode(locator, strategy);
{
BigDecimal theRemainingCredit;
theRemainingCredit = this.getRemainingCredit();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "remainingCredit", theRemainingCredit), currentHashCode, theRemainingCredit, (this.remainingCredit!= null));
}
{
IntuitAnyType theRefundReceiptEx;
theRefundReceiptEx = this.getRefundReceiptEx();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "refundReceiptEx", theRefundReceiptEx), currentHashCode, theRefundReceiptEx, (this.refundReceiptEx!= null));
}
return currentHashCode;
}
public int hashCode() {
final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.INSTANCE;
return this.hashCode(null, strategy);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy