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 ShippingBuilder
builder()
builder factory method for Shippingstatic ShippingBuilder
create builder for Shipping instancestatic Shipping
factory method to create a deep copy of Shipping@NotNull @Valid Address
Determines the shipping rates and Tax Rates of associated Line Items.@Valid CustomFields
Custom Fields of Shipping withMultiple
ShippingMode.@NotNull @Valid ShippingInfo
Automatically set when the Shipping Method is added.@NotNull String
User-defined unique identifier of the Shipping in a Cart withMultiple
ShippingMode.@Valid ShippingRateInput
Used as an input to select a ShippingRatePriceTier.static Shipping
of()
factory methodstatic Shipping
factory method to create a shallow copy Shippingvoid
setShippingAddress
(Address shippingAddress) Determines the shipping rates and Tax Rates of associated Line Items.void
setShippingCustomFields
(CustomFields shippingCustomFields) Custom Fields of Shipping withMultiple
ShippingMode.void
setShippingInfo
(ShippingInfo shippingInfo) Automatically set when the Shipping Method is added.void
setShippingKey
(String shippingKey) User-defined unique identifier of the Shipping in a Cart withMultiple
ShippingMode.void
setShippingRateInput
(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> T
withShipping
(Function<Shipping, T> helper) accessor map function
-
Method Details
-
getShippingKey
User-defined unique identifier of the Shipping in a Cart with
Multiple
ShippingMode.- 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.type
configured 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
Multiple
ShippingMode.- Returns:
- shippingCustomFields
-
setShippingKey
User-defined unique identifier of the Shipping in a Cart with
Multiple
ShippingMode.- 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.type
configured 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
Multiple
ShippingMode.- 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
-
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
-