@omniretail/lending 0.0.0-stage → 3.0.0
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/README.md +322 -2
- package/lib/assets/fonts/GorditaBold.ttf +0 -0
- package/lib/assets/fonts/GorditaMedium.ttf +0 -0
- package/lib/assets/fonts/GorditaRegular.ttf +0 -0
- package/lib/assets/lending/close.png +0 -0
- package/lib/assets/lending/icon-apply.png +0 -0
- package/lib/assets/lending/icon-approval-clock.png +0 -0
- package/lib/assets/lending/icon-clock.png +0 -0
- package/lib/assets/lending/icon-close.png +0 -0
- package/lib/assets/lending/icon-copy.png +0 -0
- package/lib/assets/lending/icon-download.png +0 -0
- package/lib/assets/lending/icon-eye.png +0 -0
- package/lib/assets/lending/icon-filter.png +0 -0
- package/lib/assets/lending/icon-history.png +0 -0
- package/lib/assets/lending/icon-megaphone.png +0 -0
- package/lib/assets/lending/icon-payment-success.png +0 -0
- package/lib/assets/lending/icon-plan-check.png +0 -0
- package/lib/assets/lending/icon-plus.png +0 -0
- package/lib/assets/lending/icon-radio-on.png +0 -0
- package/lib/assets/lending/icon-repay.png +0 -0
- package/lib/assets/lending/icon-statement-synced.png +0 -0
- package/lib/assets/lending/icon-step-done.png +0 -0
- package/lib/assets/lending/icon-step-pending.png +0 -0
- package/lib/assets/lending/icon-submitted-check.png +0 -0
- package/lib/assets/lending/icon-synced.png +0 -0
- package/lib/assets/lending/icon-tx-credit.png +0 -0
- package/lib/assets/lending/icon-tx-debit.png +0 -0
- package/lib/assets/lending/icon-upgrade.png +0 -0
- package/lib/assets/lending/icon-upload.png +0 -0
- package/lib/assets/lending/illo-auth-details.png +0 -0
- package/lib/assets/lending/illo-brand-selection.png +0 -0
- package/lib/assets/lending/illo-coins.png +0 -0
- package/lib/assets/lending/illo-credit-amount.png +0 -0
- package/lib/assets/lending/illo-customer-agreement.png +0 -0
- package/lib/assets/lending/illo-hand.png +0 -0
- package/lib/assets/lending/illo-limit-pending.png +0 -0
- package/lib/assets/lending/illo-limit-rejected.png +0 -0
- package/lib/assets/lending/illo-manufacturer.png +0 -0
- package/lib/assets/lending/illo-no-active-credit.png +0 -0
- package/lib/assets/lending/illo-proof-account.png +0 -0
- package/lib/assets/lending/illo-repay-phone.png +0 -0
- package/lib/assets/lending/illo-request-pending.png +0 -0
- package/lib/assets/lending/logo-cbn.png +0 -0
- package/lib/assets/lending/logo-collections.png +0 -0
- package/lib/assets/lending/logo-fmn.png +0 -0
- package/lib/assets/lending/logo-golden-penny.png +0 -0
- package/lib/assets/lending/logo-guinness.png +0 -0
- package/lib/assets/lending/logo-ndic.png +0 -0
- package/lib/assets/lending/logo-nestle.png +0 -0
- package/lib/assets/lending/logo-omnipay.png +0 -0
- package/lib/assets/lending/sig-beneficiary.png +0 -0
- package/lib/assets/lending/sig-omnipay.png +0 -0
- package/lib/assets/lending/watermark-receipt.png +0 -0
- package/lib/components/IconBack.d.ts +7 -0
- package/lib/components/IconBack.d.ts.map +1 -0
- package/lib/components/IconBack.js +17 -0
- package/lib/components/IconBack.js.map +1 -0
- package/lib/components/LicensingFooter.d.ts +6 -0
- package/lib/components/LicensingFooter.d.ts.map +1 -0
- package/lib/components/LicensingFooter.js +76 -0
- package/lib/components/LicensingFooter.js.map +1 -0
- package/lib/components/ScreenHeader.d.ts +10 -0
- package/lib/components/ScreenHeader.d.ts.map +1 -0
- package/lib/components/ScreenHeader.js +72 -0
- package/lib/components/ScreenHeader.js.map +1 -0
- package/lib/components/index.d.ts +5 -0
- package/lib/components/index.d.ts.map +1 -0
- package/lib/components/index.js +4 -0
- package/lib/components/index.js.map +1 -0
- package/lib/flows/lending/AgreementSigningSheet.d.ts +8 -0
- package/lib/flows/lending/AgreementSigningSheet.d.ts.map +1 -0
- package/lib/flows/lending/AgreementSigningSheet.js +178 -0
- package/lib/flows/lending/AgreementSigningSheet.js.map +1 -0
- package/lib/flows/lending/ApplyCreditFlow.d.ts +6 -0
- package/lib/flows/lending/ApplyCreditFlow.d.ts.map +1 -0
- package/lib/flows/lending/ApplyCreditFlow.js +64 -0
- package/lib/flows/lending/ApplyCreditFlow.js.map +1 -0
- package/lib/flows/lending/AuthorisationDetailsSheet.d.ts +9 -0
- package/lib/flows/lending/AuthorisationDetailsSheet.d.ts.map +1 -0
- package/lib/flows/lending/AuthorisationDetailsSheet.js +94 -0
- package/lib/flows/lending/AuthorisationDetailsSheet.js.map +1 -0
- package/lib/flows/lending/BankListSheet.d.ts +12 -0
- package/lib/flows/lending/BankListSheet.d.ts.map +1 -0
- package/lib/flows/lending/BankListSheet.js +105 -0
- package/lib/flows/lending/BankListSheet.js.map +1 -0
- package/lib/flows/lending/BankStatementSyncedSheet.d.ts +7 -0
- package/lib/flows/lending/BankStatementSyncedSheet.d.ts.map +1 -0
- package/lib/flows/lending/BankStatementSyncedSheet.js +71 -0
- package/lib/flows/lending/BankStatementSyncedSheet.js.map +1 -0
- package/lib/flows/lending/BottomSheet.d.ts +11 -0
- package/lib/flows/lending/BottomSheet.d.ts.map +1 -0
- package/lib/flows/lending/BottomSheet.js +72 -0
- package/lib/flows/lending/BottomSheet.js.map +1 -0
- package/lib/flows/lending/BrandCreditOverview.d.ts +6 -0
- package/lib/flows/lending/BrandCreditOverview.d.ts.map +1 -0
- package/lib/flows/lending/BrandCreditOverview.js +43 -0
- package/lib/flows/lending/BrandCreditOverview.js.map +1 -0
- package/lib/flows/lending/BrandLimitCard.d.ts +19 -0
- package/lib/flows/lending/BrandLimitCard.d.ts.map +1 -0
- package/lib/flows/lending/BrandLimitCard.js +122 -0
- package/lib/flows/lending/BrandLimitCard.js.map +1 -0
- package/lib/flows/lending/BrandSelectionSheet.d.ts +10 -0
- package/lib/flows/lending/BrandSelectionSheet.d.ts.map +1 -0
- package/lib/flows/lending/BrandSelectionSheet.js +88 -0
- package/lib/flows/lending/BrandSelectionSheet.js.map +1 -0
- package/lib/flows/lending/CompletePaymentSheet.d.ts +11 -0
- package/lib/flows/lending/CompletePaymentSheet.d.ts.map +1 -0
- package/lib/flows/lending/CompletePaymentSheet.js +139 -0
- package/lib/flows/lending/CompletePaymentSheet.js.map +1 -0
- package/lib/flows/lending/ConfirmStatusSheet.d.ts +11 -0
- package/lib/flows/lending/ConfirmStatusSheet.d.ts.map +1 -0
- package/lib/flows/lending/ConfirmStatusSheet.js +63 -0
- package/lib/flows/lending/ConfirmStatusSheet.js.map +1 -0
- package/lib/flows/lending/CreditAgreementSheet.d.ts +13 -0
- package/lib/flows/lending/CreditAgreementSheet.d.ts.map +1 -0
- package/lib/flows/lending/CreditAgreementSheet.js +242 -0
- package/lib/flows/lending/CreditAgreementSheet.js.map +1 -0
- package/lib/flows/lending/CreditAmountSheet.d.ts +9 -0
- package/lib/flows/lending/CreditAmountSheet.d.ts.map +1 -0
- package/lib/flows/lending/CreditAmountSheet.js +96 -0
- package/lib/flows/lending/CreditAmountSheet.js.map +1 -0
- package/lib/flows/lending/CreditBreakdownSheet.d.ts +8 -0
- package/lib/flows/lending/CreditBreakdownSheet.d.ts.map +1 -0
- package/lib/flows/lending/CreditBreakdownSheet.js +82 -0
- package/lib/flows/lending/CreditBreakdownSheet.js.map +1 -0
- package/lib/flows/lending/CreditFlow.d.ts +12 -0
- package/lib/flows/lending/CreditFlow.d.ts.map +1 -0
- package/lib/flows/lending/CreditFlow.js +458 -0
- package/lib/flows/lending/CreditFlow.js.map +1 -0
- package/lib/flows/lending/CreditHistory.screen.d.ts +10 -0
- package/lib/flows/lending/CreditHistory.screen.d.ts.map +1 -0
- package/lib/flows/lending/CreditHistory.screen.js +138 -0
- package/lib/flows/lending/CreditHistory.screen.js.map +1 -0
- package/lib/flows/lending/CreditReceipt.screen.d.ts +12 -0
- package/lib/flows/lending/CreditReceipt.screen.d.ts.map +1 -0
- package/lib/flows/lending/CreditReceipt.screen.js +73 -0
- package/lib/flows/lending/CreditReceipt.screen.js.map +1 -0
- package/lib/flows/lending/CreditUpgrade.screen.d.ts +12 -0
- package/lib/flows/lending/CreditUpgrade.screen.d.ts.map +1 -0
- package/lib/flows/lending/CreditUpgrade.screen.js +168 -0
- package/lib/flows/lending/CreditUpgrade.screen.js.map +1 -0
- package/lib/flows/lending/DowngradeLimitSheet.d.ts +8 -0
- package/lib/flows/lending/DowngradeLimitSheet.d.ts.map +1 -0
- package/lib/flows/lending/DowngradeLimitSheet.js +103 -0
- package/lib/flows/lending/DowngradeLimitSheet.js.map +1 -0
- package/lib/flows/lending/FindCreditSheet.d.ts +11 -0
- package/lib/flows/lending/FindCreditSheet.d.ts.map +1 -0
- package/lib/flows/lending/FindCreditSheet.js +140 -0
- package/lib/flows/lending/FindCreditSheet.js.map +1 -0
- package/lib/flows/lending/FlatLoanAgreementBody.d.ts +10 -0
- package/lib/flows/lending/FlatLoanAgreementBody.d.ts.map +1 -0
- package/lib/flows/lending/FlatLoanAgreementBody.js +224 -0
- package/lib/flows/lending/FlatLoanAgreementBody.js.map +1 -0
- package/lib/flows/lending/FlatLoanDetailsSheet.d.ts +6 -0
- package/lib/flows/lending/FlatLoanDetailsSheet.d.ts.map +1 -0
- package/lib/flows/lending/FlatLoanDetailsSheet.js +127 -0
- package/lib/flows/lending/FlatLoanDetailsSheet.js.map +1 -0
- package/lib/flows/lending/GetStatementSheet.d.ts +6 -0
- package/lib/flows/lending/GetStatementSheet.d.ts.map +1 -0
- package/lib/flows/lending/GetStatementSheet.js +90 -0
- package/lib/flows/lending/GetStatementSheet.js.map +1 -0
- package/lib/flows/lending/HistoryFilterSheet.d.ts +6 -0
- package/lib/flows/lending/HistoryFilterSheet.d.ts.map +1 -0
- package/lib/flows/lending/HistoryFilterSheet.js +140 -0
- package/lib/flows/lending/HistoryFilterSheet.js.map +1 -0
- package/lib/flows/lending/IconClose.d.ts +6 -0
- package/lib/flows/lending/IconClose.d.ts.map +1 -0
- package/lib/flows/lending/IconClose.js +11 -0
- package/lib/flows/lending/IconClose.js.map +1 -0
- package/lib/flows/lending/IconEyeOpen.d.ts +4 -0
- package/lib/flows/lending/IconEyeOpen.d.ts.map +1 -0
- package/lib/flows/lending/IconEyeOpen.js +11 -0
- package/lib/flows/lending/IconEyeOpen.js.map +1 -0
- package/lib/flows/lending/IconPayArrow.d.ts +5 -0
- package/lib/flows/lending/IconPayArrow.d.ts.map +1 -0
- package/lib/flows/lending/IconPayArrow.js +10 -0
- package/lib/flows/lending/IconPayArrow.js.map +1 -0
- package/lib/flows/lending/IconPinStar.d.ts +10 -0
- package/lib/flows/lending/IconPinStar.d.ts.map +1 -0
- package/lib/flows/lending/IconPinStar.js +11 -0
- package/lib/flows/lending/IconPinStar.js.map +1 -0
- package/lib/flows/lending/IncreaseSpendingLimitSheet.d.ts +6 -0
- package/lib/flows/lending/IncreaseSpendingLimitSheet.d.ts.map +1 -0
- package/lib/flows/lending/IncreaseSpendingLimitSheet.js +115 -0
- package/lib/flows/lending/IncreaseSpendingLimitSheet.js.map +1 -0
- package/lib/flows/lending/Lending.screen.d.ts +12 -0
- package/lib/flows/lending/Lending.screen.d.ts.map +1 -0
- package/lib/flows/lending/Lending.screen.js +244 -0
- package/lib/flows/lending/Lending.screen.js.map +1 -0
- package/lib/flows/lending/LendingDetails.screen.d.ts +5 -0
- package/lib/flows/lending/LendingDetails.screen.d.ts.map +1 -0
- package/lib/flows/lending/LendingDetails.screen.js +34 -0
- package/lib/flows/lending/LendingDetails.screen.js.map +1 -0
- package/lib/flows/lending/LimitHomeWithLimit.screen.d.ts +17 -0
- package/lib/flows/lending/LimitHomeWithLimit.screen.d.ts.map +1 -0
- package/lib/flows/lending/LimitHomeWithLimit.screen.js +295 -0
- package/lib/flows/lending/LimitHomeWithLimit.screen.js.map +1 -0
- package/lib/flows/lending/ListSearchField.d.ts +8 -0
- package/lib/flows/lending/ListSearchField.d.ts.map +1 -0
- package/lib/flows/lending/ListSearchField.js +37 -0
- package/lib/flows/lending/ListSearchField.js.map +1 -0
- package/lib/flows/lending/ManufacturerListSheet.d.ts +7 -0
- package/lib/flows/lending/ManufacturerListSheet.d.ts.map +1 -0
- package/lib/flows/lending/ManufacturerListSheet.js +83 -0
- package/lib/flows/lending/ManufacturerListSheet.js.map +1 -0
- package/lib/flows/lending/ManufacturerStatementSheet.d.ts +15 -0
- package/lib/flows/lending/ManufacturerStatementSheet.d.ts.map +1 -0
- package/lib/flows/lending/ManufacturerStatementSheet.js +177 -0
- package/lib/flows/lending/ManufacturerStatementSheet.js.map +1 -0
- package/lib/flows/lending/PaymentSuccessfulSheet.d.ts +6 -0
- package/lib/flows/lending/PaymentSuccessfulSheet.d.ts.map +1 -0
- package/lib/flows/lending/PaymentSuccessfulSheet.js +56 -0
- package/lib/flows/lending/PaymentSuccessfulSheet.js.map +1 -0
- package/lib/flows/lending/ProofOfAccountSheet.d.ts +23 -0
- package/lib/flows/lending/ProofOfAccountSheet.d.ts.map +1 -0
- package/lib/flows/lending/ProofOfAccountSheet.js +213 -0
- package/lib/flows/lending/ProofOfAccountSheet.js.map +1 -0
- package/lib/flows/lending/ReferScreenChrome.d.ts +8 -0
- package/lib/flows/lending/ReferScreenChrome.d.ts.map +1 -0
- package/lib/flows/lending/ReferScreenChrome.js +31 -0
- package/lib/flows/lending/ReferScreenChrome.js.map +1 -0
- package/lib/flows/lending/ReferralCodeSheet.d.ts +11 -0
- package/lib/flows/lending/ReferralCodeSheet.d.ts.map +1 -0
- package/lib/flows/lending/ReferralCodeSheet.js +137 -0
- package/lib/flows/lending/ReferralCodeSheet.js.map +1 -0
- package/lib/flows/lending/RepayCredit.screen.d.ts +6 -0
- package/lib/flows/lending/RepayCredit.screen.d.ts.map +1 -0
- package/lib/flows/lending/RepayCredit.screen.js +352 -0
- package/lib/flows/lending/RepayCredit.screen.js.map +1 -0
- package/lib/flows/lending/RepayErrorSheet.d.ts +6 -0
- package/lib/flows/lending/RepayErrorSheet.d.ts.map +1 -0
- package/lib/flows/lending/RepayErrorSheet.js +71 -0
- package/lib/flows/lending/RepayErrorSheet.js.map +1 -0
- package/lib/flows/lending/RepaymentPlanSheet.d.ts +8 -0
- package/lib/flows/lending/RepaymentPlanSheet.d.ts.map +1 -0
- package/lib/flows/lending/RepaymentPlanSheet.js +49 -0
- package/lib/flows/lending/RepaymentPlanSheet.js.map +1 -0
- package/lib/flows/lending/RequestPendingSheet.d.ts +9 -0
- package/lib/flows/lending/RequestPendingSheet.d.ts.map +1 -0
- package/lib/flows/lending/RequestPendingSheet.js +109 -0
- package/lib/flows/lending/RequestPendingSheet.js.map +1 -0
- package/lib/flows/lending/SubLimitEmpty.d.ts +5 -0
- package/lib/flows/lending/SubLimitEmpty.d.ts.map +1 -0
- package/lib/flows/lending/SubLimitEmpty.js +65 -0
- package/lib/flows/lending/SubLimitEmpty.js.map +1 -0
- package/lib/flows/lending/Transactions.screen.d.ts +5 -0
- package/lib/flows/lending/Transactions.screen.d.ts.map +1 -0
- package/lib/flows/lending/Transactions.screen.js +124 -0
- package/lib/flows/lending/Transactions.screen.js.map +1 -0
- package/lib/flows/lending/agreements/CustomerAgreementBody.d.ts +8 -0
- package/lib/flows/lending/agreements/CustomerAgreementBody.d.ts.map +1 -0
- package/lib/flows/lending/agreements/CustomerAgreementBody.js +35 -0
- package/lib/flows/lending/agreements/CustomerAgreementBody.js.map +1 -0
- package/lib/flows/lending/agreements/agreementFormat.d.ts +16 -0
- package/lib/flows/lending/agreements/agreementFormat.d.ts.map +1 -0
- package/lib/flows/lending/agreements/agreementFormat.js +73 -0
- package/lib/flows/lending/agreements/agreementFormat.js.map +1 -0
- package/lib/flows/lending/agreements/agreementPrintHtml.d.ts +7 -0
- package/lib/flows/lending/agreements/agreementPrintHtml.d.ts.map +1 -0
- package/lib/flows/lending/agreements/agreementPrintHtml.generated.d.ts +7 -0
- package/lib/flows/lending/agreements/agreementPrintHtml.generated.d.ts.map +1 -0
- package/lib/flows/lending/agreements/agreementPrintHtml.generated.js +5520 -0
- package/lib/flows/lending/agreements/agreementPrintHtml.generated.js.map +1 -0
- package/lib/flows/lending/agreements/agreementPrintHtml.js +32 -0
- package/lib/flows/lending/agreements/agreementPrintHtml.js.map +1 -0
- package/lib/flows/lending/agreements/agreementStyles.d.ts +92 -0
- package/lib/flows/lending/agreements/agreementStyles.d.ts.map +1 -0
- package/lib/flows/lending/agreements/agreementStyles.js +70 -0
- package/lib/flows/lending/agreements/agreementStyles.js.map +1 -0
- package/lib/flows/lending/agreements/agreementTypes.d.ts +11 -0
- package/lib/flows/lending/agreements/agreementTypes.d.ts.map +1 -0
- package/lib/flows/lending/agreements/agreementTypes.js +2 -0
- package/lib/flows/lending/agreements/agreementTypes.js.map +1 -0
- package/lib/flows/lending/agreements/generalAgreement.d.ts +4 -0
- package/lib/flows/lending/agreements/generalAgreement.d.ts.map +1 -0
- package/lib/flows/lending/agreements/generalAgreement.js +14 -0
- package/lib/flows/lending/agreements/generalAgreement.js.map +1 -0
- package/lib/flows/lending/agreements/generalAgreementV2.d.ts +4 -0
- package/lib/flows/lending/agreements/generalAgreementV2.d.ts.map +1 -0
- package/lib/flows/lending/agreements/generalAgreementV2.js +14 -0
- package/lib/flows/lending/agreements/generalAgreementV2.js.map +1 -0
- package/lib/flows/lending/agreements/generalAgreementV3.d.ts +4 -0
- package/lib/flows/lending/agreements/generalAgreementV3.d.ts.map +1 -0
- package/lib/flows/lending/agreements/generalAgreementV3.js +14 -0
- package/lib/flows/lending/agreements/generalAgreementV3.js.map +1 -0
- package/lib/flows/lending/agreements/generalAgreementV4.d.ts +4 -0
- package/lib/flows/lending/agreements/generalAgreementV4.d.ts.map +1 -0
- package/lib/flows/lending/agreements/generalAgreementV4.js +14 -0
- package/lib/flows/lending/agreements/generalAgreementV4.js.map +1 -0
- package/lib/flows/lending/agreements/generalAgreementV5.d.ts +4 -0
- package/lib/flows/lending/agreements/generalAgreementV5.d.ts.map +1 -0
- package/lib/flows/lending/agreements/generalAgreementV5.js +14 -0
- package/lib/flows/lending/agreements/generalAgreementV5.js.map +1 -0
- package/lib/flows/lending/agreements/ghanaAgreement.d.ts +4 -0
- package/lib/flows/lending/agreements/ghanaAgreement.d.ts.map +1 -0
- package/lib/flows/lending/agreements/ghanaAgreement.js +14 -0
- package/lib/flows/lending/agreements/ghanaAgreement.js.map +1 -0
- package/lib/flows/lending/agreements/mcplAgreement.d.ts +4 -0
- package/lib/flows/lending/agreements/mcplAgreement.d.ts.map +1 -0
- package/lib/flows/lending/agreements/mcplAgreement.js +14 -0
- package/lib/flows/lending/agreements/mcplAgreement.js.map +1 -0
- package/lib/flows/lending/agreements/mcplAgreementV2.d.ts +4 -0
- package/lib/flows/lending/agreements/mcplAgreementV2.d.ts.map +1 -0
- package/lib/flows/lending/agreements/mcplAgreementV2.js +14 -0
- package/lib/flows/lending/agreements/mcplAgreementV2.js.map +1 -0
- package/lib/flows/lending/agreements/omnibizAgreement.d.ts +4 -0
- package/lib/flows/lending/agreements/omnibizAgreement.d.ts.map +1 -0
- package/lib/flows/lending/agreements/omnibizAgreement.js +14 -0
- package/lib/flows/lending/agreements/omnibizAgreement.js.map +1 -0
- package/lib/flows/lending/agreements/omnibizAgreementV2.d.ts +4 -0
- package/lib/flows/lending/agreements/omnibizAgreementV2.d.ts.map +1 -0
- package/lib/flows/lending/agreements/omnibizAgreementV2.js +14 -0
- package/lib/flows/lending/agreements/omnibizAgreementV2.js.map +1 -0
- package/lib/flows/lending/agreements/pickAgreementKind.d.ts +13 -0
- package/lib/flows/lending/agreements/pickAgreementKind.d.ts.map +1 -0
- package/lib/flows/lending/agreements/pickAgreementKind.js +43 -0
- package/lib/flows/lending/agreements/pickAgreementKind.js.map +1 -0
- package/lib/flows/lending/downloadDisplayedAgreement.d.ts +13 -0
- package/lib/flows/lending/downloadDisplayedAgreement.d.ts.map +1 -0
- package/lib/flows/lending/downloadDisplayedAgreement.js +48 -0
- package/lib/flows/lending/downloadDisplayedAgreement.js.map +1 -0
- package/lib/flows/lending/ghanaBanks.d.ts +3 -0
- package/lib/flows/lending/ghanaBanks.d.ts.map +1 -0
- package/lib/flows/lending/ghanaBanks.js +7 -0
- package/lib/flows/lending/ghanaBanks.js.map +1 -0
- package/lib/flows/lending/inventoryCreditAgreementCopy.d.ts +4 -0
- package/lib/flows/lending/inventoryCreditAgreementCopy.d.ts.map +1 -0
- package/lib/flows/lending/inventoryCreditAgreementCopy.js +117 -0
- package/lib/flows/lending/inventoryCreditAgreementCopy.js.map +1 -0
- package/lib/flows/lending/manufacturers.d.ts +11 -0
- package/lib/flows/lending/manufacturers.d.ts.map +1 -0
- package/lib/flows/lending/manufacturers.js +7 -0
- package/lib/flows/lending/manufacturers.js.map +1 -0
- package/lib/flows/lending/useAccountNameInquiry.d.ts +5 -0
- package/lib/flows/lending/useAccountNameInquiry.d.ts.map +1 -0
- package/lib/flows/lending/useAccountNameInquiry.js +35 -0
- package/lib/flows/lending/useAccountNameInquiry.js.map +1 -0
- package/lib/index.d.ts +8 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +7 -0
- package/lib/index.js.map +1 -0
- package/lib/sdk/SDKRoot.d.ts +6 -0
- package/lib/sdk/SDKRoot.d.ts.map +1 -0
- package/lib/sdk/SDKRoot.js +28 -0
- package/lib/sdk/SDKRoot.js.map +1 -0
- package/lib/sdk/bootstrap/SDKConfigProvider.d.ts +7 -0
- package/lib/sdk/bootstrap/SDKConfigProvider.d.ts.map +1 -0
- package/lib/sdk/bootstrap/SDKConfigProvider.js +132 -0
- package/lib/sdk/bootstrap/SDKConfigProvider.js.map +1 -0
- package/lib/sdk/bootstrap/bootstrapScreens.d.ts +8 -0
- package/lib/sdk/bootstrap/bootstrapScreens.d.ts.map +1 -0
- package/lib/sdk/bootstrap/bootstrapScreens.js +44 -0
- package/lib/sdk/bootstrap/bootstrapScreens.js.map +1 -0
- package/lib/sdk/configIdentity.d.ts +4 -0
- package/lib/sdk/configIdentity.d.ts.map +1 -0
- package/lib/sdk/configIdentity.js +17 -0
- package/lib/sdk/configIdentity.js.map +1 -0
- package/lib/sdk/providers/ApplicationFlowProvider.d.ts +9 -0
- package/lib/sdk/providers/ApplicationFlowProvider.d.ts.map +1 -0
- package/lib/sdk/providers/ApplicationFlowProvider.js +21 -0
- package/lib/sdk/providers/ApplicationFlowProvider.js.map +1 -0
- package/lib/sdk/providers/BrandColorProvider.d.ts +19 -0
- package/lib/sdk/providers/BrandColorProvider.d.ts.map +1 -0
- package/lib/sdk/providers/BrandColorProvider.js +24 -0
- package/lib/sdk/providers/BrandColorProvider.js.map +1 -0
- package/lib/sdk/providers/PayLimitProvider.d.ts +2 -0
- package/lib/sdk/providers/PayLimitProvider.d.ts.map +1 -0
- package/lib/sdk/providers/PayLimitProvider.js +2 -0
- package/lib/sdk/providers/PayLimitProvider.js.map +1 -0
- package/lib/sdk/providers/SDKFontProvider.d.ts +5 -0
- package/lib/sdk/providers/SDKFontProvider.d.ts.map +1 -0
- package/lib/sdk/providers/SDKFontProvider.js +23 -0
- package/lib/sdk/providers/SDKFontProvider.js.map +1 -0
- package/lib/sdk/providers/SDKProviders.d.ts +6 -0
- package/lib/sdk/providers/SDKProviders.d.ts.map +1 -0
- package/lib/sdk/providers/SDKProviders.js +10 -0
- package/lib/sdk/providers/SDKProviders.js.map +1 -0
- package/lib/sdk/providers/ToastProvider.d.ts +5 -0
- package/lib/sdk/providers/ToastProvider.d.ts.map +1 -0
- package/lib/sdk/providers/ToastProvider.js +53 -0
- package/lib/sdk/providers/ToastProvider.js.map +1 -0
- package/lib/sdk/screens/InterceptAndToastScreen.d.ts +6 -0
- package/lib/sdk/screens/InterceptAndToastScreen.d.ts.map +1 -0
- package/lib/sdk/screens/InterceptAndToastScreen.js +91 -0
- package/lib/sdk/screens/InterceptAndToastScreen.js.map +1 -0
- package/lib/sdk/screens/registry.d.ts +42 -0
- package/lib/sdk/screens/registry.d.ts.map +1 -0
- package/lib/sdk/screens/registry.js +41 -0
- package/lib/sdk/screens/registry.js.map +1 -0
- package/lib/sdk/types.d.ts +104 -0
- package/lib/sdk/types.d.ts.map +1 -0
- package/lib/sdk/types.js +48 -0
- package/lib/sdk/types.js.map +1 -0
- package/lib/services/apply/accountNameInquiry.d.ts +6 -0
- package/lib/services/apply/accountNameInquiry.d.ts.map +1 -0
- package/lib/services/apply/accountNameInquiry.js +45 -0
- package/lib/services/apply/accountNameInquiry.js.map +1 -0
- package/lib/services/apply/applicationFlow.d.ts +21 -0
- package/lib/services/apply/applicationFlow.d.ts.map +1 -0
- package/lib/services/apply/applicationFlow.js +96 -0
- package/lib/services/apply/applicationFlow.js.map +1 -0
- package/lib/services/apply/bankStatement.d.ts +55 -0
- package/lib/services/apply/bankStatement.d.ts.map +1 -0
- package/lib/services/apply/bankStatement.js +154 -0
- package/lib/services/apply/bankStatement.js.map +1 -0
- package/lib/services/apply/creditTierUpgradeStatus.d.ts +10 -0
- package/lib/services/apply/creditTierUpgradeStatus.d.ts.map +1 -0
- package/lib/services/apply/creditTierUpgradeStatus.js +74 -0
- package/lib/services/apply/creditTierUpgradeStatus.js.map +1 -0
- package/lib/services/apply/customerAgreement.d.ts +42 -0
- package/lib/services/apply/customerAgreement.d.ts.map +1 -0
- package/lib/services/apply/customerAgreement.js +190 -0
- package/lib/services/apply/customerAgreement.js.map +1 -0
- package/lib/services/apply/customerProduct.d.ts +10 -0
- package/lib/services/apply/customerProduct.d.ts.map +1 -0
- package/lib/services/apply/customerProduct.js +62 -0
- package/lib/services/apply/customerProduct.js.map +1 -0
- package/lib/services/apply/customerUpgradeDetails.d.ts +6 -0
- package/lib/services/apply/customerUpgradeDetails.d.ts.map +1 -0
- package/lib/services/apply/customerUpgradeDetails.js +35 -0
- package/lib/services/apply/customerUpgradeDetails.js.map +1 -0
- package/lib/services/apply/flatLoanAmountDue.d.ts +14 -0
- package/lib/services/apply/flatLoanAmountDue.d.ts.map +1 -0
- package/lib/services/apply/flatLoanAmountDue.js +68 -0
- package/lib/services/apply/flatLoanAmountDue.js.map +1 -0
- package/lib/services/apply/getLoans.d.ts +55 -0
- package/lib/services/apply/getLoans.d.ts.map +1 -0
- package/lib/services/apply/getLoans.js +116 -0
- package/lib/services/apply/getLoans.js.map +1 -0
- package/lib/services/apply/getPaylaterTransactions.d.ts +9 -0
- package/lib/services/apply/getPaylaterTransactions.d.ts.map +1 -0
- package/lib/services/apply/getPaylaterTransactions.js +61 -0
- package/lib/services/apply/getPaylaterTransactions.js.map +1 -0
- package/lib/services/apply/getTransactions.d.ts +18 -0
- package/lib/services/apply/getTransactions.d.ts.map +1 -0
- package/lib/services/apply/getTransactions.js +73 -0
- package/lib/services/apply/getTransactions.js.map +1 -0
- package/lib/services/apply/index.d.ts +47 -0
- package/lib/services/apply/index.d.ts.map +1 -0
- package/lib/services/apply/index.js +29 -0
- package/lib/services/apply/index.js.map +1 -0
- package/lib/services/apply/loanBrands.d.ts +15 -0
- package/lib/services/apply/loanBrands.d.ts.map +1 -0
- package/lib/services/apply/loanBrands.js +63 -0
- package/lib/services/apply/loanBrands.js.map +1 -0
- package/lib/services/apply/manufacturerStatement.d.ts +41 -0
- package/lib/services/apply/manufacturerStatement.d.ts.map +1 -0
- package/lib/services/apply/manufacturerStatement.js +207 -0
- package/lib/services/apply/manufacturerStatement.js.map +1 -0
- package/lib/services/apply/mapCatalog.d.ts +30 -0
- package/lib/services/apply/mapCatalog.d.ts.map +1 -0
- package/lib/services/apply/mapCatalog.js +153 -0
- package/lib/services/apply/mapCatalog.js.map +1 -0
- package/lib/services/apply/mapLimitHome.d.ts +66 -0
- package/lib/services/apply/mapLimitHome.d.ts.map +1 -0
- package/lib/services/apply/mapLimitHome.js +152 -0
- package/lib/services/apply/mapLimitHome.js.map +1 -0
- package/lib/services/apply/paths.d.ts +87 -0
- package/lib/services/apply/paths.d.ts.map +1 -0
- package/lib/services/apply/paths.js +99 -0
- package/lib/services/apply/paths.js.map +1 -0
- package/lib/services/apply/payLaterLimitRequest.d.ts +19 -0
- package/lib/services/apply/payLaterLimitRequest.d.ts.map +1 -0
- package/lib/services/apply/payLaterLimitRequest.js +91 -0
- package/lib/services/apply/payLaterLimitRequest.js.map +1 -0
- package/lib/services/apply/productBucket.d.ts +75 -0
- package/lib/services/apply/productBucket.d.ts.map +1 -0
- package/lib/services/apply/productBucket.js +224 -0
- package/lib/services/apply/productBucket.js.map +1 -0
- package/lib/services/apply/referralDetails.d.ts +26 -0
- package/lib/services/apply/referralDetails.d.ts.map +1 -0
- package/lib/services/apply/referralDetails.js +187 -0
- package/lib/services/apply/referralDetails.js.map +1 -0
- package/lib/services/apply/repayLoan.d.ts +9 -0
- package/lib/services/apply/repayLoan.d.ts.map +1 -0
- package/lib/services/apply/repayLoan.js +58 -0
- package/lib/services/apply/repayLoan.js.map +1 -0
- package/lib/services/apply/sdkSession.d.ts +12 -0
- package/lib/services/apply/sdkSession.d.ts.map +1 -0
- package/lib/services/apply/sdkSession.js +104 -0
- package/lib/services/apply/sdkSession.js.map +1 -0
- package/lib/services/apply/statementBanks.d.ts +4 -0
- package/lib/services/apply/statementBanks.d.ts.map +1 -0
- package/lib/services/apply/statementBanks.js +17 -0
- package/lib/services/apply/statementBanks.js.map +1 -0
- package/lib/services/apply/statementParseBanks.d.ts +8 -0
- package/lib/services/apply/statementParseBanks.d.ts.map +1 -0
- package/lib/services/apply/statementParseBanks.js +84 -0
- package/lib/services/apply/statementParseBanks.js.map +1 -0
- package/lib/services/apply/sublimitDowngrade.d.ts +5 -0
- package/lib/services/apply/sublimitDowngrade.d.ts.map +1 -0
- package/lib/services/apply/sublimitDowngrade.js +27 -0
- package/lib/services/apply/sublimitDowngrade.js.map +1 -0
- package/lib/services/apply/sublimitRequestDetails.d.ts +5 -0
- package/lib/services/apply/sublimitRequestDetails.d.ts.map +1 -0
- package/lib/services/apply/sublimitRequestDetails.js +31 -0
- package/lib/services/apply/sublimitRequestDetails.js.map +1 -0
- package/lib/services/apply/walletBanks.d.ts +3 -0
- package/lib/services/apply/walletBanks.d.ts.map +1 -0
- package/lib/services/apply/walletBanks.js +14 -0
- package/lib/services/apply/walletBanks.js.map +1 -0
- package/lib/services/customerBoot.d.ts +4 -0
- package/lib/services/customerBoot.d.ts.map +1 -0
- package/lib/services/customerBoot.js +103 -0
- package/lib/services/customerBoot.js.map +1 -0
- package/lib/services/customerRuntime.d.ts +36 -0
- package/lib/services/customerRuntime.d.ts.map +1 -0
- package/lib/services/customerRuntime.js +40 -0
- package/lib/services/customerRuntime.js.map +1 -0
- package/lib/services/deviceInfo.d.ts +7 -0
- package/lib/services/deviceInfo.d.ts.map +1 -0
- package/lib/services/deviceInfo.js +22 -0
- package/lib/services/deviceInfo.js.map +1 -0
- package/lib/services/gatewayHash.d.ts +57 -0
- package/lib/services/gatewayHash.d.ts.map +1 -0
- package/lib/services/gatewayHash.js +382 -0
- package/lib/services/gatewayHash.js.map +1 -0
- package/lib/services/http.d.ts +30 -0
- package/lib/services/http.d.ts.map +1 -0
- package/lib/services/http.js +122 -0
- package/lib/services/http.js.map +1 -0
- package/lib/services/httpRuntime.d.ts +39 -0
- package/lib/services/httpRuntime.d.ts.map +1 -0
- package/lib/services/httpRuntime.js +122 -0
- package/lib/services/httpRuntime.js.map +1 -0
- package/lib/services/md5.d.ts +3 -0
- package/lib/services/md5.d.ts.map +1 -0
- package/lib/services/md5.js +134 -0
- package/lib/services/md5.js.map +1 -0
- package/lib/services/pickDocument.d.ts +15 -0
- package/lib/services/pickDocument.d.ts.map +1 -0
- package/lib/services/pickDocument.js +11 -0
- package/lib/services/pickDocument.js.map +1 -0
- package/lib/services/serviceHelper.d.ts +2 -0
- package/lib/services/serviceHelper.d.ts.map +1 -0
- package/lib/services/serviceHelper.js +19 -0
- package/lib/services/serviceHelper.js.map +1 -0
- package/lib/theme/brandColor.d.ts +8 -0
- package/lib/theme/brandColor.d.ts.map +1 -0
- package/lib/theme/brandColor.js +30 -0
- package/lib/theme/brandColor.js.map +1 -0
- package/lib/theme/fonts.d.ts +12 -0
- package/lib/theme/fonts.d.ts.map +1 -0
- package/lib/theme/fonts.js +18 -0
- package/lib/theme/fonts.js.map +1 -0
- package/lib/utils/fontScale.d.ts +13 -0
- package/lib/utils/fontScale.d.ts.map +1 -0
- package/lib/utils/fontScale.js +17 -0
- package/lib/utils/fontScale.js.map +1 -0
- package/lib/utils/formatAmount.d.ts +28 -0
- package/lib/utils/formatAmount.d.ts.map +1 -0
- package/lib/utils/formatAmount.js +88 -0
- package/lib/utils/formatAmount.js.map +1 -0
- package/lib/utils/messageCleaner.d.ts +2 -0
- package/lib/utils/messageCleaner.d.ts.map +1 -0
- package/lib/utils/messageCleaner.js +11 -0
- package/lib/utils/messageCleaner.js.map +1 -0
- package/lib/utils/responseObserver.d.ts +10 -0
- package/lib/utils/responseObserver.d.ts.map +1 -0
- package/lib/utils/responseObserver.js +50 -0
- package/lib/utils/responseObserver.js.map +1 -0
- package/lib/web/index.d.ts +8 -0
- package/lib/web/index.d.ts.map +1 -0
- package/lib/web/index.js +7 -0
- package/lib/web/index.js.map +1 -0
- package/package.json +49 -4
- package/react-native.config.js +3 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inventoryCreditAgreementCopy.d.ts","sourceRoot":"","sources":["../../../src/flows/lending/inventoryCreditAgreementCopy.ts"],"names":[],"mappings":"AA8BA,wBAAgB,wBAAwB,CAAC,CAAC,EAAE,IAAI,GAAG,MAAM,CAExD;AAED,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,IAAI,GAAG,MAAM,CAOnD;AAED,wBAAgB,4BAA4B,CAAC,eAAe,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CA2E/F"}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
function ordinal(n) {
|
|
2
|
+
const v = n % 100;
|
|
3
|
+
if (v >= 11 && v <= 13)
|
|
4
|
+
return `${n}th`;
|
|
5
|
+
switch (n % 10) {
|
|
6
|
+
case 1:
|
|
7
|
+
return `${n}st`;
|
|
8
|
+
case 2:
|
|
9
|
+
return `${n}nd`;
|
|
10
|
+
case 3:
|
|
11
|
+
return `${n}rd`;
|
|
12
|
+
default:
|
|
13
|
+
return `${n}th`;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
const MONTHS = [
|
|
17
|
+
"January",
|
|
18
|
+
"February",
|
|
19
|
+
"March",
|
|
20
|
+
"April",
|
|
21
|
+
"May",
|
|
22
|
+
"June",
|
|
23
|
+
"July",
|
|
24
|
+
"August",
|
|
25
|
+
"September",
|
|
26
|
+
"October",
|
|
27
|
+
"November",
|
|
28
|
+
"December"
|
|
29
|
+
];
|
|
30
|
+
export function formatAgreementEnteredOn(d) {
|
|
31
|
+
return `This Agreement entered into on the ${ordinal(d.getDate())} day of ${MONTHS[d.getMonth()]}, ${d.getFullYear()}`;
|
|
32
|
+
}
|
|
33
|
+
export function formatSignedOnLabel(d) {
|
|
34
|
+
const months = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
|
|
35
|
+
const h = d.getHours();
|
|
36
|
+
const suffix = h >= 12 ? "pm" : "am";
|
|
37
|
+
const hour = h % 12 || 12;
|
|
38
|
+
const min = String(d.getMinutes()).padStart(2, "0");
|
|
39
|
+
return `${months[d.getMonth()]} ${String(d.getDate()).padStart(2, "0")}, ${d.getFullYear()}. ${hour}:${min}${suffix}`;
|
|
40
|
+
}
|
|
41
|
+
export function inventoryCreditAgreementBody(beneficiaryName, enteredOn) {
|
|
42
|
+
return `${enteredOn}
|
|
43
|
+
|
|
44
|
+
Between OmniPay Limited, a company duly incorporated under the Laws of the Federal Republic of Nigeria with Registration Number 1910133 and its office situated at No. 6, Causeway, Ijora, Lagos, Nigeria (hereinafter referred to as "TRADE FINANCER") which expression shall where the context so admits include its successors-in-title and permitted assigns) of the first part;
|
|
45
|
+
|
|
46
|
+
And
|
|
47
|
+
|
|
48
|
+
${beneficiaryName} hereinafter referred to as "TRADE BENEFICIARY" which expression shall where the context so admits include its successors-in-title and permitted assigns) of the second part;
|
|
49
|
+
|
|
50
|
+
The Trade Financier and the Trade Beneficiary, are hereinafter collectively referred to as the "Parties" or individually referred to as a "Party"
|
|
51
|
+
|
|
52
|
+
TERMS OF SERVICE
|
|
53
|
+
|
|
54
|
+
1. SCOPE OF ENGAGEMENT
|
|
55
|
+
a. The scope of this Agreement is to provide inventory credit financing to the Trade Beneficiary for the purchase of fast-moving consumer goods from approved manufacturers or distributors. The Trade Financier reserves the right, at any time, to amend the terms, conditions, credit limits, service fees, or penalties for default applicable to the facility and to this Agreement. Any such modifications shall be communicated to the Trade Beneficiary through the application on which the inventory financing was assessed.
|
|
56
|
+
|
|
57
|
+
2. TRADE FINANCIER'S OBLIGATION
|
|
58
|
+
The Trade Financier hereby acknowledges and accepts:
|
|
59
|
+
a. That it shall have exclusive authority to determine the credit limit to be assigned to the Trade beneficiary for every inventory credit financing requested.
|
|
60
|
+
b. That it shall provide the Inventory credit to the Trade Beneficiary and have the exclusive authority to set the penalties for default in payment.
|
|
61
|
+
|
|
62
|
+
3. TRADE BENEFICIARY'S OBLIGATION
|
|
63
|
+
The Trade Beneficiary hereby acknowledges, agrees and accepts:
|
|
64
|
+
a. That it shall ensure that every detail or information provided during the screening by the Trade Financier and Know Your Customer process to determine eligibility to grant inventory credit financing are true and accurate.
|
|
65
|
+
b. The directors of the trade beneficiary, hereby jointly and severally guarantee the full and timely performance of all obligations, covenants, and responsibilities set forth in this Agreement. In the event of any default or failure by the Trade beneficiary to fulfill its obligations as stipulated herein, the directors agree to be personally liable for any and all losses, damages, costs, and expenses that may arise as a result of such default or failure. This personal guarantee shall be binding upon the directors, their heirs, executors, administrators, successors, and assigns, and shall remain in effect until all obligations under this Agreement have been fully satisfied.
|
|
66
|
+
c. To grant consent for the manufacturer or distributor to disclose transaction history and other pertinent information to the Trade Financier. Such details shall be deemed a prerequisite for the Trade Financier's consideration in extending the Credit facility to the Trade Beneficiary.
|
|
67
|
+
d. The Trade Beneficiary shall, at all times during a request for inventory credit financing from the Trade Financier, provide a comprehensive and accurate cost estimate of the proposed inventory to be purchased. In addition, the Trade Beneficiary must submit supporting documentation, including waybills from the same manufacturer or distributor, evidencing prior purchases made within the three (3) months immediately preceding the current inventory request. This documentation is essential to substantiate the validity and consistency of the inventory being requested.
|
|
68
|
+
e. The inventory credit facility shall be exclusively utilized for the purchase of inventory from the specified Manufacturer/Distributor. The details of the Manufacturer/Distributor must be provided at the time of each request for inventory credit finance. The facility shall not be used for any other purpose.
|
|
69
|
+
f. The Trade Beneficiary acknowledges and agrees that the risk associated with the failure of the Manufacturer/Distributor to deliver the goods, or to meet the required specifications, shall be solely borne by the Trade Beneficiary. For clarity, the Trade Beneficiary further agrees that the sole obligation of the Trade Financier is to provide financing for the purchase of the inventory. The Trade Financier bears no responsibility for the performance or non-performance of the Manufacturer/Distributor.
|
|
70
|
+
g. With reference to Clause C6, the Trade Beneficiary's obligation extends to ensuring payment is received by the Trade Financier within the stipulated duration as outlined on the application by the Trade Financier, wherein the inventory credit financing shall be accessed.
|
|
71
|
+
h. The Trade Beneficiary shall deposit a duly executed post-dated bank cheque in favor of the Trade Financier. The Trade Beneficiary guarantees that the cheque and the banking details provided correspond to an active bank account regularly used for its transactions. This account shall remain active, adequately funded, and not be made dormant while the cheque remains uncashed. Additionally, the Trade Beneficiary shall ensure that each leaflet cheque covers a request of ₦10,000,000 (Ten Million Naira). For requests exceeding ₦10,000,000, additional leaflet cheques shall be provided to cover multiples of ₦10,000,000.
|
|
72
|
+
i. That the Service fee shall commence from the day the credit facility is utilized by the trade beneficiary.
|
|
73
|
+
j. That all payments shall be made exclusively through the application wherein the inventory credit financing was assessed.
|
|
74
|
+
k. To be bound by the penalties for default in payment for any credit granted during the existence of this agreement.
|
|
75
|
+
l. To grant the Trade Financier the authority to disclose any information or documentation relating to the credit facility to third parties, including credit reference agencies, collection agencies and the Manufacturer in the event that the credit facility has ceased to be serviced by the Trade Beneficiary.
|
|
76
|
+
m. In the event of default, the Trade Beneficiary hereby irrevocably authorizes the Trade Financier to initiate automatic debits from any bank account held in its name for the purpose of repaying the credit facility.
|
|
77
|
+
n. To fulfil all obligations contained in this agreement and be bound by same.
|
|
78
|
+
o. That upon executing this Agreement, all provisions herein shall be applicable to every transaction initiated by the Parties related to the Inventory Credit Finance Agreement.
|
|
79
|
+
|
|
80
|
+
4. Consideration
|
|
81
|
+
a. The applicable service fee and repayment duration for each inventory credit facility shall be specified at the point of application by the Trade Beneficiary, whether through the OmniPay application or through any third-party application in which the OmniPay platform is embedded and operated. Such terms, once accepted by the Trade Beneficiary, shall form an integral and binding part of this Agreement.
|
|
82
|
+
b. The specific terms of each Inventory Credit Facility granted under this Agreement, including but not limited to the principal amount, service fee, repayment schedule, repayment duration, and any applicable penalties, shall be as displayed on the OmniPay application at the time of application and acceptance by the Trade Beneficiary. Such terms, once accepted by the Trade Beneficiary on the application, shall form an integral and binding part of this Agreement.
|
|
83
|
+
c. The Trade Beneficiary may prepay any outstanding Inventory Credit Facility, provided that all service fees applicable to the full duration of the facility remain payable in full, unless otherwise agreed in writing by the Trade Financier.
|
|
84
|
+
d. All costs and expenses incurred by the Trade Financier in enforcing or recovering any outstanding indebtedness under this Agreement, including but not limited to legal fees, collection agency charges, court filing fees, bailiff/enforcement charges, and incidental costs ("Recovery Costs"), shall be borne solely by the Trade Beneficiary and shall be immediately payable upon demand.
|
|
85
|
+
|
|
86
|
+
5. Commencement and Duration
|
|
87
|
+
This Agreement shall take effect from the date of the first inventory credit facility extended to the Trade Beneficiary and shall remain in force for the duration of any active credit facility governed by this Agreement. Termination of this Agreement may only occur when the Trade Beneficiary has fully repaid all outstanding obligations under any such credit facility and has complied with the termination procedures specified herein. For the avoidance of doubt, this Agreement shall remain effective for as long as any credit facility provided to the Trade Beneficiary under this Agreement remains active.
|
|
88
|
+
|
|
89
|
+
6. Representations and Warranties
|
|
90
|
+
The Trade Beneficiary represents and warrants, on a continuing basis, that:
|
|
91
|
+
a. It is duly incorporated/registered and validly existing under the laws of Nigeria.
|
|
92
|
+
b. It has full power and authority to enter into and perform this Agreement.
|
|
93
|
+
c. All information, documents, and KYC details provided are true, accurate, and complete.
|
|
94
|
+
d. It is not subject to insolvency, bankruptcy, or winding-up proceedings.
|
|
95
|
+
e. It is in compliance with all applicable laws, including tax obligations.
|
|
96
|
+
|
|
97
|
+
7. Events and Penalties For Default
|
|
98
|
+
a. Events of default: The credit facility shall be due for immediate repayment in the event where (i) the credit period has expired, (ii) the Trade Beneficiary has committed a breach of any of his obligations under this agreement, (iii) suspends and communicate in writing of its inability to repay the credit facility as it matures or (iv) where any of the KYC information provided by the Trade Beneficiary is discovered to be incomplete or untrue.
|
|
99
|
+
b. Penalties for Default: In the event that the Trade Beneficiary fails to comply with any of the terms stipulated in this agreement or defaults in meeting its repayment obligations, the Trade Financier shall have the right to enforce the specified penalties, either individually or collectively, as deemed necessary. These penalties include, but are not limited to, automatic debit of accounts, encashment of post-dated cheques, retrieval of financed goods, attachment of assets, civil and criminal remedies, and credit bureau reporting, as set out in the OmniPay Inventory Credit Finance agreement.
|
|
100
|
+
|
|
101
|
+
8. General Terms
|
|
102
|
+
a. Termination: The Trade Financier can terminate the Agreement immediately without notice for: (i) Trade Beneficiary's insolvency, (ii) false information, or (iii) failure to comply with Agreement terms, after a 7-day notice to rectify. Either party can terminate with 30 days' written notice. Upon termination, all fees owed become payable. The Agreement is governed by Nigerian law, and disputes will be resolved through negotiations or, if necessary, by a competent court.
|
|
103
|
+
b. Data Protection: The Trade Beneficiary acknowledges and consents to the Trade Financier's collection, processing, and disclosure of its personal and business data for the purposes of this Agreement, in compliance with the Nigeria Data Protection Act, 2023.
|
|
104
|
+
c. AML/CFT & SANCTIONS: The Trade Beneficiary represents and warrants that neither it, nor any of its directors, or affiliates, are engaged in or will engage in any activity that violates applicable anti-money laundering, counter-terrorist financing, or sanctions laws. The Trade Financier reserves the right to immediately terminate this Agreement upon any suspected or actual breach of this warranty.
|
|
105
|
+
d. Set-Off: The Trade Financier may combine, consolidate, or set off the Trade Beneficiary's accounts at any time, with or without notice, to settle any amounts owed.
|
|
106
|
+
e. Confidentiality and Severability: Both parties must keep confidential information private and use it only for Agreement performance. If any provision is invalid or unenforceable, the remaining provisions remain effective, and the parties will replace the invalid provision to reflect the Agreement's original intent.
|
|
107
|
+
f. Relationship Between the Parties: The parties are independent contractors and not partners, joint venturers, or agents of each other. Neither party has the authority to bind or represent the other, except as explicitly stated in this Agreement.
|
|
108
|
+
g. Force Majeure: The obligations of the Trade Beneficiary under this Agreement shall not be excused or suspended by any event of force majeure. For clarity, payment obligations shall remain absolute and unconditional notwithstanding any force majeure event.
|
|
109
|
+
h. Changes in law: In the event of any change in applicable law, regulation, directive, or guideline that materially affects the enforceability or performance of this Agreement, the Trade Financier shall be entitled to amend the terms of this Agreement (including repayment terms, service fee, and security requirements) to ensure compliance and to preserve its commercial position.
|
|
110
|
+
i. Notices: Any notice required under this Agreement shall be in writing and delivered (i) by hand, (ii) by courier, (iii) by registered post, or (iv) electronically via the OmniPay application or to the email address provided by the Trade Beneficiary. Notice shall be deemed received on the date of delivery (or, in the case of email, on the date of transmission if no failure notice is received).
|
|
111
|
+
j. Assignment: The Trade Financier may assign, transfer, or novate its rights and obligations under this Agreement to any third party without the consent of the Trade Beneficiary. The Trade Beneficiary shall not assign or transfer its rights or obligations without the prior written consent of the Trade Financier.
|
|
112
|
+
k. Survival: The obligations of the Trade Beneficiary relating to confidentiality, payment, indemnities, and Recovery Costs shall survive the termination or expiration of this Agreement.
|
|
113
|
+
l. Entire Agreement: This Agreement represents the complete understanding between the parties regarding its subject matter, overriding all prior communications. Any changes to this Agreement must be in writing and signed by both parties.
|
|
114
|
+
|
|
115
|
+
In Witness WhereOf, the Parties hereto have executed this Agreement in the manner here in after appearing the day and year first above written.`;
|
|
116
|
+
}
|
|
117
|
+
//# sourceMappingURL=inventoryCreditAgreementCopy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inventoryCreditAgreementCopy.js","sourceRoot":"","sources":["../../../src/flows/lending/inventoryCreditAgreementCopy.ts"],"names":[],"mappings":"AAAA,SAAS,OAAO,CAAC,CAAS;IACxB,MAAM,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC;IAClB,IAAI,CAAC,IAAI,EAAE,IAAI,C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CAAC;IACpD,OAAO,GAAG,MAAM,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC,WAAW,EAAE,KAAK,IAAI,IAAI,GAAG,GAAG,MAAM,EAAE,CAAC;AACxH,CAAC;AAED,MAAM,UAAU,4BAA4B,CAAC,eAAuB,EAAE,SAAiB;IACrF,OAAO,GAAG,SAAS;;;;;;EAMnB,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gJAmE+H,CAAC;AACjJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manufacturers.d.ts","sourceRoot":"","sources":["../../../src/flows/lending/manufacturers.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;CAC9C,CAAC;AAKF,eAAO,MAAM,aAAa,EAAE,kBAAkB,EAG7C,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
const logoFmn = require("../../assets/lending/logo-fmn.png");
|
|
2
|
+
const logoNestle = require("../../assets/lending/logo-nestle.png");
|
|
3
|
+
export const MANUFACTURERS = [
|
|
4
|
+
{ id: "fmn", name: "FMN", logo: logoFmn, logoStyle: { width: 24, height: 16 } },
|
|
5
|
+
{ id: "nestle", name: "Nestle Nigeria", logo: logoNestle, logoStyle: { width: 24, height: 24 } }
|
|
6
|
+
];
|
|
7
|
+
//# sourceMappingURL=manufacturers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manufacturers.js","sourceRoot":"","sources":["../../../src/flows/lending/manufacturers.ts"],"names":[],"mappings":"AAOA,MAAM,OAAO,GAAG,OAAO,CAAC,mCAAmC,CAAC,CAAC;AAC7D,MAAM,UAAU,GAAG,OAAO,CAAC,sCAAsC,CAAC,CAAC;AAEnE,MAAM,CAAC,MAAM,aAAa,GAAyB;IACjD,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE;IAC/E,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,UAAU,EAAE,SAAS,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE;CACjG,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAccountNameInquiry.d.ts","sourceRoot":"","sources":["../../../src/flows/lending/useAccountNameInquiry.ts"],"names":[],"mappings":"AAGA,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM;;;EA8B5E"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { inquireAccountName } from "../../services/apply";
|
|
3
|
+
export function useAccountNameInquiry(bankCode, accountNumber) {
|
|
4
|
+
const [accountName, setAccountName] = React.useState("");
|
|
5
|
+
const [loading, setLoading] = React.useState(false);
|
|
6
|
+
React.useEffect(() => {
|
|
7
|
+
const digits = accountNumber.replace(/\D/g, "");
|
|
8
|
+
if (!bankCode.trim() || digits.length < 10) {
|
|
9
|
+
setAccountName("");
|
|
10
|
+
setLoading(false);
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
let cancelled = false;
|
|
14
|
+
setAccountName("");
|
|
15
|
+
setLoading(true);
|
|
16
|
+
inquireAccountName({ accountNumber: digits, bankCode })
|
|
17
|
+
.then((name) => {
|
|
18
|
+
if (!cancelled)
|
|
19
|
+
setAccountName(name);
|
|
20
|
+
})
|
|
21
|
+
.catch(() => {
|
|
22
|
+
if (!cancelled)
|
|
23
|
+
setAccountName("");
|
|
24
|
+
})
|
|
25
|
+
.finally(() => {
|
|
26
|
+
if (!cancelled)
|
|
27
|
+
setLoading(false);
|
|
28
|
+
});
|
|
29
|
+
return () => {
|
|
30
|
+
cancelled = true;
|
|
31
|
+
};
|
|
32
|
+
}, [bankCode, accountNumber]);
|
|
33
|
+
return { accountName, loading };
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=useAccountNameInquiry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAccountNameInquiry.js","sourceRoot":"","sources":["../../../src/flows/lending/useAccountNameInquiry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,MAAM,UAAU,qBAAqB,CAAC,QAAgB,EAAE,aAAqB;IAC3E,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;IACzD,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAEpD,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACnB,MAAM,MAAM,GAAG,aAAa,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QAChD,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,IAAI,MAAM,CAAC,MAAM,GAAG,EAAE,EAAE,CAAC;YAC3C,cAAc,CAAC,EAAE,CAAC,CAAC;YACnB,UAAU,CAAC,KAAK,CAAC,CAAC;YAClB,OAAO;QACT,CAAC;QACD,IAAI,SAAS,GAAG,KAAK,CAAC;QACtB,cAAc,CAAC,EAAE,CAAC,CAAC;QACnB,UAAU,CAAC,IAAI,CAAC,CAAC;QACjB,kBAAkB,CAAC,EAAE,aAAa,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC;aACpD,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE;YACb,IAAI,CAAC,SAAS;gBAAE,cAAc,CAAC,IAAI,CAAC,CAAC;QACvC,CAAC,CAAC;aACD,KAAK,CAAC,GAAG,EAAE;YACV,IAAI,CAAC,SAAS;gBAAE,cAAc,CAAC,EAAE,CAAC,CAAC;QACrC,CAAC,CAAC;aACD,OAAO,CAAC,GAAG,EAAE;YACZ,IAAI,CAAC,SAAS;gBAAE,UAAU,CAAC,KAAK,CAAC,CAAC;QACpC,CAAC,CAAC,CAAC;QACL,OAAO,GAAG,EAAE;YACV,SAAS,GAAG,IAAI,CAAC;QACnB,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC;IAE9B,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC;AAClC,CAAC"}
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { Lending } from "./sdk/SDKRoot";
|
|
2
|
+
export { createSdkSession } from "./services/apply/sdkSession";
|
|
3
|
+
export { getHash } from "./services/gatewayHash";
|
|
4
|
+
export type { SDKConfig, SDKEvent, LimitStatus, BusinessLineId, BusinessLineOption } from "./sdk/types";
|
|
5
|
+
export { BUSINESS_LINE_OPTIONS, BUSINESS_LINE_RETAILER_ID, BUSINESS_LINE_OTHERS_ID, COUNTRY_CODE_NIGERIA, resolveLimitStatus, resolveIsPayLimit, resolveBusinessLineId, resolveCountryCode } from "./sdk/types";
|
|
6
|
+
export { GorditaFamily, getSdkFontLoadMap } from "./theme/fonts";
|
|
7
|
+
export { fontSz, sdkTypography } from "./utils/fontScale";
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,YAAY,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACxG,OAAO,EACL,qBAAqB,EACrB,yBAAyB,EACzB,uBAAuB,EACvB,oBAAoB,EACpB,kBAAkB,EAClB,iBAAiB,EACjB,qBAAqB,EACrB,kBAAkB,EACnB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACjE,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC"}
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { Lending } from "./sdk/SDKRoot";
|
|
2
|
+
export { createSdkSession } from "./services/apply/sdkSession";
|
|
3
|
+
export { getHash } from "./services/gatewayHash";
|
|
4
|
+
export { BUSINESS_LINE_OPTIONS, BUSINESS_LINE_RETAILER_ID, BUSINESS_LINE_OTHERS_ID, COUNTRY_CODE_NIGERIA, resolveLimitStatus, resolveIsPayLimit, resolveBusinessLineId, resolveCountryCode } from "./sdk/types";
|
|
5
|
+
export { GorditaFamily, getSdkFontLoadMap } from "./theme/fonts";
|
|
6
|
+
export { fontSz, sdkTypography } from "./utils/fontScale";
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAEjD,OAAO,EACL,qBAAqB,EACrB,yBAAyB,EACzB,uBAAuB,EACvB,oBAAoB,EACpB,kBAAkB,EAClB,iBAAiB,EACjB,qBAAqB,EACrB,kBAAkB,EACnB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACjE,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SDKRoot.d.ts","sourceRoot":"","sources":["../../src/sdk/SDKRoot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAUzC,wBAAgB,OAAO,CAAC,KAAK,EAAE;IAAE,MAAM,EAAE,SAAS,CAAA;CAAE,qBAmCnD"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { SDKConfigProvider } from "./bootstrap/SDKConfigProvider";
|
|
4
|
+
import { renderScreen } from "./screens/registry";
|
|
5
|
+
import { SDKProviders } from "./providers/SDKProviders";
|
|
6
|
+
export function Lending(props) {
|
|
7
|
+
React.useEffect(() => {
|
|
8
|
+
props.config.onEvent?.({ name: "sdk_mounted" });
|
|
9
|
+
// Once per mount. Do not depend on config object identity (hosts often pass a new object each render).
|
|
10
|
+
}, []);
|
|
11
|
+
const initialEntryScreen = "lending_home";
|
|
12
|
+
const initialParams = undefined;
|
|
13
|
+
const [current, setCurrent] = React.useState(() => ({ name: initialEntryScreen, params: initialParams }));
|
|
14
|
+
const navigate = React.useCallback((name, params) => {
|
|
15
|
+
setCurrent({ name, params });
|
|
16
|
+
}, []);
|
|
17
|
+
const ctx = {
|
|
18
|
+
envLabel: "unknown",
|
|
19
|
+
tokenPresent: Boolean(props.config.accessToken),
|
|
20
|
+
hasLimit: false,
|
|
21
|
+
limitStatus: "none",
|
|
22
|
+
hasActiveCredit: true,
|
|
23
|
+
isPayLimit: false,
|
|
24
|
+
navigate
|
|
25
|
+
};
|
|
26
|
+
return (_jsx(SDKProviders, { brandColor: props.config.color, children: _jsx(SDKConfigProvider, { config: props.config, children: renderScreen(current.name, ctx, current.params) }) }));
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=SDKRoot.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SDKRoot.js","sourceRoot":"","sources":["../../src/sdk/SDKRoot.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAMxD,MAAM,UAAU,OAAO,CAAC,KAA4B;IAClD,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACnB,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC,CAAC;QAChD,uGAAuG;IACzG,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,MAAM,kBAAkB,GAAkB,cAAc,CAAC;IACzD,MAAM,aAAa,GAAG,SAA8C,CAAC;IAErE,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,KAAK,CAAC,QAAQ,CAC1C,GAAG,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,MAAM,EAAE,aAAa,EAAE,CAAgB,CAC3E,CAAC;IAEF,MAAM,QAAQ,GAAG,KAAK,CAAC,WAAW,CAChC,CAA0B,IAAO,EAAE,MAA6B,EAAE,EAAE;QAClE,UAAU,CAAC,EAAE,IAAI,EAAE,MAAM,EAAiB,CAAC,CAAC;IAC9C,CAAC,EACD,EAAE,CACH,CAAC;IAEF,MAAM,GAAG,GAAG;QACV,QAAQ,EAAE,SAAS;QACnB,YAAY,EAAE,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC;QAC/C,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,MAAe;QAC5B,eAAe,EAAE,IAAI;QACrB,UAAU,EAAE,KAAK;QACjB,QAAQ;KACT,CAAC;IAEF,OAAO,CACL,KAAC,YAAY,IAAC,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,YAC1C,KAAC,iBAAiB,IAAC,MAAM,EAAE,KAAK,CAAC,MAAM,YAAG,YAAY,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,EAAE,OAAO,CAAC,MAAM,CAAC,GAAqB,GACjG,CAChB,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SDKConfigProvider.d.ts","sourceRoot":"","sources":["../../../src/sdk/bootstrap/SDKConfigProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AA0G1C,wBAAgB,iBAAiB,CAAC,KAAK,EAAE;IAAE,MAAM,EAAE,SAAS,CAAC;IAAC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,qBAoDxF"}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { sdkSessionKey } from "../configIdentity";
|
|
4
|
+
import { SDKErrorScreen, SDKLoadingScreen } from "./bootstrapScreens";
|
|
5
|
+
import { bumpBootEpoch, clearGatewayRuntime, isBootEpoch, setApiBaseUrl, setLoanApiBaseUrl, setCustomerRef, setGlobalEnv, setPublicKey, setRedirectService, setRedirectUrl, setServiceToken, setTokenExpiryHandler, setUserRef, setHostDevice, setBusinessLineId, setCountryCode } from "../../services/httpRuntime";
|
|
6
|
+
import { resolveBusinessLineId, resolveCountryCode } from "../types";
|
|
7
|
+
import { bootCustomerGlobals } from "../../services/customerBoot";
|
|
8
|
+
import { authenticateSdkSession, clearApplicationFlow, clearApplyLimitHomeCache, clearCustomerAgreementLoadCache, clearCustomerProductsCache, clearSignedCustomerAgreementCache, getApplyLimitHome, resolveApplicationFlow } from "../../services/apply";
|
|
9
|
+
import { ApplicationFlowProvider } from "../providers/ApplicationFlowProvider";
|
|
10
|
+
import { clearCustomerRuntime, setCustomerPhone } from "../../services/customerRuntime";
|
|
11
|
+
import { setInterceptedStatusCodes } from "../../utils/responseObserver";
|
|
12
|
+
import { setHostDocumentPicker } from "../../services/pickDocument";
|
|
13
|
+
async function initSdk(config, epoch) {
|
|
14
|
+
if (!config)
|
|
15
|
+
return { status: "error", message: "Missing SDK config." };
|
|
16
|
+
const publicKey = config.publicKey?.trim();
|
|
17
|
+
if (!publicKey)
|
|
18
|
+
return { status: "error", message: "Missing publicKey in SDK config." };
|
|
19
|
+
const customerPhone = config.customerPhone?.trim();
|
|
20
|
+
if (!customerPhone)
|
|
21
|
+
return { status: "error", message: "Missing customerPhone in SDK config." };
|
|
22
|
+
const sessionId = config.sessionId?.trim();
|
|
23
|
+
if (!sessionId)
|
|
24
|
+
return { status: "error", message: "Missing sessionId in SDK config." };
|
|
25
|
+
if (!config.accessToken?.trim())
|
|
26
|
+
return { status: "error", message: "Missing accessToken in SDK config." };
|
|
27
|
+
if (!config.apiBaseUrl?.trim())
|
|
28
|
+
return { status: "error", message: "Missing apiBaseUrl in SDK config." };
|
|
29
|
+
if (!config.loanApiBaseUrl?.trim())
|
|
30
|
+
return { status: "error", message: "Missing loanApiBaseUrl in SDK config." };
|
|
31
|
+
setApiBaseUrl(config.apiBaseUrl);
|
|
32
|
+
setLoanApiBaseUrl(config.loanApiBaseUrl);
|
|
33
|
+
setServiceToken(config.accessToken);
|
|
34
|
+
setTokenExpiryHandler(config.onTokenExpired ?? null);
|
|
35
|
+
setPublicKey(publicKey);
|
|
36
|
+
setCustomerRef(config.customerRef);
|
|
37
|
+
setUserRef(config.userRef);
|
|
38
|
+
setRedirectService(config.redirectService ?? "wallet");
|
|
39
|
+
setRedirectUrl(config.redirectUrl);
|
|
40
|
+
setCustomerPhone(customerPhone);
|
|
41
|
+
setHostDevice({ deviceId: config.deviceId, deviceName: config.deviceName });
|
|
42
|
+
setBusinessLineId(resolveBusinessLineId(config.businessLineId));
|
|
43
|
+
setCountryCode(resolveCountryCode(config.countryCode));
|
|
44
|
+
if (config.interceptedStatusCodes?.length) {
|
|
45
|
+
setInterceptedStatusCodes(config.interceptedStatusCodes);
|
|
46
|
+
}
|
|
47
|
+
setHostDocumentPicker(config.onPickDocument);
|
|
48
|
+
if (!isBootEpoch(epoch))
|
|
49
|
+
return { status: "loading" };
|
|
50
|
+
await authenticateSdkSession(sessionId);
|
|
51
|
+
if (!isBootEpoch(epoch))
|
|
52
|
+
return { status: "loading" };
|
|
53
|
+
await bootCustomerGlobals(epoch);
|
|
54
|
+
if (!isBootEpoch(epoch))
|
|
55
|
+
return { status: "loading" };
|
|
56
|
+
let flow;
|
|
57
|
+
try {
|
|
58
|
+
flow = await resolveApplicationFlow();
|
|
59
|
+
}
|
|
60
|
+
catch (err) {
|
|
61
|
+
const message = err instanceof Error && err.message.trim()
|
|
62
|
+
? err.message
|
|
63
|
+
: "Couldn't load your application flow. Check your connection and try again.";
|
|
64
|
+
return { status: "error", message };
|
|
65
|
+
}
|
|
66
|
+
if (!isBootEpoch(epoch))
|
|
67
|
+
return { status: "loading" };
|
|
68
|
+
await getApplyLimitHome().catch(() => undefined);
|
|
69
|
+
if (!isBootEpoch(epoch))
|
|
70
|
+
return { status: "loading" };
|
|
71
|
+
return { status: "ready", flow };
|
|
72
|
+
}
|
|
73
|
+
function applyLiveConfig(config) {
|
|
74
|
+
setTokenExpiryHandler(config.onTokenExpired ?? null);
|
|
75
|
+
setHostDocumentPicker(config.onPickDocument);
|
|
76
|
+
setHostDevice({ deviceId: config.deviceId, deviceName: config.deviceName });
|
|
77
|
+
setBusinessLineId(resolveBusinessLineId(config.businessLineId));
|
|
78
|
+
setCountryCode(resolveCountryCode(config.countryCode));
|
|
79
|
+
}
|
|
80
|
+
export function SDKConfigProvider(props) {
|
|
81
|
+
const [state, setState] = React.useState({ status: "loading" });
|
|
82
|
+
const sessionKey = sdkSessionKey(props.config);
|
|
83
|
+
const configRef = React.useRef(props.config);
|
|
84
|
+
configRef.current = props.config;
|
|
85
|
+
applyLiveConfig(props.config);
|
|
86
|
+
const runInit = React.useCallback(() => {
|
|
87
|
+
const epoch = bumpBootEpoch();
|
|
88
|
+
const config = configRef.current;
|
|
89
|
+
setState({ status: "loading" });
|
|
90
|
+
initSdk(config, epoch)
|
|
91
|
+
.then((next) => {
|
|
92
|
+
if (!isBootEpoch(epoch))
|
|
93
|
+
return;
|
|
94
|
+
setState(next);
|
|
95
|
+
if (next.status === "error") {
|
|
96
|
+
config.onEvent?.({ name: "sdk_init_error", payload: { message: next.message } });
|
|
97
|
+
}
|
|
98
|
+
})
|
|
99
|
+
.catch((e) => {
|
|
100
|
+
if (!isBootEpoch(epoch))
|
|
101
|
+
return;
|
|
102
|
+
const message = e instanceof Error ? e.message : "Unknown error";
|
|
103
|
+
setState({ status: "error", message });
|
|
104
|
+
config.onEvent?.({ name: "sdk_init_error", payload: { message } });
|
|
105
|
+
});
|
|
106
|
+
}, [sessionKey]);
|
|
107
|
+
React.useEffect(() => {
|
|
108
|
+
runInit();
|
|
109
|
+
return () => {
|
|
110
|
+
bumpBootEpoch();
|
|
111
|
+
clearCustomerRuntime();
|
|
112
|
+
clearApplicationFlow();
|
|
113
|
+
clearCustomerProductsCache();
|
|
114
|
+
clearApplyLimitHomeCache();
|
|
115
|
+
clearSignedCustomerAgreementCache();
|
|
116
|
+
clearCustomerAgreementLoadCache();
|
|
117
|
+
clearGatewayRuntime();
|
|
118
|
+
setTokenExpiryHandler(null);
|
|
119
|
+
setServiceToken(null);
|
|
120
|
+
setApiBaseUrl(undefined);
|
|
121
|
+
setLoanApiBaseUrl(undefined);
|
|
122
|
+
setGlobalEnv(undefined);
|
|
123
|
+
setHostDocumentPicker(null);
|
|
124
|
+
};
|
|
125
|
+
}, [runInit]);
|
|
126
|
+
if (state.status === "loading")
|
|
127
|
+
return _jsx(SDKLoadingScreen, {});
|
|
128
|
+
if (state.status === "error")
|
|
129
|
+
return _jsx(SDKErrorScreen, { message: state.message, onRetry: runInit });
|
|
130
|
+
return _jsx(ApplicationFlowProvider, { flow: state.flow, children: props.children });
|
|
131
|
+
}
|
|
132
|
+
//# sourceMappingURL=SDKConfigProvider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SDKConfigProvider.js","sourceRoot":"","sources":["../../../src/sdk/bootstrap/SDKConfigProvider.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,EACL,aAAa,EACb,mBAAmB,EACnB,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,qBAAqB,EACrB,UAAU,EACV,aAAa,EACb,iBAAiB,EACjB,cAAc,EACf,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EACL,sBAAsB,EACtB,oBAAoB,EACpB,wBAAwB,EACxB,+BAA+B,EAC/B,0BAA0B,EAC1B,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from "react";
|
|
2
|
+
export declare function SDKLoadingScreen(): React.JSX.Element;
|
|
3
|
+
export declare function SDKErrorScreen(props: {
|
|
4
|
+
message: string;
|
|
5
|
+
onRetry: () => void;
|
|
6
|
+
title?: string;
|
|
7
|
+
}): React.JSX.Element;
|
|
8
|
+
//# sourceMappingURL=bootstrapScreens.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bootstrapScreens.d.ts","sourceRoot":"","sources":["../../../src/sdk/bootstrap/bootstrapScreens.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,wBAAgB,gBAAgB,sBAO/B;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,IAAI,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,qBAU7F"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { ActivityIndicator, Pressable, StyleSheet, Text, View } from "react-native";
|
|
3
|
+
export function SDKLoadingScreen() {
|
|
4
|
+
return (_jsxs(View, { style: styles.container, children: [_jsx(ActivityIndicator, {}), _jsx(Text, { style: styles.title, children: "Initializing SDK\u2026" })] }));
|
|
5
|
+
}
|
|
6
|
+
export function SDKErrorScreen(props) {
|
|
7
|
+
return (_jsxs(View, { style: styles.container, children: [_jsx(Text, { style: styles.title, children: props.title ?? "SDK failed to initialize" }), _jsx(Text, { style: styles.body, children: props.message }), _jsx(Pressable, { accessibilityRole: "button", onPress: props.onRetry, style: styles.button, children: _jsx(Text, { style: styles.buttonText, children: "Retry" }) })] }));
|
|
8
|
+
}
|
|
9
|
+
const styles = StyleSheet.create({
|
|
10
|
+
container: {
|
|
11
|
+
flex: 1,
|
|
12
|
+
alignItems: "center",
|
|
13
|
+
justifyContent: "center",
|
|
14
|
+
padding: 16,
|
|
15
|
+
backgroundColor: "#ffffff"
|
|
16
|
+
},
|
|
17
|
+
title: {
|
|
18
|
+
fontSize: 18,
|
|
19
|
+
fontWeight: "600",
|
|
20
|
+
marginTop: 12,
|
|
21
|
+
marginBottom: 8,
|
|
22
|
+
color: "#111827",
|
|
23
|
+
textAlign: "center"
|
|
24
|
+
},
|
|
25
|
+
body: {
|
|
26
|
+
fontSize: 14,
|
|
27
|
+
color: "#111827",
|
|
28
|
+
opacity: 0.9,
|
|
29
|
+
marginBottom: 6,
|
|
30
|
+
textAlign: "center"
|
|
31
|
+
},
|
|
32
|
+
button: {
|
|
33
|
+
marginTop: 12,
|
|
34
|
+
paddingHorizontal: 14,
|
|
35
|
+
paddingVertical: 10,
|
|
36
|
+
borderRadius: 10,
|
|
37
|
+
backgroundColor: "#111827"
|
|
38
|
+
},
|
|
39
|
+
buttonText: {
|
|
40
|
+
color: "#ffffff",
|
|
41
|
+
fontWeight: "600"
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
//# sourceMappingURL=bootstrapScreens.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bootstrapScreens.js","sourceRoot":"","sources":["../../../src/sdk/bootstrap/bootstrapScreens.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpF,MAAM,UAAU,gBAAgB;IAC9B,OAAO,CACL,MAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,SAAS,aAC3B,KAAC,iBAAiB,KAAG,EACrB,KAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,KAAK,uCAA0B,IAC9C,CACR,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,KAA+D;IAC5F,OAAO,CACL,MAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,SAAS,aAC3B,KAAC,IAAI,IAAC,KAAK,E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K,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,0FAA0F;AAC1F,wBAAgB,aAAa,CAAC,MAAM,EAAE,SAAS,GAAG,MAAM,CAcvD"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** Fields that require a full SDK boot. Callbacks, color, and demo flags are excluded. */
|
|
2
|
+
export function sdkSessionKey(config) {
|
|
3
|
+
return [
|
|
4
|
+
config.apiBaseUrl ?? "",
|
|
5
|
+
config.loanApiBaseUrl ?? "",
|
|
6
|
+
config.publicKey?.trim() ?? "",
|
|
7
|
+
config.customerPhone?.trim() ?? "",
|
|
8
|
+
config.customerRef ?? "",
|
|
9
|
+
config.userRef ?? "",
|
|
10
|
+
config.redirectService ?? "",
|
|
11
|
+
config.redirectUrl ?? "",
|
|
12
|
+
config.sessionId?.trim() ?? "",
|
|
13
|
+
String(config.businessLineId ?? ""),
|
|
14
|
+
String(config.countryCode ?? "")
|
|
15
|
+
].join("\0");
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=configIdentity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configIdentity.js","sourceRoot":"","sources":["../../src/sdk/configIdentity.ts"],"names":[],"mappings":"AAEA,0FAA0F;AAC1F,MAAM,UAAU,aAAa,CAAC,MAAiB;IAC7C,OAAO;QACL,MAAM,CAAC,UAAU,IAAI,EAAE;QACvB,MAAM,CAAC,cAAc,IAAI,EAAE;QAC3B,MAAM,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE;QAC9B,MAAM,CAAC,aAAa,EAAE,IAAI,EAAE,IAAI,EAAE;QAClC,MAAM,CAAC,WAAW,IAAI,EAAE;QACxB,MAAM,CAAC,OAAO,IAAI,EAAE;QACpB,MAAM,CAAC,eAAe,IAAI,EAAE;QAC5B,MAAM,CAAC,WAAW,IAAI,EAAE;QACxB,MAAM,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE;QAC9B,MAAM,CAAC,MAAM,CAAC,cAAc,IAAI,EAAE,CAAC;QACnC,MAAM,CAAC,MAAM,CAAC,WAAW,IAAI,EAAE,CAAC;KACjC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type ApplicationFlow } from "../../services/apply/applicationFlow";
|
|
3
|
+
export declare function ApplicationFlowProvider(props: {
|
|
4
|
+
flow: ApplicationFlow;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
}): React.JSX.Element;
|
|
7
|
+
export declare function useApplicationFlow(): ApplicationFlow;
|
|
8
|
+
export declare function useIsPayLimit(): boolean;
|
|
9
|
+
//# sourceMappingURL=ApplicationFlowProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApplicationFlowProvider.d.ts","sourceRoot":"","sources":["../../../src/sdk/providers/ApplicationFlowProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAgB,KAAK,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAI1F,wBAAgB,uBAAuB,CAAC,KAAK,EAAE;IAAE,IAAI,EAAE,eAAe,CAAC;IAAC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,qBAElG;AAED,wBAAgB,kBAAkB,IAAI,eAAe,CAMpD;AAED,wBAAgB,aAAa,IAAI,OAAO,CAIvC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { isPaylaterUi } from "../../services/apply/applicationFlow";
|
|
4
|
+
const ApplicationFlowContext = React.createContext(null);
|
|
5
|
+
export function ApplicationFlowProvider(props) {
|
|
6
|
+
return _jsx(ApplicationFlowContext.Provider, { value: props.flow, children: props.children });
|
|
7
|
+
}
|
|
8
|
+
export function useApplicationFlow() {
|
|
9
|
+
const flow = React.useContext(ApplicationFlowContext);
|
|
10
|
+
if (!flow) {
|
|
11
|
+
throw new Error("Missing application flow.");
|
|
12
|
+
}
|
|
13
|
+
return flow;
|
|
14
|
+
}
|
|
15
|
+
export function useIsPayLimit() {
|
|
16
|
+
const flow = React.useContext(ApplicationFlowContext);
|
|
17
|
+
if (!flow)
|
|
18
|
+
return false;
|
|
19
|
+
return isPaylaterUi(flow);
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=ApplicationFlowProvider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApplicationFlowProvider.js","sourceRoot":"","sources":["../../../src/sdk/providers/ApplicationFlowProvider.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAwB,MAAM,sCAAsC,CAAC;AAE1F,MAAM,sBAAsB,GAAG,KAAK,CAAC,aAAa,CAAyB,IAAI,CAAC,CAAC;AAEjF,MAAM,UAAU,uBAAuB,CAAC,KAA2D;IACjG,OAAO,KAAC,sBAAsB,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,CAAC,IAAI,YAAG,KAAK,CAAC,QAAQ,GAAmC,CAAC;AAChH,CAAC;AAED,MAAM,UAAU,kBAAkB;IAChC,MAAM,IAAI,GAAG,KAAK,CAAC,UAAU,CAAC,sBAAsB,CAAC,CAAC;IACtD,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;IAC/C,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED,MAAM,UAAU,aAAa;IAC3B,MAAM,IAAI,GAAG,KAAK,CAAC,UAAU,CAAC,sBAAsB,CAAC,CAAC;IACtD,IAAI,CAAC,IAAI;QAAE,OAAO,KAAK,CAAC;IACxB,OAAO,YAAY,CAAC,IAAI,CAAC,CAAC;AAC5B,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export declare function BrandColorProvider(props: {
|
|
3
|
+
color?: string;
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
}): React.JSX.Element;
|
|
6
|
+
export declare function useBrandColor(): string;
|
|
7
|
+
/** Primary fill + contrasting label/spinner for host `config.color`. */
|
|
8
|
+
export declare function useBrandCta(): {
|
|
9
|
+
backgroundColor: string;
|
|
10
|
+
onColor: string;
|
|
11
|
+
fill: {
|
|
12
|
+
backgroundColor: string;
|
|
13
|
+
};
|
|
14
|
+
label: {
|
|
15
|
+
color: string;
|
|
16
|
+
};
|
|
17
|
+
spinner: string;
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=BrandColorProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BrandColorProvider.d.ts","sourceRoot":"","sources":["../../../src/sdk/providers/BrandColorProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,wBAAgB,kBAAkB,CAAC,KAAK,EAAE;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,qBAGtF;AAED,wBAAgB,aAAa,IAAI,MAAM,CAEtC;AAED,wEAAwE;AACxE,wBAAgB,WAAW;;;;;;;;;;EAU1B"}
|