Class CartRecalculateActionBuilder

java.lang.Object
com.commercetools.api.models.cart.CartRecalculateActionBuilder
All Implemented Interfaces:
Builder<CartRecalculateAction>

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

     CartRecalculateAction cartRecalculateAction = CartRecalculateAction.builder()
             .build()
 
  • Constructor Details

    • CartRecalculateActionBuilder

      public CartRecalculateActionBuilder()
  • Method Details

    • updateProductData

      public CartRecalculateActionBuilder updateProductData(@Nullable Boolean updateProductData)
      • Leave empty or set as false to update only the Prices and TaxRates of the Line Items.
      • Set as true to update the Product data (such as name, variant, productType, and Product Attributes) of the Line Items.
      Parameters:
      updateProductData - value to be set
      Returns:
      Builder
    • getUpdateProductData

      @Nullable public Boolean getUpdateProductData()
      • Leave empty or set as false to update only the Prices and TaxRates of the Line Items.
      • Set as true to update the Product data (such as name, variant, productType, and Product Attributes) of the Line Items.
      Returns:
      updateProductData
    • build

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

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

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

      create builder for CartRecalculateAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder