Skip to content

Commit 7ea239f

Browse files
nic-planetgadomski
andauthored
feat: add OrderStatusCode values to reflect failure modes for orders (#56)
## What I'm changing - Adding FAILED and EXPIRED OrderStatusCodes We may get away with grouping those two failure modes into a single code, but I think we should have one. ## Checklist - [X ] Tests pass: `uv run pytest` - [ ] Checks pass: `uv run pre-commit --all-files` FYI: `pre-commit: error: unrecognized arguments: --all-files` - [ ] CHANGELOG is updated (if necessary) --------- Co-authored-by: Pete Gadomski <[email protected]>
1 parent 82b7cfe commit 7ea239f

File tree

1 file changed

+2
-0
lines changed
  • stapi-pydantic/src/stapi_pydantic

1 file changed

+2
-0
lines changed

stapi-pydantic/src/stapi_pydantic/order.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ class OrderStatusCode(StrEnum):
4343
reserved = "reserved"
4444
tasked = "tasked"
4545
user_cancelled = "user_cancelled"
46+
expired = "expired"
47+
failed = "failed"
4648

4749

4850
class OrderStatus(BaseModel):

0 commit comments

Comments
 (0)