Class StagedOrderSetShippingAddressAndCustomShippingMethodActionBuilder
- All Implemented Interfaces:
Builder<StagedOrderSetShippingAddressAndCustomShippingMethodAction>
Example to create an instance using the builder pattern
StagedOrderSetShippingAddressAndCustomShippingMethodAction stagedOrderSetShippingAddressAndCustomShippingMethodAction = StagedOrderSetShippingAddressAndCustomShippingMethodAction.builder()
.address(addressBuilder -> addressBuilder)
.shippingMethodName("{shippingMethodName}")
.shippingRate(shippingRateBuilder -> shippingRateBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddress
(BaseAddress address) Value to set forshippingAddress
.address
(Function<BaseAddressBuilder, BaseAddressBuilder> builder) Value to set forshippingAddress
.build()
builds StagedOrderSetShippingAddressAndCustomShippingMethodAction with checking for non-null required valuesbuilds StagedOrderSetShippingAddressAndCustomShippingMethodAction without checking for non-null required valuesexternalTaxRate
(ExternalTaxRateDraft externalTaxRate) An external Tax Rate can be set if the Cart has theExternal
TaxMode.An external Tax Rate can be set if the Cart has theExternal
TaxMode.Value to set forshippingAddress
.An external Tax Rate can be set if the Cart has theExternal
TaxMode.Value to set.Value to set.Used to select a Tax Rate when the Order has thePlatform
TaxMode.of()
factory method for an instance of StagedOrderSetShippingAddressAndCustomShippingMethodActionBuildercreate builder for StagedOrderSetShippingAddressAndCustomShippingMethodAction instanceshippingMethodName
(String shippingMethodName) Value to set.shippingRate
(ShippingRateDraft shippingRate) Value to set.Value to set.taxCategory
(TaxCategoryResourceIdentifier taxCategory) Used to select a Tax Rate when the Order has thePlatform
TaxMode.taxCategory
(Function<TaxCategoryResourceIdentifierBuilder, TaxCategoryResourceIdentifierBuilder> builder) Used to select a Tax Rate when the Order has thePlatform
TaxMode.withAddress
(Function<BaseAddressBuilder, BaseAddress> builder) Value to set forshippingAddress
.An external Tax Rate can be set if the Cart has theExternal
TaxMode.Value to set.withTaxCategory
(Function<TaxCategoryResourceIdentifierBuilder, TaxCategoryResourceIdentifier> builder) Used to select a Tax Rate when the Order has thePlatform
TaxMode.
-
Constructor Details
-
StagedOrderSetShippingAddressAndCustomShippingMethodActionBuilder
public StagedOrderSetShippingAddressAndCustomShippingMethodActionBuilder()
-
-
Method Details
-
address
public StagedOrderSetShippingAddressAndCustomShippingMethodActionBuilder address(Function<BaseAddressBuilder, BaseAddressBuilder> builder) Value to set for
shippingAddress
.- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
withAddress
public StagedOrderSetShippingAddressAndCustomShippingMethodActionBuilder withAddress(Function<BaseAddressBuilder, BaseAddress> builder) Value to set for
shippingAddress
.- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
address
public StagedOrderSetShippingAddressAndCustomShippingMethodActionBuilder address(BaseAddress address) Value to set for
shippingAddress
.- Parameters:
address
- value to be set- Returns:
- Builder
-
shippingMethodName
public StagedOrderSetShippingAddressAndCustomShippingMethodActionBuilder shippingMethodName(String shippingMethodName) Value to set.
- Parameters:
shippingMethodName
- value to be set- Returns:
- Builder
-
shippingRate
public StagedOrderSetShippingAddressAndCustomShippingMethodActionBuilder shippingRate(Function<ShippingRateDraftBuilder, ShippingRateDraftBuilder> builder) Value to set.
- Parameters:
builder
- function to build the shippingRate value- Returns:
- Builder
-
withShippingRate
public StagedOrderSetShippingAddressAndCustomShippingMethodActionBuilder withShippingRate(Function<ShippingRateDraftBuilder, ShippingRateDraft> builder) Value to set.
- Parameters:
builder
- function to build the shippingRate value- Returns:
- Builder
-
shippingRate
public StagedOrderSetShippingAddressAndCustomShippingMethodActionBuilder shippingRate(ShippingRateDraft shippingRate) Value to set.
- Parameters:
shippingRate
- value to be set- Returns:
- Builder
-
taxCategory
public StagedOrderSetShippingAddressAndCustomShippingMethodActionBuilder taxCategory(Function<TaxCategoryResourceIdentifierBuilder, TaxCategoryResourceIdentifierBuilder> builder) Used to select a Tax Rate when the Order has the
Platform
TaxMode.- Parameters:
builder
- function to build the taxCategory value- Returns:
- Builder
-
withTaxCategory
public StagedOrderSetShippingAddressAndCustomShippingMethodActionBuilder withTaxCategory(Function<TaxCategoryResourceIdentifierBuilder, TaxCategoryResourceIdentifier> builder) Used to select a Tax Rate when the Order has the
Platform
TaxMode.- Parameters:
builder
- function to build the taxCategory value- Returns:
- Builder
-
taxCategory
public StagedOrderSetShippingAddressAndCustomShippingMethodActionBuilder taxCategory(@Nullable TaxCategoryResourceIdentifier taxCategory) Used to select a Tax Rate when the Order has the
Platform
TaxMode.- Parameters:
taxCategory
- value to be set- Returns:
- Builder
-
externalTaxRate
public StagedOrderSetShippingAddressAndCustomShippingMethodActionBuilder externalTaxRate(Function<ExternalTaxRateDraftBuilder, ExternalTaxRateDraftBuilder> builder) An external Tax Rate can be set if the Cart has the
External
TaxMode.- Parameters:
builder
- function to build the externalTaxRate value- Returns:
- Builder
-
withExternalTaxRate
public StagedOrderSetShippingAddressAndCustomShippingMethodActionBuilder withExternalTaxRate(Function<ExternalTaxRateDraftBuilder, ExternalTaxRateDraft> builder) An external Tax Rate can be set if the Cart has the
External
TaxMode.- Parameters:
builder
- function to build the externalTaxRate value- Returns:
- Builder
-
externalTaxRate
public StagedOrderSetShippingAddressAndCustomShippingMethodActionBuilder externalTaxRate(@Nullable ExternalTaxRateDraft externalTaxRate) An external Tax Rate can be set if the Cart has the
External
TaxMode.- Parameters:
externalTaxRate
- value to be set- Returns:
- Builder
-
getAddress
Value to set for
shippingAddress
.- Returns:
- address
-
getShippingMethodName
Value to set.
- Returns:
- shippingMethodName
-
getShippingRate
Value to set.
- Returns:
- shippingRate
-
getTaxCategory
Used to select a Tax Rate when the Order has the
Platform
TaxMode.- Returns:
- taxCategory
-
getExternalTaxRate
An external Tax Rate can be set if the Cart has the
External
TaxMode.- Returns:
- externalTaxRate
-
build
builds StagedOrderSetShippingAddressAndCustomShippingMethodAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<StagedOrderSetShippingAddressAndCustomShippingMethodAction>
- Returns:
- StagedOrderSetShippingAddressAndCustomShippingMethodAction
-
buildUnchecked
builds StagedOrderSetShippingAddressAndCustomShippingMethodAction without checking for non-null required values- Returns:
- StagedOrderSetShippingAddressAndCustomShippingMethodAction
-
of
factory method for an instance of StagedOrderSetShippingAddressAndCustomShippingMethodActionBuilder- Returns:
- builder
-
of
public static StagedOrderSetShippingAddressAndCustomShippingMethodActionBuilder of(StagedOrderSetShippingAddressAndCustomShippingMethodAction template) create builder for StagedOrderSetShippingAddressAndCustomShippingMethodAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-