Skip to content

Commit fa33bfb

Browse files
committed
fix: purchase states
1 parent 4e6e4e0 commit fa33bfb

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

codex.yaml

+8-8
Original file line numberDiff line numberDiff line change
@@ -294,14 +294,14 @@ components:
294294
type: string
295295
description: Description of the Request's state
296296
enum:
297-
- PurchaseCancelled
298-
- PurchaseError
299-
- PurchaseFailed
300-
- PurchaseFinished
301-
- PurchasePending
302-
- PurchaseStarted
303-
- PurchaseSubmitted
304-
- PurchaseUnknown
297+
- cancelled
298+
- error
299+
- failed
300+
- finished
301+
- pending
302+
- started
303+
- submitted
304+
- unknown
305305
error:
306306
type: string
307307
description: If Request failed, then here is presented the error message

codex_client/models/purchase.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ def state_validate_enum(cls, value):
3838
if value is None:
3939
return value
4040

41-
if value not in set(['PurchaseCancelled', 'PurchaseError', 'PurchaseFailed', 'PurchaseFinished', 'PurchasePending', 'PurchaseStarted', 'PurchaseSubmitted', 'PurchaseUnknown']):
42-
raise ValueError("must be one of enum values ('PurchaseCancelled', 'PurchaseError', 'PurchaseFailed', 'PurchaseFinished', 'PurchasePending', 'PurchaseStarted', 'PurchaseSubmitted', 'PurchaseUnknown')")
41+
if value not in set(['cancelled', 'error', 'failed', 'finished', 'pending', 'started', 'submitted', 'unknown']):
42+
raise ValueError("must be one of enum values ('cancelled', 'error', 'failed', 'finished', 'pending', 'started', 'submitted', 'unknown')")
4343
return value
4444

4545
model_config = ConfigDict(

0 commit comments

Comments
 (0)