@finspringinnovations/fdsdk 0.0.1

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.
Files changed (315) hide show
  1. package/README.md +184 -0
  2. package/lib/api/applicationApi.d.ts +1 -0
  3. package/lib/api/applicationApi.js +11 -0
  4. package/lib/api/bankApi.d.ts +352 -0
  5. package/lib/api/bankApi.js +54 -0
  6. package/lib/api/baseApi.d.ts +8 -0
  7. package/lib/api/baseApi.js +456 -0
  8. package/lib/api/customerApi.d.ts +855 -0
  9. package/lib/api/customerApi.js +213 -0
  10. package/lib/api/fdApi.d.ts +979 -0
  11. package/lib/api/fdApi.js +112 -0
  12. package/lib/api/fdCalculatorApi.d.ts +179 -0
  13. package/lib/api/fdCalculatorApi.js +36 -0
  14. package/lib/api/index.d.ts +14 -0
  15. package/lib/api/index.js +45 -0
  16. package/lib/api/interestRateApi.d.ts +585 -0
  17. package/lib/api/interestRateApi.js +101 -0
  18. package/lib/api/kycApi.d.ts +486 -0
  19. package/lib/api/kycApi.js +71 -0
  20. package/lib/api/masterDataApi.d.ts +158 -0
  21. package/lib/api/masterDataApi.js +32 -0
  22. package/lib/api/nomineeApi.d.ts +325 -0
  23. package/lib/api/nomineeApi.js +46 -0
  24. package/lib/api/onboardingApi.d.ts +192 -0
  25. package/lib/api/onboardingApi.js +41 -0
  26. package/lib/api/panApi.d.ts +0 -0
  27. package/lib/api/panApi.js +23 -0
  28. package/lib/api/paymentApi.d.ts +325 -0
  29. package/lib/api/paymentApi.js +46 -0
  30. package/lib/api/workflowApi.d.ts +654 -0
  31. package/lib/api/workflowApi.js +90 -0
  32. package/lib/assets/images/images.d.ts +4 -0
  33. package/lib/assets/images/images.js +10 -0
  34. package/lib/components/AadhaarInput.d.ts +13 -0
  35. package/lib/components/AadhaarInput.js +47 -0
  36. package/lib/components/ActionButton.d.ts +12 -0
  37. package/lib/components/ActionButton.js +87 -0
  38. package/lib/components/ActiveFDCard.d.ts +16 -0
  39. package/lib/components/ActiveFDCard.js +95 -0
  40. package/lib/components/AmountInput.d.ts +20 -0
  41. package/lib/components/AmountInput.js +144 -0
  42. package/lib/components/CheckboxOption.d.ts +11 -0
  43. package/lib/components/CheckboxOption.js +41 -0
  44. package/lib/components/CompanyHeader.d.ts +7 -0
  45. package/lib/components/CompanyHeader.js +57 -0
  46. package/lib/components/DropdownSelector.d.ts +9 -0
  47. package/lib/components/DropdownSelector.js +49 -0
  48. package/lib/components/EmptyState.d.ts +17 -0
  49. package/lib/components/EmptyState.js +44 -0
  50. package/lib/components/ErrorDisplay.d.ts +17 -0
  51. package/lib/components/ErrorDisplay.js +69 -0
  52. package/lib/components/FAQItem.d.ts +9 -0
  53. package/lib/components/FAQItem.js +52 -0
  54. package/lib/components/FDCard.d.ts +21 -0
  55. package/lib/components/FDCard.js +96 -0
  56. package/lib/components/FormDropdown.d.ts +18 -0
  57. package/lib/components/FormDropdown.js +155 -0
  58. package/lib/components/FormSection.d.ts +14 -0
  59. package/lib/components/FormSection.js +38 -0
  60. package/lib/components/Header.d.ts +14 -0
  61. package/lib/components/Header.js +52 -0
  62. package/lib/components/IFSCSearchResultCard.d.ts +13 -0
  63. package/lib/components/IFSCSearchResultCard.js +70 -0
  64. package/lib/components/InfoBox.d.ts +8 -0
  65. package/lib/components/InfoBox.js +39 -0
  66. package/lib/components/InterestRateCard.d.ts +8 -0
  67. package/lib/components/InterestRateCard.js +46 -0
  68. package/lib/components/LoadingIndicator.d.ts +12 -0
  69. package/lib/components/LoadingIndicator.js +30 -0
  70. package/lib/components/OTPInput.d.ts +17 -0
  71. package/lib/components/OTPInput.js +144 -0
  72. package/lib/components/PaymentDetailsCard.d.ts +20 -0
  73. package/lib/components/PaymentDetailsCard.js +68 -0
  74. package/lib/components/PendingFDBottomSheet.d.ts +18 -0
  75. package/lib/components/PendingFDBottomSheet.js +122 -0
  76. package/lib/components/SafeAreaWrapper.d.ts +13 -0
  77. package/lib/components/SafeAreaWrapper.js +41 -0
  78. package/lib/components/ScreenHeader.d.ts +11 -0
  79. package/lib/components/ScreenHeader.js +46 -0
  80. package/lib/components/StatusDisplay.d.ts +15 -0
  81. package/lib/components/StatusDisplay.js +88 -0
  82. package/lib/components/TextFieldWithLabel.d.ts +46 -0
  83. package/lib/components/TextFieldWithLabel.js +326 -0
  84. package/lib/components/TrustBox.d.ts +8 -0
  85. package/lib/components/TrustBox.js +45 -0
  86. package/lib/components/ValidationErrorAlert.d.ts +23 -0
  87. package/lib/components/ValidationErrorAlert.js +39 -0
  88. package/lib/components/ValidationMessage.d.ts +9 -0
  89. package/lib/components/ValidationMessage.js +98 -0
  90. package/lib/components/index.d.ts +35 -0
  91. package/lib/components/index.js +64 -0
  92. package/lib/config/apiConfig.d.ts +34 -0
  93. package/lib/config/apiConfig.js +158 -0
  94. package/lib/config/appDataConfig.d.ts +114 -0
  95. package/lib/config/appDataConfig.js +264 -0
  96. package/lib/config/encryptionConfig.d.ts +21 -0
  97. package/lib/config/encryptionConfig.js +61 -0
  98. package/lib/config/workflowConstants.d.ts +37 -0
  99. package/lib/config/workflowConstants.js +38 -0
  100. package/lib/constants/strings/bank.d.ts +72 -0
  101. package/lib/constants/strings/bank.js +86 -0
  102. package/lib/constants/strings/base64Images.d.ts +25 -0
  103. package/lib/constants/strings/base64Images.js +28 -0
  104. package/lib/constants/strings/common.d.ts +53 -0
  105. package/lib/constants/strings/common.js +62 -0
  106. package/lib/constants/strings/employee.d.ts +61 -0
  107. package/lib/constants/strings/employee.js +77 -0
  108. package/lib/constants/strings/faq.d.ts +14 -0
  109. package/lib/constants/strings/faq.js +20 -0
  110. package/lib/constants/strings/fd.d.ts +122 -0
  111. package/lib/constants/strings/fd.js +151 -0
  112. package/lib/constants/strings/home.d.ts +49 -0
  113. package/lib/constants/strings/home.js +62 -0
  114. package/lib/constants/strings/index.d.ts +16 -0
  115. package/lib/constants/strings/index.js +44 -0
  116. package/lib/constants/strings/kyc.d.ts +80 -0
  117. package/lib/constants/strings/kyc.js +94 -0
  118. package/lib/constants/strings/nominee.d.ts +64 -0
  119. package/lib/constants/strings/nominee.js +81 -0
  120. package/lib/hooks/useAuth.d.ts +25 -0
  121. package/lib/hooks/useAuth.js +39 -0
  122. package/lib/hooks/useFDData.d.ts +11 -0
  123. package/lib/hooks/useFDData.js +40 -0
  124. package/lib/index.d.ts +69 -0
  125. package/lib/index.js +182 -0
  126. package/lib/navigation/RootNavigator.d.ts +8 -0
  127. package/lib/navigation/RootNavigator.js +205 -0
  128. package/lib/navigation/SimpleNavigator.d.ts +11 -0
  129. package/lib/navigation/SimpleNavigator.js +107 -0
  130. package/lib/navigation/helpers.d.ts +11 -0
  131. package/lib/navigation/helpers.js +83 -0
  132. package/lib/navigation/index.d.ts +15 -0
  133. package/lib/navigation/index.js +42 -0
  134. package/lib/navigation/types.d.ts +113 -0
  135. package/lib/navigation/types.js +2 -0
  136. package/lib/navigation/workflowNavigator.d.ts +22 -0
  137. package/lib/navigation/workflowNavigator.js +104 -0
  138. package/lib/providers/ApiProvider.d.ts +7 -0
  139. package/lib/providers/ApiProvider.js +34 -0
  140. package/lib/providers/MasterDataProvider.d.ts +10 -0
  141. package/lib/providers/MasterDataProvider.js +54 -0
  142. package/lib/screens/AadhaarVerification.d.ts +7 -0
  143. package/lib/screens/AadhaarVerification.js +627 -0
  144. package/lib/screens/AddBankAccount.d.ts +22 -0
  145. package/lib/screens/AddBankAccount.js +381 -0
  146. package/lib/screens/BankDetail.d.ts +16 -0
  147. package/lib/screens/BankDetail.js +596 -0
  148. package/lib/screens/BookFD.d.ts +0 -0
  149. package/lib/screens/BookFD.js +315 -0
  150. package/lib/screens/Employee.d.ts +18 -0
  151. package/lib/screens/Employee.js +594 -0
  152. package/lib/screens/FDCalculator.d.ts +18 -0
  153. package/lib/screens/FDCalculator.js +759 -0
  154. package/lib/screens/FDList.d.ts +27 -0
  155. package/lib/screens/FDList.js +1008 -0
  156. package/lib/screens/FindIFSC.d.ts +16 -0
  157. package/lib/screens/FindIFSC.js +248 -0
  158. package/lib/screens/Home.d.ts +0 -0
  159. package/lib/screens/Home.js +143 -0
  160. package/lib/screens/NomineeDetail.d.ts +17 -0
  161. package/lib/screens/NomineeDetail.js +592 -0
  162. package/lib/screens/PayNow.d.ts +14 -0
  163. package/lib/screens/PayNow.js +230 -0
  164. package/lib/screens/Payment.d.ts +11 -0
  165. package/lib/screens/Payment.js +191 -0
  166. package/lib/screens/PaymentStatus.d.ts +16 -0
  167. package/lib/screens/PaymentStatus.js +397 -0
  168. package/lib/screens/ReviewKYC.d.ts +21 -0
  169. package/lib/screens/ReviewKYC.js +660 -0
  170. package/lib/state/paymentSession.d.ts +8 -0
  171. package/lib/state/paymentSession.js +13 -0
  172. package/lib/store/fdListSelectedSlice.d.ts +21 -0
  173. package/lib/store/fdListSelectedSlice.js +26 -0
  174. package/lib/store/hooks.d.ts +8 -0
  175. package/lib/store/hooks.js +31 -0
  176. package/lib/store/index.d.ts +3 -0
  177. package/lib/store/index.js +8 -0
  178. package/lib/store/onboardingSlice.d.ts +12 -0
  179. package/lib/store/onboardingSlice.js +32 -0
  180. package/lib/store/store.d.ts +13 -0
  181. package/lib/store/store.js +33 -0
  182. package/lib/theme/ThemeContext.d.ts +210 -0
  183. package/lib/theme/ThemeContext.js +90 -0
  184. package/lib/theme/colors.d.ts +80 -0
  185. package/lib/theme/colors.js +85 -0
  186. package/lib/theme/index.d.ts +34 -0
  187. package/lib/theme/index.js +69 -0
  188. package/lib/theme/shadows.d.ts +53 -0
  189. package/lib/theme/shadows.js +58 -0
  190. package/lib/theme/typography.d.ts +134 -0
  191. package/lib/theme/typography.js +143 -0
  192. package/lib/types/dataTypes.d.ts +34 -0
  193. package/lib/types/dataTypes.js +2 -0
  194. package/lib/types/workflowTypes.d.ts +2 -0
  195. package/lib/types/workflowTypes.js +2 -0
  196. package/lib/utils/apiLogger.d.ts +48 -0
  197. package/lib/utils/apiLogger.js +105 -0
  198. package/lib/utils/encryption.d.ts +28 -0
  199. package/lib/utils/encryption.js +113 -0
  200. package/lib/utils/getFDData.d.ts +48 -0
  201. package/lib/utils/getFDData.js +154 -0
  202. package/lib/utils/globalData.d.ts +2 -0
  203. package/lib/utils/globalData.js +10 -0
  204. package/package.json +76 -0
  205. package/src/api/applicationApi.ts +12 -0
  206. package/src/api/bankApi.ts +42 -0
  207. package/src/api/baseApi.ts +513 -0
  208. package/src/api/customerApi.ts +291 -0
  209. package/src/api/fdApi.ts +150 -0
  210. package/src/api/fdCalculatorApi.ts +41 -0
  211. package/src/api/index.ts +29 -0
  212. package/src/api/interestRateApi.ts +143 -0
  213. package/src/api/kycApi.ts +63 -0
  214. package/src/api/masterDataApi.ts +34 -0
  215. package/src/api/nomineeApi.ts +34 -0
  216. package/src/api/onboardingApi.ts +64 -0
  217. package/src/api/panApi.ts +25 -0
  218. package/src/api/paymentApi.ts +34 -0
  219. package/src/api/workflowApi.ts +94 -0
  220. package/src/assets/images/arrow-filled.png +0 -0
  221. package/src/assets/images/arrow-left.png +0 -0
  222. package/src/assets/images/backicon.png +0 -0
  223. package/src/assets/images/calendar.png +0 -0
  224. package/src/assets/images/chevron-down.png +0 -0
  225. package/src/assets/images/chevron-down@2x.png +0 -0
  226. package/src/assets/images/chevron-down@3x.png +0 -0
  227. package/src/assets/images/images.js +8 -0
  228. package/src/components/AadhaarInput.tsx +91 -0
  229. package/src/components/ActionButton.tsx +129 -0
  230. package/src/components/ActiveFDCard.tsx +158 -0
  231. package/src/components/AmountInput.tsx +217 -0
  232. package/src/components/CheckboxOption.tsx +93 -0
  233. package/src/components/CompanyHeader.tsx +78 -0
  234. package/src/components/DropdownSelector.tsx +77 -0
  235. package/src/components/EmptyState.tsx +109 -0
  236. package/src/components/ErrorDisplay.tsx +135 -0
  237. package/src/components/FAQItem.tsx +90 -0
  238. package/src/components/FDCard.tsx +165 -0
  239. package/src/components/FormDropdown.tsx +214 -0
  240. package/src/components/FormSection.tsx +86 -0
  241. package/src/components/Header.tsx +110 -0
  242. package/src/components/IFSCSearchResultCard.tsx +139 -0
  243. package/src/components/InfoBox.tsx +55 -0
  244. package/src/components/InterestRateCard.tsx +77 -0
  245. package/src/components/LoadingIndicator.tsx +63 -0
  246. package/src/components/OTPInput.tsx +213 -0
  247. package/src/components/PaymentDetailsCard.tsx +120 -0
  248. package/src/components/PendingFDBottomSheet.tsx +235 -0
  249. package/src/components/README.md +210 -0
  250. package/src/components/SafeAreaWrapper.tsx +68 -0
  251. package/src/components/ScreenHeader.tsx +83 -0
  252. package/src/components/StatusDisplay.tsx +139 -0
  253. package/src/components/TextFieldWithLabel.tsx +502 -0
  254. package/src/components/TrustBox.tsx +63 -0
  255. package/src/components/ValidationErrorAlert.tsx +57 -0
  256. package/src/components/ValidationMessage.tsx +134 -0
  257. package/src/components/index.tsx +47 -0
  258. package/src/config/apiConfig.ts +217 -0
  259. package/src/config/appDataConfig.ts +279 -0
  260. package/src/config/encryptionConfig.ts +65 -0
  261. package/src/config/workflowConstants.ts +43 -0
  262. package/src/constants/strings/README.md +146 -0
  263. package/src/constants/strings/bank.ts +92 -0
  264. package/src/constants/strings/base64Images.ts +29 -0
  265. package/src/constants/strings/common.ts +63 -0
  266. package/src/constants/strings/employee.ts +85 -0
  267. package/src/constants/strings/faq.ts +23 -0
  268. package/src/constants/strings/fd.ts +172 -0
  269. package/src/constants/strings/home.ts +67 -0
  270. package/src/constants/strings/index.ts +21 -0
  271. package/src/constants/strings/kyc.ts +100 -0
  272. package/src/constants/strings/nominee.ts +90 -0
  273. package/src/hooks/useAuth.ts +42 -0
  274. package/src/hooks/useFDData.ts +48 -0
  275. package/src/index.tsx +173 -0
  276. package/src/navigation/RootNavigator.tsx +352 -0
  277. package/src/navigation/SimpleNavigator.tsx +107 -0
  278. package/src/navigation/helpers.ts +85 -0
  279. package/src/navigation/index.tsx +81 -0
  280. package/src/navigation/types.ts +124 -0
  281. package/src/navigation/workflowNavigator.ts +131 -0
  282. package/src/providers/ApiProvider.tsx +43 -0
  283. package/src/providers/MasterDataProvider.tsx +30 -0
  284. package/src/screens/AadhaarVerification.tsx +809 -0
  285. package/src/screens/AddBankAccount.tsx +541 -0
  286. package/src/screens/BankDetail.tsx +826 -0
  287. package/src/screens/BookFD.tsx +330 -0
  288. package/src/screens/Employee.tsx +822 -0
  289. package/src/screens/FDCalculator.tsx +987 -0
  290. package/src/screens/FDList.tsx +1284 -0
  291. package/src/screens/FindIFSC.tsx +332 -0
  292. package/src/screens/Home.tsx +152 -0
  293. package/src/screens/NomineeDetail.tsx +800 -0
  294. package/src/screens/PayNow.tsx +282 -0
  295. package/src/screens/Payment.tsx +224 -0
  296. package/src/screens/PaymentStatus.tsx +561 -0
  297. package/src/screens/ReviewKYC.tsx +956 -0
  298. package/src/state/paymentSession.ts +13 -0
  299. package/src/store/fdListSelectedSlice.ts +42 -0
  300. package/src/store/hooks.ts +27 -0
  301. package/src/store/index.ts +3 -0
  302. package/src/store/onboardingSlice.ts +37 -0
  303. package/src/store/store.ts +35 -0
  304. package/src/theme/ThemeContext.tsx +82 -0
  305. package/src/theme/colors.ts +90 -0
  306. package/src/theme/index.ts +64 -0
  307. package/src/theme/shadows.ts +61 -0
  308. package/src/theme/typography.ts +151 -0
  309. package/src/types/dataTypes.ts +37 -0
  310. package/src/types/env.d.ts +93 -0
  311. package/src/types/workflowTypes.ts +12 -0
  312. package/src/utils/apiLogger.ts +166 -0
  313. package/src/utils/encryption.ts +159 -0
  314. package/src/utils/getFDData.ts +175 -0
  315. package/src/utils/globalData.ts +7 -0
