(20250625) - Implemented the ecommerce shopify auth integration.

with multiple files added new API for get token details
This commit is contained in:
yatmesh
2025-06-25 14:06:02 +05:30
parent 388b9bdd1b
commit c022844824
14 changed files with 1029 additions and 7 deletions
+14 -1
View File
@@ -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
# *****************************************************************************************************************
# ***** ****