Class TerminalOrder


  • public class TerminalOrder
    extends Object
    TerminalOrder
    • Constructor Detail

      • TerminalOrder

        public TerminalOrder()
    • Method Detail

      • getBillingEntity

        public BillingEntity getBillingEntity()
        Get billingEntity
        Returns:
        billingEntity
      • setBillingEntity

        public void setBillingEntity​(BillingEntity billingEntity)
        billingEntity
        Parameters:
        billingEntity -
      • customerOrderReference

        public TerminalOrder customerOrderReference​(String customerOrderReference)
      • getCustomerOrderReference

        public String getCustomerOrderReference()
        The merchant-defined purchase order number. This will be printed on the packing list.
        Returns:
        customerOrderReference
      • setCustomerOrderReference

        public void setCustomerOrderReference​(String customerOrderReference)
        The merchant-defined purchase order number. This will be printed on the packing list.
        Parameters:
        customerOrderReference -
      • getId

        public String getId()
        The unique identifier of the order.
        Returns:
        id
      • setId

        public void setId​(String id)
        The unique identifier of the order.
        Parameters:
        id -
      • getItems

        public List<OrderItem> getItems()
        The products included in the order.
        Returns:
        items
      • setItems

        public void setItems​(List<OrderItem> items)
        The products included in the order.
        Parameters:
        items -
      • getOrderDate

        public String getOrderDate()
        The date and time that the order was placed, in UTC ISO 8601 format. For example, \"2011-12-03T10:15:30Z\".
        Returns:
        orderDate
      • setOrderDate

        public void setOrderDate​(String orderDate)
        The date and time that the order was placed, in UTC ISO 8601 format. For example, \"2011-12-03T10:15:30Z\".
        Parameters:
        orderDate -
      • getShippingLocation

        public ShippingLocation getShippingLocation()
        Get shippingLocation
        Returns:
        shippingLocation
      • setShippingLocation

        public void setShippingLocation​(ShippingLocation shippingLocation)
        shippingLocation
        Parameters:
        shippingLocation -
      • getStatus

        public String getStatus()
        The processing status of the order.
        Returns:
        status
      • setStatus

        public void setStatus​(String status)
        The processing status of the order.
        Parameters:
        status -
      • getTrackingUrl

        public String getTrackingUrl()
        The URL, provided by the carrier company, where the shipment can be tracked.
        Returns:
        trackingUrl
      • setTrackingUrl

        public void setTrackingUrl​(String trackingUrl)
        The URL, provided by the carrier company, where the shipment can be tracked.
        Parameters:
        trackingUrl -
      • equals

        public boolean equals​(Object o)
        Return true if this TerminalOrder object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • fromJson

        public static TerminalOrder fromJson​(String jsonString)
                                      throws com.fasterxml.jackson.core.JsonProcessingException
        Create an instance of TerminalOrder given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of TerminalOrder
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the JSON string is invalid with respect to TerminalOrder
      • toJson

        public String toJson()
                      throws com.fasterxml.jackson.core.JsonProcessingException
        Convert an instance of TerminalOrder to an JSON string
        Returns:
        JSON string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException