Add Transaction remote stop capability
All checks were successful
ci/woodpecker/push/docker Pipeline was successful
All checks were successful
ci/woodpecker/push/docker Pipeline was successful
This commit is contained in:
parent
9041c922f7
commit
f48a9d71ef
2 changed files with 55 additions and 4 deletions
|
@ -32,6 +32,10 @@ class TransactionEventTriggerReason(enum.Enum):
|
|||
SIGNED_DATA_RECEIVED = "SignedDataReceived"
|
||||
RESET_COMMAND = "ResetCommand"
|
||||
|
||||
class RemoteTransactionStartStopStatus(enum.Enum):
|
||||
ACCEPTED = "Accepted"
|
||||
REJECTED = "Rejected"
|
||||
|
||||
class Transaction(BaseModel):
|
||||
id: str
|
||||
status: TransactionStatus
|
||||
|
@ -45,4 +49,7 @@ class Transaction(BaseModel):
|
|||
chargepoint_id: UUID
|
||||
|
||||
class Config:
|
||||
from_attributes = True
|
||||
from_attributes = True
|
||||
|
||||
class RemoteTransactionStartStopResponse(BaseModel):
|
||||
status: RemoteTransactionStartStopStatus
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue