Class TerminalOrderRequest


  • public class TerminalOrderRequest
    extends Object
    TerminalOrderRequest
    • Constructor Detail

      • TerminalOrderRequest

        public TerminalOrderRequest()
    • Method Detail

      • billingEntityId

        public TerminalOrderRequest billingEntityId​(String billingEntityId)
        The identification of the billing entity to use for the order. > When ordering products in Brazil, you do not need to include the `billingEntityId` in the request.
        Parameters:
        billingEntityId -
        Returns:
        the current TerminalOrderRequest instance, allowing for method chaining
      • getBillingEntityId

        public String getBillingEntityId()
        The identification of the billing entity to use for the order. > When ordering products in Brazil, you do not need to include the `billingEntityId` in the request.
        Returns:
        billingEntityId
      • setBillingEntityId

        public void setBillingEntityId​(String billingEntityId)
        The identification of the billing entity to use for the order. > When ordering products in Brazil, you do not need to include the `billingEntityId` in the request.
        Parameters:
        billingEntityId -
      • customerOrderReference

        public TerminalOrderRequest customerOrderReference​(String customerOrderReference)
        The merchant-defined purchase order reference.
        Parameters:
        customerOrderReference -
        Returns:
        the current TerminalOrderRequest instance, allowing for method chaining
      • getCustomerOrderReference

        public String getCustomerOrderReference()
        The merchant-defined purchase order reference.
        Returns:
        customerOrderReference
      • setCustomerOrderReference

        public void setCustomerOrderReference​(String customerOrderReference)
        The merchant-defined purchase order reference.
        Parameters:
        customerOrderReference -
      • items

        public TerminalOrderRequest items​(List<OrderItem> items)
        The products included in the order.
        Parameters:
        items -
        Returns:
        the current TerminalOrderRequest instance, allowing for method chaining
      • 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 -
      • orderType

        public TerminalOrderRequest orderType​(String orderType)
        Type of order
        Parameters:
        orderType -
        Returns:
        the current TerminalOrderRequest instance, allowing for method chaining
      • getOrderType

        public String getOrderType()
        Type of order
        Returns:
        orderType
      • setOrderType

        public void setOrderType​(String orderType)
        Type of order
        Parameters:
        orderType -
      • shippingLocationId

        public TerminalOrderRequest shippingLocationId​(String shippingLocationId)
        The identification of the shipping location to use for the order.
        Parameters:
        shippingLocationId -
        Returns:
        the current TerminalOrderRequest instance, allowing for method chaining
      • getShippingLocationId

        public String getShippingLocationId()
        The identification of the shipping location to use for the order.
        Returns:
        shippingLocationId
      • setShippingLocationId

        public void setShippingLocationId​(String shippingLocationId)
        The identification of the shipping location to use for the order.
        Parameters:
        shippingLocationId -
      • taxId

        public TerminalOrderRequest taxId​(String taxId)
        The tax number of the billing entity.
        Parameters:
        taxId -
        Returns:
        the current TerminalOrderRequest instance, allowing for method chaining
      • getTaxId

        public String getTaxId()
        The tax number of the billing entity.
        Returns:
        taxId
      • setTaxId

        public void setTaxId​(String taxId)
        The tax number of the billing entity.
        Parameters:
        taxId -
      • equals

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

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

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

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