public interface CartDiscountValue
Modifier and Type | Method and Description |
---|---|
static AbsoluteCartDiscountValue |
ofAbsolute(List<javax.money.MonetaryAmount> money) |
static AbsoluteCartDiscountValue |
ofAbsolute(javax.money.MonetaryAmount money) |
static FixedCartDiscountValue |
ofFixed(javax.money.MonetaryAmount money) |
static GiftLineItemCartDiscountValue |
ofGiftLineItem(ByIdVariantIdentifier variantIdentifier,
ResourceIdentifier<Channel> supplyChannel,
ResourceIdentifier<Channel> distributionChannel) |
static GiftLineItemCartDiscountValue |
ofGiftLineItem(ResourceIdentifier<Product> product,
Integer variantId,
ResourceIdentifier<Channel> supplyChannel,
ResourceIdentifier<Channel> distributionChannel) |
static RelativeCartDiscountValue |
ofRelative(int permyriad) |
static AbsoluteCartDiscountValue ofAbsolute(List<javax.money.MonetaryAmount> money)
static AbsoluteCartDiscountValue ofAbsolute(javax.money.MonetaryAmount money)
static RelativeCartDiscountValue ofRelative(int permyriad)
static FixedCartDiscountValue ofFixed(javax.money.MonetaryAmount money)
static GiftLineItemCartDiscountValue ofGiftLineItem(ByIdVariantIdentifier variantIdentifier, @Nullable ResourceIdentifier<Channel> supplyChannel, @Nullable ResourceIdentifier<Channel> distributionChannel)
static GiftLineItemCartDiscountValue ofGiftLineItem(ResourceIdentifier<Product> product, Integer variantId, @Nullable ResourceIdentifier<Channel> supplyChannel, @Nullable ResourceIdentifier<Channel> distributionChannel)