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

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      IBM Copyright field
    • Constructor Summary

      Constructors 
      Constructor and Description
      PurchaseOrderRequestHeader()
      The PurchaseOrderRequestHeader default constructor calls its parents constructor.
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM Copyright field
        See Also:
        Constant Field Values
    • Constructor Detail

      • PurchaseOrderRequestHeader

        public PurchaseOrderRequestHeader()
        The PurchaseOrderRequestHeader default constructor calls its parents constructor.
    • Method Detail

      • getCurrency

        public java.lang.String getCurrency()
        This method gets the currency used to calculate the total amount.
        Returns:
        the currency used to calculate the amount
      • getShipTo

        public Address getShipTo()
        This method gets the ship to address.
        Returns:
        the ship to address
        See Also:
        com.ibm.commerce.me.datatype@Address
      • getTotalAmount

        public java.math.BigDecimal getTotalAmount()
        This method gets the total amount for the current order.
        Returns:
        the total amount of the current order
      • setCurrency

        public void setCurrency(java.lang.String newCurrency)
        This method sets the order currency.
        Parameters:
        newCurrency - the new currency
      • setSessionInfo

        public void setSessionInfo(SessionInfo newSessionInfo)
        This method sets the session information.
        Parameters:
        newSessionInfo - the new session information
        See Also:
        com.ibm.commerce.me.datatype
      • setShippingInfo

        public void setShippingInfo(ShippingInfo newShippingInfo)
        This method sets the shipping information.
        Parameters:
        newShippingInfo - the new shipping information
        See Also:
        com.ibm.commerce.me.datatype
      • setShipTo

        public void setShipTo(Address newShipTo)
        This method sets the ship to address.
        Parameters:
        newShipTo - the new ship to address
        See Also:
        com.ibm.commerce.me.datatype@Address
      • setTaxInfo

        public void setTaxInfo(TaxInfo newTaxInfo)
        This method sets the tax information.
        Parameters:
        newTaxInfo - the new tax information
        See Also:
        com.ibm.commerce.me.datatype
      • setTotalAmount

        public void setTotalAmount(java.math.BigDecimal newTotalAmount)
        This method sets the total amount of the order.
        Parameters:
        newTotalAmount - the new total amount for the order