Interface AgentResponsesCartSuccess

All Superinterfaces:
AgentResponsesSuccess

public interface AgentResponsesCartSuccess extends AgentResponsesSuccess

Successful 201 response from a /responses request when outputType is Cart.


Example to create an instance using the builder pattern

     AgentResponsesCartSuccess agentResponsesCartSuccess = AgentResponsesCartSuccess.builder()
             .threadId("{threadId}")
             .entity(entityBuilder -> entityBuilder)
             .build()
 
  • Field Details

  • Method Details

    • getEntity

      @NotNull @Valid @NotNull @Valid Cart getEntity()

      The created Cart in full commercetools REST representation.

      Returns:
      entity
    • setEntity

      void setEntity(Cart entity)

      The created Cart in full commercetools REST representation.

      Parameters:
      entity - value to be set
    • of

      factory method
      Returns:
      instance of AgentResponsesCartSuccess
    • of

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

      Specified by:
      copyDeep in interface AgentResponsesSuccess
    • deepCopy

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

      builder factory method for AgentResponsesCartSuccess
      Returns:
      builder
    • builder

      create builder for AgentResponsesCartSuccess instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withAgentResponsesCartSuccess

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

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