Class ProductDiscountValueAbsoluteDraftImpl
- All Implemented Interfaces:
ProductDiscountValueAbsoluteDraft
,ProductDiscountValueDraft
,io.vrap.rmf.base.client.Draft<ProductDiscountValueAbsoluteDraft>
,io.vrap.rmf.base.client.ModelBase
Discounts the Product Price by a fixed amount, defined by the money
field.
-
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.product_discount.ProductDiscountValueAbsoluteDraft
ABSOLUTE
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.product_discount.ProductDiscountValueAbsoluteDraft
withProductDiscountValueAbsoluteDraft
Methods inherited from interface com.commercetools.api.models.product_discount.ProductDiscountValueDraft
withProductDiscountValueDraft
-
Constructor Details
-
ProductDiscountValueAbsoluteDraftImpl
create empty instance
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceProductDiscountValueDraft
- Returns:
- type
-
getMoney
Money values in different currencies. An absolute ProductDiscount will only match a price if this array contains a value with the same currency. For example, if it contains 10€ and 15$, the matching € price will be decreased by 10€ and the matching $ price will be decreased by 15$.
- Specified by:
getMoney
in interfaceProductDiscountValueAbsoluteDraft
- Returns:
- money
-
setMoney
Description copied from interface:ProductDiscountValueAbsoluteDraft
Money values in different currencies. An absolute ProductDiscount will only match a price if this array contains a value with the same currency. For example, if it contains 10€ and 15$, the matching € price will be decreased by 10€ and the matching $ price will be decreased by 15$.
- Specified by:
setMoney
in interfaceProductDiscountValueAbsoluteDraft
- Parameters:
money
- values to be set
-
setMoney
Description copied from interface:ProductDiscountValueAbsoluteDraft
Money values in different currencies. An absolute ProductDiscount will only match a price if this array contains a value with the same currency. For example, if it contains 10€ and 15$, the matching € price will be decreased by 10€ and the matching $ price will be decreased by 15$.
- Specified by:
setMoney
in interfaceProductDiscountValueAbsoluteDraft
- Parameters:
money
- values to be set
-
equals
-
hashCode
-