public class ShippingRate
extends java.lang.Object
Constructor and Description |
---|
ShippingRate(Money price) |
ShippingRate(Money price,
Money freeAbove) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
Money |
getFreeAbove()
The shipping is free if the order total (the sum of line item prices) exceeds the freeAbove value.
|
Money |
getPrice()
The price of the shipping.
|
int |
hashCode() |
java.lang.String |
toString() |
public ShippingRate(@Nonnull Money price)
@Nonnull public Money getPrice()
public Money getFreeAbove()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object