Interface MyOrderFromCartDraft

All Superinterfaces:
Draft<MyOrderFromCartDraft>

public interface MyOrderFromCartDraft extends Draft<MyOrderFromCartDraft>
MyOrderFromCartDraft
Example to create an instance using the builder pattern

     MyOrderFromCartDraft myOrderFromCartDraft = MyOrderFromCartDraft.builder()
             .id("{id}")
             .version(0.3)
             .build()
 
  • Method Details

    • getId

      @NotNull @NotNull String getId()

      id of the Cart from which the Order is created.

      Returns:
      id
    • getVersion

      @NotNull @NotNull Long getVersion()

      Current version of the Cart from which the Order is created.

      Returns:
      version
    • setId

      void setId(String id)

      id of the Cart from which the Order is created.

      Parameters:
      id - value to be set
    • setVersion

      void setVersion(Long version)

      Current version of the Cart from which the Order is created.

      Parameters:
      version - value to be set
    • of

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

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

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

      static MyOrderFromCartDraftBuilder builder()
      builder factory method for MyOrderFromCartDraft
      Returns:
      builder
    • builder

      create builder for MyOrderFromCartDraft instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withMyOrderFromCartDraft

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