Class OrderSetShippingCustomTypeActionBuilder
- All Implemented Interfaces:
Builder<OrderSetShippingCustomTypeAction>
Example to create an instance using the builder pattern
OrderSetShippingCustomTypeAction orderSetShippingCustomTypeAction = OrderSetShippingCustomTypeAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds OrderSetShippingCustomTypeAction with checking for non-null required valuesbuilds OrderSetShippingCustomTypeAction 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 OrderSetShippingCustomTypeActionBuilderof
(OrderSetShippingCustomTypeAction template) create builder for OrderSetShippingCustomTypeAction 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
-
OrderSetShippingCustomTypeActionBuilder
public OrderSetShippingCustomTypeActionBuilder()
-
-
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 OrderSetShippingCustomTypeActionBuilder 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 OrderSetShippingCustomTypeActionBuilder 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 OrderSetShippingCustomTypeActionBuilder 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 OrderSetShippingCustomTypeActionBuilder 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 OrderSetShippingCustomTypeAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderSetShippingCustomTypeAction>
- Returns:
- OrderSetShippingCustomTypeAction
-
buildUnchecked
builds OrderSetShippingCustomTypeAction without checking for non-null required values- Returns:
- OrderSetShippingCustomTypeAction
-
of
factory method for an instance of OrderSetShippingCustomTypeActionBuilder- Returns:
- builder
-
of
create builder for OrderSetShippingCustomTypeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-