Class CartDiscountSetStoresActionImpl
java.lang.Object
com.commercetools.api.models.cart_discount.CartDiscountSetStoresActionImpl
- All Implemented Interfaces:
CartDiscountSetStoresAction
,CartDiscountUpdateAction
,ResourceUpdateAction<CartDiscountUpdateAction>
,io.vrap.rmf.base.client.ModelBase
public class CartDiscountSetStoresActionImpl
extends Object
implements CartDiscountSetStoresAction, io.vrap.rmf.base.client.ModelBase
If a referenced Store does not exist, a ReferencedResourceNotFound error is returned.
-
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.CartDiscountSetStoresAction
SET_STORES
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Stores to set.int
hashCode()
void
setStores
(StoreResourceIdentifier... stores) Stores to set.void
setStores
(List<StoreResourceIdentifier> stores) Stores to set.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.cart_discount.CartDiscountSetStoresAction
withCartDiscountSetStoresAction
Methods inherited from interface com.commercetools.api.models.cart_discount.CartDiscountUpdateAction
withCartDiscountUpdateAction
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Constructor Details
-
CartDiscountSetStoresActionImpl
public CartDiscountSetStoresActionImpl()create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceCartDiscountUpdateAction
- Specified by:
getAction
in interfaceResourceUpdateAction<CartDiscountUpdateAction>
- Returns:
- action
-
getStores
Stores to set. Overrides the current list of Stores. If empty, any existing values will be removed.
A failed update can return the following errors:
- If the referenced Stores exceed the limit, a MaxStoreReferencesReached error is returned.
- If the referenced Stores exceed the limit for Cart Discounts that do not require a Discount Code, a StoreCartDiscountsLimitReached error is returned.
- Specified by:
getStores
in interfaceCartDiscountSetStoresAction
- Returns:
- stores
-
setStores
Description copied from interface:CartDiscountSetStoresAction
Stores to set. Overrides the current list of Stores. If empty, any existing values will be removed.
A failed update can return the following errors:
- If the referenced Stores exceed the limit, a MaxStoreReferencesReached error is returned.
- If the referenced Stores exceed the limit for Cart Discounts that do not require a Discount Code, a StoreCartDiscountsLimitReached error is returned.
- Specified by:
setStores
in interfaceCartDiscountSetStoresAction
- Parameters:
stores
- values to be set
-
setStores
Description copied from interface:CartDiscountSetStoresAction
Stores to set. Overrides the current list of Stores. If empty, any existing values will be removed.
A failed update can return the following errors:
- If the referenced Stores exceed the limit, a MaxStoreReferencesReached error is returned.
- If the referenced Stores exceed the limit for Cart Discounts that do not require a Discount Code, a StoreCartDiscountsLimitReached error is returned.
- Specified by:
setStores
in interfaceCartDiscountSetStoresAction
- Parameters:
stores
- values to be set
-
equals
-
hashCode
-