Class CartDiscountValueFixedImpl
java.lang.Object
com.commercetools.api.models.cart_discount.CartDiscountValueFixedImpl
- All Implemented Interfaces:
CartDiscountValue
,CartDiscountValueFixed
,CartDiscountValueFixedMixin
,CartDiscountValueMixin
,GenericCartDiscountValueMixin<CartDiscountValueFixedDraft>
,io.vrap.rmf.base.client.ModelBase
public class CartDiscountValueFixedImpl
extends Object
implements CartDiscountValueFixed, 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. If the quantity
of the Line Item eligible for the Discount is greater than 1
, the fixed price discount is only applied to the Line Item portion for which the money
value is lesser than their current price.
-
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.CartDiscountValueFixed
FIXED
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
getMoney()
Cent precision money values in different currencies.getType()
int
hashCode()
void
setMoney
(CentPrecisionMoney... money) Cent precision money values in different currencies.void
setMoney
(List<CentPrecisionMoney> money) Cent precision money values in 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.CartDiscountValue
withCartDiscountValue
Methods inherited from interface com.commercetools.api.models.cart_discount.CartDiscountValueFixed
withCartDiscountValueFixed
Methods inherited from interface com.commercetools.api.models.cart_discount.CartDiscountValueFixedMixin
toDraft, toDraftBuilder
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
CartDiscountValueFixedImpl
public CartDiscountValueFixedImpl()create empty instance
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceCartDiscountValue
- Returns:
- type
-
getMoney
Cent precision money values in different currencies.
- Specified by:
getMoney
in interfaceCartDiscountValueFixed
- Specified by:
getMoney
in interfaceCartDiscountValueFixedMixin
- Returns:
- money
-
setMoney
Description copied from interface:CartDiscountValueFixed
Cent precision money values in different currencies.
- Specified by:
setMoney
in interfaceCartDiscountValueFixed
- Parameters:
money
- values to be set
-
setMoney
Description copied from interface:CartDiscountValueFixed
Cent precision money values in different currencies.
- Specified by:
setMoney
in interfaceCartDiscountValueFixed
- Parameters:
money
- values to be set
-
equals
-
hashCode
-