Class AddOrderRequest

java.lang.Object
com.dzidzi.dto.order.AddOrderRequest

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

    • AddOrderRequest

      public AddOrderRequest()
    • AddOrderRequest

      @ConstructorProperties({"orderItems","useMyAddress","address","couponNumber","orderNote"}) public AddOrderRequest(List<UUID> orderItems, boolean useMyAddress, AddAddressRequest address, String couponNumber, String orderNote)
      Creates a new AddOrderRequest instance.
      Parameters:
      orderItems - A list of the order item ids to be ordered
      useMyAddress - Toggle to true if you want to use your address or false to use a new address
      address - The address of the ordering user if isUseMyAddress() is false. AddAddressRequest
      couponNumber - The coupon number
      orderNote - The order note if necessary
  • Method Details

    • builder

      public static AddOrderRequest.Builder builder()
    • getOrderItems

      public List<UUID> getOrderItems()
      A list of the order item ids to be ordered
    • isUseMyAddress

      public boolean isUseMyAddress()
      Toggle to true if you want to use your address or false to use a new address
    • getAddress

      public AddAddressRequest getAddress()
      The address of the ordering user if isUseMyAddress() is false. AddAddressRequest
    • getCouponNumber

      public String getCouponNumber()
      The coupon number
    • getOrderNote

      public String getOrderNote()
      The order note if necessary