(20241228) Payments module revamped!

This commit is contained in:
2024-12-28 16:34:57 +05:30
parent 7ddae1707f
commit 5c17eb28ae
18 changed files with 1477 additions and 156 deletions
+25 -1
View File
@@ -230,7 +230,31 @@ class PGPaymentRequestData(BaseModel):
class PaymentRequestOneResult(BaseModel):
success: bool = Field(
description = "whether, or not, the sms was successfully sent",
description = "whether, or not, the payment was successfully requested",
default = False
)
message: str | None = Field(
description = "a brief message to summarize the result of the process",
default = None
)
# ┏┓ ┏•
# ┃ ┏┓┏┓╋┓┏┓
# ┗┛┗┛┛┗┛┗┗┫
# ┛
class Config:
extra = "forbid"
# ---------------------------------------------------------------------------------------------------------------------
class PaymentCallbackResult(BaseModel):
success: bool = Field(
description = "whether, or not, the payment event was noted",
default = False
)