
com.fedex.ship.stub.CommercialInvoice Maven / Gradle / Ivy
The newest version!
/**
* CommercialInvoice.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.fedex.ship.stub;
/**
* CommercialInvoice element is required for electronic upload of
* CI data. It will serve to create/transmit an Electronic Commercial
* Invoice through the FedEx Systems. Customers are responsible for printing
* their own Commercial Invoice.If you would likeFedEx to generate a
* Commercial Invoice and transmit it to Customs. for clearance purposes,
* you need to specify that in the ShippingDocumentSpecification element.
* If you would like a copy of the Commercial Invoice that FedEx generated
* returned to you in reply it needs to be specified in the ETDDetail/RequestedDocumentCopies
* element. Commercial Invoice support consists of maximum of 99 commodity
* line items.
*/
public class CommercialInvoice implements java.io.Serializable {
/* Any comments that need to be communicated about this shipment. */
private java.lang.String[] comments;
/* Any freight charges that are associated with this shipment. */
private com.fedex.ship.stub.Money freightCharge;
/* Any taxes or miscellaneous charges(other than Freight charges
* or Insurance charges) that are associated with this shipment. */
private com.fedex.ship.stub.Money taxesOrMiscellaneousCharge;
/* Specifies which kind of charge is being recorded in the preceding
* field. */
private com.fedex.ship.stub.TaxesOrMiscellaneousChargeType taxesOrMiscellaneousChargeType;
/* Any packing costs that are associated with this shipment. */
private com.fedex.ship.stub.Money packingCosts;
/* Any handling costs that are associated with this shipment. */
private com.fedex.ship.stub.Money handlingCosts;
/* Free-form text. */
private java.lang.String specialInstructions;
/* Free-form text. */
private java.lang.String declarationStatement;
/* Free-form text. */
private java.lang.String paymentTerms;
/* The reason for the shipment. Note: SOLD is not a valid purpose
* for a Proforma Invoice. */
private com.fedex.ship.stub.PurposeOfShipmentType purpose;
/* Additional customer reference data. */
private com.fedex.ship.stub.CustomerReference[] customerReferences;
/* Name of the International Expert that completed the Commercial
* Invoice different from Sender. */
private java.lang.String originatorName;
/* Required for dutiable international Express or Ground shipments.
* This field is not applicable to an international PIB(document) or
* a non-document which does not require a Commercial Invoice. */
private java.lang.String termsOfSale;
public CommercialInvoice() {
}
public CommercialInvoice(
java.lang.String[] comments,
com.fedex.ship.stub.Money freightCharge,
com.fedex.ship.stub.Money taxesOrMiscellaneousCharge,
com.fedex.ship.stub.TaxesOrMiscellaneousChargeType taxesOrMiscellaneousChargeType,
com.fedex.ship.stub.Money packingCosts,
com.fedex.ship.stub.Money handlingCosts,
java.lang.String specialInstructions,
java.lang.String declarationStatement,
java.lang.String paymentTerms,
com.fedex.ship.stub.PurposeOfShipmentType purpose,
com.fedex.ship.stub.CustomerReference[] customerReferences,
java.lang.String originatorName,
java.lang.String termsOfSale) {
this.comments = comments;
this.freightCharge = freightCharge;
this.taxesOrMiscellaneousCharge = taxesOrMiscellaneousCharge;
this.taxesOrMiscellaneousChargeType = taxesOrMiscellaneousChargeType;
this.packingCosts = packingCosts;
this.handlingCosts = handlingCosts;
this.specialInstructions = specialInstructions;
this.declarationStatement = declarationStatement;
this.paymentTerms = paymentTerms;
this.purpose = purpose;
this.customerReferences = customerReferences;
this.originatorName = originatorName;
this.termsOfSale = termsOfSale;
}
/**
* Gets the comments value for this CommercialInvoice.
*
* @return comments * Any comments that need to be communicated about this shipment.
*/
public java.lang.String[] getComments() {
return comments;
}
/**
* Sets the comments value for this CommercialInvoice.
*
* @param comments * Any comments that need to be communicated about this shipment.
*/
public void setComments(java.lang.String[] comments) {
this.comments = comments;
}
public java.lang.String getComments(int i) {
return this.comments[i];
}
public void setComments(int i, java.lang.String _value) {
this.comments[i] = _value;
}
/**
* Gets the freightCharge value for this CommercialInvoice.
*
* @return freightCharge * Any freight charges that are associated with this shipment.
*/
public com.fedex.ship.stub.Money getFreightCharge() {
return freightCharge;
}
/**
* Sets the freightCharge value for this CommercialInvoice.
*
* @param freightCharge * Any freight charges that are associated with this shipment.
*/
public void setFreightCharge(com.fedex.ship.stub.Money freightCharge) {
this.freightCharge = freightCharge;
}
/**
* Gets the taxesOrMiscellaneousCharge value for this CommercialInvoice.
*
* @return taxesOrMiscellaneousCharge * Any taxes or miscellaneous charges(other than Freight charges
* or Insurance charges) that are associated with this shipment.
*/
public com.fedex.ship.stub.Money getTaxesOrMiscellaneousCharge() {
return taxesOrMiscellaneousCharge;
}
/**
* Sets the taxesOrMiscellaneousCharge value for this CommercialInvoice.
*
* @param taxesOrMiscellaneousCharge * Any taxes or miscellaneous charges(other than Freight charges
* or Insurance charges) that are associated with this shipment.
*/
public void setTaxesOrMiscellaneousCharge(com.fedex.ship.stub.Money taxesOrMiscellaneousCharge) {
this.taxesOrMiscellaneousCharge = taxesOrMiscellaneousCharge;
}
/**
* Gets the taxesOrMiscellaneousChargeType value for this CommercialInvoice.
*
* @return taxesOrMiscellaneousChargeType * Specifies which kind of charge is being recorded in the preceding
* field.
*/
public com.fedex.ship.stub.TaxesOrMiscellaneousChargeType getTaxesOrMiscellaneousChargeType() {
return taxesOrMiscellaneousChargeType;
}
/**
* Sets the taxesOrMiscellaneousChargeType value for this CommercialInvoice.
*
* @param taxesOrMiscellaneousChargeType * Specifies which kind of charge is being recorded in the preceding
* field.
*/
public void setTaxesOrMiscellaneousChargeType(com.fedex.ship.stub.TaxesOrMiscellaneousChargeType taxesOrMiscellaneousChargeType) {
this.taxesOrMiscellaneousChargeType = taxesOrMiscellaneousChargeType;
}
/**
* Gets the packingCosts value for this CommercialInvoice.
*
* @return packingCosts * Any packing costs that are associated with this shipment.
*/
public com.fedex.ship.stub.Money getPackingCosts() {
return packingCosts;
}
/**
* Sets the packingCosts value for this CommercialInvoice.
*
* @param packingCosts * Any packing costs that are associated with this shipment.
*/
public void setPackingCosts(com.fedex.ship.stub.Money packingCosts) {
this.packingCosts = packingCosts;
}
/**
* Gets the handlingCosts value for this CommercialInvoice.
*
* @return handlingCosts * Any handling costs that are associated with this shipment.
*/
public com.fedex.ship.stub.Money getHandlingCosts() {
return handlingCosts;
}
/**
* Sets the handlingCosts value for this CommercialInvoice.
*
* @param handlingCosts * Any handling costs that are associated with this shipment.
*/
public void setHandlingCosts(com.fedex.ship.stub.Money handlingCosts) {
this.handlingCosts = handlingCosts;
}
/**
* Gets the specialInstructions value for this CommercialInvoice.
*
* @return specialInstructions * Free-form text.
*/
public java.lang.String getSpecialInstructions() {
return specialInstructions;
}
/**
* Sets the specialInstructions value for this CommercialInvoice.
*
* @param specialInstructions * Free-form text.
*/
public void setSpecialInstructions(java.lang.String specialInstructions) {
this.specialInstructions = specialInstructions;
}
/**
* Gets the declarationStatement value for this CommercialInvoice.
*
* @return declarationStatement * Free-form text.
*/
public java.lang.String getDeclarationStatement() {
return declarationStatement;
}
/**
* Sets the declarationStatement value for this CommercialInvoice.
*
* @param declarationStatement * Free-form text.
*/
public void setDeclarationStatement(java.lang.String declarationStatement) {
this.declarationStatement = declarationStatement;
}
/**
* Gets the paymentTerms value for this CommercialInvoice.
*
* @return paymentTerms * Free-form text.
*/
public java.lang.String getPaymentTerms() {
return paymentTerms;
}
/**
* Sets the paymentTerms value for this CommercialInvoice.
*
* @param paymentTerms * Free-form text.
*/
public void setPaymentTerms(java.lang.String paymentTerms) {
this.paymentTerms = paymentTerms;
}
/**
* Gets the purpose value for this CommercialInvoice.
*
* @return purpose * The reason for the shipment. Note: SOLD is not a valid purpose
* for a Proforma Invoice.
*/
public com.fedex.ship.stub.PurposeOfShipmentType getPurpose() {
return purpose;
}
/**
* Sets the purpose value for this CommercialInvoice.
*
* @param purpose * The reason for the shipment. Note: SOLD is not a valid purpose
* for a Proforma Invoice.
*/
public void setPurpose(com.fedex.ship.stub.PurposeOfShipmentType purpose) {
this.purpose = purpose;
}
/**
* Gets the customerReferences value for this CommercialInvoice.
*
* @return customerReferences * Additional customer reference data.
*/
public com.fedex.ship.stub.CustomerReference[] getCustomerReferences() {
return customerReferences;
}
/**
* Sets the customerReferences value for this CommercialInvoice.
*
* @param customerReferences * Additional customer reference data.
*/
public void setCustomerReferences(com.fedex.ship.stub.CustomerReference[] customerReferences) {
this.customerReferences = customerReferences;
}
public com.fedex.ship.stub.CustomerReference getCustomerReferences(int i) {
return this.customerReferences[i];
}
public void setCustomerReferences(int i, com.fedex.ship.stub.CustomerReference _value) {
this.customerReferences[i] = _value;
}
/**
* Gets the originatorName value for this CommercialInvoice.
*
* @return originatorName * Name of the International Expert that completed the Commercial
* Invoice different from Sender.
*/
public java.lang.String getOriginatorName() {
return originatorName;
}
/**
* Sets the originatorName value for this CommercialInvoice.
*
* @param originatorName * Name of the International Expert that completed the Commercial
* Invoice different from Sender.
*/
public void setOriginatorName(java.lang.String originatorName) {
this.originatorName = originatorName;
}
/**
* Gets the termsOfSale value for this CommercialInvoice.
*
* @return termsOfSale * Required for dutiable international Express or Ground shipments.
* This field is not applicable to an international PIB(document) or
* a non-document which does not require a Commercial Invoice.
*/
public java.lang.String getTermsOfSale() {
return termsOfSale;
}
/**
* Sets the termsOfSale value for this CommercialInvoice.
*
* @param termsOfSale * Required for dutiable international Express or Ground shipments.
* This field is not applicable to an international PIB(document) or
* a non-document which does not require a Commercial Invoice.
*/
public void setTermsOfSale(java.lang.String termsOfSale) {
this.termsOfSale = termsOfSale;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof CommercialInvoice)) return false;
CommercialInvoice other = (CommercialInvoice) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
((this.comments==null && other.getComments()==null) ||
(this.comments!=null &&
java.util.Arrays.equals(this.comments, other.getComments()))) &&
((this.freightCharge==null && other.getFreightCharge()==null) ||
(this.freightCharge!=null &&
this.freightCharge.equals(other.getFreightCharge()))) &&
((this.taxesOrMiscellaneousCharge==null && other.getTaxesOrMiscellaneousCharge()==null) ||
(this.taxesOrMiscellaneousCharge!=null &&
this.taxesOrMiscellaneousCharge.equals(other.getTaxesOrMiscellaneousCharge()))) &&
((this.taxesOrMiscellaneousChargeType==null && other.getTaxesOrMiscellaneousChargeType()==null) ||
(this.taxesOrMiscellaneousChargeType!=null &&
this.taxesOrMiscellaneousChargeType.equals(other.getTaxesOrMiscellaneousChargeType()))) &&
((this.packingCosts==null && other.getPackingCosts()==null) ||
(this.packingCosts!=null &&
this.packingCosts.equals(other.getPackingCosts()))) &&
((this.handlingCosts==null && other.getHandlingCosts()==null) ||
(this.handlingCosts!=null &&
this.handlingCosts.equals(other.getHandlingCosts()))) &&
((this.specialInstructions==null && other.getSpecialInstructions()==null) ||
(this.specialInstructions!=null &&
this.specialInstructions.equals(other.getSpecialInstructions()))) &&
((this.declarationStatement==null && other.getDeclarationStatement()==null) ||
(this.declarationStatement!=null &&
this.declarationStatement.equals(other.getDeclarationStatement()))) &&
((this.paymentTerms==null && other.getPaymentTerms()==null) ||
(this.paymentTerms!=null &&
this.paymentTerms.equals(other.getPaymentTerms()))) &&
((this.purpose==null && other.getPurpose()==null) ||
(this.purpose!=null &&
this.purpose.equals(other.getPurpose()))) &&
((this.customerReferences==null && other.getCustomerReferences()==null) ||
(this.customerReferences!=null &&
java.util.Arrays.equals(this.customerReferences, other.getCustomerReferences()))) &&
((this.originatorName==null && other.getOriginatorName()==null) ||
(this.originatorName!=null &&
this.originatorName.equals(other.getOriginatorName()))) &&
((this.termsOfSale==null && other.getTermsOfSale()==null) ||
(this.termsOfSale!=null &&
this.termsOfSale.equals(other.getTermsOfSale())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
if (getComments() != null) {
for (int i=0;
i
© 2015 - 2025 Weber Informatics LLC | Privacy Policy