Class CartSetShippingCustomTypeActionBuilder
- All Implemented Interfaces:
Builder<CartSetShippingCustomTypeAction>
Example to create an instance using the builder pattern
CartSetShippingCustomTypeAction cartSetShippingCustomTypeAction = CartSetShippingCustomTypeAction.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds CartSetShippingCustomTypeAction with checking for non-null required valuesbuilds CartSetShippingCustomTypeAction without checking for non-null required valuesfields(FieldContainer fields) Object containing the Custom Fields fields for theshippingMethod.Object containing the Custom Fields fields for theshippingMethod.Object containing the Custom Fields fields for theshippingMethod.TheshippingKeyof 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) TheshippingKeyof 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.Object containing 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
shippingKeyof the Shipping to customize. Used to specify which Shipping Method to customize on a Cart withMultipleShippingMode. Leave this empty to customize the one and only ShippingMethod on aSingleShippingMode 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) Object containing the Custom Fields fields for the
shippingMethod.Required if at least one Custom Field is defined as required in the
fieldDefinitionsof the referenced Type.- Parameters:
builder- function to build the fields value- Returns:
- Builder
-
withFields
public CartSetShippingCustomTypeActionBuilder withFields(Function<FieldContainerBuilder, FieldContainer> builder) Object containing the Custom Fields fields for the
shippingMethod.Required if at least one Custom Field is defined as required in the
fieldDefinitionsof the referenced Type.- Parameters:
builder- function to build the fields value- Returns:
- Builder
-
fields
Object containing the Custom Fields fields for the
shippingMethod.Required if at least one Custom Field is defined as required in the
fieldDefinitionsof the referenced Type.- Parameters:
fields- value to be set- Returns:
- Builder
-
getShippingKey
The
shippingKeyof the Shipping to customize. Used to specify which Shipping Method to customize on a Cart withMultipleShippingMode. Leave this empty to customize the one and only ShippingMethod on aSingleShippingMode 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
Object containing the Custom Fields fields for the
shippingMethod.Required if at least one Custom Field is defined as required in the
fieldDefinitionsof the referenced Type.- Returns:
- fields
-
build
builds CartSetShippingCustomTypeAction with checking for non-null required values- Specified by:
buildin 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
-