Class StorefrontBuilder
- All Implemented Interfaces:
Builder<Storefront>
Example to create an instance using the builder pattern
Storefront storefront = Storefront.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds Storefront with checking for non-null required valuesbuilds Storefront without checking for non-null required valuescheckoutUrlTemplate(String checkoutUrlTemplate) RFC 6570 URI template for the customer-facing checkout page.contactUrl(String contactUrl) AbsolutehttpsURL of the storefront's contact page.cookiePolicyUrl(String cookiePolicyUrl) AbsolutehttpsURL of the storefront's cookie policy page.AbsolutehttpsURL of the storefront's FAQ page.RFC 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.imprintUrl(String imprintUrl) AbsolutehttpsURL of the storefront's imprint (legal notice) page.static StorefrontBuilderof()factory method for an instance of StorefrontBuilderstatic StorefrontBuilderof(Storefront template) create builder for Storefront instanceorderUrlTemplate(String orderUrlTemplate) RFC 6570 URI template for the customer-facing order status page.privacyPolicyUrl(String privacyPolicyUrl) AbsolutehttpsURL of the storefront's privacy policy page.refundPolicyUrl(String refundPolicyUrl) AbsolutehttpsURL of the storefront's refund policy page.shippingPolicyUrl(String shippingPolicyUrl) AbsolutehttpsURL of the storefront's shipping policy page.termsOfServiceUrl(String termsOfServiceUrl) AbsolutehttpsURL of the storefront's terms of service page.
-
Constructor Details
-
StorefrontBuilder
public StorefrontBuilder()
-
-
Method Details
-
checkoutUrlTemplate
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- Returns:
- Builder
-
orderUrlTemplate
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- Returns:
- Builder
-
termsOfServiceUrl
Absolute
httpsURL of the storefront's terms of service page.- Parameters:
termsOfServiceUrl- value to be set- Returns:
- Builder
-
privacyPolicyUrl
Absolute
httpsURL of the storefront's privacy policy page.- Parameters:
privacyPolicyUrl- value to be set- Returns:
- Builder
-
refundPolicyUrl
Absolute
httpsURL of the storefront's refund policy page.- Parameters:
refundPolicyUrl- value to be set- Returns:
- Builder
-
shippingPolicyUrl
Absolute
httpsURL of the storefront's shipping policy page.- Parameters:
shippingPolicyUrl- value to be set- Returns:
- Builder
-
cookiePolicyUrl
Absolute
httpsURL of the storefront's cookie policy page.- Parameters:
cookiePolicyUrl- value to be set- Returns:
- Builder
-
imprintUrl
Absolute
httpsURL of the storefront's imprint (legal notice) page.- Parameters:
imprintUrl- value to be set- Returns:
- Builder
-
faqUrl
Absolute
httpsURL of the storefront's FAQ page.- Parameters:
faqUrl- value to be set- Returns:
- Builder
-
contactUrl
Absolute
httpsURL of the storefront's contact page.- Parameters:
contactUrl- value to be set- Returns:
- Builder
-
getCheckoutUrlTemplate
RFC 6570 URI template for the customer-facing checkout page. Must contain the
checkoutIdvariable, for examplehttps://example.com/checkout/{checkoutId}.- Returns:
- checkoutUrlTemplate
-
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
Absolute
httpsURL of the storefront's terms of service page.- Returns:
- termsOfServiceUrl
-
getPrivacyPolicyUrl
Absolute
httpsURL of the storefront's privacy policy page.- Returns:
- privacyPolicyUrl
-
getRefundPolicyUrl
Absolute
httpsURL of the storefront's refund policy page.- Returns:
- refundPolicyUrl
-
getShippingPolicyUrl
Absolute
httpsURL of the storefront's shipping policy page.- Returns:
- shippingPolicyUrl
-
getCookiePolicyUrl
Absolute
httpsURL of the storefront's cookie policy page.- Returns:
- cookiePolicyUrl
-
getImprintUrl
Absolute
httpsURL of the storefront's imprint (legal notice) page.- Returns:
- imprintUrl
-
getFaqUrl
Absolute
httpsURL of the storefront's FAQ page.- Returns:
- faqUrl
-
getContactUrl
Absolute
httpsURL of the storefront's contact page.- Returns:
- contactUrl
-
build
builds Storefront with checking for non-null required values- Specified by:
buildin interfaceBuilder<Storefront>- Returns:
- Storefront
-
buildUnchecked
builds Storefront without checking for non-null required values- Returns:
- Storefront
-
of
factory method for an instance of StorefrontBuilder- Returns:
- builder
-
of
create builder for Storefront instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-