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 ProjectBuilder
builder()
builder factory method for Projectstatic ProjectBuilder
create builder for Project instancestatic Project
factory method to create a deep copy of Project@Valid BusinessUnitConfiguration
Holds configuration specific to Business Units.@NotNull @Valid CartsConfiguration
getCarts()
Holds the configuration for the Carts feature.Country code of the geographic location.@NotNull ZonedDateTime
Date and time (UTC) the Project was initially created.Currency code of the country.@Valid ExternalOAuth
Represents a RFC 7662 compliant OAuth 2.0 Token Introspection endpoint.@NotNull String
getKey()
User-defined unique identifier of the Project.Language of the country.@NotNull @Valid MessagesConfiguration
Holds the configuration for the Messages Query feature.@NotNull String
getName()
Name of the Project.@Valid SearchIndexingConfiguration
Controls indexing of resources to be provided on high performance read-only search endpoints.@Valid ShippingRateInputType
Holds the configuration for the tiered shipping rates feature.@Valid ShoppingListsConfiguration
Holds the configuration for the Shopping Lists feature.Date in YYYY-MM format specifying when the trial period for the Project ends.@NotNull Long
Current version of the Project.static Project
of()
factory methodstatic Project
factory method to create a shallow copy Projectvoid
setBusinessUnits
(BusinessUnitConfiguration businessUnits) Holds configuration specific to Business Units.void
setCarts
(CartsConfiguration carts) Holds the configuration for the Carts feature.void
setCountries
(String... countries) Country code of the geographic location.void
setCountries
(List<String> countries) Country code of the geographic location.void
setCreatedAt
(ZonedDateTime createdAt) Date and time (UTC) the Project was initially created.void
setCurrencies
(String... currencies) Currency code of the country.void
setCurrencies
(List<String> currencies) Currency code of the country.void
setExternalOAuth
(ExternalOAuth externalOAuth) Represents a RFC 7662 compliant OAuth 2.0 Token Introspection endpoint.void
User-defined unique identifier of the Project.void
setLanguages
(String... languages) Language of the country.void
setLanguages
(List<String> languages) Language of the country.void
setMessages
(MessagesConfiguration messages) Holds the configuration for the Messages Query feature.void
Name of the Project.void
setSearchIndexing
(SearchIndexingConfiguration searchIndexing) Controls indexing of resources to be provided on high performance read-only search endpoints.void
setShippingRateInputType
(ShippingRateInputType shippingRateInputType) Holds the configuration for the tiered shipping rates feature.void
setShoppingLists
(ShoppingListsConfiguration shoppingLists) Holds the configuration for the Shopping Lists feature.void
setTrialUntil
(String trialUntil) Date in YYYY-MM format specifying when the trial period for the Project ends.void
setVersion
(Long version) Current version of the Project.static com.fasterxml.jackson.core.type.TypeReference<Project>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withProject
(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
-
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
-