Interface MethodTaxRate
public interface MethodTaxRate
MethodTaxRate
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MethodTaxRate methodTaxRate = MethodTaxRate.builder()
.shippingMethodKey("{shippingMethodKey}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic MethodTaxRateBuilder
builder()
builder factory method for MethodTaxRatestatic MethodTaxRateBuilder
builder
(MethodTaxRate template) create builder for MethodTaxRate instancestatic MethodTaxRate
deepCopy
(MethodTaxRate template) factory method to create a deep copy of MethodTaxRate@NotNull String
User-defined unique identifier of the Shipping Method in a Cart withMultiple
ShippingMode.@Valid TaxRate
Tax Rate for the Shipping Method.static MethodTaxRate
of()
factory methodstatic MethodTaxRate
of
(MethodTaxRate template) factory method to create a shallow copy MethodTaxRatevoid
setShippingMethodKey
(String shippingMethodKey) User-defined unique identifier of the Shipping Method in a Cart withMultiple
ShippingMode.void
setTaxRate
(TaxRate taxRate) Tax Rate for the Shipping Method.static com.fasterxml.jackson.core.type.TypeReference<MethodTaxRate>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withMethodTaxRate
(Function<MethodTaxRate, T> helper) accessor map function
-
Method Details
-
getShippingMethodKey
User-defined unique identifier of the Shipping Method in a Cart with
Multiple
ShippingMode.- Returns:
- shippingMethodKey
-
getTaxRate
Tax Rate for the Shipping Method.
- Returns:
- taxRate
-
setShippingMethodKey
User-defined unique identifier of the Shipping Method in a Cart with
Multiple
ShippingMode.- Parameters:
shippingMethodKey
- value to be set
-
setTaxRate
Tax Rate for the Shipping Method.
- Parameters:
taxRate
- value to be set
-
of
factory method- Returns:
- instance of MethodTaxRate
-
of
factory method to create a shallow copy MethodTaxRate- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of MethodTaxRate- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MethodTaxRate- Returns:
- builder
-
builder
create builder for MethodTaxRate instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withMethodTaxRate
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
-