@finspringinnovations/fixeddepositsdk 1.0.2 → 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/components/PendingFDBottomSheet.js +27 -18
- package/lib/config/appDataConfig.js +3 -2
- package/lib/config/workflowConstants.d.ts +40 -30
- package/lib/config/workflowConstants.js +35 -24
- package/lib/constants/strings/fd.d.ts +2 -2
- package/lib/constants/strings/fd.js +2 -2
- package/lib/navigation/RootNavigator.js +167 -196
- 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 +2 -12
- package/lib/screens/FDList.js +531 -417
- 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 +24 -21
- package/lib/screens/ReviewKYC.js +3 -12
- package/lib/types/workflowTypes.d.ts +1 -1
- package/package.json +50 -50
- package/src/api/customerApi.ts +1 -0
- package/src/api/fdApi.ts +28 -1
- package/src/components/PendingFDBottomSheet.tsx +151 -123
- package/src/config/appDataConfig.ts +245 -242
- package/src/config/workflowConstants.ts +51 -39
- package/src/constants/strings/bank.ts +80 -80
- package/src/constants/strings/fd.ts +2 -2
- package/src/navigation/RootNavigator.tsx +667 -651
- 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 +4 -18
- package/src/screens/FDList.tsx +2311 -2170
- 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 -576
- package/src/screens/ReviewKYC.tsx +2 -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;
|
|
@@ -24,7 +24,7 @@ const PendingFDBottomSheet = ({ visible, onClose, onContinue, onBookNew, pending
|
|
|
24
24
|
return (react_1.default.createElement(react_native_1.Modal, { visible: visible, transparent: true, animationType: "slide", onRequestClose: onClose },
|
|
25
25
|
react_1.default.createElement(react_native_1.View, { style: styles.overlay },
|
|
26
26
|
react_1.default.createElement(react_native_1.View, { style: styles.bottomSheet },
|
|
27
|
-
react_1.default.createElement(react_native_1.SafeAreaView,
|
|
27
|
+
react_1.default.createElement(react_native_1.SafeAreaView, null,
|
|
28
28
|
react_1.default.createElement(react_native_1.View, { style: styles.header },
|
|
29
29
|
react_1.default.createElement(react_native_1.View, { style: styles.headerContent },
|
|
30
30
|
react_1.default.createElement(react_native_1.Text, { style: styles.title }, "Please Wait! You also have a pending journey with progress saved:"),
|
|
@@ -33,16 +33,20 @@ const PendingFDBottomSheet = ({ visible, onClose, onContinue, onBookNew, pending
|
|
|
33
33
|
react_1.default.createElement(react_native_1.View, { style: styles.content },
|
|
34
34
|
react_1.default.createElement(react_native_1.Text, { style: styles.sectionTitle }, "Pending FDs"),
|
|
35
35
|
react_1.default.createElement(ActiveFDCard_1.default, { name: pendingFDData.name, invested: pendingFDData.invested, value: pendingFDData.value, returns: pendingFDData.returns, maturityDate: pendingFDData.maturityDate, logoType: pendingFDData.logoType }),
|
|
36
|
-
react_1.default.createElement(react_native_1.
|
|
36
|
+
react_1.default.createElement(react_native_1.View, { style: { height: 24 } }),
|
|
37
|
+
react_1.default.createElement(react_native_1.TouchableOpacity, { style: [
|
|
38
|
+
styles.bookNewButton,
|
|
39
|
+
isBookingNewLoading && styles.disabledButton,
|
|
40
|
+
], onPress: onBookNew, disabled: isBookingNewLoading }, isBookingNewLoading ? (react_1.default.createElement(react_native_1.View, { style: styles.loadingContainer },
|
|
37
41
|
react_1.default.createElement(react_native_1.ActivityIndicator, { size: "small", color: colors.primary }),
|
|
38
42
|
react_1.default.createElement(react_native_1.Text, { style: [styles.bookNewText, { marginLeft: spacing.sm }] }, "Terminating workflow..."))) : (react_1.default.createElement(react_native_1.Text, { style: styles.bookNewText }, "No, I want to book a new FD"))),
|
|
39
|
-
themeName === 'dark' ? (react_1.default.createElement(ActionButton_1.default, { title: "Continue", onPress: onContinue, variant: "primary", style: styles.continueButtonWrapper })) : (react_1.default.createElement(react_native_1.TouchableOpacity, { style: styles.continueButton, onPress: onContinue },
|
|
40
|
-
react_1.default.createElement(react_native_1.Text, { style: styles.continueButtonText }, "Continue")))))))));
|
|
43
|
+
react_1.default.createElement(react_native_1.View, { style: styles.footer }, themeName === 'dark' ? (react_1.default.createElement(ActionButton_1.default, { title: "Continue", onPress: onContinue, variant: "primary", style: styles.continueButtonWrapper })) : (react_1.default.createElement(react_native_1.TouchableOpacity, { style: styles.continueButton, onPress: onContinue },
|
|
44
|
+
react_1.default.createElement(react_native_1.Text, { style: styles.continueButtonText }, "Continue"))))))))));
|
|
41
45
|
};
|
|
42
46
|
const createStyles = (colors, typography, spacing, themeName) => react_native_1.StyleSheet.create({
|
|
43
47
|
overlay: {
|
|
44
48
|
flex: 1,
|
|
45
|
-
backgroundColor: 'rgba(0,
|
|
49
|
+
backgroundColor: 'rgba(0,0,0,0.5)',
|
|
46
50
|
justifyContent: 'flex-end',
|
|
47
51
|
},
|
|
48
52
|
bottomSheet: {
|
|
@@ -53,10 +57,6 @@ const createStyles = (colors, typography, spacing, themeName) => react_native_1.
|
|
|
53
57
|
borderWidth: themeName === 'dark' ? 1 : 0,
|
|
54
58
|
borderColor: themeName === 'dark' ? '#ffffff' : 'transparent',
|
|
55
59
|
maxHeight: react_native_1.Dimensions.get('window').height * 0.8,
|
|
56
|
-
minHeight: react_native_1.Platform.OS === 'ios' ? 430 : 400,
|
|
57
|
-
},
|
|
58
|
-
safeArea: {
|
|
59
|
-
flex: 1,
|
|
60
60
|
},
|
|
61
61
|
header: {
|
|
62
62
|
paddingHorizontal: spacing.lg,
|
|
@@ -69,7 +69,7 @@ const createStyles = (colors, typography, spacing, themeName) => react_native_1.
|
|
|
69
69
|
alignItems: 'flex-start',
|
|
70
70
|
},
|
|
71
71
|
title: {
|
|
72
|
-
fontSize:
|
|
72
|
+
fontSize: 15,
|
|
73
73
|
fontWeight: '500',
|
|
74
74
|
color: themeName === 'dark' ? colors.labelColor : '#333',
|
|
75
75
|
flex: 1,
|
|
@@ -85,18 +85,25 @@ const createStyles = (colors, typography, spacing, themeName) => react_native_1.
|
|
|
85
85
|
alignItems: 'center',
|
|
86
86
|
},
|
|
87
87
|
content: {
|
|
88
|
-
flex: 1,
|
|
89
88
|
paddingHorizontal: spacing.lg,
|
|
90
89
|
paddingTop: spacing.lg,
|
|
91
|
-
paddingBottom: react_native_1.Platform.OS === 'ios' ? 20 :
|
|
90
|
+
paddingBottom: react_native_1.Platform.OS === 'ios' ? 20 : spacing.lg,
|
|
92
91
|
},
|
|
93
|
-
sectionTitle: Object.assign(Object.assign({}, typography.styles.
|
|
92
|
+
sectionTitle: Object.assign(Object.assign({}, typography.styles.h4), { color: themeName === 'dark' ? colors.labelColor : '#333', marginBottom: spacing.md }),
|
|
94
93
|
bookNewButton: {
|
|
95
|
-
marginTop: spacing.
|
|
96
|
-
marginBottom: spacing.
|
|
94
|
+
marginTop: spacing.xl,
|
|
95
|
+
marginBottom: spacing.xl,
|
|
97
96
|
alignItems: 'center',
|
|
97
|
+
justifyContent: 'center',
|
|
98
|
+
paddingVertical: 12,
|
|
99
|
+
paddingHorizontal: spacing.lg,
|
|
100
|
+
borderWidth: 1,
|
|
101
|
+
borderColor: themeName === 'dark' ? colors.labelColor : '#333',
|
|
102
|
+
borderRadius: themeName === 'dark' ? 10 : 30,
|
|
103
|
+
width: 330,
|
|
104
|
+
alignSelf: 'center',
|
|
98
105
|
},
|
|
99
|
-
bookNewText: Object.assign(Object.assign({}, typography.styles.
|
|
106
|
+
bookNewText: Object.assign(Object.assign({}, typography.styles.buttonSmall), { color: themeName === 'dark' ? colors.labelColor : '#000' }),
|
|
100
107
|
disabledButton: {
|
|
101
108
|
opacity: 0.6,
|
|
102
109
|
},
|
|
@@ -105,6 +112,9 @@ const createStyles = (colors, typography, spacing, themeName) => react_native_1.
|
|
|
105
112
|
alignItems: 'center',
|
|
106
113
|
justifyContent: 'center',
|
|
107
114
|
},
|
|
115
|
+
footer: {
|
|
116
|
+
paddingTop: spacing.sm,
|
|
117
|
+
},
|
|
108
118
|
continueButtonWrapper: {
|
|
109
119
|
marginBottom: react_native_1.Platform.OS === 'ios' ? spacing.lg + 20 : spacing.lg,
|
|
110
120
|
},
|
|
@@ -112,11 +122,10 @@ const createStyles = (colors, typography, spacing, themeName) => react_native_1.
|
|
|
112
122
|
height: 50,
|
|
113
123
|
backgroundColor: '#007AFF',
|
|
114
124
|
borderRadius: 25,
|
|
115
|
-
paddingHorizontal: spacing.lg,
|
|
116
125
|
alignItems: 'center',
|
|
117
126
|
justifyContent: 'center',
|
|
118
127
|
marginBottom: react_native_1.Platform.OS === 'ios' ? spacing.lg + 20 : spacing.lg,
|
|
119
128
|
},
|
|
120
|
-
continueButtonText: Object.assign(Object.assign({}, typography.styles.button), { color: '
|
|
129
|
+
continueButtonText: Object.assign(Object.assign({}, typography.styles.button), { color: '#fff', fontWeight: '600', fontSize: 16 }),
|
|
121
130
|
});
|
|
122
131
|
exports.default = PendingFDBottomSheet;
|
|
@@ -86,6 +86,7 @@ const initializeSDK = (appData, onValidationError) => {
|
|
|
86
86
|
// Import and call environment logging
|
|
87
87
|
Promise.resolve().then(() => __importStar(require('./apiConfig'))).then(({ logEnvironmentInfo }) => {
|
|
88
88
|
logEnvironmentInfo();
|
|
89
|
+
console.log('SDK initialized with app data:', { logEnvironmentInfo });
|
|
89
90
|
});
|
|
90
91
|
};
|
|
91
92
|
exports.initializeSDK = initializeSDK;
|
|
@@ -274,7 +275,7 @@ const setSDKColors = (customColors) => {
|
|
|
274
275
|
// Best-effort: propagate to external SDKs when they are available
|
|
275
276
|
try {
|
|
276
277
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
277
|
-
const shriram = require('@finspringinnovations/
|
|
278
|
+
const shriram = require('@finspringinnovations/shriramfdsdk');
|
|
278
279
|
if (shriram && typeof shriram.setSDKColors === 'function') {
|
|
279
280
|
shriram.setSDKColors(customColors);
|
|
280
281
|
}
|
|
@@ -284,7 +285,7 @@ const setSDKColors = (customColors) => {
|
|
|
284
285
|
}
|
|
285
286
|
try {
|
|
286
287
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
287
|
-
const mahindra = require('@finspringinnovations/
|
|
288
|
+
const mahindra = require('@finspringinnovations/mahindrafdsdk');
|
|
288
289
|
if (mahindra && typeof mahindra.setSDKColors === 'function') {
|
|
289
290
|
mahindra.setSDKColors(customColors);
|
|
290
291
|
}
|