Skip to content

Commit

Permalink
Feature/order improvements (#22)
Browse files Browse the repository at this point in the history
* fix list order response and get order response

* add order status transition validator

---------

Co-authored-by: Myller Sakaguchi Lobo <myller.lobo@omni.com.br>
  • Loading branch information
msakaguchi and Myller Sakaguchi Lobo authored Aug 5, 2024
1 parent 22a606c commit 63b8716
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.fiap.tc.core.usecase.order;

import com.fiap.tc.core.domain.model.Order;
import com.fiap.tc.core.domain.model.enums.OrderStatus;
import com.fiap.tc.core.domain.response.OrderListResponse;
import com.fiap.tc.core.port.in.order.ListOrdersReadyPreparingInputPort;
Expand All @@ -23,7 +24,7 @@ public ListOrdersReadyPreparingUseCase(ListOrdersReadyPreparingOutputPort listOr

@Override
public Page<OrderListResponse> list(Pageable pageable) {
return listOrdersReadyPreparingOutputPort.list(List.of(OrderStatus.CONFIRMED, OrderStatus.PREPARING, OrderStatus.READY), pageable);
return listOrdersReadyPreparingOutputPort.list(List.of(OrderStatus.PREPARING, OrderStatus.READY), pageable);
}
}

Expand Down

0 comments on commit 63b8716

Please sign in to comment.