Class StagedOrderSetShippingCustomTypeActionBuilder
- All Implemented Interfaces:
Builder<StagedOrderSetShippingCustomTypeAction>
Example to create an instance using the builder pattern
StagedOrderSetShippingCustomTypeAction stagedOrderSetShippingCustomTypeAction = StagedOrderSetShippingCustomTypeAction.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StagedOrderSetShippingCustomTypeAction with checking for non-null required valuesbuilds StagedOrderSetShippingCustomTypeAction 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 StagedOrderSetShippingCustomTypeActionBuilderof
(StagedOrderSetShippingCustomTypeAction template) create builder for StagedOrderSetShippingCustomTypeAction 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
-
StagedOrderSetShippingCustomTypeActionBuilder
public StagedOrderSetShippingCustomTypeActionBuilder()
-
-
Method Details
-
shippingKey
The
shippingKey
of the Shipping to customize. Used to specify which Shipping Method to customize on a Order withMultiple
ShippingMode. Leave this empty to customize the one and only ShippingMethod on aSingle
ShippingMode Order.- Parameters:
shippingKey
- value to be set- Returns:
- Builder
-
type
public StagedOrderSetShippingCustomTypeActionBuilder 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 StagedOrderSetShippingCustomTypeActionBuilder 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 StagedOrderSetShippingCustomTypeActionBuilder 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 StagedOrderSetShippingCustomTypeActionBuilder 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 Order withMultiple
ShippingMode. Leave this empty to customize the one and only ShippingMethod on aSingle
ShippingMode Order.- 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 StagedOrderSetShippingCustomTypeAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<StagedOrderSetShippingCustomTypeAction>
- Returns:
- StagedOrderSetShippingCustomTypeAction
-
buildUnchecked
builds StagedOrderSetShippingCustomTypeAction without checking for non-null required values- Returns:
- StagedOrderSetShippingCustomTypeAction
-
of
factory method for an instance of StagedOrderSetShippingCustomTypeActionBuilder- Returns:
- builder
-
of
public static StagedOrderSetShippingCustomTypeActionBuilder of(StagedOrderSetShippingCustomTypeAction template) create builder for StagedOrderSetShippingCustomTypeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-