react-native-timacare 3.1.12-beta → 3.1.14-beta
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/commonjs/assets/svgs/ekyc_disable.svg +4 -0
- package/lib/commonjs/assets/svgs/expand.svg +8 -0
- package/lib/commonjs/assets/svgs/expand_up.svg +8 -0
- package/lib/commonjs/assets/svgs/index.js +1 -1
- package/lib/commonjs/assets/svgs/index.js.flow +14 -0
- package/lib/commonjs/assets/svgs/index.js.map +1 -1
- package/lib/commonjs/assets/svgs/money.svg +5 -0
- package/lib/commonjs/assets/svgs/sign_disable.svg +12 -0
- package/lib/commonjs/assets/svgs/sign_success.svg +12 -0
- package/lib/commonjs/assets/svgs/tima_16.svg +13 -0
- package/lib/commonjs/screens/home/index.js +1 -1
- package/lib/commonjs/screens/home/index.js.flow +2051 -1628
- package/lib/commonjs/screens/home/index.js.map +1 -1
- package/lib/commonjs/screens/liveness-v2/index.js +1 -1
- package/lib/commonjs/screens/liveness-v2/index.js.flow +10 -6
- package/lib/commonjs/screens/liveness-v2/index.js.map +1 -1
- package/lib/commonjs/screens/register/index.js +1 -1
- package/lib/commonjs/screens/register/index.js.flow +1 -1
- package/lib/commonjs/screens/toan-trinh-so/LoanInterestRate.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/LoanInterestRate.js.flow +123 -36
- package/lib/commonjs/screens/toan-trinh-so/LoanInterestRate.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/OCR.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/OCR.js.flow +3 -1
- package/lib/commonjs/screens/toan-trinh-so/OCR.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/RegisterCamera.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/RegisterCamera.js.flow +3 -1
- package/lib/commonjs/screens/toan-trinh-so/RegisterCamera.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/ReviewInformation.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/ReviewInformation.js.flow +539 -483
- package/lib/commonjs/screens/toan-trinh-so/ReviewInformation.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/ReviewInformationOther.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/ReviewInformationOther.js.flow +76 -57
- package/lib/commonjs/screens/toan-trinh-so/ReviewInformationOther.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/ReviewLoan.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/ReviewLoan.js.flow +58 -12
- package/lib/commonjs/screens/toan-trinh-so/ReviewLoan.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TTSOTP.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TTSOTP.js.flow +6 -7
- package/lib/commonjs/screens/toan-trinh-so/TTSOTP.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TTSSignLoan.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TTSSignLoan.js.flow +185 -50
- package/lib/commonjs/screens/toan-trinh-so/TTSSignLoan.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/VehicleCamera.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/VehicleCamera.js.flow +4 -1
- package/lib/commonjs/screens/toan-trinh-so/VehicleCamera.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/store.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/store.js.flow +23 -1
- package/lib/commonjs/screens/toan-trinh-so/store.js.map +1 -1
- package/lib/commonjs/services/api/api.js +1 -1
- package/lib/commonjs/services/api/api.js.flow +46 -0
- package/lib/commonjs/services/api/api.js.map +1 -1
- package/lib/commonjs/utils/index.js +1 -1
- package/lib/commonjs/utils/index.js.flow +51 -0
- package/lib/commonjs/utils/index.js.map +1 -1
- package/lib/module/assets/svgs/ekyc_disable.svg +4 -0
- package/lib/module/assets/svgs/expand.svg +8 -0
- package/lib/module/assets/svgs/expand_up.svg +8 -0
- package/lib/module/assets/svgs/index.js +1 -1
- package/lib/module/assets/svgs/index.js.map +1 -1
- package/lib/module/assets/svgs/money.svg +5 -0
- package/lib/module/assets/svgs/sign_disable.svg +12 -0
- package/lib/module/assets/svgs/sign_success.svg +12 -0
- package/lib/module/assets/svgs/tima_16.svg +13 -0
- package/lib/module/screens/home/index.js +1 -1
- package/lib/module/screens/home/index.js.map +1 -1
- package/lib/module/screens/liveness-v2/index.js +1 -1
- package/lib/module/screens/liveness-v2/index.js.map +1 -1
- package/lib/module/screens/register/index.js +1 -1
- package/lib/module/screens/toan-trinh-so/LoanInterestRate.js +1 -1
- package/lib/module/screens/toan-trinh-so/LoanInterestRate.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/OCR.js +1 -1
- package/lib/module/screens/toan-trinh-so/OCR.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/RegisterCamera.js +1 -1
- package/lib/module/screens/toan-trinh-so/RegisterCamera.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/ReviewInformation.js +1 -1
- package/lib/module/screens/toan-trinh-so/ReviewInformation.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/ReviewInformationOther.js +1 -1
- package/lib/module/screens/toan-trinh-so/ReviewInformationOther.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/ReviewLoan.js +1 -1
- package/lib/module/screens/toan-trinh-so/ReviewLoan.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/TTSOTP.js +1 -1
- package/lib/module/screens/toan-trinh-so/TTSOTP.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/TTSSignLoan.js +1 -1
- package/lib/module/screens/toan-trinh-so/TTSSignLoan.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/VehicleCamera.js +1 -1
- package/lib/module/screens/toan-trinh-so/VehicleCamera.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/store.js +1 -1
- package/lib/module/screens/toan-trinh-so/store.js.map +1 -1
- package/lib/module/services/api/api.js +1 -1
- package/lib/module/services/api/api.js.map +1 -1
- package/lib/module/utils/index.js +1 -1
- package/lib/module/utils/index.js.map +1 -1
- package/lib/typescript/assets/svgs/index.d.ts +8 -1
- package/lib/typescript/assets/svgs/index.d.ts.map +1 -1
- package/lib/typescript/screens/home/index.d.ts.map +1 -1
- package/lib/typescript/screens/liveness-v2/index.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/LoanInterestRate.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/OCR.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/RegisterCamera.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/ReviewInformation.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/ReviewInformationOther.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/ReviewLoan.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/TTSOTP.d.ts +1 -1
- package/lib/typescript/screens/toan-trinh-so/TTSOTP.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/TTSSignLoan.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/VehicleCamera.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/store.d.ts +2 -0
- package/lib/typescript/screens/toan-trinh-so/store.d.ts.map +1 -1
- package/lib/typescript/services/api/api.d.ts +48 -0
- package/lib/typescript/services/api/api.d.ts.map +1 -1
- package/lib/typescript/utils/index.d.ts +8 -0
- package/lib/typescript/utils/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/assets/svgs/ekyc_disable.svg +4 -0
- package/src/assets/svgs/expand.svg +8 -0
- package/src/assets/svgs/expand_up.svg +8 -0
- package/src/assets/svgs/index.tsx +14 -0
- package/src/assets/svgs/money.svg +5 -0
- package/src/assets/svgs/sign_disable.svg +12 -0
- package/src/assets/svgs/sign_success.svg +12 -0
- package/src/assets/svgs/tima_16.svg +13 -0
- package/src/screens/home/index.tsx +2051 -1628
- package/src/screens/liveness-v2/index.tsx +10 -6
- package/src/screens/register/index.tsx +1 -1
- package/src/screens/toan-trinh-so/LoanInterestRate.tsx +123 -36
- package/src/screens/toan-trinh-so/OCR.tsx +3 -1
- package/src/screens/toan-trinh-so/RegisterCamera.tsx +3 -1
- package/src/screens/toan-trinh-so/ReviewInformation.tsx +539 -483
- package/src/screens/toan-trinh-so/ReviewInformationOther.tsx +76 -57
- package/src/screens/toan-trinh-so/ReviewLoan.tsx +58 -12
- package/src/screens/toan-trinh-so/TTSOTP.tsx +6 -7
- package/src/screens/toan-trinh-so/TTSSignLoan.tsx +185 -50
- package/src/screens/toan-trinh-so/VehicleCamera.tsx +4 -1
- package/src/screens/toan-trinh-so/store.ts +23 -1
- package/src/services/api/api.ts +46 -0
- package/src/utils/index.tsx +51 -0
|
@@ -2867,5 +2867,51 @@ export class Api {
|
|
|
2867
2867
|
}
|
|
2868
2868
|
}
|
|
2869
2869
|
|
|
2870
|
+
async getPaymentPlan(id) {
|
|
2871
|
+
// make the api call
|
|
2872
|
+
const response: ApiResponse<any> = await this.apisauce.get(`api/v2.0/autode/payment_plan_tima?loanBriefId=${id}`)
|
|
2873
|
+
// the typical ways to die when calling an api
|
|
2874
|
+
if (!response.ok) {
|
|
2875
|
+
const problem = getGeneralApiProblem(response)
|
|
2876
|
+
if (problem) return problem
|
|
2877
|
+
}
|
|
2878
|
+
// transform the data into the format we are expecting
|
|
2879
|
+
try {
|
|
2880
|
+
return { kind: "ok", data: response.data }
|
|
2881
|
+
} catch {
|
|
2882
|
+
return { kind: "bad-data" }
|
|
2883
|
+
}
|
|
2884
|
+
}
|
|
2885
|
+
|
|
2886
|
+
async changePipeline(body) {
|
|
2887
|
+
// make the api call
|
|
2888
|
+
const response: ApiResponse<any> = await this.apisauce.post(`api/v2.0/autode/change_pipeline`, body)
|
|
2889
|
+
// the typical ways to die when calling an api
|
|
2890
|
+
if (!response.ok) {
|
|
2891
|
+
const problem = getGeneralApiProblem(response)
|
|
2892
|
+
if (problem) return problem
|
|
2893
|
+
}
|
|
2894
|
+
// transform the data into the format we are expecting
|
|
2895
|
+
try {
|
|
2896
|
+
return { kind: "ok", data: response.data }
|
|
2897
|
+
} catch {
|
|
2898
|
+
return { kind: "bad-data" }
|
|
2899
|
+
}
|
|
2900
|
+
}
|
|
2870
2901
|
|
|
2902
|
+
async getFirstPaymentTTS(id) {
|
|
2903
|
+
// make the api call
|
|
2904
|
+
const response: ApiResponse<any> = await this.apisauce.get(`api/v2.0/autode/get_first_payment_date?id=${id}`)
|
|
2905
|
+
// the typical ways to die when calling an api
|
|
2906
|
+
if (!response.ok) {
|
|
2907
|
+
const problem = getGeneralApiProblem(response)
|
|
2908
|
+
if (problem) return problem
|
|
2909
|
+
}
|
|
2910
|
+
// transform the data into the format we are expecting
|
|
2911
|
+
try {
|
|
2912
|
+
return { kind: "ok", data: response.data }
|
|
2913
|
+
} catch {
|
|
2914
|
+
return { kind: "bad-data" }
|
|
2915
|
+
}
|
|
2916
|
+
}
|
|
2871
2917
|
}
|