public interface ShippingRate
Modifier and Type | Method and Description |
---|---|
javax.money.MonetaryAmount |
getFreeAbove()
The shipping is free if the order total (the sum of line item prices) exceeds the free above value.
|
javax.money.MonetaryAmount |
getPrice() |
List<ShippingRatePriceTier> |
getTiers()
A list of shipping rate price tiers.
|
Boolean |
isMatching()
Only appears in response to requests for shipping methods by
ShippingMethodsByCartGet
or ShippingMethodsByLocationGet to mark this shipping rate as one that matches the cart or location. |
static ShippingRate |
of(javax.money.MonetaryAmount price) |
static ShippingRate |
of(javax.money.MonetaryAmount price,
javax.money.MonetaryAmount freeAbove) |
static ShippingRate |
of(javax.money.MonetaryAmount price,
javax.money.MonetaryAmount freeAbove,
Boolean isMatching) |
static ShippingRate |
of(javax.money.MonetaryAmount price,
javax.money.MonetaryAmount freeAbove,
Boolean isMatching,
List<ShippingRatePriceTier> tiers) |
static ShippingRate |
of(javax.money.MonetaryAmount price,
javax.money.MonetaryAmount freeAbove,
List<ShippingRatePriceTier> tiers) |
javax.money.MonetaryAmount getPrice()
@Nullable javax.money.MonetaryAmount getFreeAbove()
@Nullable Boolean isMatching()
ShippingMethodsByCartGet
or ShippingMethodsByLocationGet
to mark this shipping rate as one that matches the cart or location.@Nullable List<ShippingRatePriceTier> getTiers()
static ShippingRate of(javax.money.MonetaryAmount price, @Nullable javax.money.MonetaryAmount freeAbove)
static ShippingRate of(javax.money.MonetaryAmount price, @Nullable javax.money.MonetaryAmount freeAbove, @Nullable Boolean isMatching)
static ShippingRate of(javax.money.MonetaryAmount price, @Nullable javax.money.MonetaryAmount freeAbove, @Nullable List<ShippingRatePriceTier> tiers)
static ShippingRate of(javax.money.MonetaryAmount price, @Nullable javax.money.MonetaryAmount freeAbove, @Nullable Boolean isMatching, @Nullable List<ShippingRatePriceTier> tiers)
static ShippingRate of(javax.money.MonetaryAmount price)