mirror of
https://github.com/logos-storage/logos-storage-py-api-client.git
synced 2026-01-02 13:33:11 +00:00
fix: purchase states
This commit is contained in:
parent
4e6e4e01b3
commit
fa33bfb967
16
codex.yaml
16
codex.yaml
@ -294,14 +294,14 @@ components:
|
||||
type: string
|
||||
description: Description of the Request's state
|
||||
enum:
|
||||
- PurchaseCancelled
|
||||
- PurchaseError
|
||||
- PurchaseFailed
|
||||
- PurchaseFinished
|
||||
- PurchasePending
|
||||
- PurchaseStarted
|
||||
- PurchaseSubmitted
|
||||
- PurchaseUnknown
|
||||
- cancelled
|
||||
- error
|
||||
- failed
|
||||
- finished
|
||||
- pending
|
||||
- started
|
||||
- submitted
|
||||
- unknown
|
||||
error:
|
||||
type: string
|
||||
description: If Request failed, then here is presented the error message
|
||||
|
||||
@ -38,8 +38,8 @@ class Purchase(BaseModel):
|
||||
if value is None:
|
||||
return value
|
||||
|
||||
if value not in set(['PurchaseCancelled', 'PurchaseError', 'PurchaseFailed', 'PurchaseFinished', 'PurchasePending', 'PurchaseStarted', 'PurchaseSubmitted', 'PurchaseUnknown']):
|
||||
raise ValueError("must be one of enum values ('PurchaseCancelled', 'PurchaseError', 'PurchaseFailed', 'PurchaseFinished', 'PurchasePending', 'PurchaseStarted', 'PurchaseSubmitted', 'PurchaseUnknown')")
|
||||
if value not in set(['cancelled', 'error', 'failed', 'finished', 'pending', 'started', 'submitted', 'unknown']):
|
||||
raise ValueError("must be one of enum values ('cancelled', 'error', 'failed', 'finished', 'pending', 'started', 'submitted', 'unknown')")
|
||||
return value
|
||||
|
||||
model_config = ConfigDict(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user