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 instancestatic MethodExternalTaxRateDraft
deepCopy
(MethodExternalTaxRateDraft template) factory method to create a deep copy of MethodExternalTaxRateDraft@NotNull String
User-defined unique identifier of the Shipping Method in a Cart withMultiple
ShippingMode.@Valid ExternalTaxRateDraft
External Tax Rate for the Shipping Method, if the Cart hasExternal
TaxMode.static MethodExternalTaxRateDraft
of()
factory methodstatic MethodExternalTaxRateDraft
of
(MethodExternalTaxRateDraft template) factory method to create a shallow copy MethodExternalTaxRateDraftvoid
setShippingMethodKey
(String shippingMethodKey) User-defined unique identifier of the Shipping Method in a Cart withMultiple
ShippingMode.void
setTaxRate
(ExternalTaxRateDraft taxRate) External Tax Rate for the Shipping Method, if the Cart hasExternal
TaxMode.static com.fasterxml.jackson.core.type.TypeReference<MethodExternalTaxRateDraft>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map function
-
Method Details
-
getShippingMethodKey
User-defined unique identifier of the Shipping Method in a Cart with
Multiple
ShippingMode.- Returns:
- shippingMethodKey
-
getTaxRate
External Tax Rate for the Shipping Method, if the Cart has
External
TaxMode.- Returns:
- taxRate
-
setShippingMethodKey
User-defined unique identifier of the Shipping Method in a Cart with
Multiple
ShippingMode.- Parameters:
shippingMethodKey
- value to be set
-
setTaxRate
External Tax Rate for the Shipping Method, if the Cart has
External
TaxMode.- 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
-
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
-