mirror of
https://github.com/logos-storage/logos-storage-py-api-client.git
synced 2026-01-05 23:13:08 +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
|
type: string
|
||||||
description: Description of the Request's state
|
description: Description of the Request's state
|
||||||
enum:
|
enum:
|
||||||
- PurchaseCancelled
|
- cancelled
|
||||||
- PurchaseError
|
- error
|
||||||
- PurchaseFailed
|
- failed
|
||||||
- PurchaseFinished
|
- finished
|
||||||
- PurchasePending
|
- pending
|
||||||
- PurchaseStarted
|
- started
|
||||||
- PurchaseSubmitted
|
- submitted
|
||||||
- PurchaseUnknown
|
- unknown
|
||||||
error:
|
error:
|
||||||
type: string
|
type: string
|
||||||
description: If Request failed, then here is presented the error message
|
description: If Request failed, then here is presented the error message
|
||||||
|
|||||||
@ -38,8 +38,8 @@ class Purchase(BaseModel):
|
|||||||
if value is None:
|
if value is None:
|
||||||
return value
|
return value
|
||||||
|
|
||||||
if value not in set(['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 ('PurchaseCancelled', 'PurchaseError', 'PurchaseFailed', 'PurchaseFinished', 'PurchasePending', 'PurchaseStarted', 'PurchaseSubmitted', 'PurchaseUnknown')")
|
raise ValueError("must be one of enum values ('cancelled', 'error', 'failed', 'finished', 'pending', 'started', 'submitted', 'unknown')")
|
||||||
return value
|
return value
|
||||||
|
|
||||||
model_config = ConfigDict(
|
model_config = ConfigDict(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user