(20241216) Payments requesting started, callback noting started.

This commit is contained in:
2024-12-16 18:29:30 +05:30
parent 0b9976fadb
commit b6ba54abd4
12 changed files with 636 additions and 117 deletions
+10 -16
View File
@@ -110,17 +110,6 @@ class PGPaymentRequestHeaders(BaseModel):
class PGPaymentRequestData(BaseModel):
# {
# "customerMobileNumber": "",
# "tokenId": "",
# "description": "",
# "payerNumber": "",
# "amount": "",
# "currency": "",
# "emailAddress": "",
# "reference": "",
# }
tokenKey: ObjectId = Field(
description = "the auth token to use to send this message",
frozen = True,
@@ -164,6 +153,16 @@ class PGPaymentRequestData(BaseModel):
examples = ["INR", "USD", "KES"]
)
reference: str = Field(
description = "some reference against which the payment was made",
frozen = True
)
description: str = Field(
description = "a short, human-readable description of the payment",
frozen = True
)
metadata: dict = Field(
description = "any extra information about this payment",
frozen = True
@@ -210,11 +209,6 @@ class PaymentRequestOneResult(BaseModel):
default = None
)
paymentDetails: CorePaymentModel = Field(
description = "the actual data of the payment",
default = None
)
# ┏┓ ┏•
# ┃ ┏┓┏┓╋┓┏┓
# ┗┛┗┛┛┗┛┗┗┫