react-native-timacare 3.3.18 → 3.3.20

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 (103) hide show
  1. package/lib/commonjs/components/MHeader.js +1 -1
  2. package/lib/commonjs/components/MHeader.js.flow +1 -1
  3. package/lib/commonjs/components/keyboardspace/index.js +1 -1
  4. package/lib/commonjs/components/keyboardspace/index.js.flow +0 -2
  5. package/lib/commonjs/components/keyboardspace/index.js.map +1 -1
  6. package/lib/commonjs/screens/detail-loan/DetailLoanTima.js +1 -1
  7. package/lib/commonjs/screens/detail-loan/DetailLoanTima.js.flow +145 -35
  8. package/lib/commonjs/screens/detail-loan/DetailLoanTima.js.map +1 -1
  9. package/lib/commonjs/screens/detail-loan/Info.js +1 -1
  10. package/lib/commonjs/screens/detail-loan/Info.js.flow +16 -8
  11. package/lib/commonjs/screens/detail-loan/Info.js.map +1 -1
  12. package/lib/commonjs/screens/detail-loan/Payment.js +1 -1
  13. package/lib/commonjs/screens/detail-loan/Payment.js.flow +19 -7
  14. package/lib/commonjs/screens/detail-loan/Payment.js.map +1 -1
  15. package/lib/commonjs/screens/detail-loan/PaymentAll.js +1 -1
  16. package/lib/commonjs/screens/detail-loan/PaymentAll.js.flow +49 -9
  17. package/lib/commonjs/screens/detail-loan/PaymentAll.js.map +1 -1
  18. package/lib/commonjs/screens/detail-loan/PaymentInfo.js +1 -1
  19. package/lib/commonjs/screens/detail-loan/PaymentInfo.js.flow +735 -85
  20. package/lib/commonjs/screens/detail-loan/PaymentInfo.js.map +1 -1
  21. package/lib/commonjs/screens/detail-loan/ShowQrCode.js +1 -1
  22. package/lib/commonjs/screens/detail-loan/ShowQrCode.js.flow +678 -35
  23. package/lib/commonjs/screens/detail-loan/ShowQrCode.js.map +1 -1
  24. package/lib/commonjs/screens/detail-loan/index.js +1 -1
  25. package/lib/commonjs/screens/detail-loan/index.js.flow +37 -33
  26. package/lib/commonjs/screens/detail-loan/index.js.map +1 -1
  27. package/lib/commonjs/screens/guide-transfer-bank/TransferDetail.js +1 -1
  28. package/lib/commonjs/screens/guide-transfer-bank/TransferDetail.js.flow +41 -12
  29. package/lib/commonjs/screens/guide-transfer-bank/TransferDetail.js.map +1 -1
  30. package/lib/commonjs/screens/guide-transfer-bank/index.js +1 -1
  31. package/lib/commonjs/screens/guide-transfer-bank/index.js.flow +228 -237
  32. package/lib/commonjs/screens/guide-transfer-bank/index.js.map +1 -1
  33. package/lib/commonjs/screens/home/Store.js +1 -1
  34. package/lib/commonjs/screens/home/Store.js.flow +4 -1
  35. package/lib/commonjs/screens/home/Store.js.map +1 -1
  36. package/lib/commonjs/screens/home/index.js +1 -1
  37. package/lib/commonjs/screens/home/index.js.flow +15 -30
  38. package/lib/commonjs/screens/home/index.js.map +1 -1
  39. package/lib/commonjs/screens/liveness-v2/index.js +1 -1
  40. package/lib/commonjs/screens/liveness-v2/index.js.flow +4 -4
  41. package/lib/commonjs/screens/liveness-v2/index.js.map +1 -1
  42. package/lib/commonjs/services/api/api.js +1 -1
  43. package/lib/commonjs/services/api/api.js.flow +16 -0
  44. package/lib/commonjs/services/api/api.js.map +1 -1
  45. package/lib/module/components/MHeader.js +1 -1
  46. package/lib/module/components/keyboardspace/index.js +1 -1
  47. package/lib/module/components/keyboardspace/index.js.map +1 -1
  48. package/lib/module/screens/detail-loan/DetailLoanTima.js +1 -1
  49. package/lib/module/screens/detail-loan/DetailLoanTima.js.map +1 -1
  50. package/lib/module/screens/detail-loan/Info.js +1 -1
  51. package/lib/module/screens/detail-loan/Info.js.map +1 -1
  52. package/lib/module/screens/detail-loan/Payment.js +1 -1
  53. package/lib/module/screens/detail-loan/Payment.js.map +1 -1
  54. package/lib/module/screens/detail-loan/PaymentAll.js +1 -1
  55. package/lib/module/screens/detail-loan/PaymentAll.js.map +1 -1
  56. package/lib/module/screens/detail-loan/PaymentInfo.js +1 -1
  57. package/lib/module/screens/detail-loan/PaymentInfo.js.map +1 -1
  58. package/lib/module/screens/detail-loan/ShowQrCode.js +1 -1
  59. package/lib/module/screens/detail-loan/ShowQrCode.js.map +1 -1
  60. package/lib/module/screens/detail-loan/index.js +1 -1
  61. package/lib/module/screens/detail-loan/index.js.map +1 -1
  62. package/lib/module/screens/guide-transfer-bank/TransferDetail.js +1 -1
  63. package/lib/module/screens/guide-transfer-bank/TransferDetail.js.map +1 -1
  64. package/lib/module/screens/guide-transfer-bank/index.js +1 -1
  65. package/lib/module/screens/guide-transfer-bank/index.js.map +1 -1
  66. package/lib/module/screens/home/Store.js +1 -1
  67. package/lib/module/screens/home/Store.js.map +1 -1
  68. package/lib/module/screens/home/index.js +1 -1
  69. package/lib/module/screens/home/index.js.map +1 -1
  70. package/lib/module/screens/liveness-v2/index.js +1 -1
  71. package/lib/module/screens/liveness-v2/index.js.map +1 -1
  72. package/lib/module/services/api/api.js +1 -1
  73. package/lib/module/services/api/api.js.map +1 -1
  74. package/lib/typescript/components/keyboardspace/index.d.ts.map +1 -1
  75. package/lib/typescript/screens/detail-loan/DetailLoanTima.d.ts.map +1 -1
  76. package/lib/typescript/screens/detail-loan/Info.d.ts.map +1 -1
  77. package/lib/typescript/screens/detail-loan/Payment.d.ts.map +1 -1
  78. package/lib/typescript/screens/detail-loan/PaymentAll.d.ts.map +1 -1
  79. package/lib/typescript/screens/detail-loan/PaymentInfo.d.ts.map +1 -1
  80. package/lib/typescript/screens/detail-loan/ShowQrCode.d.ts.map +1 -1
  81. package/lib/typescript/screens/detail-loan/index.d.ts.map +1 -1
  82. package/lib/typescript/screens/guide-transfer-bank/TransferDetail.d.ts.map +1 -1
  83. package/lib/typescript/screens/guide-transfer-bank/index.d.ts.map +1 -1
  84. package/lib/typescript/screens/home/Store.d.ts.map +1 -1
  85. package/lib/typescript/screens/home/index.d.ts.map +1 -1
  86. package/lib/typescript/services/api/api.d.ts +16 -0
  87. package/lib/typescript/services/api/api.d.ts.map +1 -1
  88. package/package.json +2 -1
  89. package/src/components/MHeader.tsx +1 -1
  90. package/src/components/keyboardspace/index.tsx +0 -2
  91. package/src/screens/detail-loan/DetailLoanTima.tsx +145 -35
  92. package/src/screens/detail-loan/Info.tsx +16 -8
  93. package/src/screens/detail-loan/Payment.tsx +19 -7
  94. package/src/screens/detail-loan/PaymentAll.tsx +49 -9
  95. package/src/screens/detail-loan/PaymentInfo.tsx +735 -85
  96. package/src/screens/detail-loan/ShowQrCode.tsx +678 -35
  97. package/src/screens/detail-loan/index.tsx +37 -33
  98. package/src/screens/guide-transfer-bank/TransferDetail.tsx +41 -12
  99. package/src/screens/guide-transfer-bank/index.tsx +228 -237
  100. package/src/screens/home/Store.tsx +4 -1
  101. package/src/screens/home/index.tsx +15 -30
  102. package/src/screens/liveness-v2/index.tsx +4 -4
  103. package/src/services/api/api.ts +16 -0
@@ -3327,4 +3327,20 @@ export class Api {
3327
3327
  return { kind: "bad-data" }
3328
3328
  }
3329
3329
  }
3330
+
3331
+ async getMoneyCloseLoan(id) {
3332
+ // make the api call
3333
+ const response: ApiResponse<any> = await this.apisauce.get(`api/v2.0/loanbrief/get_money_close_loan?loanBriefId=${id}`)
3334
+ // the typical ways to die when calling an api
3335
+ if (!response.ok) {
3336
+ const problem = getGeneralApiProblem(response)
3337
+ if (problem) return problem
3338
+ }
3339
+ // transform the data into the format we are expecting
3340
+ try {
3341
+ return { kind: "ok", data: response.data }
3342
+ } catch {
3343
+ return { kind: "bad-data" }
3344
+ }
3345
+ }
3330
3346
  }