Class ShipmentConfirmation
- java.lang.Object
-
- software.amazon.spapi.models.vendor.shipments.v1.ShipmentConfirmation
-
public class ShipmentConfirmation extends java.lang.Object
A list of one or more shipment confirmations.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ShipmentConfirmation.ShipmentConfirmationTypeEnum
Indicates if this shipment confirmation is the initial confirmation, or intended to replace an already posted shipment confirmation.static class
ShipmentConfirmation.ShipmentStructureEnum
Shipment hierarchical structure.static class
ShipmentConfirmation.ShipmentTypeEnum
The type of shipment.
-
Constructor Summary
Constructors Constructor Description ShipmentConfirmation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ShipmentConfirmation
addCartonsItem(Carton cartonsItem)
ShipmentConfirmation
addPalletsItem(Pallet palletsItem)
ShipmentConfirmation
addShippedItemsItem(Item shippedItemsItem)
ShipmentConfirmation
amazonReferenceNumber(java.lang.String amazonReferenceNumber)
ShipmentConfirmation
cartons(java.util.List<Carton> cartons)
boolean
equals(java.lang.Object o)
ShipmentConfirmation
estimatedDeliveryDate(org.threeten.bp.OffsetDateTime estimatedDeliveryDate)
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.java.util.List<Carton>
getCartons()
A list of the cartons in this shipment.org.threeten.bp.OffsetDateTime
getEstimatedDeliveryDate()
The date and time on which the shipment is estimated to reach buyer's warehouse.ImportDetails
getImportDetails()
Get importDetailsjava.util.List<Pallet>
getPallets()
A list of the pallets in this shipment.PartyIdentification
getSellingParty()
Get sellingPartyPartyIdentification
getShipFromParty()
Get shipFromPartyorg.threeten.bp.OffsetDateTime
getShipmentConfirmationDate()
Date on which the shipment confirmation was submitted.ShipmentConfirmation.ShipmentConfirmationTypeEnum
getShipmentConfirmationType()
Indicates if this shipment confirmation is the initial confirmation, or intended to replace an already posted shipment confirmation.java.lang.String
getShipmentIdentifier()
Unique shipment ID (not used over the last 365 days).ShipmentMeasurements
getShipmentMeasurements()
Get shipmentMeasurementsShipmentConfirmation.ShipmentStructureEnum
getShipmentStructure()
Shipment hierarchical structure.ShipmentConfirmation.ShipmentTypeEnum
getShipmentType()
The type of shipment.org.threeten.bp.OffsetDateTime
getShippedDate()
The date and time of the departure of the shipment from the vendor's location.java.util.List<Item>
getShippedItems()
A list of the items in this shipment and their associated details.PartyIdentification
getShipToParty()
Get shipToPartyTransportationDetailsForShipmentConfirmation
getTransportationDetails()
Get transportationDetailsint
hashCode()
ShipmentConfirmation
importDetails(ImportDetails importDetails)
ShipmentConfirmation
pallets(java.util.List<Pallet> pallets)
ShipmentConfirmation
sellingParty(PartyIdentification sellingParty)
void
setAmazonReferenceNumber(java.lang.String amazonReferenceNumber)
void
setCartons(java.util.List<Carton> cartons)
void
setEstimatedDeliveryDate(org.threeten.bp.OffsetDateTime estimatedDeliveryDate)
void
setImportDetails(ImportDetails importDetails)
void
setPallets(java.util.List<Pallet> pallets)
void
setSellingParty(PartyIdentification sellingParty)
void
setShipFromParty(PartyIdentification shipFromParty)
void
setShipmentConfirmationDate(org.threeten.bp.OffsetDateTime shipmentConfirmationDate)
void
setShipmentConfirmationType(ShipmentConfirmation.ShipmentConfirmationTypeEnum shipmentConfirmationType)
void
setShipmentIdentifier(java.lang.String shipmentIdentifier)
void
setShipmentMeasurements(ShipmentMeasurements shipmentMeasurements)
void
setShipmentStructure(ShipmentConfirmation.ShipmentStructureEnum shipmentStructure)
void
setShipmentType(ShipmentConfirmation.ShipmentTypeEnum shipmentType)
void
setShippedDate(org.threeten.bp.OffsetDateTime shippedDate)
void
setShippedItems(java.util.List<Item> shippedItems)
void
setShipToParty(PartyIdentification shipToParty)
void
setTransportationDetails(TransportationDetailsForShipmentConfirmation transportationDetails)
ShipmentConfirmation
shipFromParty(PartyIdentification shipFromParty)
ShipmentConfirmation
shipmentConfirmationDate(org.threeten.bp.OffsetDateTime shipmentConfirmationDate)
ShipmentConfirmation
shipmentConfirmationType(ShipmentConfirmation.ShipmentConfirmationTypeEnum shipmentConfirmationType)
ShipmentConfirmation
shipmentIdentifier(java.lang.String shipmentIdentifier)
ShipmentConfirmation
shipmentMeasurements(ShipmentMeasurements shipmentMeasurements)
ShipmentConfirmation
shipmentStructure(ShipmentConfirmation.ShipmentStructureEnum shipmentStructure)
ShipmentConfirmation
shipmentType(ShipmentConfirmation.ShipmentTypeEnum shipmentType)
ShipmentConfirmation
shippedDate(org.threeten.bp.OffsetDateTime shippedDate)
ShipmentConfirmation
shippedItems(java.util.List<Item> shippedItems)
ShipmentConfirmation
shipToParty(PartyIdentification shipToParty)
java.lang.String
toString()
ShipmentConfirmation
transportationDetails(TransportationDetailsForShipmentConfirmation transportationDetails)
-
-
-
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)
-
shipmentConfirmationType
public ShipmentConfirmation shipmentConfirmationType(ShipmentConfirmation.ShipmentConfirmationTypeEnum shipmentConfirmationType)
-
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
-
setShipmentConfirmationType
public void setShipmentConfirmationType(ShipmentConfirmation.ShipmentConfirmationTypeEnum shipmentConfirmationType)
-
shipmentType
public ShipmentConfirmation shipmentType(ShipmentConfirmation.ShipmentTypeEnum shipmentType)
-
getShipmentType
public ShipmentConfirmation.ShipmentTypeEnum getShipmentType()
The type of shipment.- Returns:
- shipmentType
-
setShipmentType
public void setShipmentType(ShipmentConfirmation.ShipmentTypeEnum shipmentType)
-
shipmentStructure
public ShipmentConfirmation shipmentStructure(ShipmentConfirmation.ShipmentStructureEnum shipmentStructure)
-
getShipmentStructure
public ShipmentConfirmation.ShipmentStructureEnum getShipmentStructure()
Shipment hierarchical structure.- Returns:
- shipmentStructure
-
setShipmentStructure
public void setShipmentStructure(ShipmentConfirmation.ShipmentStructureEnum shipmentStructure)
-
transportationDetails
public ShipmentConfirmation transportationDetails(TransportationDetailsForShipmentConfirmation transportationDetails)
-
getTransportationDetails
public TransportationDetailsForShipmentConfirmation getTransportationDetails()
Get transportationDetails- Returns:
- transportationDetails
-
setTransportationDetails
public void setTransportationDetails(TransportationDetailsForShipmentConfirmation transportationDetails)
-
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)
-
sellingParty
public ShipmentConfirmation sellingParty(PartyIdentification sellingParty)
-
getSellingParty
public PartyIdentification getSellingParty()
Get sellingParty- Returns:
- sellingParty
-
setSellingParty
public void setSellingParty(PartyIdentification sellingParty)
-
shipFromParty
public ShipmentConfirmation shipFromParty(PartyIdentification shipFromParty)
-
getShipFromParty
public PartyIdentification getShipFromParty()
Get shipFromParty- Returns:
- shipFromParty
-
setShipFromParty
public void setShipFromParty(PartyIdentification shipFromParty)
-
shipToParty
public ShipmentConfirmation shipToParty(PartyIdentification shipToParty)
-
getShipToParty
public PartyIdentification getShipToParty()
Get shipToParty- Returns:
- shipToParty
-
setShipToParty
public void setShipToParty(PartyIdentification shipToParty)
-
shipmentMeasurements
public ShipmentConfirmation shipmentMeasurements(ShipmentMeasurements shipmentMeasurements)
-
getShipmentMeasurements
public ShipmentMeasurements getShipmentMeasurements()
Get shipmentMeasurements- Returns:
- shipmentMeasurements
-
setShipmentMeasurements
public void setShipmentMeasurements(ShipmentMeasurements shipmentMeasurements)
-
importDetails
public ShipmentConfirmation importDetails(ImportDetails importDetails)
-
getImportDetails
public ImportDetails getImportDetails()
Get importDetails- Returns:
- importDetails
-
setImportDetails
public void setImportDetails(ImportDetails importDetails)
-
shippedItems
public ShipmentConfirmation shippedItems(java.util.List<Item> shippedItems)
-
addShippedItemsItem
public ShipmentConfirmation addShippedItemsItem(Item shippedItemsItem)
-
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)
-
cartons
public ShipmentConfirmation cartons(java.util.List<Carton> cartons)
-
addCartonsItem
public ShipmentConfirmation addCartonsItem(Carton cartonsItem)
-
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)
-
pallets
public ShipmentConfirmation pallets(java.util.List<Pallet> pallets)
-
addPalletsItem
public ShipmentConfirmation addPalletsItem(Pallet palletsItem)
-
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 classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-