@@ -17,6 +17,8 @@ class AuthMessages(TypedDict):
1717 NOT_ENABLED : str
1818 IS_DELETED : str
1919 SUCCESS : str
20+ TOKEN_ERROR : str
21+ TOKEN_SUCCESS : str
2022
2123
2224class OtpMessages (TypedDict ):
@@ -28,30 +30,11 @@ class OtpMessages(TypedDict):
2830
2931class UserMessages (TypedDict ):
3032 DOESNT_EXIST : str
31- UPDATED : str
3233 SANITIZED : str
33- NOT_ALLOWED : str
34- PIN_EXISTS : str
35- PIN_SET : str
3634 INCORRECT_PASSWORD : str
3735 PASSWORD_CHANGED : str
3836
3937
40- class AccountMessages (TypedDict ):
41- SAVED : str
42- UPDATED : str
43-
44-
45- class NextOfKinMessages (TypedDict ):
46- FETCHED : str
47- UPDATED : str
48-
49-
50- class KYCInformationMessages (TypedDict ):
51- FETCHED : str
52- UPDATED : str
53-
54-
5538class CommonMessages (TypedDict ):
5639 INTERNAL_SERVER_ERROR : str
5740 JWT_GENERATED : str
@@ -73,9 +56,6 @@ class Messages(TypedDict):
7356 AUTH : AuthMessages
7457 OTP : OtpMessages
7558 USER : UserMessages
76- ACCOUNT : AccountMessages
77- NOK : NextOfKinMessages
78- KYC : KYCInformationMessages
7959 COMMON : CommonMessages
8060 PASSWORD_RESET : PasswordResetMessages
8161
@@ -116,6 +96,8 @@ class DynamicMessages(TypedDict):
11696 "NOT_ENABLED" : "User account is disabled. Please contact support" ,
11797 "IS_DELETED" : "User account has been deleted. Please contact support if you want to restore your account" ,
11898 "SUCCESS" : "Successfully logged in" ,
99+ "TOKEN_ERROR" : "Invalid token" ,
100+ "TOKEN_SUCCESS" : "Valid token" ,
119101 },
120102 "OTP" : {
121103 "SEND_SUCCESS" : "OTP sent successfully" ,
@@ -125,26 +107,10 @@ class DynamicMessages(TypedDict):
125107 },
126108 "USER" : {
127109 "DOESNT_EXIST" : "User doesn't exist" ,
128- "UPDATED" : "User updated successfully" ,
129110 "SANITIZED" : "User object was sanitized" ,
130- "PIN_EXISTS" : "You already have a transaction PIN on your account!" ,
131- "PIN_SET" : "Transaction PIN set successfully" ,
132- "NOT_ALLOWED" : "Unauthorized request!" ,
133111 "INCORRECT_PASSWORD" : "Incorrect old password" ,
134112 "PASSWORD_CHANGED" : "Password changed successfully" ,
135113 },
136- "ACCOUNT" : {
137- "SAVED" : "Withdrawal account details saved succesfully" ,
138- "UPDATED" : "User Withdraw account updated successfully" ,
139- },
140- "NOK" : {
141- "FETCHED" : "Next of Kin fetched successfully" ,
142- "UPDATED" : "Next of Kin updated successfully" ,
143- },
144- "KYC" : {
145- "FETCHED" : "KYC Information fetched successfully" ,
146- "UPDATED" : "KYC Information updated successfully" ,
147- },
148114 "COMMON" : {
149115 "INTERNAL_SERVER_ERROR" : "Something went wrong" ,
150116 "JWT_GENERATED" : "JWT was generated" ,
0 commit comments