Interface CartLockCartAction

All Superinterfaces:
CartUpdateAction, ResourceUpdateAction<CartUpdateAction>

public interface CartLockCartAction extends CartUpdateAction

Locks a Cart, preventing all updates from API Clients without an elevated OAuth 2.0 Scope. This action sets the Cart's lock field which identifies the API Client that locked the Cart and when the lock was applied. This action requires an additional OAuth 2.0 Scope manage_locked_carts.


Example to create an instance using the builder pattern

     CartLockCartAction cartLockCartAction = CartLockCartAction.builder()
             .build()
 
  • Field Details

  • Method Details

    • of

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

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

      CartLockCartAction copyDeep()
      Specified by:
      copyDeep in interface CartUpdateAction
    • deepCopy

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

      static CartLockCartActionBuilder builder()
      builder factory method for CartLockCartAction
      Returns:
      builder
    • builder

      static CartLockCartActionBuilder builder(CartLockCartAction template)
      create builder for CartLockCartAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withCartLockCartAction

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