Class CartDiscountValueFixedDraftImpl
- All Implemented Interfaces:
CartDiscountValueDraft
,CartDiscountValueFixedDraft
,io.vrap.rmf.base.client.Draft<CartDiscountValueFixedDraft>
,io.vrap.rmf.base.client.ModelBase
Sets the DiscountedLineItemPrice of the CartDiscountLineItemsTarget or CartDiscountCustomLineItemsTarget to the value specified in the money
field, if it is lower than the current Line Item price for the same currency. If the Line Item price is already discounted to a price equal to or lower than the respective price in the money
field, this Discount is not applied.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Field Summary
Fields inherited from interface com.commercetools.api.models.cart_discount.CartDiscountValueFixedDraft
FIXED
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getMoney()
Money values provided either in cent precision or high precision for different currencies.getType()
int
hashCode()
void
Money values provided either in cent precision or high precision for different currencies.void
Money values provided either in cent precision or high precision for different currencies.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.cart_discount.CartDiscountValueDraft
withCartDiscountValueDraft
Methods inherited from interface com.commercetools.api.models.cart_discount.CartDiscountValueFixedDraft
withCartDiscountValueFixedDraft
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
CartDiscountValueFixedDraftImpl
public CartDiscountValueFixedDraftImpl()create empty instance
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceCartDiscountValueDraft
- Returns:
- type
-
getMoney
Money values provided either in cent precision or high precision for different currencies. A fixed Cart Discount will only match a price if this array contains a value with the same currency. If it contains 10€ and 15$, the matching € price will be discounted by 10€ and the matching $ price will be discounted to 15$.
- Specified by:
getMoney
in interfaceCartDiscountValueFixedDraft
- Returns:
- money
-
setMoney
Description copied from interface:CartDiscountValueFixedDraft
Money values provided either in cent precision or high precision for different currencies. A fixed Cart Discount will only match a price if this array contains a value with the same currency. If it contains 10€ and 15$, the matching € price will be discounted by 10€ and the matching $ price will be discounted to 15$.
- Specified by:
setMoney
in interfaceCartDiscountValueFixedDraft
- Parameters:
money
- values to be set
-
setMoney
Description copied from interface:CartDiscountValueFixedDraft
Money values provided either in cent precision or high precision for different currencies. A fixed Cart Discount will only match a price if this array contains a value with the same currency. If it contains 10€ and 15$, the matching € price will be discounted by 10€ and the matching $ price will be discounted to 15$.
- Specified by:
setMoney
in interfaceCartDiscountValueFixedDraft
- Parameters:
money
- values to be set
-
equals
-
hashCode
-