Interface Storefront
Customer-facing URLs and policy links for the Store's storefront. All fields are optional and only present when set.
Example to create an instance using the builder pattern
Storefront storefront = Storefront.builder()
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic StorefrontBuilderbuilder()builder factory method for Storefrontstatic StorefrontBuilderbuilder(Storefront template) create builder for Storefront instancecopyDeep()static StorefrontdeepCopy(Storefront template) factory method to create a deep copy of StorefrontRFC 6570 URI template for the customer-facing checkout page.AbsolutehttpsURL of the storefront's contact page.AbsolutehttpsURL of the storefront's cookie policy page.AbsolutehttpsURL of the storefront's FAQ page.AbsolutehttpsURL of the storefront's imprint (legal notice) page.RFC 6570 URI template for the customer-facing order status page.AbsolutehttpsURL of the storefront's privacy policy page.AbsolutehttpsURL of the storefront's refund policy page.AbsolutehttpsURL of the storefront's shipping policy page.AbsolutehttpsURL of the storefront's terms of service page.static Storefrontof()factory methodstatic Storefrontof(Storefront template) factory method to create a shallow copy StorefrontvoidsetCheckoutUrlTemplate(String checkoutUrlTemplate) RFC 6570 URI template for the customer-facing checkout page.voidsetContactUrl(String contactUrl) AbsolutehttpsURL of the storefront's contact page.voidsetCookiePolicyUrl(String cookiePolicyUrl) AbsolutehttpsURL of the storefront's cookie policy page.voidAbsolutehttpsURL of the storefront's FAQ page.voidsetImprintUrl(String imprintUrl) AbsolutehttpsURL of the storefront's imprint (legal notice) page.voidsetOrderUrlTemplate(String orderUrlTemplate) RFC 6570 URI template for the customer-facing order status page.voidsetPrivacyPolicyUrl(String privacyPolicyUrl) AbsolutehttpsURL of the storefront's privacy policy page.voidsetRefundPolicyUrl(String refundPolicyUrl) AbsolutehttpsURL of the storefront's refund policy page.voidsetShippingPolicyUrl(String shippingPolicyUrl) AbsolutehttpsURL of the storefront's shipping policy page.voidsetTermsOfServiceUrl(String termsOfServiceUrl) AbsolutehttpsURL of the storefront's terms of service page.static tools.jackson.core.type.TypeReference<Storefront>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithStorefront(Function<Storefront, T> helper) accessor map function
-
Method Details
-
getCheckoutUrlTemplate
String getCheckoutUrlTemplate()RFC 6570 URI template for the customer-facing checkout page. Must contain the
checkoutIdvariable, for examplehttps://example.com/checkout/{checkoutId}.- Returns:
- checkoutUrlTemplate
-
getOrderUrlTemplate
String getOrderUrlTemplate()RFC 6570 URI template for the customer-facing order status page. Must contain the
orderIdvariable, for examplehttps://example.com/orders/{orderId}.- Returns:
- orderUrlTemplate
-
getTermsOfServiceUrl
String getTermsOfServiceUrl()Absolute
httpsURL of the storefront's terms of service page.- Returns:
- termsOfServiceUrl
-
getPrivacyPolicyUrl
String getPrivacyPolicyUrl()Absolute
httpsURL of the storefront's privacy policy page.- Returns:
- privacyPolicyUrl
-
getRefundPolicyUrl
String getRefundPolicyUrl()Absolute
httpsURL of the storefront's refund policy page.- Returns:
- refundPolicyUrl
-
getShippingPolicyUrl
String getShippingPolicyUrl()Absolute
httpsURL of the storefront's shipping policy page.- Returns:
- shippingPolicyUrl
-
getCookiePolicyUrl
String getCookiePolicyUrl()Absolute
httpsURL of the storefront's cookie policy page.- Returns:
- cookiePolicyUrl
-
getImprintUrl
String getImprintUrl()Absolute
httpsURL of the storefront's imprint (legal notice) page.- Returns:
- imprintUrl
-
getFaqUrl
String getFaqUrl()Absolute
httpsURL of the storefront's FAQ page.- Returns:
- faqUrl
-
getContactUrl
String getContactUrl()Absolute
httpsURL of the storefront's contact page.- Returns:
- contactUrl
-
setCheckoutUrlTemplate
RFC 6570 URI template for the customer-facing checkout page. Must contain the
checkoutIdvariable, for examplehttps://example.com/checkout/{checkoutId}.- Parameters:
checkoutUrlTemplate- value to be set
-
setOrderUrlTemplate
RFC 6570 URI template for the customer-facing order status page. Must contain the
orderIdvariable, for examplehttps://example.com/orders/{orderId}.- Parameters:
orderUrlTemplate- value to be set
-
setTermsOfServiceUrl
Absolute
httpsURL of the storefront's terms of service page.- Parameters:
termsOfServiceUrl- value to be set
-
setPrivacyPolicyUrl
Absolute
httpsURL of the storefront's privacy policy page.- Parameters:
privacyPolicyUrl- value to be set
-
setRefundPolicyUrl
Absolute
httpsURL of the storefront's refund policy page.- Parameters:
refundPolicyUrl- value to be set
-
setShippingPolicyUrl
Absolute
httpsURL of the storefront's shipping policy page.- Parameters:
shippingPolicyUrl- value to be set
-
setCookiePolicyUrl
Absolute
httpsURL of the storefront's cookie policy page.- Parameters:
cookiePolicyUrl- value to be set
-
setImprintUrl
Absolute
httpsURL of the storefront's imprint (legal notice) page.- Parameters:
imprintUrl- value to be set
-
setFaqUrl
Absolute
httpsURL of the storefront's FAQ page.- Parameters:
faqUrl- value to be set
-
setContactUrl
Absolute
httpsURL of the storefront's contact page.- Parameters:
contactUrl- value to be set
-
of
factory method- Returns:
- instance of Storefront
-
of
factory method to create a shallow copy Storefront- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
Storefront copyDeep() -
deepCopy
factory method to create a deep copy of Storefront- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for Storefront- Returns:
- builder
-
builder
create builder for Storefront instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withStorefront
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
-