Class ProductRemovePriceActionImpl
- All Implemented Interfaces:
ProductRemovePriceAction
,ProductUpdateAction
,ResourceUpdateAction<ProductUpdateAction>
,io.vrap.rmf.base.client.ModelBase
-
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.ProductRemovePriceAction
REMOVE_PRICE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
getPrice()
The Price identical to the one to be removed from the ProductVariant.Theid
of the Embedded Price to remove.getSku()
Thesku
of the ProductVariant the provided Price should be removed from.Iftrue
, only the staged Embedded Price is removed.Theid
of the ProductVariant the provided Price should be removed from.int
hashCode()
void
setPrice
(PriceDraft price) The Price identical to the one to be removed from the ProductVariant.void
setPriceId
(String priceId) Theid
of the Embedded Price to remove.void
Thesku
of the ProductVariant the provided Price should be removed from.void
Iftrue
, only the staged Embedded Price is removed.void
setVariantId
(Long variantId) Theid
of the ProductVariant the provided Price should be removed from.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.ProductRemovePriceAction
withProductRemovePriceAction
Methods inherited from interface com.commercetools.api.models.product.ProductUpdateAction
withProductUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Constructor Details
-
ProductRemovePriceActionImpl
public ProductRemovePriceActionImpl()create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceProductUpdateAction
- Specified by:
getAction
in interfaceResourceUpdateAction<ProductUpdateAction>
- Returns:
- action
-
getPriceId
The
id
of the Embedded Price to remove.- Specified by:
getPriceId
in interfaceProductRemovePriceAction
- Returns:
- priceId
-
getSku
The
sku
of the ProductVariant the provided Price should be removed from. Either 'variantId' or 'sku' is required" whenpriceId
is not provided. This field is now deprecated, use 'priceId' instead.- Specified by:
getSku
in interfaceProductRemovePriceAction
- Returns:
- sku
-
getVariantId
The
id
of the ProductVariant the provided Price should be removed from. Either 'variantId' or 'sku' is required" whenpriceId
is not provided. This field is now deprecated, use 'priceId' instead.- Specified by:
getVariantId
in interfaceProductRemovePriceAction
- Returns:
- variantId
-
getPrice
The Price identical to the one to be removed from the ProductVariant. This field is now deprecated, use 'priceId' instead.
- Specified by:
getPrice
in interfaceProductRemovePriceAction
- Returns:
- price
-
getStaged
If
true
, only the staged Embedded Price is removed. Iffalse
, both the current and staged Embedded Price are removed.- Specified by:
getStaged
in interfaceProductRemovePriceAction
- Returns:
- staged
-
setPriceId
Description copied from interface:ProductRemovePriceAction
The
id
of the Embedded Price to remove.- Specified by:
setPriceId
in interfaceProductRemovePriceAction
- Parameters:
priceId
- value to be set
-
setSku
Description copied from interface:ProductRemovePriceAction
The
sku
of the ProductVariant the provided Price should be removed from. Either 'variantId' or 'sku' is required" whenpriceId
is not provided. This field is now deprecated, use 'priceId' instead.- Specified by:
setSku
in interfaceProductRemovePriceAction
- Parameters:
sku
- value to be set
-
setVariantId
Description copied from interface:ProductRemovePriceAction
The
id
of the ProductVariant the provided Price should be removed from. Either 'variantId' or 'sku' is required" whenpriceId
is not provided. This field is now deprecated, use 'priceId' instead.- Specified by:
setVariantId
in interfaceProductRemovePriceAction
- Parameters:
variantId
- value to be set
-
setPrice
Description copied from interface:ProductRemovePriceAction
The Price identical to the one to be removed from the ProductVariant. This field is now deprecated, use 'priceId' instead.
- Specified by:
setPrice
in interfaceProductRemovePriceAction
- Parameters:
price
- value to be set
-
setStaged
Description copied from interface:ProductRemovePriceAction
If
true
, only the staged Embedded Price is removed. Iffalse
, both the current and staged Embedded Price are removed.- Specified by:
setStaged
in interfaceProductRemovePriceAction
- Parameters:
staged
- value to be set
-
equals
-
hashCode
-