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
public ProductDiscountValueAbsoluteDraftImpl()create empty instance
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceProductDiscountValueDraft
- Returns:
- type
-
getMoney
Money values in different currencies. An absolute Product Discount will match a price only if the 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$. If the array has multiple values of the same currency, the API returns an InvalidOperation error.
If the array is empty, the discount does not apply.
- Specified by:
getMoney
in interfaceProductDiscountValueAbsoluteDraft
- Returns:
- money
-
setMoney
Description copied from interface:ProductDiscountValueAbsoluteDraft
Money values in different currencies. An absolute Product Discount will match a price only if the 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$. If the array has multiple values of the same currency, the API returns an InvalidOperation error.
If the array is empty, the discount does not apply.
- Specified by:
setMoney
in interfaceProductDiscountValueAbsoluteDraft
- Parameters:
money
- values to be set
-
setMoney
Description copied from interface:ProductDiscountValueAbsoluteDraft
Money values in different currencies. An absolute Product Discount will match a price only if the 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$. If the array has multiple values of the same currency, the API returns an InvalidOperation error.
If the array is empty, the discount does not apply.
- Specified by:
setMoney
in interfaceProductDiscountValueAbsoluteDraft
- Parameters:
money
- values to be set
-
equals
-
hashCode
public int hashCode()
-