Class Order
- java.lang.Object
-
- com.checkout.handlepaymentsandpayouts.setups.entities.order.Order
-
public class Order extends java.lang.ObjectOrder information for payment setup
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOrder.OrderBuilder
-
Constructor Summary
Constructors Constructor Description Order()Order(java.util.List<PaymentContextsItems> items, ShippingDetails shipping, java.util.List<OrderSubMerchant> subMerchants, java.lang.Long discountAmount)Creates a newOrderinstance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Order.OrderBuilderbuilder()protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.lang.LonggetDiscountAmount()>= 0 The discount amount applied to the orderjava.util.List<PaymentContextsItems>getItems()The items included in the orderShippingDetailsgetShipping()The shipping information for the orderjava.util.List<OrderSubMerchant>getSubMerchants()Information about sub-merchants involved in the orderinthashCode()voidsetDiscountAmount(java.lang.Long discountAmount)>= 0 The discount amount applied to the ordervoidsetItems(java.util.List<PaymentContextsItems> items)The items included in the ordervoidsetShipping(ShippingDetails shipping)The shipping information for the ordervoidsetSubMerchants(java.util.List<OrderSubMerchant> subMerchants)Information about sub-merchants involved in the orderjava.lang.StringtoString()
-
-
-
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 newOrderinstance.- Parameters:
items- The items included in the ordershipping- The shipping information for the ordersubMerchants- Information about sub-merchants involved in the orderdiscountAmount- >= 0 The discount amount applied to the order
-
-
Method Detail
-
builder
public static Order.OrderBuilder builder()
-
getItems
public java.util.List<PaymentContextsItems> getItems()
The items included in the order
-
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:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-