Interface CartsConfiguration


public interface CartsConfiguration
CartsConfiguration
Example to create an instance using the builder pattern

     CartsConfiguration cartsConfiguration = CartsConfiguration.builder()
             .build()
 
  • Method Details

    • getDeleteDaysAfterLastModification

      Long getDeleteDaysAfterLastModification()

      Default value for the deleteDaysAfterLastModification parameter of the CartDraft and MyCartDraft. If a ChangeSubscription for Carts exists, a ResourceDeletedDeliveryPayload is sent upon deletion of a Cart.

      This field may not be present on Projects created before January 2020.

      Returns:
      deleteDaysAfterLastModification
    • getCountryTaxRateFallbackEnabled

      Boolean getCountryTaxRateFallbackEnabled()

      Indicates if country - no state Tax Rate fallback should be used when a shipping address state is not explicitly covered in the rates lists of all Tax Categories of a Cart Line Items. This field may not be present on Projects created before June 2020.

      Returns:
      countryTaxRateFallbackEnabled
    • setDeleteDaysAfterLastModification

      void setDeleteDaysAfterLastModification(Long deleteDaysAfterLastModification)

      Default value for the deleteDaysAfterLastModification parameter of the CartDraft and MyCartDraft. If a ChangeSubscription for Carts exists, a ResourceDeletedDeliveryPayload is sent upon deletion of a Cart.

      This field may not be present on Projects created before January 2020.

      Parameters:
      deleteDaysAfterLastModification - value to be set
    • setCountryTaxRateFallbackEnabled

      void setCountryTaxRateFallbackEnabled(Boolean countryTaxRateFallbackEnabled)

      Indicates if country - no state Tax Rate fallback should be used when a shipping address state is not explicitly covered in the rates lists of all Tax Categories of a Cart Line Items. This field may not be present on Projects created before June 2020.

      Parameters:
      countryTaxRateFallbackEnabled - value to be set
    • of

      static CartsConfiguration of()
      factory method
      Returns:
      instance of CartsConfiguration
    • of

      static CartsConfiguration of(CartsConfiguration template)
      factory method to create a shallow copy CartsConfiguration
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      factory method to create a deep copy of CartsConfiguration
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static CartsConfigurationBuilder builder()
      builder factory method for CartsConfiguration
      Returns:
      builder
    • builder

      static CartsConfigurationBuilder builder(CartsConfiguration template)
      create builder for CartsConfiguration instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withCartsConfiguration

      default <T> T withCartsConfiguration(Function<CartsConfiguration,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<CartsConfiguration> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference