Interface Project
- All Superinterfaces:
WithKey
Example to create an instance using the builder pattern
Project project = Project.builder()
.version(0.3)
.key("{key}")
.name("{name}")
.plusCountries(countriesBuilder -> countriesBuilder)
.plusCurrencies(currenciesBuilder -> currenciesBuilder)
.plusLanguages(languagesBuilder -> languagesBuilder)
.createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.messages(messagesBuilder -> messagesBuilder)
.carts(cartsBuilder -> cartsBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic ProjectBuilderbuilder()builder factory method for Projectstatic ProjectBuildercreate builder for Project instancecopyDeep()static Projectfactory method to create a deep copy of Project@Valid BusinessUnitConfigurationHolds configuration specific to Business Units.@NotNull @Valid CartsConfigurationgetCarts()Holds the configuration for the Carts feature.Country code of the geographic location.@NotNull ZonedDateTimeDate and time (UTC) the Project was initially created.Currency code of the country.@Valid ExternalOAuthRepresents a RFC 7662 compliant OAuth 2.0 Token Introspection endpoint.@NotNull StringgetKey()User-defined unique identifier of the Project.Language of the country.@NotNull @Valid MessagesConfigurationHolds the configuration for the Messages Query feature.@NotNull StringgetName()Name of the Project.@Valid SearchIndexingConfigurationControls indexing of resources to be provided on high performance read-only search endpoints.@Valid ShippingRateInputTypeHolds the configuration for the tiered shipping rates feature.@Valid ShoppingListsConfigurationHolds the configuration for the Shopping Lists feature.Date in YYYY-MM format specifying when the trial period for the Project ends.@NotNull LongCurrent version of the Project.static Projectof()factory methodstatic Projectfactory method to create a shallow copy ProjectvoidsetBusinessUnits(BusinessUnitConfiguration businessUnits) Holds configuration specific to Business Units.voidsetCarts(CartsConfiguration carts) Holds the configuration for the Carts feature.voidsetCountries(String... countries) Country code of the geographic location.voidsetCountries(List<String> countries) Country code of the geographic location.voidsetCreatedAt(ZonedDateTime createdAt) Date and time (UTC) the Project was initially created.voidsetCurrencies(String... currencies) Currency code of the country.voidsetCurrencies(List<String> currencies) Currency code of the country.voidsetExternalOAuth(ExternalOAuth externalOAuth) Represents a RFC 7662 compliant OAuth 2.0 Token Introspection endpoint.voidUser-defined unique identifier of the Project.voidsetLanguages(String... languages) Language of the country.voidsetLanguages(List<String> languages) Language of the country.voidsetMessages(MessagesConfiguration messages) Holds the configuration for the Messages Query feature.voidName of the Project.voidsetSearchIndexing(SearchIndexingConfiguration searchIndexing) Controls indexing of resources to be provided on high performance read-only search endpoints.voidsetShippingRateInputType(ShippingRateInputType shippingRateInputType) Holds the configuration for the tiered shipping rates feature.voidsetShoppingLists(ShoppingListsConfiguration shoppingLists) Holds the configuration for the Shopping Lists feature.voidsetTrialUntil(String trialUntil) Date in YYYY-MM format specifying when the trial period for the Project ends.voidsetVersion(Long version) Current version of the Project.static com.fasterxml.jackson.core.type.TypeReference<Project>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithProject(Function<Project, T> helper) accessor map function
-
Method Details
-
getVersion
Current version of the Project.
- Returns:
- version
-
getKey
User-defined unique identifier of the Project.
-
getName
Name of the Project.
- Returns:
- name
-
getCountries
Country code of the geographic location.
- Returns:
- countries
-
getCurrencies
Currency code of the country. A Project must have at least one currency.
- Returns:
- currencies
-
getLanguages
Language of the country. A Project must have at least one language.
- Returns:
- languages
-
getCreatedAt
Date and time (UTC) the Project was initially created.
- Returns:
- createdAt
-
getTrialUntil
String getTrialUntil()Date in YYYY-MM format specifying when the trial period for the Project ends. Only present on Projects in trial period.
- Returns:
- trialUntil
-
getMessages
Holds the configuration for the Messages Query feature.
- Returns:
- messages
-
getCarts
Holds the configuration for the Carts feature.
- Returns:
- carts
-
getShoppingLists
Holds the configuration for the Shopping Lists feature. This field may not be present on Projects created before January 2020.
- Returns:
- shoppingLists
-
getShippingRateInputType
Holds the configuration for the tiered shipping rates feature.
- Returns:
- shippingRateInputType
-
getExternalOAuth
Represents a RFC 7662 compliant OAuth 2.0 Token Introspection endpoint.
- Returns:
- externalOAuth
-
getSearchIndexing
Controls indexing of resources to be provided on high performance read-only search endpoints.
- Returns:
- searchIndexing
-
getBusinessUnits
Holds configuration specific to Business Units.
- Returns:
- businessUnits
-
setVersion
Current version of the Project.
- Parameters:
version- value to be set
-
setKey
User-defined unique identifier of the Project.
- Parameters:
key- value to be set
-
setName
Name of the Project.
- Parameters:
name- value to be set
-
setCountries
Country code of the geographic location.
- Parameters:
countries- values to be set
-
setCountries
Country code of the geographic location.
- Parameters:
countries- values to be set
-
setCurrencies
Currency code of the country. A Project must have at least one currency.
- Parameters:
currencies- values to be set
-
setCurrencies
Currency code of the country. A Project must have at least one currency.
- Parameters:
currencies- values to be set
-
setLanguages
Language of the country. A Project must have at least one language.
- Parameters:
languages- values to be set
-
setLanguages
Language of the country. A Project must have at least one language.
- Parameters:
languages- values to be set
-
setCreatedAt
Date and time (UTC) the Project was initially created.
- Parameters:
createdAt- value to be set
-
setTrialUntil
Date in YYYY-MM format specifying when the trial period for the Project ends. Only present on Projects in trial period.
- Parameters:
trialUntil- value to be set
-
setMessages
Holds the configuration for the Messages Query feature.
- Parameters:
messages- value to be set
-
setCarts
Holds the configuration for the Carts feature.
- Parameters:
carts- value to be set
-
setShoppingLists
Holds the configuration for the Shopping Lists feature. This field may not be present on Projects created before January 2020.
- Parameters:
shoppingLists- value to be set
-
setShippingRateInputType
Holds the configuration for the tiered shipping rates feature.
- Parameters:
shippingRateInputType- value to be set
-
setExternalOAuth
Represents a RFC 7662 compliant OAuth 2.0 Token Introspection endpoint.
- Parameters:
externalOAuth- value to be set
-
setSearchIndexing
Controls indexing of resources to be provided on high performance read-only search endpoints.
- Parameters:
searchIndexing- value to be set
-
setBusinessUnits
Holds configuration specific to Business Units.
- Parameters:
businessUnits- value to be set
-
of
factory method- Returns:
- instance of Project
-
of
factory method to create a shallow copy Project- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
Project copyDeep() -
deepCopy
factory method to create a deep copy of Project- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for Project- Returns:
- builder
-
builder
create builder for Project instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withProject
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
-