Class Shipment


  • public class Shipment
    extends java.lang.Object
    A list of one or more shipments with respective details.
    • Constructor Detail

      • Shipment

        public Shipment()
    • Method Detail

      • vendorShipmentIdentifier

        public Shipment vendorShipmentIdentifier​(java.lang.String vendorShipmentIdentifier)
      • getVendorShipmentIdentifier

        public java.lang.String getVendorShipmentIdentifier()
        Unique Transportation ID created by Vendor (Should not be used over the last 365 days).
        Returns:
        vendorShipmentIdentifier
      • setVendorShipmentIdentifier

        public void setVendorShipmentIdentifier​(java.lang.String vendorShipmentIdentifier)
      • getTransactionType

        public Shipment.TransactionTypeEnum getTransactionType()
        Indicates the type of transportation request such as (New,Cancel,Confirm and PackageLabelRequest). Each transactiontype has a unique set of operation and there are corresponding details to be populated for each operation.
        Returns:
        transactionType
      • buyerReferenceNumber

        public Shipment buyerReferenceNumber​(java.lang.String buyerReferenceNumber)
      • getBuyerReferenceNumber

        public java.lang.String getBuyerReferenceNumber()
        The buyer Reference Number is a unique identifier generated by buyer for all Collect/WePay shipments when you submit a transportation request. This field is mandatory for Collect/WePay shipments.
        Returns:
        buyerReferenceNumber
      • setBuyerReferenceNumber

        public void setBuyerReferenceNumber​(java.lang.String buyerReferenceNumber)
      • transactionDate

        public Shipment transactionDate​(org.threeten.bp.OffsetDateTime transactionDate)
      • getTransactionDate

        public org.threeten.bp.OffsetDateTime getTransactionDate()
        Date on which the transportation request was submitted.
        Returns:
        transactionDate
      • setTransactionDate

        public void setTransactionDate​(org.threeten.bp.OffsetDateTime transactionDate)
      • currentshipmentStatusDate

        public Shipment currentshipmentStatusDate​(org.threeten.bp.OffsetDateTime currentshipmentStatusDate)
      • getCurrentshipmentStatusDate

        public org.threeten.bp.OffsetDateTime getCurrentshipmentStatusDate()
        Date and time when the last status was updated.
        Returns:
        currentshipmentStatusDate
      • setCurrentshipmentStatusDate

        public void setCurrentshipmentStatusDate​(org.threeten.bp.OffsetDateTime currentshipmentStatusDate)
      • getShipmentStatusDetails

        public java.util.List<ShipmentStatusDetails> getShipmentStatusDetails()
        Indicates the list of current shipment status details and when the last update was received from carrier this is available on shipment Details response.
        Returns:
        shipmentStatusDetails
      • setShipmentStatusDetails

        public void setShipmentStatusDetails​(java.util.List<ShipmentStatusDetails> shipmentStatusDetails)
      • shipmentCreateDate

        public Shipment shipmentCreateDate​(org.threeten.bp.OffsetDateTime shipmentCreateDate)
      • getShipmentCreateDate

        public org.threeten.bp.OffsetDateTime getShipmentCreateDate()
        The date and time of the shipment request created by vendor.
        Returns:
        shipmentCreateDate
      • setShipmentCreateDate

        public void setShipmentCreateDate​(org.threeten.bp.OffsetDateTime shipmentCreateDate)
      • shipmentConfirmDate

        public Shipment shipmentConfirmDate​(org.threeten.bp.OffsetDateTime shipmentConfirmDate)
      • getShipmentConfirmDate

        public org.threeten.bp.OffsetDateTime getShipmentConfirmDate()
        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:
        shipmentConfirmDate
      • setShipmentConfirmDate

        public void setShipmentConfirmDate​(org.threeten.bp.OffsetDateTime shipmentConfirmDate)
      • packageLabelCreateDate

        public Shipment packageLabelCreateDate​(org.threeten.bp.OffsetDateTime packageLabelCreateDate)
      • getPackageLabelCreateDate

        public org.threeten.bp.OffsetDateTime getPackageLabelCreateDate()
        The date and time of the package label created for the shipment by buyer.
        Returns:
        packageLabelCreateDate
      • setPackageLabelCreateDate

        public void setPackageLabelCreateDate​(org.threeten.bp.OffsetDateTime packageLabelCreateDate)
      • getShipmentFreightTerm

        public Shipment.ShipmentFreightTermEnum getShipmentFreightTerm()
        Indicates if this transportation request is WePay/Collect or TheyPay/Prepaid. This is a mandatory information.
        Returns:
        shipmentFreightTerm
      • 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 TransportShipmentMeasurements getShipmentMeasurements()
        Get shipmentMeasurements
        Returns:
        shipmentMeasurements
      • getCollectFreightPickupDetails

        public CollectFreightPickupDetails getCollectFreightPickupDetails()
        Get collectFreightPickupDetails
        Returns:
        collectFreightPickupDetails
      • setCollectFreightPickupDetails

        public void setCollectFreightPickupDetails​(CollectFreightPickupDetails collectFreightPickupDetails)
      • getPurchaseOrders

        public java.util.List<PurchaseOrders> getPurchaseOrders()
        Indicates the purchase orders involved for the transportation request. This group is an array create 1 for each PO and list their corresponding items. This information is used for deciding the route,truck allocation and storage efficiently. This is a mandatory information for Buyer performing transportation from vendor warehouse (WePay/Collect)
        Returns:
        purchaseOrders
      • setPurchaseOrders

        public void setPurchaseOrders​(java.util.List<PurchaseOrders> purchaseOrders)
      • getImportDetails

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

        public void setImportDetails​(ImportDetails importDetails)
      • getContainers

        public java.util.List<Containers> getContainers()
        A list of the items in this transportation and their associated inner container 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:
        containers
      • setContainers

        public void setContainers​(java.util.List<Containers> containers)
      • getTransportationDetails

        public TransportationDetails getTransportationDetails()
        Get transportationDetails
        Returns:
        transportationDetails
      • setTransportationDetails

        public void setTransportationDetails​(TransportationDetails transportationDetails)
      • 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