(20250625) - Implemented the ecommerce shopify auth integration.
with multiple files added new API for get token details
This commit is contained in:
@@ -99,6 +99,7 @@ class CoreAuthTokenModel(BaseModel):
|
||||
"email", "sms", "chat", # ............. Message
|
||||
"paymentGateway", "stockTrading", # ... Finstitutions
|
||||
"software", # ......................... God knows
|
||||
"ecommerce", # ......................... God knows
|
||||
] = Field(
|
||||
description = "the kind of service this message was sent/received from",
|
||||
frozen = True
|
||||
@@ -110,7 +111,8 @@ class CoreAuthTokenModel(BaseModel):
|
||||
"nimbusSmsIndia", "savvyBulkSmsKenya", # ........................ SMS Clients
|
||||
"razorpay", "safaricomMPesaExpress", # .......................... Payment Gateways
|
||||
"zerodhaKite", "iciciBreeze", "paperTrading", # ................. Stock Brokers
|
||||
"theCaOfficeAi", "mikrotikPPPoE1000", "mikrotikHotspot1000" # ... Software
|
||||
"theCaOfficeAi", "mikrotikPPPoE1000", "mikrotikHotspot1000", # ... Software
|
||||
"shopify"
|
||||
] = Field(
|
||||
description = "the third-part client that was used",
|
||||
frozen = True
|
||||
@@ -245,6 +247,17 @@ class CoreAuthTokenModel(BaseModel):
|
||||
if value is None: value = {}
|
||||
return value
|
||||
|
||||
# ┏┓ ┏┓
|
||||
# ┃ ┓┏┏╋┏┓┏┳┓ ┣ ┓┏┏┓┏┏
|
||||
# ┗┛┗┻┛┗┗┛┛┗┗ ┻ ┗┻┛┗┗┛
|
||||
|
||||
def to_json(self) -> dict:
|
||||
dump = self.model_dump()
|
||||
print(dump)
|
||||
for key in ["batchId", "key", "_id"]:
|
||||
dump[key] = str(dump[key])
|
||||
return dump
|
||||
|
||||
|
||||
# *****************************************************************************************************************
|
||||
# ***** ****
|
||||
|
||||
Reference in New Issue
Block a user