Class ShipmentConfirmation


  • public class ShipmentConfirmation
    extends java.lang.Object
    A list of one or more shipment confirmations.
    • Constructor Detail

      • ShipmentConfirmation

        public ShipmentConfirmation()
    • Method Detail

      • shipmentIdentifier

        public ShipmentConfirmation shipmentIdentifier​(java.lang.String shipmentIdentifier)
      • getShipmentIdentifier

        public java.lang.String getShipmentIdentifier()
        Unique shipment ID (not used over the last 365 days).
        Returns:
        shipmentIdentifier
      • setShipmentIdentifier

        public void setShipmentIdentifier​(java.lang.String shipmentIdentifier)
      • getShipmentConfirmationType

        public ShipmentConfirmation.ShipmentConfirmationTypeEnum getShipmentConfirmationType()
        Indicates if this shipment confirmation is the initial confirmation, or intended to replace an already posted shipment confirmation. If replacing an existing shipment confirmation, be sure to provide the identical shipmentIdentifier and sellingParty information as in the previous confirmation.
        Returns:
        shipmentConfirmationType
      • amazonReferenceNumber

        public ShipmentConfirmation amazonReferenceNumber​(java.lang.String amazonReferenceNumber)
      • getAmazonReferenceNumber

        public java.lang.String getAmazonReferenceNumber()
        The Amazon Reference Number is a unique identifier generated by Amazon for all Collect/WePay shipments when you submit a routing request. This field is mandatory for Collect/WePay shipments.
        Returns:
        amazonReferenceNumber
      • setAmazonReferenceNumber

        public void setAmazonReferenceNumber​(java.lang.String amazonReferenceNumber)
      • shipmentConfirmationDate

        public ShipmentConfirmation shipmentConfirmationDate​(org.threeten.bp.OffsetDateTime shipmentConfirmationDate)
      • getShipmentConfirmationDate

        public org.threeten.bp.OffsetDateTime getShipmentConfirmationDate()
        Date on which the shipment confirmation was submitted.
        Returns:
        shipmentConfirmationDate
      • setShipmentConfirmationDate

        public void setShipmentConfirmationDate​(org.threeten.bp.OffsetDateTime shipmentConfirmationDate)
      • shippedDate

        public ShipmentConfirmation shippedDate​(org.threeten.bp.OffsetDateTime shippedDate)
      • getShippedDate

        public org.threeten.bp.OffsetDateTime getShippedDate()
        The date and time of the departure of the shipment from the vendor's location. Vendors are requested to send ASNs within 30 minutes of departure from their warehouse/distribution center or at least 6 hours prior to the appointment time at the buyer destination warehouse, whichever is sooner. Shipped date mentioned in the shipment confirmation should not be in the future.
        Returns:
        shippedDate
      • setShippedDate

        public void setShippedDate​(org.threeten.bp.OffsetDateTime shippedDate)
      • estimatedDeliveryDate

        public ShipmentConfirmation estimatedDeliveryDate​(org.threeten.bp.OffsetDateTime estimatedDeliveryDate)
      • getEstimatedDeliveryDate

        public org.threeten.bp.OffsetDateTime getEstimatedDeliveryDate()
        The date and time on which the shipment is estimated to reach buyer's warehouse. It needs to be an estimate based on the average transit time between ship from location and the destination. The exact appointment time will be provided by the buyer and is potentially not known when creating the shipment confirmation.
        Returns:
        estimatedDeliveryDate
      • setEstimatedDeliveryDate

        public void setEstimatedDeliveryDate​(org.threeten.bp.OffsetDateTime estimatedDeliveryDate)
      • getSellingParty

        public PartyIdentification getSellingParty()
        Get sellingParty
        Returns:
        sellingParty
      • getShipFromParty

        public PartyIdentification getShipFromParty()
        Get shipFromParty
        Returns:
        shipFromParty
      • getShipToParty

        public PartyIdentification getShipToParty()
        Get shipToParty
        Returns:
        shipToParty
      • getShipmentMeasurements

        public ShipmentMeasurements getShipmentMeasurements()
        Get shipmentMeasurements
        Returns:
        shipmentMeasurements
      • setShipmentMeasurements

        public void setShipmentMeasurements​(ShipmentMeasurements shipmentMeasurements)
      • getImportDetails

        public ImportDetails getImportDetails()
        Get importDetails
        Returns:
        importDetails
      • setImportDetails

        public void setImportDetails​(ImportDetails importDetails)
      • getShippedItems

        public java.util.List<Item> getShippedItems()
        A list of the items in this shipment and their associated details. If any of the item detail fields are common at a carton or a pallet level, provide them at the corresponding carton or pallet level.
        Returns:
        shippedItems
      • setShippedItems

        public void setShippedItems​(java.util.List<Item> shippedItems)
      • getCartons

        public java.util.List<Carton> getCartons()
        A list of the cartons in this shipment.
        Returns:
        cartons
      • setCartons

        public void setCartons​(java.util.List<Carton> cartons)
      • getPallets

        public java.util.List<Pallet> getPallets()
        A list of the pallets in this shipment.
        Returns:
        pallets
      • setPallets

        public void setPallets​(java.util.List<Pallet> pallets)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object