Skip to content
This repository was archived by the owner on Apr 2, 2025. It is now read-only.

Commit 33a8e04

Browse files
authored
add optional and extension status codes (#134)
* add optional and extension status codes
1 parent f3adb87 commit 33a8e04

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
66
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
77

8-
## [Unreleased]
8+
## [unreleased]
99

1010
### Added
1111

1212
- Added token-based pagination to `GET /orders`, `GET /products`,
1313
`GET /orders/{order_id}/statuses`, and `POST /products/{product_id}/opportunities`.
14+
- Optional and Extension STAPI Status Codes "scheduled", "held", "processing", "reserved", "tasked",
15+
and "user_cancelled"
1416

1517
### Changed
1618

src/stapi_fastapi/models/order.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ class OrderStatusCode(StrEnum):
3535
rejected = "rejected"
3636
completed = "completed"
3737
canceled = "canceled"
38+
scheduled = "scheduled"
39+
held = "held"
40+
processing = "processing"
41+
reserved = "reserved"
42+
tasked = "tasked"
43+
user_cancelled = "user_cancelled"
3844

3945

4046
class OrderStatus(BaseModel):

0 commit comments

Comments
 (0)