Class StorefrontBuilder

java.lang.Object
com.commercetools.api.models.store.StorefrontBuilder
All Implemented Interfaces:
Builder<Storefront>

public class StorefrontBuilder extends Object implements Builder<Storefront>
StorefrontBuilder
Example to create an instance using the builder pattern

     Storefront storefront = Storefront.builder()
             .build()
 
  • Constructor Details

    • StorefrontBuilder

      public StorefrontBuilder()
  • Method Details

    • checkoutUrlTemplate

      public StorefrontBuilder checkoutUrlTemplate(@Nullable String checkoutUrlTemplate)

      RFC 6570 URI template for the customer-facing checkout page. Must contain the checkoutId variable, for example https://example.com/checkout/{checkoutId}.

      Parameters:
      checkoutUrlTemplate - value to be set
      Returns:
      Builder
    • orderUrlTemplate

      public StorefrontBuilder orderUrlTemplate(@Nullable String orderUrlTemplate)

      RFC 6570 URI template for the customer-facing order status page. Must contain the orderId variable, for example https://example.com/orders/{orderId}.

      Parameters:
      orderUrlTemplate - value to be set
      Returns:
      Builder
    • termsOfServiceUrl

      public StorefrontBuilder termsOfServiceUrl(@Nullable String termsOfServiceUrl)

      Absolute https URL of the storefront's terms of service page.

      Parameters:
      termsOfServiceUrl - value to be set
      Returns:
      Builder
    • privacyPolicyUrl

      public StorefrontBuilder privacyPolicyUrl(@Nullable String privacyPolicyUrl)

      Absolute https URL of the storefront's privacy policy page.

      Parameters:
      privacyPolicyUrl - value to be set
      Returns:
      Builder
    • refundPolicyUrl

      public StorefrontBuilder refundPolicyUrl(@Nullable String refundPolicyUrl)

      Absolute https URL of the storefront's refund policy page.

      Parameters:
      refundPolicyUrl - value to be set
      Returns:
      Builder
    • shippingPolicyUrl

      public StorefrontBuilder shippingPolicyUrl(@Nullable String shippingPolicyUrl)

      Absolute https URL of the storefront's shipping policy page.

      Parameters:
      shippingPolicyUrl - value to be set
      Returns:
      Builder
    • cookiePolicyUrl

      public StorefrontBuilder cookiePolicyUrl(@Nullable String cookiePolicyUrl)

      Absolute https URL of the storefront's cookie policy page.

      Parameters:
      cookiePolicyUrl - value to be set
      Returns:
      Builder
    • imprintUrl

      public StorefrontBuilder imprintUrl(@Nullable String imprintUrl)

      Absolute https URL of the storefront's imprint (legal notice) page.

      Parameters:
      imprintUrl - value to be set
      Returns:
      Builder
    • faqUrl

      public StorefrontBuilder faqUrl(@Nullable String faqUrl)

      Absolute https URL of the storefront's FAQ page.

      Parameters:
      faqUrl - value to be set
      Returns:
      Builder
    • contactUrl

      public StorefrontBuilder contactUrl(@Nullable String contactUrl)

      Absolute https URL of the storefront's contact page.

      Parameters:
      contactUrl - value to be set
      Returns:
      Builder
    • getCheckoutUrlTemplate

      @Nullable public String getCheckoutUrlTemplate()

      RFC 6570 URI template for the customer-facing checkout page. Must contain the checkoutId variable, for example https://example.com/checkout/{checkoutId}.

      Returns:
      checkoutUrlTemplate
    • getOrderUrlTemplate

      @Nullable public String getOrderUrlTemplate()

      RFC 6570 URI template for the customer-facing order status page. Must contain the orderId variable, for example https://example.com/orders/{orderId}.

      Returns:
      orderUrlTemplate
    • getTermsOfServiceUrl

      @Nullable public String getTermsOfServiceUrl()

      Absolute https URL of the storefront's terms of service page.

      Returns:
      termsOfServiceUrl
    • getPrivacyPolicyUrl

      @Nullable public String getPrivacyPolicyUrl()

      Absolute https URL of the storefront's privacy policy page.

      Returns:
      privacyPolicyUrl
    • getRefundPolicyUrl

      @Nullable public String getRefundPolicyUrl()

      Absolute https URL of the storefront's refund policy page.

      Returns:
      refundPolicyUrl
    • getShippingPolicyUrl

      @Nullable public String getShippingPolicyUrl()

      Absolute https URL of the storefront's shipping policy page.

      Returns:
      shippingPolicyUrl
    • getCookiePolicyUrl

      @Nullable public String getCookiePolicyUrl()

      Absolute https URL of the storefront's cookie policy page.

      Returns:
      cookiePolicyUrl
    • getImprintUrl

      @Nullable public String getImprintUrl()

      Absolute https URL of the storefront's imprint (legal notice) page.

      Returns:
      imprintUrl
    • getFaqUrl

      @Nullable public String getFaqUrl()

      Absolute https URL of the storefront's FAQ page.

      Returns:
      faqUrl
    • getContactUrl

      @Nullable public String getContactUrl()

      Absolute https URL of the storefront's contact page.

      Returns:
      contactUrl
    • build

      public Storefront build()
      builds Storefront with checking for non-null required values
      Specified by:
      build in interface Builder<Storefront>
      Returns:
      Storefront
    • buildUnchecked

      public Storefront buildUnchecked()
      builds Storefront without checking for non-null required values
      Returns:
      Storefront
    • of

      public static StorefrontBuilder of()
      factory method for an instance of StorefrontBuilder
      Returns:
      builder
    • of

      public static StorefrontBuilder of(Storefront template)
      create builder for Storefront instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder