rder(id = 34, status = "Submitted", basket = Nil))
// java.lang.IllegalArgumentException: requirement failed: Invalid status
//         at scala.Predef$.require(Predef.scala:340)
//         at project.Order.`checkout(Order.scala:41)`
//         at project.OrderService.checkout(OrderService.scala:125)
//         at project.OrderAPI.service(OrderAPI.scala:78)
//         ...
```
]

---
# No documentation

<br>

.forty-seven-left[
```scala
def checkout(order: Order): Order
```
]

---
# No documentation

<br>

.