com.allegro.webapi.SellerShipmentDataStruct Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of allegro-webapi Show documentation
Show all versions of allegro-webapi Show documentation
Allegro Web API WSDL converted to Java
/**
* SellerShipmentDataStruct.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.allegro.webapi;
public class SellerShipmentDataStruct implements java.io.Serializable {
private int sellerId;
private com.allegro.webapi.SellerPaymentInfoStruct sellerPaymentInfo;
private int sellerOtherShipmentIsActive;
private com.allegro.webapi.ArrayOfShipmentpaymentinfostruct generalDeliveryPaymentInfo;
public SellerShipmentDataStruct() {
}
public SellerShipmentDataStruct(
int sellerId,
com.allegro.webapi.SellerPaymentInfoStruct sellerPaymentInfo,
int sellerOtherShipmentIsActive,
com.allegro.webapi.ArrayOfShipmentpaymentinfostruct generalDeliveryPaymentInfo) {
this.sellerId = sellerId;
this.sellerPaymentInfo = sellerPaymentInfo;
this.sellerOtherShipmentIsActive = sellerOtherShipmentIsActive;
this.generalDeliveryPaymentInfo = generalDeliveryPaymentInfo;
}
/**
* Gets the sellerId value for this SellerShipmentDataStruct.
*
* @return sellerId
*/
public int getSellerId() {
return sellerId;
}
/**
* Sets the sellerId value for this SellerShipmentDataStruct.
*
* @param sellerId
*/
public void setSellerId(int sellerId) {
this.sellerId = sellerId;
}
/**
* Gets the sellerPaymentInfo value for this SellerShipmentDataStruct.
*
* @return sellerPaymentInfo
*/
public com.allegro.webapi.SellerPaymentInfoStruct getSellerPaymentInfo() {
return sellerPaymentInfo;
}
/**
* Sets the sellerPaymentInfo value for this SellerShipmentDataStruct.
*
* @param sellerPaymentInfo
*/
public void setSellerPaymentInfo(com.allegro.webapi.SellerPaymentInfoStruct sellerPaymentInfo) {
this.sellerPaymentInfo = sellerPaymentInfo;
}
/**
* Gets the sellerOtherShipmentIsActive value for this SellerShipmentDataStruct.
*
* @return sellerOtherShipmentIsActive
*/
public int getSellerOtherShipmentIsActive() {
return sellerOtherShipmentIsActive;
}
/**
* Sets the sellerOtherShipmentIsActive value for this SellerShipmentDataStruct.
*
* @param sellerOtherShipmentIsActive
*/
public void setSellerOtherShipmentIsActive(int sellerOtherShipmentIsActive) {
this.sellerOtherShipmentIsActive = sellerOtherShipmentIsActive;
}
/**
* Gets the generalDeliveryPaymentInfo value for this SellerShipmentDataStruct.
*
* @return generalDeliveryPaymentInfo
*/
public com.allegro.webapi.ArrayOfShipmentpaymentinfostruct getGeneralDeliveryPaymentInfo() {
return generalDeliveryPaymentInfo;
}
/**
* Sets the generalDeliveryPaymentInfo value for this SellerShipmentDataStruct.
*
* @param generalDeliveryPaymentInfo
*/
public void setGeneralDeliveryPaymentInfo(com.allegro.webapi.ArrayOfShipmentpaymentinfostruct generalDeliveryPaymentInfo) {
this.generalDeliveryPaymentInfo = generalDeliveryPaymentInfo;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof SellerShipmentDataStruct)) return false;
SellerShipmentDataStruct other = (SellerShipmentDataStruct) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
this.sellerId == other.getSellerId() &&
((this.sellerPaymentInfo==null && other.getSellerPaymentInfo()==null) ||
(this.sellerPaymentInfo!=null &&
this.sellerPaymentInfo.equals(other.getSellerPaymentInfo()))) &&
this.sellerOtherShipmentIsActive == other.getSellerOtherShipmentIsActive() &&
((this.generalDeliveryPaymentInfo==null && other.getGeneralDeliveryPaymentInfo()==null) ||
(this.generalDeliveryPaymentInfo!=null &&
this.generalDeliveryPaymentInfo.equals(other.getGeneralDeliveryPaymentInfo())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
_hashCode += getSellerId();
if (getSellerPaymentInfo() != null) {
_hashCode += getSellerPaymentInfo().hashCode();
}
_hashCode += getSellerOtherShipmentIsActive();
if (getGeneralDeliveryPaymentInfo() != null) {
_hashCode += getGeneralDeliveryPaymentInfo().hashCode();
}
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(SellerShipmentDataStruct.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("https://webapi.allegro.pl/service.php", "SellerShipmentDataStruct"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("sellerId");
elemField.setXmlName(new javax.xml.namespace.QName("https://webapi.allegro.pl/service.php", "sellerId"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("sellerPaymentInfo");
elemField.setXmlName(new javax.xml.namespace.QName("https://webapi.allegro.pl/service.php", "sellerPaymentInfo"));
elemField.setXmlType(new javax.xml.namespace.QName("https://webapi.allegro.pl/service.php", "SellerPaymentInfoStruct"));
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("sellerOtherShipmentIsActive");
elemField.setXmlName(new javax.xml.namespace.QName("https://webapi.allegro.pl/service.php", "sellerOtherShipmentIsActive"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("generalDeliveryPaymentInfo");
elemField.setXmlName(new javax.xml.namespace.QName("https://webapi.allegro.pl/service.php", "generalDeliveryPaymentInfo"));
elemField.setXmlType(new javax.xml.namespace.QName("https://webapi.allegro.pl/service.php", "ArrayOfShipmentpaymentinfostruct"));
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);
}
}