Class CartDiscountValueGiftLineItemImpl
java.lang.Object
com.commercetools.api.models.cart_discount.CartDiscountValueGiftLineItemImpl
- All Implemented Interfaces:
CartDiscountValue
,CartDiscountValueGiftLineItem
,CartDiscountValueGiftLineItemMixin
,CartDiscountValueMixin
,GenericCartDiscountValueMixin<CartDiscountValueGiftLineItemDraft>
,io.vrap.rmf.base.client.ModelBase
public class CartDiscountValueGiftLineItemImpl
extends Object
implements CartDiscountValueGiftLineItem, io.vrap.rmf.base.client.ModelBase
CartDiscountValueGiftLineItem
-
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.CartDiscountValueGiftLineItem
GIFT_LINE_ITEM
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Channel must have the ChannelRoleEnumProductDistribution
.Reference to a Product.Channel must have the ChannelRoleEnumInventorySupply
.getType()
ProductVariant of the Product.int
hashCode()
void
setDistributionChannel
(ChannelReference distributionChannel) Channel must have the ChannelRoleEnumProductDistribution
.void
setProduct
(ProductReference product) Reference to a Product.void
setSupplyChannel
(ChannelReference supplyChannel) Channel must have the ChannelRoleEnumInventorySupply
.void
setVariantId
(Long variantId) ProductVariant of the Product.toString()
Methods inherited from interface com.commercetools.api.models.cart_discount.CartDiscountValue
withCartDiscountValue
Methods inherited from interface com.commercetools.api.models.cart_discount.CartDiscountValueGiftLineItem
withCartDiscountValueGiftLineItem
Methods inherited from interface com.commercetools.api.models.cart_discount.CartDiscountValueGiftLineItemMixin
toDraft, toDraftBuilder
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
CartDiscountValueGiftLineItemImpl
public CartDiscountValueGiftLineItemImpl()create empty instance
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceCartDiscountValue
- Returns:
- type
-
getProduct
Reference to a Product.
- Specified by:
getProduct
in interfaceCartDiscountValueGiftLineItem
- Specified by:
getProduct
in interfaceCartDiscountValueGiftLineItemMixin
- Returns:
- product
-
getVariantId
ProductVariant of the Product.
- Specified by:
getVariantId
in interfaceCartDiscountValueGiftLineItem
- Specified by:
getVariantId
in interfaceCartDiscountValueGiftLineItemMixin
- Returns:
- variantId
-
getSupplyChannel
Channel must have the ChannelRoleEnum
InventorySupply
.- Specified by:
getSupplyChannel
in interfaceCartDiscountValueGiftLineItem
- Specified by:
getSupplyChannel
in interfaceCartDiscountValueGiftLineItemMixin
- Returns:
- supplyChannel
-
getDistributionChannel
Channel must have the ChannelRoleEnum
ProductDistribution
.- Specified by:
getDistributionChannel
in interfaceCartDiscountValueGiftLineItem
- Specified by:
getDistributionChannel
in interfaceCartDiscountValueGiftLineItemMixin
- Returns:
- distributionChannel
-
setProduct
Description copied from interface:CartDiscountValueGiftLineItem
Reference to a Product.
- Specified by:
setProduct
in interfaceCartDiscountValueGiftLineItem
- Parameters:
product
- value to be set
-
setVariantId
Description copied from interface:CartDiscountValueGiftLineItem
ProductVariant of the Product.
- Specified by:
setVariantId
in interfaceCartDiscountValueGiftLineItem
- Parameters:
variantId
- value to be set
-
setSupplyChannel
Description copied from interface:CartDiscountValueGiftLineItem
Channel must have the ChannelRoleEnum
InventorySupply
.- Specified by:
setSupplyChannel
in interfaceCartDiscountValueGiftLineItem
- Parameters:
supplyChannel
- value to be set
-
setDistributionChannel
Description copied from interface:CartDiscountValueGiftLineItem
Channel must have the ChannelRoleEnum
ProductDistribution
.- Specified by:
setDistributionChannel
in interfaceCartDiscountValueGiftLineItem
- Parameters:
distributionChannel
- value to be set
-
equals
-
hashCode
public int hashCode() -
toString
-