/** * TPaymentLineItem.java * * This file was auto-generated from WSDL * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. */ package de.epages.ws.order8.model; /** * return object of an payment line item. * contains information about a the payment of this order. */ public class TPaymentLineItem implements java.io.Serializable { /* the class of the payment line item */ private java.lang.String _class; /* name of the payment line item */ private java.lang.String name; /* sku of the payment line item */ private java.lang.String SKU; /* the payment method of the payment line item (object path to * payment method) */ private java.lang.String paymentMethod; /* the payment type of the payment line item (object path to payment * type) */ private java.lang.String paymentType; /* the tax class of the payment line item (object path to tax * class) */ private java.lang.String taxClass; /* the total price of the payment line item */ private float lineItemPrice; /* the baseprice of the payment line item */ private float basePrice; /* quantity of the payment line item */ private float quantity; /* possible discount of the payment line item */ private float discount; /* the tax rate of the payment line item */ private float taxRate; /* the tax amount of the payment line item */ private float taxAmount; /* list of requested attributes (see epagestypes:ListOfAttributes) */ private de.epages.ws.common.model.TAttribute[] attributes; public TPaymentLineItem() { } public TPaymentLineItem( java.lang.String _class, java.lang.String name, java.lang.String SKU, java.lang.String paymentMethod, java.lang.String paymentType, java.lang.String taxClass, float lineItemPrice, float basePrice, float quantity, float discount, float taxRate, float taxAmount, de.epages.ws.common.model.TAttribute[] attributes) { this._class = _class; this.name = name; this.SKU = SKU; this.paymentMethod = paymentMethod; this.paymentType = paymentType; this.taxClass = taxClass; this.lineItemPrice = lineItemPrice; this.basePrice = basePrice; this.quantity = quantity; this.discount = discount; this.taxRate = taxRate; this.taxAmount = taxAmount; this.attributes = attributes; } /** * Gets the _class value for this TPaymentLineItem. * * @return _class * the class of the payment line item */ public java.lang.String get_class() { return _class; } /** * Sets the _class value for this TPaymentLineItem. * * @param _class * the class of the payment line item */ public void set_class(java.lang.String _class) { this._class = _class; } /** * Gets the name value for this TPaymentLineItem. * * @return name * name of the payment line item */ public java.lang.String getName() { return name; } /** * Sets the name value for this TPaymentLineItem. * * @param name * name of the payment line item */ public void setName(java.lang.String name) { this.name = name; } /** * Gets the SKU value for this TPaymentLineItem. * * @return SKU * sku of the payment line item */ public java.lang.String getSKU() { return SKU; } /** * Sets the SKU value for this TPaymentLineItem. * * @param SKU * sku of the payment line item */ public void setSKU(java.lang.String SKU) { this.SKU = SKU; } /** * Gets the paymentMethod value for this TPaymentLineItem. * * @return paymentMethod * the payment method of the payment line item (object path to * payment method) */ public java.lang.String getPaymentMethod() { return paymentMethod; } /** * Sets the paymentMethod value for this TPaymentLineItem. * * @param paymentMethod * the payment method of the payment line item (object path to * payment method) */ public void setPaymentMethod(java.lang.String paymentMethod) { this.paymentMethod = paymentMethod; } /** * Gets the paymentType value for this TPaymentLineItem. * * @return paymentType * the payment type of the payment line item (object path to payment * type) */ public java.lang.String getPaymentType() { return paymentType; } /** * Sets the paymentType value for this TPaymentLineItem. * * @param paymentType * the payment type of the payment line item (object path to payment * type) */ public void setPaymentType(java.lang.String paymentType) { this.paymentType = paymentType; } /** * Gets the taxClass value for this TPaymentLineItem. * * @return taxClass * the tax class of the payment line item (object path to tax * class) */ public java.lang.String getTaxClass() { return taxClass; } /** * Sets the taxClass value for this TPaymentLineItem. * * @param taxClass * the tax class of the payment line item (object path to tax * class) */ public void setTaxClass(java.lang.String taxClass) { this.taxClass = taxClass; } /** * Gets the lineItemPrice value for this TPaymentLineItem. * * @return lineItemPrice * the total price of the payment line item */ public float getLineItemPrice() { return lineItemPrice; } /** * Sets the lineItemPrice value for this TPaymentLineItem. * * @param lineItemPrice * the total price of the payment line item */ public void setLineItemPrice(float lineItemPrice) { this.lineItemPrice = lineItemPrice; } /** * Gets the basePrice value for this TPaymentLineItem. * * @return basePrice * the baseprice of the payment line item */ public float getBasePrice() { return basePrice; } /** * Sets the basePrice value for this TPaymentLineItem. * * @param basePrice * the baseprice of the payment line item */ public void setBasePrice(float basePrice) { this.basePrice = basePrice; } /** * Gets the quantity value for this TPaymentLineItem. * * @return quantity * quantity of the payment line item */ public float getQuantity() { return quantity; } /** * Sets the quantity value for this TPaymentLineItem. * * @param quantity * quantity of the payment line item */ public void setQuantity(float quantity) { this.quantity = quantity; } /** * Gets the discount value for this TPaymentLineItem. * * @return discount * possible discount of the payment line item */ public float getDiscount() { return discount; } /** * Sets the discount value for this TPaymentLineItem. * * @param discount * possible discount of the payment line item */ public void setDiscount(float discount) { this.discount = discount; } /** * Gets the taxRate value for this TPaymentLineItem. * * @return taxRate * the tax rate of the payment line item */ public float getTaxRate() { return taxRate; } /** * Sets the taxRate value for this TPaymentLineItem. * * @param taxRate * the tax rate of the payment line item */ public void setTaxRate(float taxRate) { this.taxRate = taxRate; } /** * Gets the taxAmount value for this TPaymentLineItem. * * @return taxAmount * the tax amount of the payment line item */ public float getTaxAmount() { return taxAmount; } /** * Sets the taxAmount value for this TPaymentLineItem. * * @param taxAmount * the tax amount of the payment line item */ public void setTaxAmount(float taxAmount) { this.taxAmount = taxAmount; } /** * Gets the attributes value for this TPaymentLineItem. * * @return attributes * list of requested attributes (see epagestypes:ListOfAttributes) */ public de.epages.ws.common.model.TAttribute[] getAttributes() { return attributes; } /** * Sets the attributes value for this TPaymentLineItem. * * @param attributes * list of requested attributes (see epagestypes:ListOfAttributes) */ public void setAttributes(de.epages.ws.common.model.TAttribute[] attributes) { this.attributes = attributes; } private java.lang.Object __equalsCalc = null; public synchronized boolean equals(java.lang.Object obj) { if (!(obj instanceof TPaymentLineItem)) return false; TPaymentLineItem other = (TPaymentLineItem) obj; if (obj == null) return false; if (this == obj) return true; if (__equalsCalc != null) { return (__equalsCalc == obj); } __equalsCalc = obj; boolean _equals; _equals = true && ((this._class==null && other.get_class()==null) || (this._class!=null && this._class.equals(other.get_class()))) && ((this.name==null && other.getName()==null) || (this.name!=null && this.name.equals(other.getName()))) && ((this.SKU==null && other.getSKU()==null) || (this.SKU!=null && this.SKU.equals(other.getSKU()))) && ((this.paymentMethod==null && other.getPaymentMethod()==null) || (this.paymentMethod!=null && this.paymentMethod.equals(other.getPaymentMethod()))) && ((this.paymentType==null && other.getPaymentType()==null) || (this.paymentType!=null && this.paymentType.equals(other.getPaymentType()))) && ((this.taxClass==null && other.getTaxClass()==null) || (this.taxClass!=null && this.taxClass.equals(other.getTaxClass()))) && this.lineItemPrice == other.getLineItemPrice() && this.basePrice == other.getBasePrice() && this.quantity == other.getQuantity() && this.discount == other.getDiscount() && this.taxRate == other.getTaxRate() && this.taxAmount == other.getTaxAmount() && ((this.attributes==null && other.getAttributes()==null) || (this.attributes!=null && java.util.Arrays.equals(this.attributes, other.getAttributes()))); __equalsCalc = null; return _equals; } private boolean __hashCodeCalc = false; public synchronized int hashCode() { if (__hashCodeCalc) { return 0; } __hashCodeCalc = true; int _hashCode = 1; if (get_class() != null) { _hashCode += get_class().hashCode(); } if (getName() != null) { _hashCode += getName().hashCode(); } if (getSKU() != null) { _hashCode += getSKU().hashCode(); } if (getPaymentMethod() != null) { _hashCode += getPaymentMethod().hashCode(); } if (getPaymentType() != null) { _hashCode += getPaymentType().hashCode(); } if (getTaxClass() != null) { _hashCode += getTaxClass().hashCode(); } _hashCode += new Float(getLineItemPrice()).hashCode(); _hashCode += new Float(getBasePrice()).hashCode(); _hashCode += new Float(getQuantity()).hashCode(); _hashCode += new Float(getDiscount()).hashCode(); _hashCode += new Float(getTaxRate()).hashCode(); _hashCode += new Float(getTaxAmount()).hashCode(); if (getAttributes() != null) { for (int i=0; i<java.lang.reflect.Array.getLength(getAttributes()); i++) { java.lang.Object obj = java.lang.reflect.Array.get(getAttributes(), i); if (obj != null && !obj.getClass().isArray()) { _hashCode += obj.hashCode(); } } } __hashCodeCalc = false; return _hashCode; } // Type metadata private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(TPaymentLineItem.class, true); static { typeDesc.setXmlType(new javax.xml.namespace.QName("urn://epages.de/WebService/OrderTypes/2011/01", "TPaymentLineItem")); org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("_class"); elemField.setXmlName(new javax.xml.namespace.QName("", "Class")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("name"); elemField.setXmlName(new javax.xml.namespace.QName("", "Name")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("SKU"); elemField.setXmlName(new javax.xml.namespace.QName("", "SKU")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("paymentMethod"); elemField.setXmlName(new javax.xml.namespace.QName("", "PaymentMethod")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("paymentType"); elemField.setXmlName(new javax.xml.namespace.QName("", "PaymentType")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("taxClass"); elemField.setXmlName(new javax.xml.namespace.QName("", "TaxClass")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("lineItemPrice"); elemField.setXmlName(new javax.xml.namespace.QName("", "LineItemPrice")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "float")); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("basePrice"); elemField.setXmlName(new javax.xml.namespace.QName("", "BasePrice")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "float")); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("quantity"); elemField.setXmlName(new javax.xml.namespace.QName("", "Quantity")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "float")); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("discount"); elemField.setXmlName(new javax.xml.namespace.QName("", "Discount")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "float")); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("taxRate"); elemField.setXmlName(new javax.xml.namespace.QName("", "TaxRate")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "float")); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("taxAmount"); elemField.setXmlName(new javax.xml.namespace.QName("", "TaxAmount")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "float")); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("attributes"); elemField.setXmlName(new javax.xml.namespace.QName("", "Attributes")); elemField.setXmlType(new javax.xml.namespace.QName("urn://epages.de/WebService/EpagesTypes/2005/01", "TAttribute")); elemField.setMinOccurs(0); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); } /** * Return type metadata object */ public static org.apache.axis.description.TypeDesc getTypeDesc() { return typeDesc; } /** * Get Custom Serializer */ public static org.apache.axis.encoding.Serializer getSerializer( java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType) { return new org.apache.axis.encoding.ser.BeanSerializer( _javaType, _xmlType, typeDesc); } /** * Get Custom Deserializer */ public static org.apache.axis.encoding.Deserializer getDeserializer( java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType) { return new org.apache.axis.encoding.ser.BeanDeserializer( _javaType, _xmlType, typeDesc); } }