@finspringinnovations/fixeddepositsdk 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/customerApi.js +1 -0
- package/lib/api/fdApi.d.ts +401 -1
- package/lib/api/fdApi.js +24 -2
- package/lib/config/workflowConstants.d.ts +40 -30
- package/lib/config/workflowConstants.js +35 -24
- package/lib/navigation/RootNavigator.js +62 -81
- package/lib/navigation/types.d.ts +4 -1
- package/lib/navigation/workflowNavigator.d.ts +1 -1
- package/lib/navigation/workflowNavigator.js +107 -26
- package/lib/screens/AadhaarVerification.js +1 -11
- package/lib/screens/AddBankAccount.js +1 -11
- package/lib/screens/BankDetail.js +1 -11
- package/lib/screens/Employee.js +1 -11
- package/lib/screens/FDCalculator.js +1 -11
- package/lib/screens/FDList.js +529 -416
- package/lib/screens/FindIFSC.js +1 -11
- package/lib/screens/NomineeDetail.js +12 -22
- package/lib/screens/PayNow.js +1 -11
- package/lib/screens/Payment.js +2 -11
- package/lib/screens/PaymentStatus.js +11 -21
- package/lib/screens/ReviewKYC.js +1 -11
- package/lib/types/workflowTypes.d.ts +1 -1
- package/package.json +1 -1
- package/src/api/customerApi.ts +1 -0
- package/src/api/fdApi.ts +28 -1
- package/src/config/workflowConstants.ts +51 -39
- package/src/constants/strings/bank.ts +80 -80
- package/src/navigation/RootNavigator.tsx +646 -663
- package/src/navigation/types.ts +4 -1
- package/src/navigation/workflowNavigator.ts +170 -107
- package/src/screens/AadhaarVerification.tsx +1 -15
- package/src/screens/AddBankAccount.tsx +2 -16
- package/src/screens/BankDetail.tsx +1 -15
- package/src/screens/Employee.tsx +1 -15
- package/src/screens/FDCalculator.tsx +1 -15
- package/src/screens/FDList.tsx +2311 -2171
- package/src/screens/FindIFSC.tsx +2 -16
- package/src/screens/NomineeDetail.tsx +762 -775
- package/src/screens/PayNow.tsx +2 -16
- package/src/screens/Payment.tsx +190 -203
- package/src/screens/PaymentStatus.tsx +574 -588
- package/src/screens/ReviewKYC.tsx +1 -15
- package/src/types/workflowTypes.ts +1 -10
package/lib/api/customerApi.js
CHANGED
package/lib/api/fdApi.d.ts
CHANGED
|
@@ -43,6 +43,24 @@ export declare const fdApi: import("@reduxjs/toolkit/query").Api<import("@reduxj
|
|
|
43
43
|
paymentReverseFeed: import("@reduxjs/toolkit/query").MutationDefinition<any, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, "InterestRate", any, "fdsdkApi", unknown>;
|
|
44
44
|
paymentRetry: import("@reduxjs/toolkit/query").MutationDefinition<any, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, "InterestRate", any, "fdsdkApi", unknown>;
|
|
45
45
|
fdBankDetailsSearch: import("@reduxjs/toolkit/query").MutationDefinition<FDBankDetailsRequest, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, "InterestRate", FDBankDetailsResponse, "fdsdkApi", unknown>;
|
|
46
|
+
getPaymentUrl: import("@reduxjs/toolkit/query").QueryDefinition<{
|
|
47
|
+
providerId?: string;
|
|
48
|
+
workflowInstanceId?: string;
|
|
49
|
+
userreferenceid?: string;
|
|
50
|
+
applicationid?: string;
|
|
51
|
+
entityid?: string;
|
|
52
|
+
applicationId: string;
|
|
53
|
+
panNo: string;
|
|
54
|
+
isRetry?: boolean;
|
|
55
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, "InterestRate", {
|
|
56
|
+
status?: string;
|
|
57
|
+
statusCode?: number;
|
|
58
|
+
message?: string;
|
|
59
|
+
data?: Array<{
|
|
60
|
+
paymentUrl?: string;
|
|
61
|
+
transactionId?: string;
|
|
62
|
+
}>;
|
|
63
|
+
}, "fdsdkApi", unknown>;
|
|
46
64
|
}, "fdsdkApi", "InterestRate", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/dist/query/react").reactHooksModuleName>;
|
|
47
65
|
export declare const useCreateFDMutation: <R extends Record<string, any> = ({
|
|
48
66
|
requestId?: undefined;
|
|
@@ -426,7 +444,7 @@ export declare const useCreateFDMutation: <R extends Record<string, any> = ({
|
|
|
426
444
|
isError: false;
|
|
427
445
|
}, "error">>)>> & {
|
|
428
446
|
status: import("@reduxjs/toolkit/query").QueryStatus;
|
|
429
|
-
}>(arg: typeof import("@reduxjs/toolkit/query").skipToken
|
|
447
|
+
}>(arg: FDBankDetailsRequest | typeof import("@reduxjs/toolkit/query").skipToken, options?: (import("@reduxjs/toolkit/query").SubscriptionOptions & {
|
|
430
448
|
skip?: boolean;
|
|
431
449
|
refetchOnMountOrArgChange?: boolean | number;
|
|
432
450
|
} & {
|
|
@@ -976,4 +994,386 @@ export declare const useCreateFDMutation: <R extends Record<string, any> = ({
|
|
|
976
994
|
} | undefined) => readonly [(arg: any) => import("@reduxjs/toolkit/query").MutationActionCreatorResult<import("@reduxjs/toolkit/query").MutationDefinition<any, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, "InterestRate", any, "fdsdkApi", unknown>>, import("@reduxjs/toolkit/query").TSHelpersNoInfer<R> & {
|
|
977
995
|
originalArgs?: any;
|
|
978
996
|
reset: () => void;
|
|
997
|
+
}], useLazyGetPaymentUrlQuery: <R extends Record<string, any> = import("@reduxjs/toolkit/query").TSHelpersId<(Omit<{
|
|
998
|
+
status: import("@reduxjs/toolkit/query").QueryStatus.uninitialized;
|
|
999
|
+
originalArgs?: undefined | undefined;
|
|
1000
|
+
data?: undefined | undefined;
|
|
1001
|
+
error?: undefined | undefined;
|
|
1002
|
+
requestId?: undefined | undefined;
|
|
1003
|
+
endpointName?: string | undefined;
|
|
1004
|
+
startedTimeStamp?: undefined | undefined;
|
|
1005
|
+
fulfilledTimeStamp?: undefined | undefined;
|
|
1006
|
+
} & {
|
|
1007
|
+
currentData?: {
|
|
1008
|
+
status?: string;
|
|
1009
|
+
statusCode?: number;
|
|
1010
|
+
message?: string;
|
|
1011
|
+
data?: Array<{
|
|
1012
|
+
paymentUrl?: string;
|
|
1013
|
+
transactionId?: string;
|
|
1014
|
+
}>;
|
|
1015
|
+
} | undefined;
|
|
1016
|
+
isUninitialized: false;
|
|
1017
|
+
isLoading: false;
|
|
1018
|
+
isFetching: false;
|
|
1019
|
+
isSuccess: false;
|
|
1020
|
+
isError: false;
|
|
1021
|
+
}, "isUninitialized"> & {
|
|
1022
|
+
isUninitialized: true;
|
|
1023
|
+
}) | import("@reduxjs/toolkit/query").TSHelpersOverride<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<{
|
|
1024
|
+
providerId?: string;
|
|
1025
|
+
workflowInstanceId?: string;
|
|
1026
|
+
userreferenceid?: string;
|
|
1027
|
+
applicationid?: string;
|
|
1028
|
+
entityid?: string;
|
|
1029
|
+
applicationId: string;
|
|
1030
|
+
panNo: string;
|
|
1031
|
+
isRetry?: boolean;
|
|
1032
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, "InterestRate", {
|
|
1033
|
+
status?: string;
|
|
1034
|
+
statusCode?: number;
|
|
1035
|
+
message?: string;
|
|
1036
|
+
data?: Array<{
|
|
1037
|
+
paymentUrl?: string;
|
|
1038
|
+
transactionId?: string;
|
|
1039
|
+
}>;
|
|
1040
|
+
}, "fdsdkApi", unknown>> & {
|
|
1041
|
+
currentData?: {
|
|
1042
|
+
status?: string;
|
|
1043
|
+
statusCode?: number;
|
|
1044
|
+
message?: string;
|
|
1045
|
+
data?: Array<{
|
|
1046
|
+
paymentUrl?: string;
|
|
1047
|
+
transactionId?: string;
|
|
1048
|
+
}>;
|
|
1049
|
+
} | undefined;
|
|
1050
|
+
isUninitialized: false;
|
|
1051
|
+
isLoading: false;
|
|
1052
|
+
isFetching: false;
|
|
1053
|
+
isSuccess: false;
|
|
1054
|
+
isError: false;
|
|
1055
|
+
}, {
|
|
1056
|
+
isLoading: true;
|
|
1057
|
+
isFetching: boolean;
|
|
1058
|
+
data: undefined;
|
|
1059
|
+
} | ({
|
|
1060
|
+
isSuccess: true;
|
|
1061
|
+
isFetching: true;
|
|
1062
|
+
error: undefined;
|
|
1063
|
+
} & Required<Pick<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<{
|
|
1064
|
+
providerId?: string;
|
|
1065
|
+
workflowInstanceId?: string;
|
|
1066
|
+
userreferenceid?: string;
|
|
1067
|
+
applicationid?: string;
|
|
1068
|
+
entityid?: string;
|
|
1069
|
+
applicationId: string;
|
|
1070
|
+
panNo: string;
|
|
1071
|
+
isRetry?: boolean;
|
|
1072
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, "InterestRate", {
|
|
1073
|
+
status?: string;
|
|
1074
|
+
statusCode?: number;
|
|
1075
|
+
message?: string;
|
|
1076
|
+
data?: Array<{
|
|
1077
|
+
paymentUrl?: string;
|
|
1078
|
+
transactionId?: string;
|
|
1079
|
+
}>;
|
|
1080
|
+
}, "fdsdkApi", unknown>> & {
|
|
1081
|
+
currentData?: {
|
|
1082
|
+
status?: string;
|
|
1083
|
+
statusCode?: number;
|
|
1084
|
+
message?: string;
|
|
1085
|
+
data?: Array<{
|
|
1086
|
+
paymentUrl?: string;
|
|
1087
|
+
transactionId?: string;
|
|
1088
|
+
}>;
|
|
1089
|
+
} | undefined;
|
|
1090
|
+
isUninitialized: false;
|
|
1091
|
+
isLoading: false;
|
|
1092
|
+
isFetching: false;
|
|
1093
|
+
isSuccess: false;
|
|
1094
|
+
isError: false;
|
|
1095
|
+
}, "data" | "fulfilledTimeStamp">>) | ({
|
|
1096
|
+
isSuccess: true;
|
|
1097
|
+
isFetching: false;
|
|
1098
|
+
error: undefined;
|
|
1099
|
+
} & Required<Pick<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<{
|
|
1100
|
+
providerId?: string;
|
|
1101
|
+
workflowInstanceId?: string;
|
|
1102
|
+
userreferenceid?: string;
|
|
1103
|
+
applicationid?: string;
|
|
1104
|
+
entityid?: string;
|
|
1105
|
+
applicationId: string;
|
|
1106
|
+
panNo: string;
|
|
1107
|
+
isRetry?: boolean;
|
|
1108
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, "InterestRate", {
|
|
1109
|
+
status?: string;
|
|
1110
|
+
statusCode?: number;
|
|
1111
|
+
message?: string;
|
|
1112
|
+
data?: Array<{
|
|
1113
|
+
paymentUrl?: string;
|
|
1114
|
+
transactionId?: string;
|
|
1115
|
+
}>;
|
|
1116
|
+
}, "fdsdkApi", unknown>> & {
|
|
1117
|
+
currentData?: {
|
|
1118
|
+
status?: string;
|
|
1119
|
+
statusCode?: number;
|
|
1120
|
+
message?: string;
|
|
1121
|
+
data?: Array<{
|
|
1122
|
+
paymentUrl?: string;
|
|
1123
|
+
transactionId?: string;
|
|
1124
|
+
}>;
|
|
1125
|
+
} | undefined;
|
|
1126
|
+
isUninitialized: false;
|
|
1127
|
+
isLoading: false;
|
|
1128
|
+
isFetching: false;
|
|
1129
|
+
isSuccess: false;
|
|
1130
|
+
isError: false;
|
|
1131
|
+
}, "data" | "fulfilledTimeStamp" | "currentData">>) | ({
|
|
1132
|
+
isError: true;
|
|
1133
|
+
} & Required<Pick<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<{
|
|
1134
|
+
providerId?: string;
|
|
1135
|
+
workflowInstanceId?: string;
|
|
1136
|
+
userreferenceid?: string;
|
|
1137
|
+
applicationid?: string;
|
|
1138
|
+
entityid?: string;
|
|
1139
|
+
applicationId: string;
|
|
1140
|
+
panNo: string;
|
|
1141
|
+
isRetry?: boolean;
|
|
1142
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, "InterestRate", {
|
|
1143
|
+
status?: string;
|
|
1144
|
+
statusCode?: number;
|
|
1145
|
+
message?: string;
|
|
1146
|
+
data?: Array<{
|
|
1147
|
+
paymentUrl?: string;
|
|
1148
|
+
transactionId?: string;
|
|
1149
|
+
}>;
|
|
1150
|
+
}, "fdsdkApi", unknown>> & {
|
|
1151
|
+
currentData?: {
|
|
1152
|
+
status?: string;
|
|
1153
|
+
statusCode?: number;
|
|
1154
|
+
message?: string;
|
|
1155
|
+
data?: Array<{
|
|
1156
|
+
paymentUrl?: string;
|
|
1157
|
+
transactionId?: string;
|
|
1158
|
+
}>;
|
|
1159
|
+
} | undefined;
|
|
1160
|
+
isUninitialized: false;
|
|
1161
|
+
isLoading: false;
|
|
1162
|
+
isFetching: false;
|
|
1163
|
+
isSuccess: false;
|
|
1164
|
+
isError: false;
|
|
1165
|
+
}, "error">>)>> & {
|
|
1166
|
+
status: import("@reduxjs/toolkit/query").QueryStatus;
|
|
1167
|
+
}>(options?: (import("@reduxjs/toolkit/query").SubscriptionOptions & Omit<{
|
|
1168
|
+
skip?: boolean;
|
|
1169
|
+
selectFromResult?: ((state: import("@reduxjs/toolkit/query").TSHelpersId<(Omit<{
|
|
1170
|
+
status: import("@reduxjs/toolkit/query").QueryStatus.uninitialized;
|
|
1171
|
+
originalArgs?: undefined | undefined;
|
|
1172
|
+
data?: undefined | undefined;
|
|
1173
|
+
error?: undefined | undefined;
|
|
1174
|
+
requestId?: undefined | undefined;
|
|
1175
|
+
endpointName?: string | undefined;
|
|
1176
|
+
startedTimeStamp?: undefined | undefined;
|
|
1177
|
+
fulfilledTimeStamp?: undefined | undefined;
|
|
1178
|
+
} & {
|
|
1179
|
+
currentData?: {
|
|
1180
|
+
status?: string;
|
|
1181
|
+
statusCode?: number;
|
|
1182
|
+
message?: string;
|
|
1183
|
+
data?: Array<{
|
|
1184
|
+
paymentUrl?: string;
|
|
1185
|
+
transactionId?: string;
|
|
1186
|
+
}>;
|
|
1187
|
+
} | undefined;
|
|
1188
|
+
isUninitialized: false;
|
|
1189
|
+
isLoading: false;
|
|
1190
|
+
isFetching: false;
|
|
1191
|
+
isSuccess: false;
|
|
1192
|
+
isError: false;
|
|
1193
|
+
}, "isUninitialized"> & {
|
|
1194
|
+
isUninitialized: true;
|
|
1195
|
+
}) | import("@reduxjs/toolkit/query").TSHelpersOverride<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<{
|
|
1196
|
+
providerId?: string;
|
|
1197
|
+
workflowInstanceId?: string;
|
|
1198
|
+
userreferenceid?: string;
|
|
1199
|
+
applicationid?: string;
|
|
1200
|
+
entityid?: string;
|
|
1201
|
+
applicationId: string;
|
|
1202
|
+
panNo: string;
|
|
1203
|
+
isRetry?: boolean;
|
|
1204
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, "InterestRate", {
|
|
1205
|
+
status?: string;
|
|
1206
|
+
statusCode?: number;
|
|
1207
|
+
message?: string;
|
|
1208
|
+
data?: Array<{
|
|
1209
|
+
paymentUrl?: string;
|
|
1210
|
+
transactionId?: string;
|
|
1211
|
+
}>;
|
|
1212
|
+
}, "fdsdkApi", unknown>> & {
|
|
1213
|
+
currentData?: {
|
|
1214
|
+
status?: string;
|
|
1215
|
+
statusCode?: number;
|
|
1216
|
+
message?: string;
|
|
1217
|
+
data?: Array<{
|
|
1218
|
+
paymentUrl?: string;
|
|
1219
|
+
transactionId?: string;
|
|
1220
|
+
}>;
|
|
1221
|
+
} | undefined;
|
|
1222
|
+
isUninitialized: false;
|
|
1223
|
+
isLoading: false;
|
|
1224
|
+
isFetching: false;
|
|
1225
|
+
isSuccess: false;
|
|
1226
|
+
isError: false;
|
|
1227
|
+
}, {
|
|
1228
|
+
isLoading: true;
|
|
1229
|
+
isFetching: boolean;
|
|
1230
|
+
data: undefined;
|
|
1231
|
+
} | ({
|
|
1232
|
+
isSuccess: true;
|
|
1233
|
+
isFetching: true;
|
|
1234
|
+
error: undefined;
|
|
1235
|
+
} & Required<Pick<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<{
|
|
1236
|
+
providerId?: string;
|
|
1237
|
+
workflowInstanceId?: string;
|
|
1238
|
+
userreferenceid?: string;
|
|
1239
|
+
applicationid?: string;
|
|
1240
|
+
entityid?: string;
|
|
1241
|
+
applicationId: string;
|
|
1242
|
+
panNo: string;
|
|
1243
|
+
isRetry?: boolean;
|
|
1244
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, "InterestRate", {
|
|
1245
|
+
status?: string;
|
|
1246
|
+
statusCode?: number;
|
|
1247
|
+
message?: string;
|
|
1248
|
+
data?: Array<{
|
|
1249
|
+
paymentUrl?: string;
|
|
1250
|
+
transactionId?: string;
|
|
1251
|
+
}>;
|
|
1252
|
+
}, "fdsdkApi", unknown>> & {
|
|
1253
|
+
currentData?: {
|
|
1254
|
+
status?: string;
|
|
1255
|
+
statusCode?: number;
|
|
1256
|
+
message?: string;
|
|
1257
|
+
data?: Array<{
|
|
1258
|
+
paymentUrl?: string;
|
|
1259
|
+
transactionId?: string;
|
|
1260
|
+
}>;
|
|
1261
|
+
} | undefined;
|
|
1262
|
+
isUninitialized: false;
|
|
1263
|
+
isLoading: false;
|
|
1264
|
+
isFetching: false;
|
|
1265
|
+
isSuccess: false;
|
|
1266
|
+
isError: false;
|
|
1267
|
+
}, "data" | "fulfilledTimeStamp">>) | ({
|
|
1268
|
+
isSuccess: true;
|
|
1269
|
+
isFetching: false;
|
|
1270
|
+
error: undefined;
|
|
1271
|
+
} & Required<Pick<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<{
|
|
1272
|
+
providerId?: string;
|
|
1273
|
+
workflowInstanceId?: string;
|
|
1274
|
+
userreferenceid?: string;
|
|
1275
|
+
applicationid?: string;
|
|
1276
|
+
entityid?: string;
|
|
1277
|
+
applicationId: string;
|
|
1278
|
+
panNo: string;
|
|
1279
|
+
isRetry?: boolean;
|
|
1280
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, "InterestRate", {
|
|
1281
|
+
status?: string;
|
|
1282
|
+
statusCode?: number;
|
|
1283
|
+
message?: string;
|
|
1284
|
+
data?: Array<{
|
|
1285
|
+
paymentUrl?: string;
|
|
1286
|
+
transactionId?: string;
|
|
1287
|
+
}>;
|
|
1288
|
+
}, "fdsdkApi", unknown>> & {
|
|
1289
|
+
currentData?: {
|
|
1290
|
+
status?: string;
|
|
1291
|
+
statusCode?: number;
|
|
1292
|
+
message?: string;
|
|
1293
|
+
data?: Array<{
|
|
1294
|
+
paymentUrl?: string;
|
|
1295
|
+
transactionId?: string;
|
|
1296
|
+
}>;
|
|
1297
|
+
} | undefined;
|
|
1298
|
+
isUninitialized: false;
|
|
1299
|
+
isLoading: false;
|
|
1300
|
+
isFetching: false;
|
|
1301
|
+
isSuccess: false;
|
|
1302
|
+
isError: false;
|
|
1303
|
+
}, "data" | "fulfilledTimeStamp" | "currentData">>) | ({
|
|
1304
|
+
isError: true;
|
|
1305
|
+
} & Required<Pick<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<{
|
|
1306
|
+
providerId?: string;
|
|
1307
|
+
workflowInstanceId?: string;
|
|
1308
|
+
userreferenceid?: string;
|
|
1309
|
+
applicationid?: string;
|
|
1310
|
+
entityid?: string;
|
|
1311
|
+
applicationId: string;
|
|
1312
|
+
panNo: string;
|
|
1313
|
+
isRetry?: boolean;
|
|
1314
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, "InterestRate", {
|
|
1315
|
+
status?: string;
|
|
1316
|
+
statusCode?: number;
|
|
1317
|
+
message?: string;
|
|
1318
|
+
data?: Array<{
|
|
1319
|
+
paymentUrl?: string;
|
|
1320
|
+
transactionId?: string;
|
|
1321
|
+
}>;
|
|
1322
|
+
}, "fdsdkApi", unknown>> & {
|
|
1323
|
+
currentData?: {
|
|
1324
|
+
status?: string;
|
|
1325
|
+
statusCode?: number;
|
|
1326
|
+
message?: string;
|
|
1327
|
+
data?: Array<{
|
|
1328
|
+
paymentUrl?: string;
|
|
1329
|
+
transactionId?: string;
|
|
1330
|
+
}>;
|
|
1331
|
+
} | undefined;
|
|
1332
|
+
isUninitialized: false;
|
|
1333
|
+
isLoading: false;
|
|
1334
|
+
isFetching: false;
|
|
1335
|
+
isSuccess: false;
|
|
1336
|
+
isError: false;
|
|
1337
|
+
}, "error">>)>> & {
|
|
1338
|
+
status: import("@reduxjs/toolkit/query").QueryStatus;
|
|
1339
|
+
}) => R) | undefined;
|
|
1340
|
+
}, "skip">) | undefined) => [(arg: {
|
|
1341
|
+
providerId?: string;
|
|
1342
|
+
workflowInstanceId?: string;
|
|
1343
|
+
userreferenceid?: string;
|
|
1344
|
+
applicationid?: string;
|
|
1345
|
+
entityid?: string;
|
|
1346
|
+
applicationId: string;
|
|
1347
|
+
panNo: string;
|
|
1348
|
+
isRetry?: boolean;
|
|
1349
|
+
}, preferCacheValue?: boolean) => import("@reduxjs/toolkit/query").QueryActionCreatorResult<import("@reduxjs/toolkit/query").QueryDefinition<{
|
|
1350
|
+
providerId?: string;
|
|
1351
|
+
workflowInstanceId?: string;
|
|
1352
|
+
userreferenceid?: string;
|
|
1353
|
+
applicationid?: string;
|
|
1354
|
+
entityid?: string;
|
|
1355
|
+
applicationId: string;
|
|
1356
|
+
panNo: string;
|
|
1357
|
+
isRetry?: boolean;
|
|
1358
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, "InterestRate", {
|
|
1359
|
+
status?: string;
|
|
1360
|
+
statusCode?: number;
|
|
1361
|
+
message?: string;
|
|
1362
|
+
data?: Array<{
|
|
1363
|
+
paymentUrl?: string;
|
|
1364
|
+
transactionId?: string;
|
|
1365
|
+
}>;
|
|
1366
|
+
}, "fdsdkApi", unknown>>, [R][R extends any ? 0 : never] & {
|
|
1367
|
+
reset: () => void;
|
|
1368
|
+
}, {
|
|
1369
|
+
lastArg: {
|
|
1370
|
+
providerId?: string;
|
|
1371
|
+
workflowInstanceId?: string;
|
|
1372
|
+
userreferenceid?: string;
|
|
1373
|
+
applicationid?: string;
|
|
1374
|
+
entityid?: string;
|
|
1375
|
+
applicationId: string;
|
|
1376
|
+
panNo: string;
|
|
1377
|
+
isRetry?: boolean;
|
|
1378
|
+
};
|
|
979
1379
|
}];
|
package/lib/api/fdApi.js
CHANGED
|
@@ -11,7 +11,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
11
11
|
return t;
|
|
12
12
|
};
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.usePaymentRetryMutation = exports.usePaymentReverseFeedMutation = exports.useFdBankDetailsSearchMutation = exports.useFdBankDetailsQuery = exports.useFdBankAccountMutation = exports.useCreateFDMutation = exports.fdApi = void 0;
|
|
14
|
+
exports.useLazyGetPaymentUrlQuery = exports.usePaymentRetryMutation = exports.usePaymentReverseFeedMutation = exports.useFdBankDetailsSearchMutation = exports.useFdBankDetailsQuery = exports.useFdBankAccountMutation = exports.useCreateFDMutation = exports.fdApi = void 0;
|
|
15
15
|
const baseApi_1 = require("./baseApi");
|
|
16
16
|
exports.fdApi = baseApi_1.baseApi.injectEndpoints({
|
|
17
17
|
endpoints: (builder) => ({
|
|
@@ -107,6 +107,28 @@ exports.fdApi = baseApi_1.baseApi.injectEndpoints({
|
|
|
107
107
|
};
|
|
108
108
|
},
|
|
109
109
|
}),
|
|
110
|
+
getPaymentUrl: builder.query({
|
|
111
|
+
query: (params) => {
|
|
112
|
+
const { providerId, workflowInstanceId, userreferenceid, applicationid, entityid, applicationId, panNo, isRetry = false } = params;
|
|
113
|
+
const qs = new URLSearchParams({
|
|
114
|
+
applicationId,
|
|
115
|
+
panNo,
|
|
116
|
+
isRetry: String(isRetry),
|
|
117
|
+
}).toString();
|
|
118
|
+
return {
|
|
119
|
+
url: `fd/payment/url?${qs}`,
|
|
120
|
+
method: 'GET',
|
|
121
|
+
headers: {
|
|
122
|
+
provider: providerId || '{{shriramprovider}}',
|
|
123
|
+
workflowInstanceId: workflowInstanceId || '{{workflowInstanceId}}',
|
|
124
|
+
userreferenceid: userreferenceid || '{{userreferenceid}}',
|
|
125
|
+
applicationid: applicationid || applicationId || '{{applicationid}}',
|
|
126
|
+
entityid: entityid || '{{entityid}}',
|
|
127
|
+
encryptdecrypt: 'true',
|
|
128
|
+
},
|
|
129
|
+
};
|
|
130
|
+
},
|
|
131
|
+
}),
|
|
110
132
|
}),
|
|
111
133
|
});
|
|
112
|
-
exports.useCreateFDMutation = exports.fdApi.useCreateFDMutation, exports.useFdBankAccountMutation = exports.fdApi.useFdBankAccountMutation, exports.useFdBankDetailsQuery = exports.fdApi.useFdBankDetailsQuery, exports.useFdBankDetailsSearchMutation = exports.fdApi.useFdBankDetailsSearchMutation, exports.usePaymentReverseFeedMutation = exports.fdApi.usePaymentReverseFeedMutation, exports.usePaymentRetryMutation = exports.fdApi.usePaymentRetryMutation;
|
|
134
|
+
exports.useCreateFDMutation = exports.fdApi.useCreateFDMutation, exports.useFdBankAccountMutation = exports.fdApi.useFdBankAccountMutation, exports.useFdBankDetailsQuery = exports.fdApi.useFdBankDetailsQuery, exports.useFdBankDetailsSearchMutation = exports.fdApi.useFdBankDetailsSearchMutation, exports.usePaymentReverseFeedMutation = exports.fdApi.usePaymentReverseFeedMutation, exports.usePaymentRetryMutation = exports.fdApi.usePaymentRetryMutation, exports.useLazyGetPaymentUrlQuery = exports.fdApi.useLazyGetPaymentUrlQuery;
|
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
export declare const WORKFLOW_STATES: {
|
|
2
|
+
readonly INITIATION: "INITIATION";
|
|
3
|
+
readonly START: "START";
|
|
4
|
+
readonly KYC: "KYC";
|
|
5
|
+
readonly OCCUPATION: "OCCUPATION";
|
|
6
|
+
readonly NOMINEE: "NOMINEE";
|
|
7
|
+
readonly BANK_DETAILS: "BANK_DETAILS";
|
|
8
|
+
readonly CREATE_FD: "CREATE_FD";
|
|
9
|
+
readonly PAYMENT: "PAYMENT";
|
|
10
|
+
readonly END: "END";
|
|
11
|
+
};
|
|
12
|
+
export declare const WORKFLOW_STATE_IDS: {
|
|
2
13
|
readonly INITIATION: 404;
|
|
3
14
|
readonly START: 405;
|
|
4
15
|
readonly KYC: 406;
|
|
@@ -10,29 +21,28 @@ export declare const WORKFLOW_STATES: {
|
|
|
10
21
|
readonly END: 403;
|
|
11
22
|
};
|
|
12
23
|
export declare const SHRIRAM_WORKFLOW_STATES: {
|
|
13
|
-
readonly
|
|
14
|
-
readonly
|
|
15
|
-
readonly KYC:
|
|
16
|
-
readonly OCCUPATION:
|
|
17
|
-
readonly NOMINEE:
|
|
18
|
-
readonly BANK_DETAILS:
|
|
19
|
-
readonly CREATE_FD:
|
|
20
|
-
readonly PAYMENT:
|
|
21
|
-
readonly END:
|
|
24
|
+
readonly START: "SHRIRAM_V1_S1_START";
|
|
25
|
+
readonly INITIATION: "SHRIRAM_V1_S2_INITIATION";
|
|
26
|
+
readonly KYC: "SHRIRAM_V1_S3_CUSTOMER_INFO_KYC";
|
|
27
|
+
readonly OCCUPATION: "SHRIRAM_V1_S4_OCCUPATION";
|
|
28
|
+
readonly NOMINEE: "SHRIRAM_V1_S5_NOMINEE_DETAILS";
|
|
29
|
+
readonly BANK_DETAILS: "SHRIRAM_V1_S6_BANK_DETAILS";
|
|
30
|
+
readonly CREATE_FD: "SHRIRAM_V1_S7_FD_CREATION";
|
|
31
|
+
readonly PAYMENT: "SHRIRAM_V1_S8_PAYMENT";
|
|
32
|
+
readonly END: "SHRIRAM_V1_S9_END";
|
|
22
33
|
};
|
|
23
34
|
export declare const MAHINDRA_WORKFLOW_STATES: {
|
|
24
|
-
readonly
|
|
25
|
-
readonly
|
|
26
|
-
readonly
|
|
27
|
-
readonly
|
|
28
|
-
readonly
|
|
29
|
-
readonly
|
|
30
|
-
readonly
|
|
31
|
-
readonly
|
|
32
|
-
readonly
|
|
33
|
-
readonly
|
|
34
|
-
|
|
35
|
-
readonly KYC_SUCCESS: 446;
|
|
35
|
+
readonly START: "MAHINDRA_V1_S1_START";
|
|
36
|
+
readonly INITIATION: "MAHINDRA_V1_S2_INITIATION";
|
|
37
|
+
readonly DEMOGRAPHIC_INFO: "MAHINDRA_V1_S3_DEMOGRAPHIC_INFO";
|
|
38
|
+
readonly KYC: "MAHINDRA_V1_S4_KYC";
|
|
39
|
+
readonly OCCUPATION: "MAHINDRA_V1_S5_OCCUPATION";
|
|
40
|
+
readonly NOMINEE: "MAHINDRA_V1_S6_NOMINEE_DETAILS";
|
|
41
|
+
readonly BANK_DETAILS: "MAHINDRA_V1_S7_BANK_DETAILS";
|
|
42
|
+
readonly CREATE_FD: "MAHINDRA_V1_S8_FD_CREATION";
|
|
43
|
+
readonly PAYMENT: "MAHINDRA_V1_S9_PAYMENT";
|
|
44
|
+
readonly END: "MAHINDRA_V1_S10_END";
|
|
45
|
+
readonly AADHAAR_VERIFICATION: "MAHINDRA_V1_S4_KYC";
|
|
36
46
|
};
|
|
37
47
|
export declare const WORKFLOW_TASKS: {
|
|
38
48
|
readonly RESEND_OTP: 11045;
|
|
@@ -44,15 +54,15 @@ export declare const getWorkflowStateName: (stateId: number) => string | undefin
|
|
|
44
54
|
export declare const getWorkflowTaskName: (taskId: number) => string | undefined;
|
|
45
55
|
export declare const WORKFLOW_CONSTANTS: {
|
|
46
56
|
readonly STATES: {
|
|
47
|
-
readonly INITIATION:
|
|
48
|
-
readonly START:
|
|
49
|
-
readonly KYC:
|
|
50
|
-
readonly OCCUPATION:
|
|
51
|
-
readonly NOMINEE:
|
|
52
|
-
readonly BANK_DETAILS:
|
|
53
|
-
readonly CREATE_FD:
|
|
54
|
-
readonly PAYMENT:
|
|
55
|
-
readonly END:
|
|
57
|
+
readonly INITIATION: "INITIATION";
|
|
58
|
+
readonly START: "START";
|
|
59
|
+
readonly KYC: "KYC";
|
|
60
|
+
readonly OCCUPATION: "OCCUPATION";
|
|
61
|
+
readonly NOMINEE: "NOMINEE";
|
|
62
|
+
readonly BANK_DETAILS: "BANK_DETAILS";
|
|
63
|
+
readonly CREATE_FD: "CREATE_FD";
|
|
64
|
+
readonly PAYMENT: "PAYMENT";
|
|
65
|
+
readonly END: "END";
|
|
56
66
|
};
|
|
57
67
|
readonly TASKS: {
|
|
58
68
|
readonly RESEND_OTP: 11045;
|
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WORKFLOW_CONSTANTS = exports.getWorkflowTaskName = exports.getWorkflowStateName = exports.WORKFLOW_TASKS = exports.MAHINDRA_WORKFLOW_STATES = exports.SHRIRAM_WORKFLOW_STATES = exports.WORKFLOW_STATES = void 0;
|
|
3
|
+
exports.WORKFLOW_CONSTANTS = exports.getWorkflowTaskName = exports.getWorkflowStateName = exports.WORKFLOW_TASKS = exports.MAHINDRA_WORKFLOW_STATES = exports.SHRIRAM_WORKFLOW_STATES = exports.WORKFLOW_STATE_IDS = exports.WORKFLOW_STATES = void 0;
|
|
4
4
|
// Workflow State Constants
|
|
5
5
|
exports.WORKFLOW_STATES = {
|
|
6
|
+
INITIATION: 'INITIATION',
|
|
7
|
+
START: 'START',
|
|
8
|
+
KYC: 'KYC',
|
|
9
|
+
OCCUPATION: 'OCCUPATION',
|
|
10
|
+
NOMINEE: 'NOMINEE',
|
|
11
|
+
BANK_DETAILS: 'BANK_DETAILS',
|
|
12
|
+
CREATE_FD: 'CREATE_FD',
|
|
13
|
+
PAYMENT: 'PAYMENT',
|
|
14
|
+
END: 'END',
|
|
15
|
+
};
|
|
16
|
+
// Keep numeric IDs for reference/backward compatibility only
|
|
17
|
+
exports.WORKFLOW_STATE_IDS = {
|
|
6
18
|
INITIATION: 404,
|
|
7
19
|
START: 405,
|
|
8
20
|
KYC: 406,
|
|
@@ -14,38 +26,37 @@ exports.WORKFLOW_STATES = {
|
|
|
14
26
|
END: 403,
|
|
15
27
|
};
|
|
16
28
|
exports.SHRIRAM_WORKFLOW_STATES = {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
KYC:
|
|
20
|
-
OCCUPATION:
|
|
21
|
-
NOMINEE:
|
|
22
|
-
BANK_DETAILS:
|
|
23
|
-
CREATE_FD:
|
|
24
|
-
PAYMENT:
|
|
25
|
-
END:
|
|
29
|
+
START: 'SHRIRAM_V1_S1_START',
|
|
30
|
+
INITIATION: 'SHRIRAM_V1_S2_INITIATION',
|
|
31
|
+
KYC: 'SHRIRAM_V1_S3_CUSTOMER_INFO_KYC',
|
|
32
|
+
OCCUPATION: 'SHRIRAM_V1_S4_OCCUPATION',
|
|
33
|
+
NOMINEE: 'SHRIRAM_V1_S5_NOMINEE_DETAILS',
|
|
34
|
+
BANK_DETAILS: 'SHRIRAM_V1_S6_BANK_DETAILS',
|
|
35
|
+
CREATE_FD: 'SHRIRAM_V1_S7_FD_CREATION',
|
|
36
|
+
PAYMENT: 'SHRIRAM_V1_S8_PAYMENT',
|
|
37
|
+
END: 'SHRIRAM_V1_S9_END',
|
|
26
38
|
};
|
|
27
39
|
exports.MAHINDRA_WORKFLOW_STATES = {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
KYC_SUCCESS: 446,
|
|
40
|
+
START: 'MAHINDRA_V1_S1_START',
|
|
41
|
+
INITIATION: 'MAHINDRA_V1_S2_INITIATION',
|
|
42
|
+
DEMOGRAPHIC_INFO: 'MAHINDRA_V1_S3_DEMOGRAPHIC_INFO',
|
|
43
|
+
KYC: 'MAHINDRA_V1_S4_KYC',
|
|
44
|
+
OCCUPATION: 'MAHINDRA_V1_S5_OCCUPATION',
|
|
45
|
+
NOMINEE: 'MAHINDRA_V1_S6_NOMINEE_DETAILS',
|
|
46
|
+
BANK_DETAILS: 'MAHINDRA_V1_S7_BANK_DETAILS',
|
|
47
|
+
CREATE_FD: 'MAHINDRA_V1_S8_FD_CREATION',
|
|
48
|
+
PAYMENT: 'MAHINDRA_V1_S9_PAYMENT',
|
|
49
|
+
END: 'MAHINDRA_V1_S10_END',
|
|
50
|
+
AADHAAR_VERIFICATION: 'MAHINDRA_V1_S4_KYC',
|
|
40
51
|
};
|
|
41
52
|
// Workflow Task Constants
|
|
42
53
|
exports.WORKFLOW_TASKS = {
|
|
43
54
|
RESEND_OTP: 11045,
|
|
44
55
|
VALIDATE_OTP: 11047,
|
|
45
56
|
};
|
|
46
|
-
// Helper function to get workflow state name
|
|
57
|
+
// Helper function to get workflow state name from ID
|
|
47
58
|
const getWorkflowStateName = (stateId) => {
|
|
48
|
-
const entry = Object.entries(exports.
|
|
59
|
+
const entry = Object.entries(exports.WORKFLOW_STATE_IDS).find(([_, value]) => value === stateId);
|
|
49
60
|
return entry ? entry[0] : undefined;
|
|
50
61
|
};
|
|
51
62
|
exports.getWorkflowStateName = getWorkflowStateName;
|