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)
.inventory(inventoryBuilder -> inventoryBuilder)
.discounts(discountsBuilder -> discountsBuilder)
.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.@NotNull @Valid DiscountsConfigurationHolds configuration specific to discounts, including how Product and Cart Discounts are combined in every Cart of the Project.@Valid ExternalOAuthRepresents a RFC 7662 compliant OAuth 2.0 Token Introspection endpoint.@NotNull @Valid InventoryConfigurationHolds configuration specific to inventory.@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.Determines how Product Variants are managed in 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.voidsetDiscounts(DiscountsConfiguration discounts) Holds configuration specific to discounts, including how Product and Cart Discounts are combined in every Cart of the Project.voidsetExternalOAuth(ExternalOAuth externalOAuth) Represents a RFC 7662 compliant OAuth 2.0 Token Introspection endpoint.voidsetInventory(InventoryConfiguration inventory) Holds configuration specific to inventory.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.voidsetProductCatalogModel(ProductCatalogModel productCatalogModel) Determines how Product Variants are managed in 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 tools.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.
- 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
-
getInventory
Holds configuration specific to inventory.
- Returns:
- inventory
-
getDiscounts
Holds configuration specific to discounts, including how Product and Cart Discounts are combined in every Cart of the Project.
- Returns:
- discounts
-
getProductCatalogModel
ProductCatalogModel getProductCatalogModel()Determines how Product Variants are managed in the Project.
The
x-catalog-modelrequest header can override the effective Catalog model for a single request to resources that resolve Variant data, such as Carts, Orders, and Shopping Lists, independent of the Project's configured Catalog model. Use it during migration to test Modular Catalog behavior on selected requests before changing the Project's configured Catalog model. It is intended as a migration aid, not as a permanent substitute for the Project configuration. It has no effect on Product update actions.- Returns:
- productCatalogModel
-
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.
- 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
-
setInventory
Holds configuration specific to inventory.
- Parameters:
inventory- value to be set
-
setDiscounts
Holds configuration specific to discounts, including how Product and Cart Discounts are combined in every Cart of the Project.
- Parameters:
discounts- value to be set
-
setProductCatalogModel
Determines how Product Variants are managed in the Project.
The
x-catalog-modelrequest header can override the effective Catalog model for a single request to resources that resolve Variant data, such as Carts, Orders, and Shopping Lists, independent of the Project's configured Catalog model. Use it during migration to test Modular Catalog behavior on selected requests before changing the Project's configured Catalog model. It is intended as a migration aid, not as a permanent substitute for the Project configuration. It has no effect on Product update actions.- Parameters:
productCatalogModel- 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
-