Interface ProjectChangeCountryTaxRateFallbackEnabledAction
- All Superinterfaces:
ProjectUpdateAction,ResourceUpdateAction<ProjectUpdateAction>
ProjectChangeCountryTaxRateFallbackEnabledAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProjectChangeCountryTaxRateFallbackEnabledAction projectChangeCountryTaxRateFallbackEnabledAction = ProjectChangeCountryTaxRateFallbackEnabledAction.builder()
.countryTaxRateFallbackEnabled(true)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ProjectChangeCountryTaxRateFallbackEnabledAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ProjectChangeCountryTaxRateFallbackEnabledActioncreate builder for ProjectChangeCountryTaxRateFallbackEnabledAction instancecopyDeep()factory method to create a deep copy of ProjectChangeCountryTaxRateFallbackEnabledAction@NotNull BooleanWhentrue, country - no state Tax Rate is used as fallback.of()factory methodfactory method to create a shallow copy ProjectChangeCountryTaxRateFallbackEnabledActionvoidsetCountryTaxRateFallbackEnabled(Boolean countryTaxRateFallbackEnabled) Whentrue, country - no state Tax Rate is used as fallback.static com.fasterxml.jackson.core.type.TypeReference<ProjectChangeCountryTaxRateFallbackEnabledAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithProjectChangeCountryTaxRateFallbackEnabledAction(Function<ProjectChangeCountryTaxRateFallbackEnabledAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.project.ProjectUpdateAction
getAction, withProjectUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
CHANGE_COUNTRY_TAX_RATE_FALLBACK_ENABLED
discriminator value for ProjectChangeCountryTaxRateFallbackEnabledAction- See Also:
-
-
Method Details
-
getCountryTaxRateFallbackEnabled
When
true, country - no state Tax Rate is used as fallback. See CartsConfiguration.- Returns:
- countryTaxRateFallbackEnabled
-
setCountryTaxRateFallbackEnabled
When
true, country - no state Tax Rate is used as fallback. See CartsConfiguration.- Parameters:
countryTaxRateFallbackEnabled- value to be set
-
of
factory method- Returns:
- instance of ProjectChangeCountryTaxRateFallbackEnabledAction
-
of
static ProjectChangeCountryTaxRateFallbackEnabledAction of(ProjectChangeCountryTaxRateFallbackEnabledAction template) factory method to create a shallow copy ProjectChangeCountryTaxRateFallbackEnabledAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
- Specified by:
copyDeepin interfaceProjectUpdateAction
-
deepCopy
@Nullable static ProjectChangeCountryTaxRateFallbackEnabledAction deepCopy(@Nullable ProjectChangeCountryTaxRateFallbackEnabledAction template) factory method to create a deep copy of ProjectChangeCountryTaxRateFallbackEnabledAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProjectChangeCountryTaxRateFallbackEnabledAction- Returns:
- builder
-
builder
static ProjectChangeCountryTaxRateFallbackEnabledActionBuilder builder(ProjectChangeCountryTaxRateFallbackEnabledAction template) create builder for ProjectChangeCountryTaxRateFallbackEnabledAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withProjectChangeCountryTaxRateFallbackEnabledAction
default <T> T withProjectChangeCountryTaxRateFallbackEnabledAction(Function<ProjectChangeCountryTaxRateFallbackEnabledAction, T> helper) accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<ProjectChangeCountryTaxRateFallbackEnabledAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-