Class CartSetShippingCustomTypeActionBuilder
- All Implemented Interfaces:
Builder<CartSetShippingCustomTypeAction>
Example to create an instance using the builder pattern
CartSetShippingCustomTypeAction cartSetShippingCustomTypeAction = CartSetShippingCustomTypeAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CartSetShippingCustomTypeAction with checking for non-null required valuesbuilds CartSetShippingCustomTypeAction without checking for non-null required valuesfields
(FieldContainer fields) Sets the Custom Fields fields for theshippingMethod
.Sets the Custom Fields fields for theshippingMethod
.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.of()
factory method for an instance of CartSetShippingCustomTypeActionBuilderof
(CartSetShippingCustomTypeAction template) create builder for CartSetShippingCustomTypeAction instanceshippingKey
(String shippingKey) TheshippingKey
of the Shipping to customize.type
(TypeResourceIdentifier type) Defines the Type that extends the specified ShippingMethod with Custom Fields.Defines the Type that extends the specified ShippingMethod with Custom Fields.Sets the Custom Fields fields for theshippingMethod
.Defines the Type that extends the specified ShippingMethod with Custom Fields.
-
Constructor Details
-
CartSetShippingCustomTypeActionBuilder
public CartSetShippingCustomTypeActionBuilder()
-
-
Method Details
-
shippingKey
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.- Parameters:
shippingKey
- value to be set- Returns:
- Builder
-
type
public CartSetShippingCustomTypeActionBuilder type(Function<TypeResourceIdentifierBuilder, TypeResourceIdentifierBuilder> builder) Defines the Type that extends the specified ShippingMethod with Custom Fields. If absent, any existing Type and Custom Fields are removed from the ShippingMethod.
- Parameters:
builder
- function to build the type value- Returns:
- Builder
-
withType
public CartSetShippingCustomTypeActionBuilder withType(Function<TypeResourceIdentifierBuilder, TypeResourceIdentifier> builder) Defines the Type that extends the specified ShippingMethod with Custom Fields. If absent, any existing Type and Custom Fields are removed from the ShippingMethod.
- Parameters:
builder
- function to build the type value- Returns:
- Builder
-
type
Defines the Type that extends the specified ShippingMethod with Custom Fields. If absent, any existing Type and Custom Fields are removed from the ShippingMethod.
- Parameters:
type
- value to be set- Returns:
- Builder
-
fields
public CartSetShippingCustomTypeActionBuilder fields(Function<FieldContainerBuilder, FieldContainerBuilder> builder) Sets the Custom Fields fields for the
shippingMethod
.- Parameters:
builder
- function to build the fields value- Returns:
- Builder
-
withFields
public CartSetShippingCustomTypeActionBuilder withFields(Function<FieldContainerBuilder, FieldContainer> builder) Sets the Custom Fields fields for the
shippingMethod
.- Parameters:
builder
- function to build the fields value- Returns:
- Builder
-
fields
Sets the Custom Fields fields for the
shippingMethod
.- Parameters:
fields
- value to be set- Returns:
- Builder
-
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.- 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.
- Returns:
- type
-
getFields
Sets the Custom Fields fields for the
shippingMethod
.- Returns:
- fields
-
build
builds CartSetShippingCustomTypeAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<CartSetShippingCustomTypeAction>
- Returns:
- CartSetShippingCustomTypeAction
-
buildUnchecked
builds CartSetShippingCustomTypeAction without checking for non-null required values- Returns:
- CartSetShippingCustomTypeAction
-
of
factory method for an instance of CartSetShippingCustomTypeActionBuilder- Returns:
- builder
-
of
create builder for CartSetShippingCustomTypeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-