Class Order


  • public class Order
    extends java.lang.Object
    Order information for payment setup
    • Constructor Detail

      • Order

        public Order()
      • Order

        public Order​(java.util.List<PaymentContextsItems> items,
                     ShippingDetails shipping,
                     java.util.List<OrderSubMerchant> subMerchants,
                     java.lang.Long discountAmount)
        Creates a new Order instance.
        Parameters:
        items - The items included in the order
        shipping - The shipping information for the order
        subMerchants - Information about sub-merchants involved in the order
        discountAmount - >= 0 The discount amount applied to the order
    • Method Detail

      • getShipping

        public ShippingDetails getShipping()
        The shipping information for the order
      • getSubMerchants

        public java.util.List<OrderSubMerchant> getSubMerchants()
        Information about sub-merchants involved in the order
      • getDiscountAmount

        public java.lang.Long getDiscountAmount()
        >= 0 The discount amount applied to the order
      • setItems

        public void setItems​(java.util.List<PaymentContextsItems> items)
        The items included in the order
      • setShipping

        public void setShipping​(ShippingDetails shipping)
        The shipping information for the order
      • setSubMerchants

        public void setSubMerchants​(java.util.List<OrderSubMerchant> subMerchants)
        Information about sub-merchants involved in the order
      • setDiscountAmount

        public void setDiscountAmount​(java.lang.Long discountAmount)
        >= 0 The discount amount applied to the order
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object