Class CartDiscountValueGiftLineItemDraftImpl
java.lang.Object
com.commercetools.api.models.cart_discount.CartDiscountValueGiftLineItemDraftImpl
- All Implemented Interfaces:
CartDiscountValueDraft
,CartDiscountValueGiftLineItemDraft
,io.vrap.rmf.base.client.Draft<CartDiscountValueGiftLineItemDraft>
,io.vrap.rmf.base.client.ModelBase
public class CartDiscountValueGiftLineItemDraftImpl
extends Object
implements CartDiscountValueGiftLineItemDraft, io.vrap.rmf.base.client.ModelBase
Can only be used in a CartDiscountDraft with no target
specified. Hence, this type can not be used in the Change Value update action.
-
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.CartDiscountValueGiftLineItemDraft
GIFT_LINE_ITEM
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Channel must have the roleProductDistribution
.ResourceIdentifier of a Product.Channel must have the roleInventorySupply
.getType()
ProductVariant of the Product.int
hashCode()
void
setDistributionChannel
(ChannelResourceIdentifier distributionChannel) Channel must have the roleProductDistribution
.void
setProduct
(ProductResourceIdentifier product) ResourceIdentifier of a Product.void
setSupplyChannel
(ChannelResourceIdentifier supplyChannel) Channel must have the roleInventorySupply
.void
setVariantId
(Long variantId) ProductVariant of the Product.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.CartDiscountValueGiftLineItemDraft
withCartDiscountValueGiftLineItemDraft
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
CartDiscountValueGiftLineItemDraftImpl
public CartDiscountValueGiftLineItemDraftImpl()create empty instance
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceCartDiscountValueDraft
- Returns:
- type
-
getProduct
ResourceIdentifier of a Product.
- Specified by:
getProduct
in interfaceCartDiscountValueGiftLineItemDraft
- Returns:
- product
-
getVariantId
ProductVariant of the Product.
- Specified by:
getVariantId
in interfaceCartDiscountValueGiftLineItemDraft
- Returns:
- variantId
-
getSupplyChannel
Channel must have the role
InventorySupply
.- Specified by:
getSupplyChannel
in interfaceCartDiscountValueGiftLineItemDraft
- Returns:
- supplyChannel
-
getDistributionChannel
Channel must have the role
ProductDistribution
.- Specified by:
getDistributionChannel
in interfaceCartDiscountValueGiftLineItemDraft
- Returns:
- distributionChannel
-
setProduct
Description copied from interface:CartDiscountValueGiftLineItemDraft
ResourceIdentifier of a Product.
- Specified by:
setProduct
in interfaceCartDiscountValueGiftLineItemDraft
- Parameters:
product
- value to be set
-
setVariantId
Description copied from interface:CartDiscountValueGiftLineItemDraft
ProductVariant of the Product.
- Specified by:
setVariantId
in interfaceCartDiscountValueGiftLineItemDraft
- Parameters:
variantId
- value to be set
-
setSupplyChannel
Description copied from interface:CartDiscountValueGiftLineItemDraft
Channel must have the role
InventorySupply
.- Specified by:
setSupplyChannel
in interfaceCartDiscountValueGiftLineItemDraft
- Parameters:
supplyChannel
- value to be set
-
setDistributionChannel
Description copied from interface:CartDiscountValueGiftLineItemDraft
Channel must have the role
ProductDistribution
.- Specified by:
setDistributionChannel
in interfaceCartDiscountValueGiftLineItemDraft
- Parameters:
distributionChannel
- value to be set
-
equals
-
hashCode
public int hashCode()
-