Class StagedOrderSetShippingCustomFieldActionBuilder
- All Implemented Interfaces:
Builder<StagedOrderSetShippingCustomFieldAction>
Example to create an instance using the builder pattern
StagedOrderSetShippingCustomFieldAction stagedOrderSetShippingCustomFieldAction = StagedOrderSetShippingCustomFieldAction.builder()
.name("{name}")
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StagedOrderSetShippingCustomFieldAction with checking for non-null required valuesbuilds StagedOrderSetShippingCustomFieldAction without checking for non-null required valuesgetName()
Name of the Custom Field.TheshippingKey
of the Shipping to customize.getValue()
Ifvalue
is absent ornull
, this field will be removed if it exists.Name of the Custom Field.of()
factory method for an instance of StagedOrderSetShippingCustomFieldActionBuilderof
(StagedOrderSetShippingCustomFieldAction template) create builder for StagedOrderSetShippingCustomFieldAction instanceshippingKey
(String shippingKey) TheshippingKey
of the Shipping to customize.Ifvalue
is absent ornull
, this field will be removed if it exists.
-
Constructor Details
-
StagedOrderSetShippingCustomFieldActionBuilder
public StagedOrderSetShippingCustomFieldActionBuilder()
-
-
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
-
name
Name of the Custom Field.
- Parameters:
name
- value to be set- Returns:
- Builder
-
value
If
value
is absent ornull
, this field will be removed if it exists. Trying to remove a field that does not exist will fail with an InvalidOperation error. Ifvalue
is provided, it is set for the field defined byname
.- Parameters:
value
- 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
-
getName
Name of the Custom Field.
- Returns:
- name
-
getValue
If
value
is absent ornull
, this field will be removed if it exists. Trying to remove a field that does not exist will fail with an InvalidOperation error. Ifvalue
is provided, it is set for the field defined byname
.- Returns:
- value
-
build
builds StagedOrderSetShippingCustomFieldAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<StagedOrderSetShippingCustomFieldAction>
- Returns:
- StagedOrderSetShippingCustomFieldAction
-
buildUnchecked
builds StagedOrderSetShippingCustomFieldAction without checking for non-null required values- Returns:
- StagedOrderSetShippingCustomFieldAction
-
of
factory method for an instance of StagedOrderSetShippingCustomFieldActionBuilder- Returns:
- builder
-
of
public static StagedOrderSetShippingCustomFieldActionBuilder of(StagedOrderSetShippingCustomFieldAction template) create builder for StagedOrderSetShippingCustomFieldAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-