com.ibm.commerce.me.datatype
Class PurchaseOrderRequestHeader

java.lang.Object
  |
  +--com.ibm.commerce.me.datatype.PurchaseOrderRequestHeader
All Implemented Interfaces:
java.io.Serializable

public class PurchaseOrderRequestHeader
extends java.lang.Object
implements java.io.Serializable

This class stores information for a purchase order request header. Information such as the total amount, session information, currency, ship to address, shipping information, and tax information.

See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
          IBM Copyright field
 
Constructor Summary
PurchaseOrderRequestHeader()
          PurchaseOrderRequestHeader default constructor.
 
Method Summary
 java.lang.String getCurrency()
          gets the currency used
  SessionInfo getSessionInfo()
          Gets the session informatin
  ShippingInfo getShippingInfo()
          Gets the shipping information
  Address getShipTo()
          Gets the ship to address
  TaxInfo getTaxInfo()
          Gets the tax information
 java.math.BigDecimal getTotalAmount()
          Gets the total amount
 void setCurrency(java.lang.String newCurrency)
          Set the currnecy
 void setSessionInfo( SessionInfo newSessionInfo)
          Sets the session information
 void setShippingInfo( ShippingInfo newShippingInfo)
          Sets the shipping information
 void setShipTo( Address newShipTo)
          Sets the ship to address
 void setTaxInfo( TaxInfo newTaxInfo)
          Sets the tax information
 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
IBM Copyright field
See Also:
Constant Field Values
Constructor Detail

PurchaseOrderRequestHeader

public PurchaseOrderRequestHeader()
PurchaseOrderRequestHeader default constructor.
Method Detail

getCurrency

public java.lang.String getCurrency()
gets the currency used
Returns:
the currency used to calculate the amount

getSessionInfo

public SessionInfo getSessionInfo()
Gets the session informatin
Returns:
the session information

getShippingInfo

public ShippingInfo getShippingInfo()
Gets the shipping information
Returns:
the shipping information

getShipTo

public Address getShipTo()
Gets the ship to address
Returns:
the ship to address

getTaxInfo

public TaxInfo getTaxInfo()
Gets the tax information
Returns:
the tax information

getTotalAmount

public java.math.BigDecimal getTotalAmount()
Gets the total amount
Returns:
the total amount of the current order request

setCurrency

public void setCurrency(java.lang.String newCurrency)
Set the currnecy
Parameters:
newCurrency - the new currency

setSessionInfo

public void setSessionInfo(SessionInfo newSessionInfo)
Sets the session information
Parameters:
newSessionInfo - the new session information

setShippingInfo

public void setShippingInfo(ShippingInfo newShippingInfo)
Sets the shipping information
Parameters:
newShippingInfo - the new shipping information

setShipTo

public void setShipTo(Address newShipTo)
Sets the ship to address
Parameters:
newShipTo - the new ship to address

setTaxInfo

public void setTaxInfo(TaxInfo newTaxInfo)
Sets the tax information
Parameters:
newTaxInfo - the new tax information

setTotalAmount

public void setTotalAmount(java.math.BigDecimal newTotalAmount)
Sets the total amount
Parameters:
newTotalAmount - the new total amount for the order