Interface MethodExternalTaxRateDraft
- All Superinterfaces:
Draft<MethodExternalTaxRateDraft>
MethodExternalTaxRateDraft
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MethodExternalTaxRateDraft methodExternalTaxRateDraft = MethodExternalTaxRateDraft.builder()
.shippingMethodKey("{shippingMethodKey}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for MethodExternalTaxRateDraftbuilder(MethodExternalTaxRateDraft template) create builder for MethodExternalTaxRateDraft instancecopyDeep()static MethodExternalTaxRateDraftdeepCopy(MethodExternalTaxRateDraft template) factory method to create a deep copy of MethodExternalTaxRateDraft@NotNull StringUser-defined unique identifier of the Shipping Method in a Cart withMultipleShippingMode.@Valid ExternalTaxRateDraftExternal Tax Rate for the Shipping Method, if the Cart hasExternalTaxMode.static MethodExternalTaxRateDraftof()factory methodstatic MethodExternalTaxRateDraftof(MethodExternalTaxRateDraft template) factory method to create a shallow copy MethodExternalTaxRateDraftvoidsetShippingMethodKey(String shippingMethodKey) User-defined unique identifier of the Shipping Method in a Cart withMultipleShippingMode.voidsetTaxRate(ExternalTaxRateDraft taxRate) External Tax Rate for the Shipping Method, if the Cart hasExternalTaxMode.static com.fasterxml.jackson.core.type.TypeReference<MethodExternalTaxRateDraft>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map function
-
Method Details
-
getShippingMethodKey
User-defined unique identifier of the Shipping Method in a Cart with
MultipleShippingMode.- Returns:
- shippingMethodKey
-
getTaxRate
External Tax Rate for the Shipping Method, if the Cart has
ExternalTaxMode.- Returns:
- taxRate
-
setShippingMethodKey
User-defined unique identifier of the Shipping Method in a Cart with
MultipleShippingMode.- Parameters:
shippingMethodKey- value to be set
-
setTaxRate
External Tax Rate for the Shipping Method, if the Cart has
ExternalTaxMode.- Parameters:
taxRate- value to be set
-
of
factory method- Returns:
- instance of MethodExternalTaxRateDraft
-
of
factory method to create a shallow copy MethodExternalTaxRateDraft- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
MethodExternalTaxRateDraft copyDeep() -
deepCopy
factory method to create a deep copy of MethodExternalTaxRateDraft- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MethodExternalTaxRateDraft- Returns:
- builder
-
builder
create builder for MethodExternalTaxRateDraft instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withMethodExternalTaxRateDraft
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
-