Interface CartsConfiguration
Example to create an instance using the builder pattern
CartsConfiguration cartsConfiguration = CartsConfiguration.builder()
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic CartsConfigurationBuilder
builder()
builder factory method for CartsConfigurationstatic CartsConfigurationBuilder
builder
(CartsConfiguration template) create builder for CartsConfiguration instancestatic CartsConfiguration
deepCopy
(CartsConfiguration template) factory method to create a deep copy of CartsConfigurationIndicates if country - no state Tax Rate fallback should be used when a shipping address state is not explicitly covered in the rates lists of all Tax Categories of a Cart Line Items.Default value for thedeleteDaysAfterLastModification
parameter of the CartDraft and MyCartDraft.static CartsConfiguration
of()
factory methodstatic CartsConfiguration
of
(CartsConfiguration template) factory method to create a shallow copy CartsConfigurationvoid
setCountryTaxRateFallbackEnabled
(Boolean countryTaxRateFallbackEnabled) Indicates if country - no state Tax Rate fallback should be used when a shipping address state is not explicitly covered in the rates lists of all Tax Categories of a Cart Line Items.void
setDeleteDaysAfterLastModification
(Long deleteDaysAfterLastModification) Default value for thedeleteDaysAfterLastModification
parameter of the CartDraft and MyCartDraft.static com.fasterxml.jackson.core.type.TypeReference<CartsConfiguration>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withCartsConfiguration
(Function<CartsConfiguration, T> helper) accessor map function
-
Method Details
-
getDeleteDaysAfterLastModification
Long getDeleteDaysAfterLastModification()Default value for the
deleteDaysAfterLastModification
parameter of the CartDraft and MyCartDraft. If a ChangeSubscription for Carts exists, a ResourceDeletedDeliveryPayload is sent upon deletion of a Cart.This field may not be present on Projects created before January 2020.
- Returns:
- deleteDaysAfterLastModification
-
getCountryTaxRateFallbackEnabled
Boolean getCountryTaxRateFallbackEnabled()Indicates if country - no state Tax Rate fallback should be used when a shipping address state is not explicitly covered in the rates lists of all Tax Categories of a Cart Line Items. This field may not be present on Projects created before June 2020.
- Returns:
- countryTaxRateFallbackEnabled
-
setDeleteDaysAfterLastModification
Default value for the
deleteDaysAfterLastModification
parameter of the CartDraft and MyCartDraft. If a ChangeSubscription for Carts exists, a ResourceDeletedDeliveryPayload is sent upon deletion of a Cart.This field may not be present on Projects created before January 2020.
- Parameters:
deleteDaysAfterLastModification
- value to be set
-
setCountryTaxRateFallbackEnabled
Indicates if country - no state Tax Rate fallback should be used when a shipping address state is not explicitly covered in the rates lists of all Tax Categories of a Cart Line Items. This field may not be present on Projects created before June 2020.
- Parameters:
countryTaxRateFallbackEnabled
- value to be set
-
of
factory method- Returns:
- instance of CartsConfiguration
-
of
factory method to create a shallow copy CartsConfiguration- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of CartsConfiguration- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartsConfiguration- Returns:
- builder
-
builder
create builder for CartsConfiguration instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCartsConfiguration
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
-