Interface CartUnlockCartAction

All Superinterfaces:
CartUpdateAction, ResourceUpdateAction<CartUpdateAction>

public interface CartUnlockCartAction extends CartUpdateAction

Unlocks a Cart, removing all update restrictions that are in place while a Cart is locked. This action requires an additional OAuth 2.0 Scope manage_locked_carts.


Example to create an instance using the builder pattern

     CartUnlockCartAction cartUnlockCartAction = CartUnlockCartAction.builder()
             .build()
 
  • Field Details

  • Method Details

    • of

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

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

      Specified by:
      copyDeep in interface CartUpdateAction
    • deepCopy

      @Nullable static CartUnlockCartAction deepCopy(@Nullable CartUnlockCartAction template)
      factory method to create a deep copy of CartUnlockCartAction
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static CartUnlockCartActionBuilder builder()
      builder factory method for CartUnlockCartAction
      Returns:
      builder
    • builder

      create builder for CartUnlockCartAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withCartUnlockCartAction

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