(20241214) SMS also ported to the 'tokenKey' system.
This commit is contained in:
@@ -177,7 +177,7 @@ class SMSSendRequestHeaders(BaseModel):
|
||||
|
||||
class SMSSendRequestData(BaseModel):
|
||||
|
||||
tokenId: ObjectId = Field(description = "the auth token to use to send this message")
|
||||
tokenKey: ObjectId = Field(description = "the auth token to use to send this message")
|
||||
message: List[NimbusSMSIndiaMessage] | List[SavvyBulkSMSKenyaMessage]
|
||||
|
||||
# ┏┓ ┏•
|
||||
@@ -193,7 +193,7 @@ class SMSSendRequestData(BaseModel):
|
||||
# ┃┃┏┓┃┓┏┫┏┓╋┓┏┓┏┓
|
||||
# ┗┛┗┻┗┗┗┻┗┻┗┗┗┛┛┗
|
||||
|
||||
@field_validator("tokenId", mode = "before")
|
||||
@field_validator("tokenKey", mode = "before")
|
||||
def parse_oid(cls, value):
|
||||
try: value = ObjectId(value)
|
||||
except: pass
|
||||
|
||||
Reference in New Issue
Block a user