Class AddOrderItemRequest

java.lang.Object
com.dzidzi.dto.orderItem.AddOrderItemRequest

public class AddOrderItemRequest extends Object
AddOrderItemRequest represents the DTO request containing the objects used to create a new order item.
  • Constructor Details

    • AddOrderItemRequest

      public AddOrderItemRequest()
    • AddOrderItemRequest

      @ConstructorProperties({"menu","quantity","extra"}) public AddOrderItemRequest(UUID menu, int quantity, UUID extra)
      Creates a new AddOrderItemRequest instance.
      Parameters:
      menu - The menu id
      quantity - The quantity of the menu to be ordered
      extra - The extra id
  • Method Details

    • builder

      public static AddOrderItemRequest.Builder builder()
    • getMenu

      public UUID getMenu()
      The menu id
    • getQuantity

      public int getQuantity()
      The quantity of the menu to be ordered
    • getExtra

      public UUID getExtra()
      The extra id