java.lang.Object | +--com.ibm.commerce.me.datatype.PurchaseOrderHeader
This class encapsulates information for a purchase order. Information stored such as order date, order ID, order type, payload id for the order, total order, currency used, shipping address, billing address, url to which order status is to be posted, shipping information, pay method, tax information, comment, and ship mode.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT IBM Copyright field |
Constructor Summary | |
---|---|
PurchaseOrderHeader() |
Method Summary | |
---|---|
Address |
getBillTo() Gets the billto address |
java.lang.String |
getComment() Gets the comment |
java.lang.String |
getCurrency() Gets the currency |
java.lang.String |
getMessageId() Gets the messageId of the order |
java.util.Date |
getOrderDate() Gets the order date. |
java.lang.String |
getOrderId() Gets the order identification number |
java.lang.String |
getOrderStatusUrl() Gets the order status URL |
java.lang.String |
getOrderType() Gets the type of the order |
PaymentInfo |
getPayMethod() Gets the payment method |
java.lang.String |
getShipModeId() Gets the shipping mode ID |
ShippingInfo |
getShippingInfo() Gets the shipping info. |
Address |
getShipTo() Gets the shipto address |
TaxInfo |
getTaxInfo() Gets the tax info |
java.math.BigDecimal |
getTotalAmount() Gets the total amount |
void |
setBillTo(
Address newBillTo) Sets the billto address |
void |
setComment(java.lang.String newComment) Sets the comment |
void |
setCurrency(java.lang.String newCurrency) Sets the currency |
void |
setMessageId(java.lang.String messageId) Sets the messageId of the order |
void |
setOrderDate(java.util.Date newOrderDate) Sets the order date. |
void |
setOrderId(java.lang.String newOrderId) Sets the order identification number |
void |
setOrderStatusUrl(java.lang.String newOrderStatusUrl) Sets the order status URL |
void |
setOrderType(java.lang.String newOrderType) Sets the type of the order |
void |
setPayMethod(
PaymentInfo newPayMethod) Sets the payment method |
void |
setShipModeId(java.lang.String shipmodeId) Sets the ship mode id |
void |
setShippingInfo(
ShippingInfo newShippingInfo) Sets the shipping info. |
void |
setShipTo(
Address newShipTo) Sets the shipto address |
void |
setTaxInfo(
TaxInfo newTaxInfo) Sets the tax info |
void |
setTotalAmount(java.math.BigDecimal newTotalAmount) Sets the total amount |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll,
toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
Constructor Detail |
---|
public PurchaseOrderHeader()
Method Detail |
---|
public Address getBillTo()
public java.lang.String getComment()
public java.lang.String getCurrency()
public java.lang.String getMessageId()
public java.util.Date getOrderDate()
public java.lang.String getOrderId()
public java.lang.String getOrderStatusUrl()
public java.lang.String getOrderType()
public PaymentInfo getPayMethod()
public java.lang.String getShipModeId()
public ShippingInfo getShippingInfo()
public Address getShipTo()
public TaxInfo getTaxInfo()
public java.math.BigDecimal getTotalAmount()
public void setBillTo(Address newBillTo)
public void setComment(java.lang.String newComment)
newComment
- the order commentpublic void setCurrency(java.lang.String newCurrency)
newCurrency
- the new currency used to calcualte the
orderpublic void setMessageId(java.lang.String messageId)
messageId
- this field is mapped to payloadID in the actual
xml messagepublic void setOrderDate(java.util.Date newOrderDate)
newOrderDate
- date when this order is
createdpublic void setOrderId(java.lang.String newOrderId)
newOrderId
- the id identifying the current
orderpublic void setOrderStatusUrl(java.lang.String newOrderStatusUrl)
newOrderStatusUrl
- the URL to which the order status should
be postedpublic void setOrderType(java.lang.String newOrderType)
newOrderType
- the code identifying the order
typepublic void setPayMethod(PaymentInfo newPayMethod)
newPayMethod
- the payment method
informationpublic void setShipModeId(java.lang.String shipmodeId)
shipmodeId
- the code identifying the shipping
modepublic void setShippingInfo(ShippingInfo newShippingInfo)
newShippingInfo
- the shipping informationpublic void setShipTo(Address newShipTo)
newShipTo
- the new shipping addresspublic void setTaxInfo(TaxInfo newTaxInfo)
newTaxInfo
- the tax informationpublic void setTotalAmount(java.math.BigDecimal newTotalAmount)
newTotalAmount
- the total amount