@@ -0,0 +1,85 @@
1
+ // Employee and occupation related strings
2
+ export const EMPLOYEE_STRINGS = {
3
+ // Screen titles
4
+ EMPLOYEE_DETAILS_TITLE: 'Employee Details',
5
+ OCCUPATION_DETAILS_TITLE: 'Occupation Details',
6
+ INCOME_DETAILS_TITLE: 'Income Details',
7
+
8
+ // Form labels
9
+ OCCUPATION_LABEL: 'Occupation',
10
+ NATURE_OF_BUSINESS_LABEL: 'Nature of Business',
11
+ CUSTOM_OCCUPATION_LABEL: 'Custom Occupation',
12
+ CUSTOM_NATURE_OF_BUSINESS_LABEL: 'Custom Nature of Business',
13
+ ANNUAL_INCOME_LABEL: 'Annual Income',
14
+ SOURCE_OF_FUND_LABEL: 'Source of Fund',
15
+ POLITICALLY_EXPOSED_PERSON_LABEL: 'Politically Exposed Person',
16
+ CUSTOM_SOURCE_OF_FUND_LABEL: 'Custom Source of Fund',
17
+
18
+ // Placeholders
19
+ OCCUPATION_PLACEHOLDER: 'Select Occupation',
20
+ NATURE_OF_BUSINESS_PLACEHOLDER: 'Select Nature of Business',
21
+ CUSTOM_OCCUPATION_PLACEHOLDER: 'Enter Custom Occupation',
22
+ CUSTOM_NATURE_OF_BUSINESS_PLACEHOLDER: 'Enter Custom Nature of Business',
23
+ ANNUAL_INCOME_PLACEHOLDER: 'Select Annual Income',
24
+ SOURCE_OF_FUND_PLACEHOLDER: 'Select Source of Fund',
25
+ POLITICALLY_EXPOSED_PERSON_PLACEHOLDER: 'Select Option',
26
+ CUSTOM_SOURCE_OF_FUND_PLACEHOLDER: 'Enter Custom Source of Fund',
27
+
28
+ // Occupation options
29
+ OCCUPATION_SALARIED: 'Salaried',
30
+ OCCUPATION_SELF_EMPLOYED: 'Self Employed',
31
+ OCCUPATION_BUSINESS: 'Business',
32
+ OCCUPATION_PROFESSIONAL: 'Professional',
33
+ OCCUPATION_RETIRED: 'Retired',
34
+ OCCUPATION_HOUSEWIFE: 'Housewife',
35
+ OCCUPATION_STUDENT: 'Student',
36
+ OCCUPATION_OTHER: 'Other',
37
+
38
+ // Income options
39
+ INCOME_BELOW_1_LAKH: 'Below Rs 1 Lakh',
40
+ INCOME_1_TO_3_LAKH: 'Rs 1 Lakh - 3 Lakhs',
41
+ INCOME_3_TO_6_LAKH: 'Rs 3 Lakhs - 6 Lakhs',
42
+ INCOME_6_TO_10_LAKH: 'Rs 6 Lakhs - 10 Lakhs',
43
+ INCOME_10_TO_25_LAKH: 'Rs 10 Lakhs - 25 Lakhs',
44
+ INCOME_ABOVE_25_LAKH: 'Above Rs 25 Lakhs',
45
+
46
+ // Source of fund options
47
+ SOURCE_SALARY: 'Salary',
48
+ SOURCE_BUSINESS: 'Business Income',
49
+ SOURCE_INVESTMENT: 'Investment Returns',
50
+ SOURCE_INHERITANCE: 'Inheritance',
51
+ SOURCE_GIFT: 'Gift',
52
+ SOURCE_OTHER: 'Other',
53
+
54
+ // Politically exposed person options
55
+ PEP_YES: 'Yes',
56
+ PEP_NO: 'No',
57
+ PEP_RELATED: 'Related to Politically Exposed Person',
58
+
59
+ // Buttons
60
+ SAVE_OCCUPATION_BUTTON: 'Save Occupation Details',
61
+ UPDATE_OCCUPATION_BUTTON: 'Update Occupation Details',
62
+
63
+ // Messages
64
+ OCCUPATION_SAVED_SUCCESS: 'Occupation details saved successfully',
65
+ OCCUPATION_SAVED_FAILED: 'Failed to save occupation details',
66
+ OCCUPATION_UPDATED_SUCCESS: 'Occupation details updated successfully',
67
+ OCCUPATION_UPDATED_FAILED: 'Failed to update occupation details',
68
+
69
+ // Validation messages
70
+ OCCUPATION_REQUIRED: 'Occupation is required',
71
+ NATURE_OF_BUSINESS_REQUIRED: 'Nature of business is required for self-employed',
72
+ ANNUAL_INCOME_REQUIRED: 'Annual income is required',
73
+ SOURCE_OF_FUND_REQUIRED: 'Source of fund is required',
74
+ POLITICALLY_EXPOSED_PERSON_REQUIRED: 'Please specify if you are politically exposed',
75
+
76
+ // Conditional messages
77
+ NATURE_OF_BUSINESS_HIDDEN: 'Nature of business is only required for self-employed individuals',
78
+ CUSTOM_FIELDS_REQUIRED: 'Please provide custom details when "Other" is selected',
79
+
80
+ // Instructions
81
+ OCCUPATION_INSTRUCTIONS: 'Please select your current occupation',
82
+ INCOME_INSTRUCTIONS: 'Please select your annual income range',
83
+ SOURCE_OF_FUND_INSTRUCTIONS: 'Please specify the source of your funds',
84
+ PEP_INSTRUCTIONS: 'Please indicate if you are a politically exposed person',
85
+ } as const;
@@ -0,0 +1,23 @@
1
+ // FAQ related strings
2
+ export const FAQ_STRINGS = {
3
+ // FAQ Questions
4
+ FAQ_WITHDRAWAL_QUESTION: 'Can I Withdraw Shriram Finance Ltd. FD before maturity? If yes, what is the impact on interest?',
5
+ FAQ_CREDIT_QUESTION: 'Where will my Fixed Deposit amount get credited after maturity?',
6
+ FAQ_TAX_EXEMPTION_QUESTION: 'Can I show Shriram Finance Ltd. Fixed Deposit Investment for tax exemption?',
7
+ FAQ_CUMULATIVE_QUESTION: 'What do cumulative & non-cumulative interest payment options means in Fixed Deposits?',
8
+ FAQ_OPENING_TIME_QUESTION: 'How much time does it take to open a Fixed Deposit?',
9
+ FAQ_TDS_AVOIDANCE_QUESTION: 'How to avoid TDS on FD interest if my interest earned is below tax limit?',
10
+
11
+ // FAQ Answers
12
+ FAQ_WITHDRAWAL_ANSWER: 'Yes, you can withdraw your Shriram Finance Ltd. Fixed Deposit (FD) before maturity, but doing so will impact the interest earned. Typically, the interest rate on premature withdrawals is lower than the agreed-upon rate for the full tenure of the FD. Additionally, Shriram Finance Ltd. may charge a penalty, which can further reduce the interest accrued. The interest will also be recalculated based on the duration the FD was held, and you will receive a reduced payout compared to the original maturity amount. It\'s advisable to check the specific terms and conditions with Shriram Finance Ltd. for detailed information on penalties and interest adjustments.',
13
+
14
+ FAQ_CREDIT_ANSWER: 'After the maturity of your Fixed Deposit with Shriram Finance Ltd., the principal amount along with the interest earned will be credited to your registered bank account. If you have chosen a different option like a payout to a specific bank account, the funds will be transferred accordingly. You can verify the credit details by checking your bank account or by contacting Shriram Finance for confirmation.',
15
+
16
+ FAQ_TAX_EXEMPTION_ANSWER: 'No, a Fixed Deposit (FD) with Shriram Finance Ltd. does not qualify for tax exemption under Section 80C of the Income Tax Act. However, the interest earned on the FD is subject to tax, and you will need to pay tax based on your income tax slab.\n\nIf you are looking for tax-saving options, you can explore specific tax-saving Fixed Deposits (like 5-year tax-saving FDs), which are eligible for deductions under Section 80C. It\'s always a good idea to consult a tax advisor for personalized advice.',
17
+
18
+ FAQ_CUMULATIVE_ANSWER: 'In Fixed Deposits, the cumulative interest option means that the interest earned is added to the principal, and you receive the total amount (principal + interest) at maturity. The interest is compounded, meaning you earn interest on the interest as well.\n\nOn the other hand, the non-cumulative interest option allows you to receive interest payouts periodically, such as monthly, quarterly, or annually. The principal amount is paid back to you at maturity, and the interest is not reinvested. This option is ideal for those who want regular income from their investment.',
19
+
20
+ FAQ_OPENING_TIME_ANSWER: 'Opening a Fixed Deposit with Shriram Finance takes just a few minutes if done online. If done offline, it might take a few hours depending on paperwork.',
21
+
22
+ FAQ_TDS_AVOIDANCE_ANSWER: 'To avoid TDS on FD interest if your earnings are below the taxable limit, you can submit Form 15G (for individuals below 60 years) or Form 15H (for senior citizens above 60 years) to the bank or financial institution. This form declares that your total income is below the taxable limit, and no TDS should be deducted.',
23
+ } as const;
@@ -0,0 +1,172 @@
1
+ // Fixed Deposit related strings
2
+ export const FD_STRINGS = {
3
+ // Screen titles
4
+ FD_CALCULATOR_TITLE: 'FD Calculator',
5
+ FD_LIST_TITLE: 'FD List',
6
+ FD_DETAILS_TITLE: 'FD Details',
7
+ BOOK_FD_TITLE: 'Book Fixed Deposit',
8
+ PAY_NOW_TITLE: 'Pay Now',
9
+
10
+ // Form labels
11
+ INVESTMENT_AMOUNT_LABEL: 'Investment Amount',
12
+ TENURE_LABEL: 'Tenure',
13
+ DEPOSIT_SCHEME_LABEL: 'Deposit Scheme',
14
+ INTEREST_RATE_LABEL: 'Interest Rate',
15
+ MATURITY_AMOUNT_LABEL: 'Maturity Amount',
16
+ MATURITY_INSTRUCTIONS_LABEL: 'Maturity Instructions',
17
+ INTEREST_PAYOUT_TERM_LABEL: 'Interest Payout Term',
18
+
19
+ // Placeholders
20
+ INVESTMENT_AMOUNT_PLACEHOLDER: 'Enter Investment Amount',
21
+ TENURE_PLACEHOLDER: 'Select Tenure',
22
+ DEPOSIT_SCHEME_PLACEHOLDER: 'Select Deposit Scheme',
23
+ INTEREST_RATE_PLACEHOLDER: 'Interest Rate',
24
+ MATURITY_AMOUNT_PLACEHOLDER: 'Maturity Amount',
25
+ MATURITY_INSTRUCTIONS_PLACEHOLDER: 'Select Maturity Instructions',
26
+ INTEREST_PAYOUT_TERM_PLACEHOLDER: 'Select Interest Payout Term',
27
+
28
+ // Deposit schemes
29
+ SCHEME_CUMULATIVE: 'Cumulative',
30
+ SCHEME_NON_CUMULATIVE: 'Non-Cumulative',
31
+ SCHEME_FLEXI: 'Flexi FD',
32
+ SCHEME_TAX_SAVER: 'Tax Saver FD',
33
+
34
+ // Tenure options
35
+ TENURE_1_MONTH: '1 Month',
36
+ TENURE_3_MONTHS: '3 Months',
37
+ TENURE_6_MONTHS: '6 Months',
38
+ TENURE_1_YEAR: '1 Year',
39
+ TENURE_2_YEARS: '2 Years',
40
+ TENURE_3_YEARS: '3 Years',
41
+ TENURE_5_YEARS: '5 Years',
42
+
43
+ // Maturity instructions
44
+ MATURITY_AUTO_RENEWAL: 'Auto Renewal',
45
+ MATURITY_AUTO_REFUND: 'Auto Refund',
46
+ MATURITY_MANUAL: 'Manual',
47
+
48
+ // Interest payout terms
49
+ PAYOUT_ON_MATURITY: 'On Maturity',
50
+ PAYOUT_MONTHLY: 'Monthly',
51
+ PAYOUT_QUARTERLY: 'Quarterly',
52
+ PAYOUT_HALF_YEARLY: 'Half Yearly',
53
+ PAYOUT_YEARLY: 'Yearly',
54
+
55
+ // Buttons
56
+ CALCULATE_FD_BUTTON: 'Calculate FD',
57
+ BOOK_FD_BUTTON: 'Start FD',
58
+ CREATE_FD_BUTTON: 'Create FD',
59
+ PAY_NOW_BUTTON: 'Pay Now',
60
+ VIEW_DETAILS_BUTTON: 'View Details',
61
+ DOWNLOAD_CERTIFICATE_BUTTON: 'Download Certificate',
62
+
63
+ // Messages
64
+ FD_CALCULATED_SUCCESS: 'FD calculated successfully',
65
+ FD_CALCULATED_FAILED: 'Failed to calculate FD',
66
+ FD_CREATED_SUCCESS: 'FD created successfully',
67
+ FD_CREATED_FAILED: 'Failed to create FD',
68
+ FD_BOOKED_SUCCESS: 'FD booked successfully',
69
+ FD_BOOKED_FAILED: 'Failed to book FD',
70
+ PAYMENT_COMPLETED_SUCCESS: 'Payment completed successfully',
71
+ PAYMENT_COMPLETED_FAILED: 'Payment failed',
72
+
73
+ // Validation messages
74
+ INVESTMENT_AMOUNT_REQUIRED: 'Investment amount is required',
75
+ TENURE_REQUIRED: 'Tenure is required',
76
+ DEPOSIT_SCHEME_REQUIRED: 'Deposit scheme is required',
77
+ MATURITY_INSTRUCTIONS_REQUIRED: 'Maturity instructions are required',
78
+ INTEREST_PAYOUT_TERM_REQUIRED: 'Interest payout term is required',
79
+ INVALID_INVESTMENT_AMOUNT: 'Please enter a valid investment amount',
80
+ MINIMUM_AMOUNT_ERROR: 'Minimum investment amount is Rs 5,000',
81
+ MAXIMUM_AMOUNT_ERROR: 'Maximum investment amount is Rs 5,00,00,000',
82
+
83
+ // FD status
84
+ FD_STATUS_ACTIVE: 'Active',
85
+ FD_STATUS_MATURED: 'Matured',
86
+ FD_STATUS_CANCELLED: 'Cancelled',
87
+ FD_STATUS_PENDING: 'Pending',
88
+ FD_STATUS_APPROVED: 'Approved',
89
+ FD_STATUS_REJECTED: 'Rejected',
90
+
91
+ // Information messages
92
+ FD_CALCULATOR_INFO: 'Calculate your FD returns before investing',
93
+ FD_BENEFITS: 'Fixed deposits offer guaranteed returns and capital protection',
94
+ FD_TAX_INFO: 'FD interest is taxable as per your income tax slab',
95
+ FD_PREMATURE_WITHDRAWAL: 'Premature withdrawal may attract penalty',
96
+
97
+ // Error messages
98
+ FD_CALCULATION_ERROR: 'Unable to calculate FD. Please try again.',
99
+ FD_CREATION_ERROR: 'Unable to create FD. Please try again.',
100
+ FD_BOOKING_ERROR: 'Unable to book FD. Please try again.',
101
+ PAYMENT_ERROR: 'Payment processing failed. Please try again.',
102
+ FD_NOT_FOUND: 'FD details not found',
103
+ FD_ALREADY_EXISTS: 'FD with similar details already exists',
104
+
105
+ // Summary labels
106
+ FD_SUMMARY_TITLE: 'FD Summary',
107
+ INVESTMENT_SUMMARY: 'Investment Summary',
108
+ RETURNS_SUMMARY: 'Returns Summary',
109
+ TOTAL_INVESTMENT: 'Total Investment',
110
+ TOTAL_RETURNS: 'Total Returns',
111
+ NET_AMOUNT: 'Net Amount',
112
+ INTEREST_AMOUNT: 'Interest Amount',
113
+
114
+ // Input placeholders and note
115
+ AMOUNT_PLACEHOLDER: '25000',
116
+ AMOUNT_NOTE: 'The entered amount should be in multiples of ₹1000',
117
+ AMOUNT_MIN_MAX: 'Min: ₹5 K | Max: ₹5 Cr',
118
+ AMOUNT_MULTIPLES_ERROR: 'Amount must be in multiples of ₹1,000',
119
+
120
+ // Senior citizen benefits
121
+ SENIOR_CITIZEN_BENEFIT: '+0.25% p.a. more for senior citizens',
122
+
123
+ // Tax resident confirmation
124
+ TAX_RESIDENT_CONFIRMATION: 'I confirm I am a tax resident of India',
125
+ TAX_RESIDENT_ERROR: 'Please confirm that you are a tax resident of India to proceed',
126
+
127
+ // Withdrawal information
128
+ WITHDRAWAL_INFO: 'Withdrawal allowed after 3 months',
129
+
130
+ // Section titles
131
+ SAFETY_TRUST_TITLE: 'Safety & Trust',
132
+ FAQ_TITLE: 'Frequently asked questions',
133
+
134
+ // Trust information
135
+ TRUSTED_BY: 'Trusted By ',
136
+ CRORES_INDIANS: '4.6 Crores Indians',
137
+ AAA_RATING: 'Stable Rating',
138
+ RATING: 'AA+',
139
+
140
+ // Fallback tenure options
141
+ TENURE_12_MONTHS: '12 Months',
142
+ TENURE_24_MONTHS: '24 Months',
143
+ TENURE_36_MONTHS: '36 Months',
144
+
145
+ // FD List screen strings
146
+ CORPORATE_FDS_TITLE: 'Corporate FDs',
147
+ ALL_FDS_TAB: 'All FDs',
148
+ LESS_THAN_1Y_TAB: '<1Y',
149
+ LESS_THAN_1_3Y_TAB: '<1-3Y',
150
+ LESS_THAN_3_5Y_TAB: '<3-5Y',
151
+ GREATER_THAN_5Y_TAB: '>5Y',
152
+ ACTIVE_FDS_SECTION: 'Active FDs',
153
+
154
+ // Loading and status messages
155
+ LOADING_RATES: 'Loading rates...',
156
+ LOADING_APPLICATIONS: 'Loading applications...',
157
+ LOADING_FD_DATA: 'Searching for the best F.D. deals...',
158
+ API_ERROR_RETRY: '❌ API Error - Please retry',
159
+ APIS_CONNECTED: '✅ APIs Connected',
160
+ NO_DATA_AVAILABLE: '📱 No data available',
161
+ REFRESH_ALL: '🔄 Refresh All',
162
+
163
+ // No data messages
164
+ NO_CUSTOMER_FDS_FOUND: 'No customer FDs found.',
165
+ NO_FD_OPTIONS_AVAILABLE: 'No FD options available at the moment.',
166
+ FAILED_TO_LOAD_FD_DATA: 'Failed to load FD data. Please try again.',
167
+ NO_FDS_FOUND_FOR_TENURE: 'No FDs found for',
168
+
169
+ // Status indicators
170
+ CUSTOMER_FDS: 'customer FDs',
171
+ AVAILABLE_RATES: 'available rates',
172
+ } as const;
@@ -0,0 +1,67 @@
1
+ // Home screen and navigation related strings
2
+ export const HOME_STRINGS = {
3
+ // Screen titles
4
+ HOME_TITLE: 'Home',
5
+ DASHBOARD_TITLE: 'Dashboard',
6
+ PROFILE_TITLE: 'Profile',
7
+ SETTINGS_TITLE: 'Settings',
8
+ NOTIFICATIONS_TITLE: 'Notifications',
9
+
10
+ // Navigation items
11
+ VIEW_MY_FDS: 'View My FDs',
12
+ BOOK_NEW_FD: 'Book New FD',
13
+ MY_ACCOUNT: 'My Account',
14
+ TRANSACTIONS: 'Transactions',
15
+ STATEMENTS: 'Statements',
16
+ HELP_SUPPORT: 'Help & Support',
17
+ LOGOUT: 'Logout',
18
+
19
+ // Welcome messages
20
+ WELCOME_MESSAGE: 'Welcome to Shriram FD',
21
+ WELCOME_SUBTITLE: 'Manage your Fixed Deposits with ease',
22
+ GOOD_MORNING: 'Good Morning',
23
+ GOOD_AFTERNOON: 'Good Afternoon',
24
+ GOOD_EVENING: 'Good Evening',
25
+
26
+ // Quick actions
27
+ QUICK_ACTIONS: 'Quick Actions',
28
+ RECENT_TRANSACTIONS: 'Recent Transactions',
29
+ ACTIVE_FDS: 'Active FDs',
30
+ MATURED_FDS: 'Matured FDs',
31
+ PENDING_REQUESTS: 'Pending Requests',
32
+
33
+ // FD related
34
+ FD_DETAILS: 'FD Details',
35
+ FD_INVESTMENT: 'FD Investment',
36
+ FD_MATURITY: 'FD Maturity',
37
+ FD_INTEREST: 'FD Interest',
38
+ FD_AMOUNT: 'FD Amount',
39
+ FD_TENURE: 'FD Tenure',
40
+ FD_RATE: 'FD Rate',
41
+ FD_STATUS: 'FD Status',
42
+
43
+ // Status indicators
44
+ ACTIVE: 'Active',
45
+ MATURED: 'Matured',
46
+ CANCELLED: 'Cancelled',
47
+ PENDING: 'Pending',
48
+ APPROVED: 'Approved',
49
+ REJECTED: 'Rejected',
50
+
51
+ // Information
52
+ PLATFORM_INFO: 'Platform',
53
+ SDK_VERSION: 'SDK Version',
54
+ APP_VERSION: 'App Version',
55
+ LAST_UPDATED: 'Last Updated',
56
+
57
+ // Empty states
58
+ NO_FDS_FOUND: 'No FDs found',
59
+ NO_TRANSACTIONS: 'No transactions found',
60
+ NO_NOTIFICATIONS: 'No notifications',
61
+ NO_DATA_AVAILABLE: 'No data available',
62
+
63
+ // Error states
64
+ LOADING_ERROR: 'Failed to load data',
65
+ NETWORK_ERROR: 'Network connection error',
66
+ SERVER_ERROR: 'Server error occurred',
67
+ } as const;
@@ -0,0 +1,21 @@
1
+ // Central export file for all string constants
2
+ // This provides a single import point for all string literals used in the application
3
+
4
+ export { COMMON_STRINGS } from './common';
5
+ export { HOME_STRINGS } from './home';
6
+ export { KYC_STRINGS } from './kyc';
7
+ export { EMPLOYEE_STRINGS } from './employee';
8
+ export { BANK_STRINGS } from './bank';
9
+ export { NOMINEE_STRINGS } from './nominee';
10
+ export { FD_STRINGS } from './fd';
11
+ export { FAQ_STRINGS } from './faq';
12
+
13
+ // Re-export all strings as a single object for convenience
14
+ export * from './common';
15
+ export * from './home';
16
+ export * from './kyc';
17
+ export * from './employee';
18
+ export * from './bank';
19
+ export * from './nominee';
20
+ export * from './fd';
21
+ export * from './faq';
@@ -0,0 +1,100 @@
1
+ // KYC and verification related strings
2
+ export const KYC_STRINGS = {
3
+ // Screen titles
4
+ REVIEW_KYC_TITLE: 'Review KYC',
5
+ AADHAAR_VERIFICATION_TITLE: 'Aadhaar Verification',
6
+ PAN_VERIFICATION_TITLE: 'PAN Verification',
7
+ DOCUMENT_VERIFICATION_TITLE: 'Document Verification',
8
+
9
+ // Form labels
10
+ PAN_CARD_LABEL: 'Pan Card',
11
+ DATE_OF_BIRTH_LABEL: 'Date of Birth',
12
+ MARITAL_STATUS_LABEL: 'Marital Status',
13
+ AREA_LABEL: 'Area',
14
+ CITY_LABEL: 'City',
15
+ ADDRESS_LINE1_LABEL: 'Address Line 1',
16
+ ADDRESS_LINE2_LABEL: 'Address Line 2',
17
+ PINCODE_LABEL: 'Pincode',
18
+ STATE_LABEL: 'State',
19
+ COUNTRY_LABEL: 'Country',
20
+ AADHAAR_NUMBER_LABEL: 'Aadhaar Number',
21
+ AADHAAR_CARD_LABEL: 'Aadhaar Card',
22
+ OTP_LABEL: 'OTP',
23
+
24
+ // Placeholders
25
+ PAN_CARD_PLACEHOLDER: 'Enter PAN Card',
26
+ DATE_OF_BIRTH_PLACEHOLDER: 'Select Date of Birth',
27
+ MARITAL_STATUS_PLACEHOLDER: 'Select Marital Status',
28
+ AREA_PLACEHOLDER: 'Enter Area',
29
+ CITY_PLACEHOLDER: 'Enter City',
30
+ ADDRESS_LINE1_PLACEHOLDER: 'Enter Address Line 1',
31
+ ADDRESS_LINE2_PLACEHOLDER: 'Enter Address Line 2',
32
+ PINCODE_PLACEHOLDER: 'Enter Pincode',
33
+ STATE_PLACEHOLDER: 'Enter State',
34
+ COUNTRY_PLACEHOLDER: 'Enter Country',
35
+ AADHAAR_NUMBER_PLACEHOLDER: 'Enter Aadhaar Number',
36
+ OTP_PLACEHOLDER: 'Enter OTP',
37
+
38
+ // Marital status options
39
+ MARITAL_STATUS_SINGLE: 'Single',
40
+ MARITAL_STATUS_MARRIED: 'Married',
41
+ MARITAL_STATUS_DIVORCED: 'Divorced',
42
+ MARITAL_STATUS_WIDOWED: 'Widowed',
43
+
44
+ // Buttons
45
+ VERIFY_AADHAAR_BUTTON: 'Verify Aadhaar',
46
+ VERIFY_OTP_BUTTON: 'Verify OTP',
47
+ RESEND_OTP_BUTTON: 'Resend OTP',
48
+ SEND_OTP_BUTTON: 'Send OTP',
49
+
50
+ // Messages
51
+ AADHAAR_VERIFICATION_SUCCESS: 'Aadhaar verified successfully',
52
+ AADHAAR_VERIFICATION_FAILED: 'Aadhaar verification failed',
53
+ AADHAAR_ALREADY_VERIFIED: 'Aadhaar already verified',
54
+ AADHAAR_NUMBER_VERIFIED: 'Aadhaar number verified.',
55
+ PAN_VERIFICATION_SUCCESS: 'PAN verified successfully',
56
+ PAN_VERIFICATION_FAILED: 'PAN verification failed',
57
+ OTP_SENT_SUCCESS: 'OTP sent successfully',
58
+ OTP_VERIFICATION_SUCCESS: 'OTP verified successfully',
59
+ OTP_VERIFICATION_FAILED: 'OTP verification failed',
60
+ KYC_COMPLETED: 'KYC completed successfully',
61
+ KYC_PENDING: 'KYC verification pending',
62
+ SENDING_OTP: 'Sending OTP...',
63
+ VERIFYING_OTP: 'Verifying OTP...',
64
+ RESENDING_OTP: 'Resending OTP...',
65
+
66
+ // Error messages
67
+ INVALID_PAN: 'Invalid PAN number',
68
+ INVALID_AADHAAR: 'Invalid Aadhaar number',
69
+ INVALID_OTP: 'Invalid OTP',
70
+ INVALID_OR_EXPIRED_OTP: 'Invalid or expired OTP. Please try again.',
71
+ OTP_EXPIRED: 'OTP has expired',
72
+ VERIFICATION_FAILED: 'Verification failed',
73
+ DOCUMENT_UPLOAD_FAILED: 'Document upload failed',
74
+ AADHAAR_ERROR_GENERIC: 'Something went wrong, check your Aadhaar number and try again.',
75
+ RESEND_OTP_FAILED: 'Failed to resend OTP. Please try again.',
76
+ FAILED_TO_PROCEED: 'Failed to proceed. Please try again.',
77
+
78
+ // Validation messages
79
+ PAN_REQUIRED: 'PAN number is required',
80
+ AADHAAR_REQUIRED: 'Aadhaar number is required',
81
+ AADHAAR_MUST_BE_12_DIGITS: 'Aadhaar number must be 12 digits',
82
+ OTP_REQUIRED: 'OTP is required',
83
+ OTP_INCOMPLETE: 'Please enter the complete 6-digit OTP',
84
+ DATE_OF_BIRTH_REQUIRED: 'Date of birth is required',
85
+ MARITAL_STATUS_REQUIRED: 'Marital status is required',
86
+ ADDRESS_REQUIRED: 'Address is required',
87
+ PINCODE_REQUIRED: 'Pincode is required',
88
+
89
+ // Status messages
90
+ VERIFICATION_IN_PROGRESS: 'Verification in progress...',
91
+ DOCUMENT_UNDER_REVIEW: 'Document under review',
92
+ VERIFICATION_COMPLETED: 'Verification completed',
93
+ VERIFICATION_REJECTED: 'Verification rejected',
94
+
95
+ // Instructions
96
+ AADHAAR_INSTRUCTIONS: 'Please enter your 12-digit Aadhaar number',
97
+ PAN_INSTRUCTIONS: 'Please enter your 10-character PAN number',
98
+ OTP_INSTRUCTIONS: 'Please enter the OTP sent to your registered mobile number',
99
+ DOCUMENT_INSTRUCTIONS: 'Please upload clear images of your documents',
100
+ } as const;
@@ -0,0 +1,90 @@
1
+ // Nominee related strings
2
+ export const NOMINEE_STRINGS = {
3
+ // Screen titles
4
+ NOMINEE_DETAILS_TITLE: 'Nominee Details',
5
+ ADD_NOMINEE_TITLE: 'Add Nominee',
6
+ EDIT_NOMINEE_TITLE: 'Edit Nominee',
7
+
8
+ // Form labels
9
+ MAKE_NOMINATION_LABEL: 'Do you wish to make a nomination for this deposit?',
10
+ NOMINEE_TITLE_LABEL: 'Nominee Title',
11
+ NOMINEE_NAME_LABEL: 'Nominee Name',
12
+ RELATIONSHIP_LABEL: 'Relationship',
13
+ DATE_OF_BIRTH_LABEL: 'Date of Birth',
14
+ PRINT_NAME_ON_CERTIFICATE_LABEL: 'Print Name on Certificate',
15
+
16
+ // Placeholders
17
+ MAKE_NOMINATION_PLACEHOLDER: 'Select Option',
18
+ NOMINEE_TITLE_PLACEHOLDER: '',
19
+ NOMINEE_NAME_PLACEHOLDER: 'Enter Nominee Name',
20
+ RELATIONSHIP_PLACEHOLDER: 'Select Relationship',
21
+ DATE_OF_BIRTH_PLACEHOLDER: 'Select Date of Birth',
22
+
23
+ // Nomination options
24
+ MAKE_NOMINATION_YES: 'Yes',
25
+ MAKE_NOMINATION_NO: 'No',
26
+
27
+ // Title options
28
+ TITLE_MR: 'Mr.',
29
+ TITLE_MRS: 'Mrs.',
30
+ TITLE_MS: 'Ms.',
31
+ TITLE_DR: 'Dr.',
32
+ TITLE_PROF: 'Prof.',
33
+
34
+ // Relationship options
35
+ RELATIONSHIP_SPOUSE: 'Spouse',
36
+ RELATIONSHIP_SON: 'Son',
37
+ RELATIONSHIP_DAUGHTER: 'Daughter',
38
+ RELATIONSHIP_FATHER: 'Father',
39
+ RELATIONSHIP_MOTHER: 'Mother',
40
+ RELATIONSHIP_BROTHER: 'Brother',
41
+ RELATIONSHIP_SISTER: 'Sister',
42
+ RELATIONSHIP_OTHER: 'Other',
43
+
44
+ // Buttons
45
+ SAVE_NOMINEE_BUTTON: 'Save Nominee Details',
46
+ UPDATE_NOMINEE_BUTTON: 'Update Nominee Details',
47
+ DELETE_NOMINEE_BUTTON: 'Delete Nominee',
48
+ ADD_NOMINEE_BUTTON: 'Add Nominee',
49
+
50
+ // Messages
51
+ NOMINEE_SAVED_SUCCESS: 'Nominee details saved successfully',
52
+ NOMINEE_SAVED_FAILED: 'Failed to save nominee details',
53
+ NOMINEE_UPDATED_SUCCESS: 'Nominee details updated successfully',
54
+ NOMINEE_UPDATED_FAILED: 'Failed to update nominee details',
55
+ NOMINEE_DELETED_SUCCESS: 'Nominee deleted successfully',
56
+ NOMINEE_DELETED_FAILED: 'Failed to delete nominee',
57
+ NOMINEE_ADDED_SUCCESS: 'Nominee added successfully',
58
+ NOMINEE_ADDED_FAILED: 'Failed to add nominee',
59
+
60
+ // Validation messages
61
+ MAKE_NOMINATION_REQUIRED: 'Please specify if you want to make a nomination',
62
+ NOMINEE_TITLE_REQUIRED: 'Nominee title is required',
63
+ NOMINEE_NAME_REQUIRED: 'Nominee name is required',
64
+ RELATIONSHIP_REQUIRED: 'Relationship is required',
65
+ DATE_OF_BIRTH_REQUIRED: 'Date of birth is required',
66
+ INVALID_DATE_OF_BIRTH: 'Please enter a valid date of birth',
67
+ NOMINEE_AGE_RESTRICTION: 'Nominee must be at least 18 years old',
68
+
69
+ // Conditional messages
70
+ NOMINEE_FIELDS_HIDDEN: 'Nominee details are only required when nomination is made',
71
+ NOMINEE_FIELDS_CLEARED: 'Nominee fields cleared as nomination is not required',
72
+
73
+ // Instructions
74
+ NOMINEE_INSTRUCTIONS: 'Please provide nominee details if you wish to make a nomination',
75
+ NOMINEE_TITLE_INSTRUCTIONS: 'Select the appropriate title for the nominee',
76
+ NOMINEE_NAME_INSTRUCTIONS: 'Enter the full name of the nominee',
77
+ RELATIONSHIP_INSTRUCTIONS: 'Select your relationship with the nominee',
78
+ DATE_OF_BIRTH_INSTRUCTIONS: 'Enter the date of birth of the nominee',
79
+ PRINT_NAME_INSTRUCTIONS: 'Would you like the nominee’s name to be printed on the Fixed Deposit certificate? ',
80
+
81
+ // Information messages
82
+ NOMINEE_BENEFITS: 'Nominee will receive the FD amount in case of your demise',
83
+ NOMINEE_OPTIONAL: 'Nomination is optional but recommended',
84
+ NOMINEE_CAN_BE_CHANGED: 'Nominee details can be changed later if needed',
85
+
86
+ // Error messages
87
+ NOMINEE_SAVE_ERROR: 'Unable to save nominee details. Please check your information and try again.',
88
+ NOMINEE_UPDATE_ERROR: 'Unable to update nominee details. Please try again.',
89
+ NOMINEE_DELETE_ERROR: 'Unable to delete nominee. Please try again.',
90
+ } as const;
@@ -0,0 +1,42 @@
1
+ import { useAppSelector } from '../store';
2
+
3
+ // Custom hook for authentication management (simplified for interest rate API)
4
+ export const useAuth = () => {
5
+ // Get auth state from Redux store (placeholder for now)
6
+ const authState = useAppSelector((state) => (state as any).auth);
7
+
8
+ // Mock user data for now
9
+ const currentUser = {
10
+ id: '1',
11
+ name: 'Demo User',
12
+ email: 'demo@shriram.com',
13
+ };
14
+
15
+ return {
16
+ // Auth state
17
+ isAuthenticated: true, // Mock authenticated state
18
+ token: 'mock-token',
19
+ currentUser,
20
+
21
+ // Loading states
22
+ isLoading: false,
23
+ isLoggingOut: false,
24
+
25
+ // Error states
26
+ loginError: null,
27
+ userError: null,
28
+ hasError: false,
29
+
30
+ // Actions (mock implementations)
31
+ login: async (email: string, password: string) => {
32
+ return { token: 'mock-token', user: currentUser };
33
+ },
34
+ logout: async () => {
35
+ },
36
+ refetchUser: () => {
37
+ },
38
+
39
+ // Raw data
40
+ loginData: null,
41
+ };
42
+ };
@@ -0,0 +1,48 @@
1
+ import { useGetInterestRatesMutation } from '../api';
2
+ import { useAppSelector } from '../store';
3
+ import { useEffect } from 'react';
4
+ import { isSDKInitialized } from '../config/appDataConfig';
5
+
6
+ // Custom hook for Interest Rate data management
7
+ export const useFDData = () => {
8
+ // Get all interest rates
9
+ const [getInterestRates, {
10
+ data: interestRates,
11
+ error: interestRatesError,
12
+ isLoading: interestRatesLoading,
13
+ }] = useGetInterestRatesMutation();
14
+
15
+ // Trigger API call on mount
16
+ useEffect(() => {
17
+ // The API will automatically use app data if SDK is initialized
18
+ // If not initialized, it will use fallback values
19
+ getInterestRates({});
20
+ }, [getInterestRates]);
21
+
22
+ // Get current user (if available) - placeholder for now
23
+ const currentUser = useAppSelector((state) => (state as any).user?.currentUser);
24
+
25
+ return {
26
+ // Interest Rates data
27
+ interestRates: interestRates?.data?.sdrScheme || [],
28
+ fdrScheme: interestRates?.data?.fdrScheme || [],
29
+ interestRatesError,
30
+ interestRatesLoading,
31
+ refetchInterestRates: getInterestRates,
32
+
33
+ // User data
34
+ currentUser,
35
+
36
+ // Loading state
37
+ isLoading: interestRatesLoading,
38
+
39
+ // Error state
40
+ hasError: !!interestRatesError,
41
+
42
+ // Refresh all data
43
+ refreshAll: () => {
44
+ // The API will automatically use app data if SDK is initialized
45
+ getInterestRates({});
46
+ },
47
+ };
48
+ };