Interface Shipping
Example to create an instance using the builder pattern
Shipping shipping = Shipping.builder()
.shippingKey("{shippingKey}")
.shippingInfo(shippingInfoBuilder -> shippingInfoBuilder)
.shippingAddress(shippingAddressBuilder -> shippingAddressBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic ShippingBuilderbuilder()builder factory method for Shippingstatic ShippingBuildercreate builder for Shipping instancecopyDeep()static Shippingfactory method to create a deep copy of Shipping@NotNull @Valid AddressDetermines the shipping rates and Tax Rates of associated Line Items.@Valid CustomFieldsCustom Fields of Shipping withMultipleShippingMode.@NotNull @Valid ShippingInfoAutomatically set when the Shipping Method is added.@NotNull StringUser-defined unique identifier of the Shipping in a Cart withMultipleShippingMode.@Valid ShippingRateInputUsed as an input to select a ShippingRatePriceTier.static Shippingof()factory methodstatic Shippingfactory method to create a shallow copy ShippingvoidsetShippingAddress(Address shippingAddress) Determines the shipping rates and Tax Rates of associated Line Items.voidsetShippingCustomFields(CustomFields shippingCustomFields) Custom Fields of Shipping withMultipleShippingMode.voidsetShippingInfo(ShippingInfo shippingInfo) Automatically set when the Shipping Method is added.voidsetShippingKey(String shippingKey) User-defined unique identifier of the Shipping in a Cart withMultipleShippingMode.voidsetShippingRateInput(ShippingRateInput shippingRateInput) Used as an input to select a ShippingRatePriceTier.static com.fasterxml.jackson.core.type.TypeReference<Shipping>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithShipping(Function<Shipping, T> helper) accessor map function
-
Method Details
-
getShippingKey
User-defined unique identifier of the Shipping in a Cart with
MultipleShippingMode.- Returns:
- shippingKey
-
getShippingInfo
Automatically set when the Shipping Method is added.
- Returns:
- shippingInfo
-
getShippingAddress
Determines the shipping rates and Tax Rates of associated Line Items.
- Returns:
- shippingAddress
-
getShippingRateInput
Used as an input to select a ShippingRatePriceTier. The data type of this field depends on the
shippingRateInputType.typeconfigured in the Project:- If
CartClassification, it is ClassificationShippingRateInput. - If
CartScore, it is ScoreShippingRateInput. - If
CartValue, it cannot be used.
- Returns:
- shippingRateInput
- If
-
getShippingCustomFields
Custom Fields of Shipping with
MultipleShippingMode.- Returns:
- shippingCustomFields
-
setShippingKey
User-defined unique identifier of the Shipping in a Cart with
MultipleShippingMode.- Parameters:
shippingKey- value to be set
-
setShippingInfo
Automatically set when the Shipping Method is added.
- Parameters:
shippingInfo- value to be set
-
setShippingAddress
Determines the shipping rates and Tax Rates of associated Line Items.
- Parameters:
shippingAddress- value to be set
-
setShippingRateInput
Used as an input to select a ShippingRatePriceTier. The data type of this field depends on the
shippingRateInputType.typeconfigured in the Project:- If
CartClassification, it is ClassificationShippingRateInput. - If
CartScore, it is ScoreShippingRateInput. - If
CartValue, it cannot be used.
- Parameters:
shippingRateInput- value to be set
- If
-
setShippingCustomFields
Custom Fields of Shipping with
MultipleShippingMode.- Parameters:
shippingCustomFields- value to be set
-
of
factory method- Returns:
- instance of Shipping
-
of
factory method to create a shallow copy Shipping- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
Shipping copyDeep() -
deepCopy
factory method to create a deep copy of Shipping- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for Shipping- Returns:
- builder
-
builder
create builder for Shipping instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withShipping
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-