Class DirectPurchaseRequest
- java.lang.Object
-
- software.amazon.spapi.models.shipping.v2.DirectPurchaseRequest
-
public class DirectPurchaseRequest extends java.lang.Object
The request schema for the directPurchaseShipment operation. When the channel type is Amazon, the shipTo address is not required and will be ignored.
-
-
Constructor Summary
Constructors Constructor Description DirectPurchaseRequest()
-
Method Summary
-
-
-
Method Detail
-
shipTo
public DirectPurchaseRequest shipTo(Address shipTo)
-
getShipTo
public Address getShipTo()
Get shipTo- Returns:
- shipTo
-
setShipTo
public void setShipTo(Address shipTo)
-
shipFrom
public DirectPurchaseRequest shipFrom(Address shipFrom)
-
getShipFrom
public Address getShipFrom()
Get shipFrom- Returns:
- shipFrom
-
setShipFrom
public void setShipFrom(Address shipFrom)
-
returnTo
public DirectPurchaseRequest returnTo(Address returnTo)
-
getReturnTo
public Address getReturnTo()
Get returnTo- Returns:
- returnTo
-
setReturnTo
public void setReturnTo(Address returnTo)
-
packages
public DirectPurchaseRequest packages(PackageList packages)
-
getPackages
public PackageList getPackages()
Get packages- Returns:
- packages
-
setPackages
public void setPackages(PackageList packages)
-
channelDetails
public DirectPurchaseRequest channelDetails(ChannelDetails channelDetails)
-
getChannelDetails
public ChannelDetails getChannelDetails()
Get channelDetails- Returns:
- channelDetails
-
setChannelDetails
public void setChannelDetails(ChannelDetails channelDetails)
-
labelSpecifications
public DirectPurchaseRequest labelSpecifications(RequestedDocumentSpecification labelSpecifications)
-
getLabelSpecifications
public RequestedDocumentSpecification getLabelSpecifications()
Get labelSpecifications- Returns:
- labelSpecifications
-
setLabelSpecifications
public void setLabelSpecifications(RequestedDocumentSpecification labelSpecifications)
-
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
-
-