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 MethodTaxRateBuilderbuilder()builder factory method for MethodTaxRatestatic MethodTaxRateBuilderbuilder(MethodTaxRate template) create builder for MethodTaxRate instancecopyDeep()static MethodTaxRatedeepCopy(MethodTaxRate template) factory method to create a deep copy of MethodTaxRate@NotNull StringUser-defined unique identifier of the Shipping Method in a Cart withMultipleShippingMode.@Valid TaxRateTax Rate for the Shipping Method.static MethodTaxRateof()factory methodstatic MethodTaxRateof(MethodTaxRate template) factory method to create a shallow copy MethodTaxRatevoidsetShippingMethodKey(String shippingMethodKey) User-defined unique identifier of the Shipping Method in a Cart withMultipleShippingMode.voidsetTaxRate(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> TwithMethodTaxRate(Function<MethodTaxRate, T> helper) accessor map function
-
Method Details
-
getShippingMethodKey
User-defined unique identifier of the Shipping Method in a Cart with
MultipleShippingMode.- Returns:
- shippingMethodKey
-
getTaxRate
Tax Rate for the Shipping Method.
- Returns:
- taxRate
-
setShippingMethodKey
User-defined unique identifier of the Shipping Method in a Cart with
MultipleShippingMode.- 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
-
copyDeep
MethodTaxRate copyDeep() -
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
-