Class CartSetShippingCustomTypeActionImpl
- All Implemented Interfaces:
CartSetShippingCustomTypeAction
,CartUpdateAction
,ResourceUpdateAction<CartUpdateAction>
,io.vrap.rmf.base.client.ModelBase
This action sets, overwrites, or removes any existing Custom Type and Custom Fields for the Cart's shippingMethod
or shipping
.
-
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.CartSetShippingCustomTypeAction
SET_SHIPPING_CUSTOM_TYPE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Sets the Custom Fields fields for theshippingMethod
.TheshippingKey
of the Shipping to customize.getType()
Defines the Type that extends the specified ShippingMethod with Custom Fields.int
hashCode()
void
setFields
(FieldContainer fields) Sets the Custom Fields fields for theshippingMethod
.void
setShippingKey
(String shippingKey) TheshippingKey
of the Shipping to customize.void
Defines the Type that extends the specified ShippingMethod with Custom Fields.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.cart.CartSetShippingCustomTypeAction
withCartSetShippingCustomTypeAction
Methods inherited from interface com.commercetools.api.models.cart.CartUpdateAction
withCartUpdateAction
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Constructor Details
-
CartSetShippingCustomTypeActionImpl
public CartSetShippingCustomTypeActionImpl()create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceCartUpdateAction
- Specified by:
getAction
in interfaceResourceUpdateAction<CartUpdateAction>
- Returns:
- action
-
getShippingKey
The
shippingKey
of the Shipping to customize. Used to specify which Shipping Method to customize on a Cart withMultiple
ShippingMode. Leave this empty to customize the one and only ShippingMethod on aSingle
ShippingMode Cart.- Specified by:
getShippingKey
in interfaceCartSetShippingCustomTypeAction
- Returns:
- shippingKey
-
getType
Defines the Type that extends the specified ShippingMethod with Custom Fields. If absent, any existing Type and Custom Fields are removed from the ShippingMethod.
- Specified by:
getType
in interfaceCartSetShippingCustomTypeAction
- Returns:
- type
-
getFields
Sets the Custom Fields fields for the
shippingMethod
.- Specified by:
getFields
in interfaceCartSetShippingCustomTypeAction
- Returns:
- fields
-
setShippingKey
Description copied from interface:CartSetShippingCustomTypeAction
The
shippingKey
of the Shipping to customize. Used to specify which Shipping Method to customize on a Cart withMultiple
ShippingMode. Leave this empty to customize the one and only ShippingMethod on aSingle
ShippingMode Cart.- Specified by:
setShippingKey
in interfaceCartSetShippingCustomTypeAction
- Parameters:
shippingKey
- value to be set
-
setType
Description copied from interface:CartSetShippingCustomTypeAction
Defines the Type that extends the specified ShippingMethod with Custom Fields. If absent, any existing Type and Custom Fields are removed from the ShippingMethod.
- Specified by:
setType
in interfaceCartSetShippingCustomTypeAction
- Parameters:
type
- value to be set
-
setFields
Description copied from interface:CartSetShippingCustomTypeAction
Sets the Custom Fields fields for the
shippingMethod
.- Specified by:
setFields
in interfaceCartSetShippingCustomTypeAction
- Parameters:
fields
- value to be set
-
equals
-
hashCode
-