feat(fleet): enforce reviewed trips and original fee coverage for dispatch

This commit is contained in:
2026-10-03 04:18:52 +08:00
parent c50e9f97d1
commit 5e683da3b9
162 changed files with 9642 additions and 218 deletions
@@ -34,9 +34,9 @@ class DeliveryLongIdJsonContractTest {
deliveryRow(),
List.of(),
List.of(new DeliveryResponses.DeliveryFeeRow(
FEE_ID, "RECEIVABLE", "DELIVERY_FEE", "USD", null, null)),
FEE_ID, "RECEIVABLE", "DELIVERY_FEE", "USD", null, null, "APPROVED", "ACTIVE", "NOT_REQUESTED")),
List.of(new DeliveryResponses.DeliveryOperationRow(
OPERATION_ID, null, "CREATED", "tester", "success")));
OPERATION_ID, null, "CREATED", "tester", "success")), null);
JsonNode json = objectMapper.readTree(objectMapper.writeValueAsString(detail));
@@ -67,7 +67,7 @@ class DeliveryLongIdJsonContractTest {
null, null, "PS-1", null, null, null, null, "CREATED", null,
null, null, null, null, null, null, null, null, null, null, null,
0, 0, null, null, null, null, null, null, null, null, 0, java.util.List.of(), null,
com.baiyue.lastleg.delivery.model.DeliveryDocumentSnapshot.summary(null), null, null, null,
com.baiyue.lastleg.delivery.service.DeliveryDocumentSnapshot.summary(null), null, null, null,
null, null, null, null, null);
}
}