(20250102) Print statement removed.
This commit is contained in:
@@ -44,7 +44,7 @@ from utils_v2.string import regex
|
||||
from utils_v2.date_time import date_time
|
||||
|
||||
# Models:
|
||||
from models.core.payment import CorePaymentModel
|
||||
from models.core.payment import CorePaymentModel, PaymentMetadata
|
||||
|
||||
# To work with date and time:
|
||||
import datetime
|
||||
@@ -108,30 +108,6 @@ class PGPaymentRequestHeaders(BaseModel):
|
||||
# ---------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
class PaymentRequestMetadata(BaseModel):
|
||||
|
||||
idClient: str | int = Field(
|
||||
description = "account master id for the user's customer",
|
||||
frozen = True
|
||||
)
|
||||
|
||||
inAccount: str | int = Field(
|
||||
description = "account master id for the user's bank account",
|
||||
frozen = True
|
||||
)
|
||||
|
||||
# ┏┓ ┏•
|
||||
# ┃ ┏┓┏┓╋┓┏┓
|
||||
# ┗┛┗┛┛┗┛┗┗┫
|
||||
# ┛
|
||||
|
||||
class Config:
|
||||
extra = "allow"
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
class PGPaymentRequestData(BaseModel):
|
||||
|
||||
tokenKey: ObjectId = Field(
|
||||
@@ -183,7 +159,7 @@ class PGPaymentRequestData(BaseModel):
|
||||
frozen = True
|
||||
)
|
||||
|
||||
metadata: PaymentRequestMetadata = Field(
|
||||
metadata: PaymentMetadata = Field(
|
||||
description = "any extra information about this payment",
|
||||
frozen = True
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user