Interface CartFreezeCartAction

All Superinterfaces:
CartUpdateAction, ResourceUpdateAction<CartUpdateAction>

public interface CartFreezeCartAction extends CartUpdateAction

Changes the CartState from Active to Frozen. Results in a Frozen Cart. Fails with InvalidOperation error when the Cart is empty.


Example to create an instance using the builder pattern

     CartFreezeCartAction cartFreezeCartAction = CartFreezeCartAction.builder()
             .build()
 
  • Field Details

  • Method Details

    • of

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

      factory method to create a shallow copy CartFreezeCartAction
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

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

      static CartFreezeCartActionBuilder builder()
      builder factory method for CartFreezeCartAction
      Returns:
      builder
    • builder

      create builder for CartFreezeCartAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withCartFreezeCartAction

      default <T> T withCartFreezeCartAction(Function<CartFreezeCartAction,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<CartFreezeCartAction> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference