@tonder.io/rn-sdk 0.1.0-beta.DEV1355.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +20 -0
- package/README.md +33 -0
- package/lib/commonjs/core/3DSHandler.js +108 -0
- package/lib/commonjs/core/3DSHandler.js.map +1 -0
- package/lib/commonjs/core/BaseCheckout/index.js +337 -0
- package/lib/commonjs/core/BaseCheckout/index.js.map +1 -0
- package/lib/commonjs/core/BaseEnrollment/index.js +86 -0
- package/lib/commonjs/core/BaseEnrollment/index.js.map +1 -0
- package/lib/commonjs/core/BaseSDK/index.js +75 -0
- package/lib/commonjs/core/BaseSDK/index.js.map +1 -0
- package/lib/commonjs/core/EnrollmentContainer/index.js +87 -0
- package/lib/commonjs/core/EnrollmentContainer/index.js.map +1 -0
- package/lib/commonjs/core/PaymentInlineContainer/index.js +111 -0
- package/lib/commonjs/core/PaymentInlineContainer/index.js.map +1 -0
- package/lib/commonjs/core/PaymentLiteContainer/index.js +158 -0
- package/lib/commonjs/core/PaymentLiteContainer/index.js.map +1 -0
- package/lib/commonjs/core/Tonder/index.js +134 -0
- package/lib/commonjs/core/Tonder/index.js.map +1 -0
- package/lib/commonjs/hooks/useTonder/index-old.js +37 -0
- package/lib/commonjs/hooks/useTonder/index-old.js.map +1 -0
- package/lib/commonjs/hooks/useTonder/index.js +16 -0
- package/lib/commonjs/hooks/useTonder/index.js.map +1 -0
- package/lib/commonjs/index.js +121 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/infrastructure/HttpClient.js +108 -0
- package/lib/commonjs/infrastructure/HttpClient.js.map +1 -0
- package/lib/commonjs/infrastructure/ServiceManager.js +32 -0
- package/lib/commonjs/infrastructure/ServiceManager.js.map +1 -0
- package/lib/commonjs/infrastructure/index.js +28 -0
- package/lib/commonjs/infrastructure/index.js.map +1 -0
- package/lib/commonjs/services/BusinessService.js +36 -0
- package/lib/commonjs/services/BusinessService.js.map +1 -0
- package/lib/commonjs/services/CardService.js +89 -0
- package/lib/commonjs/services/CardService.js.map +1 -0
- package/lib/commonjs/services/CheckoutService.js +121 -0
- package/lib/commonjs/services/CheckoutService.js.map +1 -0
- package/lib/commonjs/services/CustomerService.js +62 -0
- package/lib/commonjs/services/CustomerService.js.map +1 -0
- package/lib/commonjs/services/MercadoPagoService.js +27 -0
- package/lib/commonjs/services/MercadoPagoService.js.map +1 -0
- package/lib/commonjs/services/OpenPayService.js +25 -0
- package/lib/commonjs/services/OpenPayService.js.map +1 -0
- package/lib/commonjs/services/PaymentMethodService.js +37 -0
- package/lib/commonjs/services/PaymentMethodService.js.map +1 -0
- package/lib/commonjs/services/SkyflowService.js +53 -0
- package/lib/commonjs/services/SkyflowService.js.map +1 -0
- package/lib/commonjs/services/StorageService.js +49 -0
- package/lib/commonjs/services/StorageService.js.map +1 -0
- package/lib/commonjs/services/TokenService.js +46 -0
- package/lib/commonjs/services/TokenService.js.map +1 -0
- package/lib/commonjs/services/TransactionService.js +26 -0
- package/lib/commonjs/services/TransactionService.js.map +1 -0
- package/lib/commonjs/services/index.js +127 -0
- package/lib/commonjs/services/index.js.map +1 -0
- package/lib/commonjs/shared/catalog/cardBrandCatalog.js +19 -0
- package/lib/commonjs/shared/catalog/cardBrandCatalog.js.map +1 -0
- package/lib/commonjs/shared/catalog/paymentMethodsCatalog.js +252 -0
- package/lib/commonjs/shared/catalog/paymentMethodsCatalog.js.map +1 -0
- package/lib/commonjs/shared/constants/environments.js +13 -0
- package/lib/commonjs/shared/constants/environments.js.map +1 -0
- package/lib/commonjs/shared/constants/index.js +28 -0
- package/lib/commonjs/shared/constants/index.js.map +1 -0
- package/lib/commonjs/shared/constants/messages.js +101 -0
- package/lib/commonjs/shared/constants/messages.js.map +1 -0
- package/lib/commonjs/shared/constants/paymentMethods.js +68 -0
- package/lib/commonjs/shared/constants/paymentMethods.js.map +1 -0
- package/lib/commonjs/shared/constants/skyflow.js +47 -0
- package/lib/commonjs/shared/constants/skyflow.js.map +1 -0
- package/lib/commonjs/shared/enum/ErrorKeyEnum.js +55 -0
- package/lib/commonjs/shared/enum/ErrorKeyEnum.js.map +1 -0
- package/lib/commonjs/shared/enum/index.js +17 -0
- package/lib/commonjs/shared/enum/index.js.map +1 -0
- package/lib/commonjs/shared/index.js +39 -0
- package/lib/commonjs/shared/index.js.map +1 -0
- package/lib/commonjs/shared/utils/common.js +47 -0
- package/lib/commonjs/shared/utils/common.js.map +1 -0
- package/lib/commonjs/shared/utils/errors.js +21 -0
- package/lib/commonjs/shared/utils/errors.js.map +1 -0
- package/lib/commonjs/shared/utils/numberUtils.js +17 -0
- package/lib/commonjs/shared/utils/numberUtils.js.map +1 -0
- package/lib/commonjs/shared/utils/paymentMethodUtils.js +21 -0
- package/lib/commonjs/shared/utils/paymentMethodUtils.js.map +1 -0
- package/lib/commonjs/shared/utils/stringUtils.js +11 -0
- package/lib/commonjs/shared/utils/stringUtils.js.map +1 -0
- package/lib/commonjs/shared/utils/styleUtils.js +21 -0
- package/lib/commonjs/shared/utils/styleUtils.js.map +1 -0
- package/lib/commonjs/types/base.js +14 -0
- package/lib/commonjs/types/base.js.map +1 -0
- package/lib/commonjs/types/baseCheckout.js +6 -0
- package/lib/commonjs/types/baseCheckout.js.map +1 -0
- package/lib/commonjs/types/baseEnrollment.js +6 -0
- package/lib/commonjs/types/baseEnrollment.js.map +1 -0
- package/lib/commonjs/types/baseSDK.js +6 -0
- package/lib/commonjs/types/baseSDK.js.map +1 -0
- package/lib/commonjs/types/business.js +2 -0
- package/lib/commonjs/types/business.js.map +1 -0
- package/lib/commonjs/types/card.js +2 -0
- package/lib/commonjs/types/card.js.map +1 -0
- package/lib/commonjs/types/checkout.js +6 -0
- package/lib/commonjs/types/checkout.js.map +1 -0
- package/lib/commonjs/types/common.js +6 -0
- package/lib/commonjs/types/common.js.map +1 -0
- package/lib/commonjs/types/customer.js +2 -0
- package/lib/commonjs/types/customer.js.map +1 -0
- package/lib/commonjs/types/enrollment.js +6 -0
- package/lib/commonjs/types/enrollment.js.map +1 -0
- package/lib/commonjs/types/index.js +204 -0
- package/lib/commonjs/types/index.js.map +1 -0
- package/lib/commonjs/types/inlineCheckout.js +6 -0
- package/lib/commonjs/types/inlineCheckout.js.map +1 -0
- package/lib/commonjs/types/input.js +6 -0
- package/lib/commonjs/types/input.js.map +1 -0
- package/lib/commonjs/types/liteCheckout.js +6 -0
- package/lib/commonjs/types/liteCheckout.js.map +1 -0
- package/lib/commonjs/types/openpay-react-native.d.js +2 -0
- package/lib/commonjs/types/openpay-react-native.d.js.map +1 -0
- package/lib/commonjs/types/openpay.js +2 -0
- package/lib/commonjs/types/openpay.js.map +1 -0
- package/lib/commonjs/types/payment.js +6 -0
- package/lib/commonjs/types/payment.js.map +1 -0
- package/lib/commonjs/types/secure.js +2 -0
- package/lib/commonjs/types/secure.js.map +1 -0
- package/lib/commonjs/types/skyflow-react-native.d.js +2 -0
- package/lib/commonjs/types/skyflow-react-native.d.js.map +1 -0
- package/lib/commonjs/types/threeDSHandler.js +6 -0
- package/lib/commonjs/types/threeDSHandler.js.map +1 -0
- package/lib/commonjs/types/transaction.js +2 -0
- package/lib/commonjs/types/transaction.js.map +1 -0
- package/lib/commonjs/ui/components/Button/ProcessButton.js +50 -0
- package/lib/commonjs/ui/components/Button/ProcessButton.js.map +1 -0
- package/lib/commonjs/ui/components/CardForm/index.js +80 -0
- package/lib/commonjs/ui/components/CardForm/index.js.map +1 -0
- package/lib/commonjs/ui/components/Checkbox/Checkbox.js +62 -0
- package/lib/commonjs/ui/components/Checkbox/Checkbox.js.map +1 -0
- package/lib/commonjs/ui/components/Input/CardCVVInput.js +83 -0
- package/lib/commonjs/ui/components/Input/CardCVVInput.js.map +1 -0
- package/lib/commonjs/ui/components/Input/CardExpirationDateInput.js +91 -0
- package/lib/commonjs/ui/components/Input/CardExpirationDateInput.js.map +1 -0
- package/lib/commonjs/ui/components/Input/CardExpirationMonthInput.js +84 -0
- package/lib/commonjs/ui/components/Input/CardExpirationMonthInput.js.map +1 -0
- package/lib/commonjs/ui/components/Input/CardExpirationYearInput.js +84 -0
- package/lib/commonjs/ui/components/Input/CardExpirationYearInput.js.map +1 -0
- package/lib/commonjs/ui/components/Input/CardHolderInput.js +83 -0
- package/lib/commonjs/ui/components/Input/CardHolderInput.js.map +1 -0
- package/lib/commonjs/ui/components/Input/CardNumberInput.js +83 -0
- package/lib/commonjs/ui/components/Input/CardNumberInput.js.map +1 -0
- package/lib/commonjs/ui/components/PaymentMethodsList/index.js +105 -0
- package/lib/commonjs/ui/components/PaymentMethodsList/index.js.map +1 -0
- package/lib/commonjs/ui/components/RadioButton/index.js +57 -0
- package/lib/commonjs/ui/components/RadioButton/index.js.map +1 -0
- package/lib/commonjs/ui/components/SavedCardsList/index.js +126 -0
- package/lib/commonjs/ui/components/SavedCardsList/index.js.map +1 -0
- package/lib/commonjs/ui/components/Skeleton/CardFormSkeleton.js +102 -0
- package/lib/commonjs/ui/components/Skeleton/CardFormSkeleton.js.map +1 -0
- package/lib/commonjs/ui/components/WebView/ThreeDSWebView.js +105 -0
- package/lib/commonjs/ui/components/WebView/ThreeDSWebView.js.map +1 -0
- package/lib/commonjs/ui/features/TonderEnrollment/index.js +119 -0
- package/lib/commonjs/ui/features/TonderEnrollment/index.js.map +1 -0
- package/lib/commonjs/ui/features/TonderPayment/index.js +195 -0
- package/lib/commonjs/ui/features/TonderPayment/index.js.map +1 -0
- package/lib/commonjs/ui/providers/InnerProvider/index.js +25 -0
- package/lib/commonjs/ui/providers/InnerProvider/index.js.map +1 -0
- package/lib/commonjs/ui/providers/SkyflowContainerWrapper/index.js +31 -0
- package/lib/commonjs/ui/providers/SkyflowContainerWrapper/index.js.map +1 -0
- package/lib/commonjs/ui/providers/TonderProvider/context.js +16 -0
- package/lib/commonjs/ui/providers/TonderProvider/context.js.map +1 -0
- package/lib/commonjs/ui/providers/TonderProvider/hook.js +15 -0
- package/lib/commonjs/ui/providers/TonderProvider/hook.js.map +1 -0
- package/lib/commonjs/ui/providers/TonderProvider/index.js +96 -0
- package/lib/commonjs/ui/providers/TonderProvider/index.js.map +1 -0
- package/lib/commonjs/ui/providers/TonderProvider/uiWrapper.js +61 -0
- package/lib/commonjs/ui/providers/TonderProvider/uiWrapper.js.map +1 -0
- package/lib/commonjs/ui/styles/payment.js +27 -0
- package/lib/commonjs/ui/styles/payment.js.map +1 -0
- package/lib/commonjs/ui/styles/skyflow.js +54 -0
- package/lib/commonjs/ui/styles/skyflow.js.map +1 -0
- package/lib/module/core/3DSHandler.js +102 -0
- package/lib/module/core/3DSHandler.js.map +1 -0
- package/lib/module/core/BaseCheckout/index.js +332 -0
- package/lib/module/core/BaseCheckout/index.js.map +1 -0
- package/lib/module/core/BaseEnrollment/index.js +81 -0
- package/lib/module/core/BaseEnrollment/index.js.map +1 -0
- package/lib/module/core/BaseSDK/index.js +70 -0
- package/lib/module/core/BaseSDK/index.js.map +1 -0
- package/lib/module/core/EnrollmentContainer/index.js +81 -0
- package/lib/module/core/EnrollmentContainer/index.js.map +1 -0
- package/lib/module/core/PaymentInlineContainer/index.js +106 -0
- package/lib/module/core/PaymentInlineContainer/index.js.map +1 -0
- package/lib/module/core/PaymentLiteContainer/index.js +153 -0
- package/lib/module/core/PaymentLiteContainer/index.js.map +1 -0
- package/lib/module/core/Tonder/index.js +129 -0
- package/lib/module/core/Tonder/index.js.map +1 -0
- package/lib/module/hooks/useTonder/index-old.js +37 -0
- package/lib/module/hooks/useTonder/index-old.js.map +1 -0
- package/lib/module/hooks/useTonder/index.js +11 -0
- package/lib/module/hooks/useTonder/index.js.map +1 -0
- package/lib/module/index.js +14 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/infrastructure/HttpClient.js +102 -0
- package/lib/module/infrastructure/HttpClient.js.map +1 -0
- package/lib/module/infrastructure/ServiceManager.js +27 -0
- package/lib/module/infrastructure/ServiceManager.js.map +1 -0
- package/lib/module/infrastructure/index.js +5 -0
- package/lib/module/infrastructure/index.js.map +1 -0
- package/lib/module/services/BusinessService.js +30 -0
- package/lib/module/services/BusinessService.js.map +1 -0
- package/lib/module/services/CardService.js +83 -0
- package/lib/module/services/CardService.js.map +1 -0
- package/lib/module/services/CheckoutService.js +115 -0
- package/lib/module/services/CheckoutService.js.map +1 -0
- package/lib/module/services/CustomerService.js +56 -0
- package/lib/module/services/CustomerService.js.map +1 -0
- package/lib/module/services/MercadoPagoService.js +22 -0
- package/lib/module/services/MercadoPagoService.js.map +1 -0
- package/lib/module/services/OpenPayService.js +20 -0
- package/lib/module/services/OpenPayService.js.map +1 -0
- package/lib/module/services/PaymentMethodService.js +31 -0
- package/lib/module/services/PaymentMethodService.js.map +1 -0
- package/lib/module/services/SkyflowService.js +47 -0
- package/lib/module/services/SkyflowService.js.map +1 -0
- package/lib/module/services/StorageService.js +43 -0
- package/lib/module/services/StorageService.js.map +1 -0
- package/lib/module/services/TokenService.js +40 -0
- package/lib/module/services/TokenService.js.map +1 -0
- package/lib/module/services/TransactionService.js +20 -0
- package/lib/module/services/TransactionService.js.map +1 -0
- package/lib/module/services/index.js +15 -0
- package/lib/module/services/index.js.map +1 -0
- package/lib/module/shared/catalog/cardBrandCatalog.js +14 -0
- package/lib/module/shared/catalog/cardBrandCatalog.js.map +1 -0
- package/lib/module/shared/catalog/paymentMethodsCatalog.js +247 -0
- package/lib/module/shared/catalog/paymentMethodsCatalog.js.map +1 -0
- package/lib/module/shared/constants/environments.js +10 -0
- package/lib/module/shared/constants/environments.js.map +1 -0
- package/lib/module/shared/constants/index.js +5 -0
- package/lib/module/shared/constants/index.js.map +1 -0
- package/lib/module/shared/constants/messages.js +97 -0
- package/lib/module/shared/constants/messages.js.map +1 -0
- package/lib/module/shared/constants/paymentMethods.js +65 -0
- package/lib/module/shared/constants/paymentMethods.js.map +1 -0
- package/lib/module/shared/constants/skyflow.js +43 -0
- package/lib/module/shared/constants/skyflow.js.map +1 -0
- package/lib/module/shared/enum/ErrorKeyEnum.js +51 -0
- package/lib/module/shared/enum/ErrorKeyEnum.js.map +1 -0
- package/lib/module/shared/enum/index.js +4 -0
- package/lib/module/shared/enum/index.js.map +1 -0
- package/lib/module/shared/index.js +6 -0
- package/lib/module/shared/index.js.map +1 -0
- package/lib/module/shared/utils/common.js +41 -0
- package/lib/module/shared/utils/common.js.map +1 -0
- package/lib/module/shared/utils/errors.js +17 -0
- package/lib/module/shared/utils/errors.js.map +1 -0
- package/lib/module/shared/utils/numberUtils.js +13 -0
- package/lib/module/shared/utils/numberUtils.js.map +1 -0
- package/lib/module/shared/utils/paymentMethodUtils.js +16 -0
- package/lib/module/shared/utils/paymentMethodUtils.js.map +1 -0
- package/lib/module/shared/utils/stringUtils.js +6 -0
- package/lib/module/shared/utils/stringUtils.js.map +1 -0
- package/lib/module/shared/utils/styleUtils.js +17 -0
- package/lib/module/shared/utils/styleUtils.js.map +1 -0
- package/lib/module/types/base.js +13 -0
- package/lib/module/types/base.js.map +1 -0
- package/lib/module/types/baseCheckout.js +4 -0
- package/lib/module/types/baseCheckout.js.map +1 -0
- package/lib/module/types/baseEnrollment.js +4 -0
- package/lib/module/types/baseEnrollment.js.map +1 -0
- package/lib/module/types/baseSDK.js +4 -0
- package/lib/module/types/baseSDK.js.map +1 -0
- package/lib/module/types/business.js +2 -0
- package/lib/module/types/business.js.map +1 -0
- package/lib/module/types/card.js +2 -0
- package/lib/module/types/card.js.map +1 -0
- package/lib/module/types/checkout.js +4 -0
- package/lib/module/types/checkout.js.map +1 -0
- package/lib/module/types/common.js +4 -0
- package/lib/module/types/common.js.map +1 -0
- package/lib/module/types/customer.js +2 -0
- package/lib/module/types/customer.js.map +1 -0
- package/lib/module/types/enrollment.js +4 -0
- package/lib/module/types/enrollment.js.map +1 -0
- package/lib/module/types/index.js +21 -0
- package/lib/module/types/index.js.map +1 -0
- package/lib/module/types/inlineCheckout.js +4 -0
- package/lib/module/types/inlineCheckout.js.map +1 -0
- package/lib/module/types/input.js +4 -0
- package/lib/module/types/input.js.map +1 -0
- package/lib/module/types/liteCheckout.js +4 -0
- package/lib/module/types/liteCheckout.js.map +1 -0
- package/lib/module/types/openpay-react-native.d.js +2 -0
- package/lib/module/types/openpay-react-native.d.js.map +1 -0
- package/lib/module/types/openpay.js +2 -0
- package/lib/module/types/openpay.js.map +1 -0
- package/lib/module/types/payment.js +4 -0
- package/lib/module/types/payment.js.map +1 -0
- package/lib/module/types/secure.js +2 -0
- package/lib/module/types/secure.js.map +1 -0
- package/lib/module/types/skyflow-react-native.d.js +2 -0
- package/lib/module/types/skyflow-react-native.d.js.map +1 -0
- package/lib/module/types/threeDSHandler.js +4 -0
- package/lib/module/types/threeDSHandler.js.map +1 -0
- package/lib/module/types/transaction.js +2 -0
- package/lib/module/types/transaction.js.map +1 -0
- package/lib/module/ui/components/Button/ProcessButton.js +44 -0
- package/lib/module/ui/components/Button/ProcessButton.js.map +1 -0
- package/lib/module/ui/components/CardForm/index.js +74 -0
- package/lib/module/ui/components/CardForm/index.js.map +1 -0
- package/lib/module/ui/components/Checkbox/Checkbox.js +56 -0
- package/lib/module/ui/components/Checkbox/Checkbox.js.map +1 -0
- package/lib/module/ui/components/Input/CardCVVInput.js +75 -0
- package/lib/module/ui/components/Input/CardCVVInput.js.map +1 -0
- package/lib/module/ui/components/Input/CardExpirationDateInput.js +84 -0
- package/lib/module/ui/components/Input/CardExpirationDateInput.js.map +1 -0
- package/lib/module/ui/components/Input/CardExpirationMonthInput.js +77 -0
- package/lib/module/ui/components/Input/CardExpirationMonthInput.js.map +1 -0
- package/lib/module/ui/components/Input/CardExpirationYearInput.js +76 -0
- package/lib/module/ui/components/Input/CardExpirationYearInput.js.map +1 -0
- package/lib/module/ui/components/Input/CardHolderInput.js +75 -0
- package/lib/module/ui/components/Input/CardHolderInput.js.map +1 -0
- package/lib/module/ui/components/Input/CardNumberInput.js +75 -0
- package/lib/module/ui/components/Input/CardNumberInput.js.map +1 -0
- package/lib/module/ui/components/PaymentMethodsList/index.js +100 -0
- package/lib/module/ui/components/PaymentMethodsList/index.js.map +1 -0
- package/lib/module/ui/components/RadioButton/index.js +50 -0
- package/lib/module/ui/components/RadioButton/index.js.map +1 -0
- package/lib/module/ui/components/SavedCardsList/index.js +121 -0
- package/lib/module/ui/components/SavedCardsList/index.js.map +1 -0
- package/lib/module/ui/components/Skeleton/CardFormSkeleton.js +97 -0
- package/lib/module/ui/components/Skeleton/CardFormSkeleton.js.map +1 -0
- package/lib/module/ui/components/WebView/ThreeDSWebView.js +96 -0
- package/lib/module/ui/components/WebView/ThreeDSWebView.js.map +1 -0
- package/lib/module/ui/features/TonderEnrollment/index.js +114 -0
- package/lib/module/ui/features/TonderEnrollment/index.js.map +1 -0
- package/lib/module/ui/features/TonderPayment/index.js +188 -0
- package/lib/module/ui/features/TonderPayment/index.js.map +1 -0
- package/lib/module/ui/providers/InnerProvider/index.js +19 -0
- package/lib/module/ui/providers/InnerProvider/index.js.map +1 -0
- package/lib/module/ui/providers/SkyflowContainerWrapper/index.js +24 -0
- package/lib/module/ui/providers/SkyflowContainerWrapper/index.js.map +1 -0
- package/lib/module/ui/providers/TonderProvider/context.js +10 -0
- package/lib/module/ui/providers/TonderProvider/context.js.map +1 -0
- package/lib/module/ui/providers/TonderProvider/hook.js +10 -0
- package/lib/module/ui/providers/TonderProvider/hook.js.map +1 -0
- package/lib/module/ui/providers/TonderProvider/index.js +88 -0
- package/lib/module/ui/providers/TonderProvider/index.js.map +1 -0
- package/lib/module/ui/providers/TonderProvider/uiWrapper.js +57 -0
- package/lib/module/ui/providers/TonderProvider/uiWrapper.js.map +1 -0
- package/lib/module/ui/styles/payment.js +25 -0
- package/lib/module/ui/styles/payment.js.map +1 -0
- package/lib/module/ui/styles/skyflow.js +52 -0
- package/lib/module/ui/styles/skyflow.js.map +1 -0
- package/lib/typescript/commonjs/package.json +1 -0
- package/lib/typescript/commonjs/src/core/3DSHandler.d.ts +23 -0
- package/lib/typescript/commonjs/src/core/3DSHandler.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/core/BaseCheckout/index.d.ts +28 -0
- package/lib/typescript/commonjs/src/core/BaseCheckout/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/core/BaseEnrollment/index.d.ts +16 -0
- package/lib/typescript/commonjs/src/core/BaseEnrollment/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/core/BaseSDK/index.d.ts +19 -0
- package/lib/typescript/commonjs/src/core/BaseSDK/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/core/EnrollmentContainer/index.d.ts +15 -0
- package/lib/typescript/commonjs/src/core/EnrollmentContainer/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/core/PaymentInlineContainer/index.d.ts +17 -0
- package/lib/typescript/commonjs/src/core/PaymentInlineContainer/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/core/PaymentLiteContainer/index.d.ts +21 -0
- package/lib/typescript/commonjs/src/core/PaymentLiteContainer/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/core/Tonder/index.d.ts +33 -0
- package/lib/typescript/commonjs/src/core/Tonder/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/hooks/useTonder/index-old.d.ts +1 -0
- package/lib/typescript/commonjs/src/hooks/useTonder/index-old.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/hooks/useTonder/index.d.ts +4 -0
- package/lib/typescript/commonjs/src/hooks/useTonder/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/index.d.ts +12 -0
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/infrastructure/HttpClient.d.ts +20 -0
- package/lib/typescript/commonjs/src/infrastructure/HttpClient.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/infrastructure/ServiceManager.d.ts +19 -0
- package/lib/typescript/commonjs/src/infrastructure/ServiceManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/infrastructure/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/infrastructure/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/services/BusinessService.d.ts +15 -0
- package/lib/typescript/commonjs/src/services/BusinessService.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/services/CardService.d.ts +28 -0
- package/lib/typescript/commonjs/src/services/CardService.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/services/CheckoutService.d.ts +37 -0
- package/lib/typescript/commonjs/src/services/CheckoutService.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/services/CustomerService.d.ts +24 -0
- package/lib/typescript/commonjs/src/services/CustomerService.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/services/MercadoPagoService.d.ts +4 -0
- package/lib/typescript/commonjs/src/services/MercadoPagoService.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/services/OpenPayService.d.ts +4 -0
- package/lib/typescript/commonjs/src/services/OpenPayService.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/services/PaymentMethodService.d.ts +15 -0
- package/lib/typescript/commonjs/src/services/PaymentMethodService.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/services/SkyflowService.d.ts +15 -0
- package/lib/typescript/commonjs/src/services/SkyflowService.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/services/StorageService.d.ts +7 -0
- package/lib/typescript/commonjs/src/services/StorageService.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/services/TokenService.d.ts +16 -0
- package/lib/typescript/commonjs/src/services/TokenService.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/services/TransactionService.d.ts +8 -0
- package/lib/typescript/commonjs/src/services/TransactionService.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/services/index.d.ts +13 -0
- package/lib/typescript/commonjs/src/services/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/shared/catalog/cardBrandCatalog.d.ts +2 -0
- package/lib/typescript/commonjs/src/shared/catalog/cardBrandCatalog.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/shared/catalog/paymentMethodsCatalog.d.ts +5 -0
- package/lib/typescript/commonjs/src/shared/catalog/paymentMethodsCatalog.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/shared/constants/environments.d.ts +8 -0
- package/lib/typescript/commonjs/src/shared/constants/environments.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/shared/constants/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/shared/constants/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/shared/constants/messages.d.ts +94 -0
- package/lib/typescript/commonjs/src/shared/constants/messages.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/shared/constants/paymentMethods.d.ts +63 -0
- package/lib/typescript/commonjs/src/shared/constants/paymentMethods.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/shared/constants/skyflow.d.ts +38 -0
- package/lib/typescript/commonjs/src/shared/constants/skyflow.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/shared/enum/ErrorKeyEnum.d.ts +48 -0
- package/lib/typescript/commonjs/src/shared/enum/ErrorKeyEnum.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/shared/enum/index.d.ts +2 -0
- package/lib/typescript/commonjs/src/shared/enum/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/shared/index.d.ts +4 -0
- package/lib/typescript/commonjs/src/shared/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/shared/utils/common.d.ts +9 -0
- package/lib/typescript/commonjs/src/shared/utils/common.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/shared/utils/errors.d.ts +16 -0
- package/lib/typescript/commonjs/src/shared/utils/errors.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/shared/utils/numberUtils.d.ts +2 -0
- package/lib/typescript/commonjs/src/shared/utils/numberUtils.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/shared/utils/paymentMethodUtils.d.ts +2 -0
- package/lib/typescript/commonjs/src/shared/utils/paymentMethodUtils.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/shared/utils/stringUtils.d.ts +2 -0
- package/lib/typescript/commonjs/src/shared/utils/stringUtils.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/shared/utils/styleUtils.d.ts +8 -0
- package/lib/typescript/commonjs/src/shared/utils/styleUtils.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/base.d.ts +48 -0
- package/lib/typescript/commonjs/src/types/base.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/baseCheckout.d.ts +29 -0
- package/lib/typescript/commonjs/src/types/baseCheckout.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/baseEnrollment.d.ts +11 -0
- package/lib/typescript/commonjs/src/types/baseEnrollment.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/baseSDK.d.ts +10 -0
- package/lib/typescript/commonjs/src/types/baseSDK.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/business.d.ts +36 -0
- package/lib/typescript/commonjs/src/types/business.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/card.d.ts +33 -0
- package/lib/typescript/commonjs/src/types/card.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/checkout.d.ts +150 -0
- package/lib/typescript/commonjs/src/types/checkout.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/common.d.ts +60 -0
- package/lib/typescript/commonjs/src/types/common.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/customer.d.ts +28 -0
- package/lib/typescript/commonjs/src/types/customer.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/enrollment.d.ts +66 -0
- package/lib/typescript/commonjs/src/types/enrollment.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/index.d.ts +19 -0
- package/lib/typescript/commonjs/src/types/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/inlineCheckout.d.ts +78 -0
- package/lib/typescript/commonjs/src/types/inlineCheckout.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/input.d.ts +13 -0
- package/lib/typescript/commonjs/src/types/input.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/liteCheckout.d.ts +90 -0
- package/lib/typescript/commonjs/src/types/liteCheckout.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/openpay.d.ts +11 -0
- package/lib/typescript/commonjs/src/types/openpay.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/payment.d.ts +59 -0
- package/lib/typescript/commonjs/src/types/payment.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/secure.d.ts +4 -0
- package/lib/typescript/commonjs/src/types/secure.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/threeDSHandler.d.ts +7 -0
- package/lib/typescript/commonjs/src/types/threeDSHandler.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/transaction.d.ts +103 -0
- package/lib/typescript/commonjs/src/types/transaction.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ui/components/Button/ProcessButton.d.ts +11 -0
- package/lib/typescript/commonjs/src/ui/components/Button/ProcessButton.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ui/components/CardForm/index.d.ts +13 -0
- package/lib/typescript/commonjs/src/ui/components/CardForm/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ui/components/Checkbox/Checkbox.d.ts +9 -0
- package/lib/typescript/commonjs/src/ui/components/Checkbox/Checkbox.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ui/components/Input/CardCVVInput.d.ts +4 -0
- package/lib/typescript/commonjs/src/ui/components/Input/CardCVVInput.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ui/components/Input/CardExpirationDateInput.d.ts +10 -0
- package/lib/typescript/commonjs/src/ui/components/Input/CardExpirationDateInput.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ui/components/Input/CardExpirationMonthInput.d.ts +4 -0
- package/lib/typescript/commonjs/src/ui/components/Input/CardExpirationMonthInput.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ui/components/Input/CardExpirationYearInput.d.ts +4 -0
- package/lib/typescript/commonjs/src/ui/components/Input/CardExpirationYearInput.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ui/components/Input/CardHolderInput.d.ts +4 -0
- package/lib/typescript/commonjs/src/ui/components/Input/CardHolderInput.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ui/components/Input/CardNumberInput.d.ts +4 -0
- package/lib/typescript/commonjs/src/ui/components/Input/CardNumberInput.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ui/components/PaymentMethodsList/index.d.ts +11 -0
- package/lib/typescript/commonjs/src/ui/components/PaymentMethodsList/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ui/components/RadioButton/index.d.ts +14 -0
- package/lib/typescript/commonjs/src/ui/components/RadioButton/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ui/components/SavedCardsList/index.d.ts +14 -0
- package/lib/typescript/commonjs/src/ui/components/SavedCardsList/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ui/components/Skeleton/CardFormSkeleton.d.ts +5 -0
- package/lib/typescript/commonjs/src/ui/components/Skeleton/CardFormSkeleton.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ui/components/WebView/ThreeDSWebView.d.ts +9 -0
- package/lib/typescript/commonjs/src/ui/components/WebView/ThreeDSWebView.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ui/features/TonderEnrollment/index.d.ts +6 -0
- package/lib/typescript/commonjs/src/ui/features/TonderEnrollment/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ui/features/TonderPayment/index.d.ts +6 -0
- package/lib/typescript/commonjs/src/ui/features/TonderPayment/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ui/providers/InnerProvider/index.d.ts +10 -0
- package/lib/typescript/commonjs/src/ui/providers/InnerProvider/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ui/providers/SkyflowContainerWrapper/index.d.ts +10 -0
- package/lib/typescript/commonjs/src/ui/providers/SkyflowContainerWrapper/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ui/providers/TonderProvider/context.d.ts +5 -0
- package/lib/typescript/commonjs/src/ui/providers/TonderProvider/context.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ui/providers/TonderProvider/hook.d.ts +4 -0
- package/lib/typescript/commonjs/src/ui/providers/TonderProvider/hook.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ui/providers/TonderProvider/index.d.ts +8 -0
- package/lib/typescript/commonjs/src/ui/providers/TonderProvider/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ui/providers/TonderProvider/uiWrapper.d.ts +10 -0
- package/lib/typescript/commonjs/src/ui/providers/TonderProvider/uiWrapper.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ui/styles/payment.d.ts +20 -0
- package/lib/typescript/commonjs/src/ui/styles/payment.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ui/styles/skyflow.d.ts +44 -0
- package/lib/typescript/commonjs/src/ui/styles/skyflow.d.ts.map +1 -0
- package/lib/typescript/module/package.json +1 -0
- package/lib/typescript/module/src/core/3DSHandler.d.ts +23 -0
- package/lib/typescript/module/src/core/3DSHandler.d.ts.map +1 -0
- package/lib/typescript/module/src/core/BaseCheckout/index.d.ts +28 -0
- package/lib/typescript/module/src/core/BaseCheckout/index.d.ts.map +1 -0
- package/lib/typescript/module/src/core/BaseEnrollment/index.d.ts +16 -0
- package/lib/typescript/module/src/core/BaseEnrollment/index.d.ts.map +1 -0
- package/lib/typescript/module/src/core/BaseSDK/index.d.ts +19 -0
- package/lib/typescript/module/src/core/BaseSDK/index.d.ts.map +1 -0
- package/lib/typescript/module/src/core/EnrollmentContainer/index.d.ts +15 -0
- package/lib/typescript/module/src/core/EnrollmentContainer/index.d.ts.map +1 -0
- package/lib/typescript/module/src/core/PaymentInlineContainer/index.d.ts +17 -0
- package/lib/typescript/module/src/core/PaymentInlineContainer/index.d.ts.map +1 -0
- package/lib/typescript/module/src/core/PaymentLiteContainer/index.d.ts +21 -0
- package/lib/typescript/module/src/core/PaymentLiteContainer/index.d.ts.map +1 -0
- package/lib/typescript/module/src/core/Tonder/index.d.ts +33 -0
- package/lib/typescript/module/src/core/Tonder/index.d.ts.map +1 -0
- package/lib/typescript/module/src/hooks/useTonder/index-old.d.ts +1 -0
- package/lib/typescript/module/src/hooks/useTonder/index-old.d.ts.map +1 -0
- package/lib/typescript/module/src/hooks/useTonder/index.d.ts +4 -0
- package/lib/typescript/module/src/hooks/useTonder/index.d.ts.map +1 -0
- package/lib/typescript/module/src/index.d.ts +12 -0
- package/lib/typescript/module/src/index.d.ts.map +1 -0
- package/lib/typescript/module/src/infrastructure/HttpClient.d.ts +20 -0
- package/lib/typescript/module/src/infrastructure/HttpClient.d.ts.map +1 -0
- package/lib/typescript/module/src/infrastructure/ServiceManager.d.ts +19 -0
- package/lib/typescript/module/src/infrastructure/ServiceManager.d.ts.map +1 -0
- package/lib/typescript/module/src/infrastructure/index.d.ts +3 -0
- package/lib/typescript/module/src/infrastructure/index.d.ts.map +1 -0
- package/lib/typescript/module/src/services/BusinessService.d.ts +15 -0
- package/lib/typescript/module/src/services/BusinessService.d.ts.map +1 -0
- package/lib/typescript/module/src/services/CardService.d.ts +28 -0
- package/lib/typescript/module/src/services/CardService.d.ts.map +1 -0
- package/lib/typescript/module/src/services/CheckoutService.d.ts +37 -0
- package/lib/typescript/module/src/services/CheckoutService.d.ts.map +1 -0
- package/lib/typescript/module/src/services/CustomerService.d.ts +24 -0
- package/lib/typescript/module/src/services/CustomerService.d.ts.map +1 -0
- package/lib/typescript/module/src/services/MercadoPagoService.d.ts +4 -0
- package/lib/typescript/module/src/services/MercadoPagoService.d.ts.map +1 -0
- package/lib/typescript/module/src/services/OpenPayService.d.ts +4 -0
- package/lib/typescript/module/src/services/OpenPayService.d.ts.map +1 -0
- package/lib/typescript/module/src/services/PaymentMethodService.d.ts +15 -0
- package/lib/typescript/module/src/services/PaymentMethodService.d.ts.map +1 -0
- package/lib/typescript/module/src/services/SkyflowService.d.ts +15 -0
- package/lib/typescript/module/src/services/SkyflowService.d.ts.map +1 -0
- package/lib/typescript/module/src/services/StorageService.d.ts +7 -0
- package/lib/typescript/module/src/services/StorageService.d.ts.map +1 -0
- package/lib/typescript/module/src/services/TokenService.d.ts +16 -0
- package/lib/typescript/module/src/services/TokenService.d.ts.map +1 -0
- package/lib/typescript/module/src/services/TransactionService.d.ts +8 -0
- package/lib/typescript/module/src/services/TransactionService.d.ts.map +1 -0
- package/lib/typescript/module/src/services/index.d.ts +13 -0
- package/lib/typescript/module/src/services/index.d.ts.map +1 -0
- package/lib/typescript/module/src/shared/catalog/cardBrandCatalog.d.ts +2 -0
- package/lib/typescript/module/src/shared/catalog/cardBrandCatalog.d.ts.map +1 -0
- package/lib/typescript/module/src/shared/catalog/paymentMethodsCatalog.d.ts +5 -0
- package/lib/typescript/module/src/shared/catalog/paymentMethodsCatalog.d.ts.map +1 -0
- package/lib/typescript/module/src/shared/constants/environments.d.ts +8 -0
- package/lib/typescript/module/src/shared/constants/environments.d.ts.map +1 -0
- package/lib/typescript/module/src/shared/constants/index.d.ts +3 -0
- package/lib/typescript/module/src/shared/constants/index.d.ts.map +1 -0
- package/lib/typescript/module/src/shared/constants/messages.d.ts +94 -0
- package/lib/typescript/module/src/shared/constants/messages.d.ts.map +1 -0
- package/lib/typescript/module/src/shared/constants/paymentMethods.d.ts +63 -0
- package/lib/typescript/module/src/shared/constants/paymentMethods.d.ts.map +1 -0
- package/lib/typescript/module/src/shared/constants/skyflow.d.ts +38 -0
- package/lib/typescript/module/src/shared/constants/skyflow.d.ts.map +1 -0
- package/lib/typescript/module/src/shared/enum/ErrorKeyEnum.d.ts +48 -0
- package/lib/typescript/module/src/shared/enum/ErrorKeyEnum.d.ts.map +1 -0
- package/lib/typescript/module/src/shared/enum/index.d.ts +2 -0
- package/lib/typescript/module/src/shared/enum/index.d.ts.map +1 -0
- package/lib/typescript/module/src/shared/index.d.ts +4 -0
- package/lib/typescript/module/src/shared/index.d.ts.map +1 -0
- package/lib/typescript/module/src/shared/utils/common.d.ts +9 -0
- package/lib/typescript/module/src/shared/utils/common.d.ts.map +1 -0
- package/lib/typescript/module/src/shared/utils/errors.d.ts +16 -0
- package/lib/typescript/module/src/shared/utils/errors.d.ts.map +1 -0
- package/lib/typescript/module/src/shared/utils/numberUtils.d.ts +2 -0
- package/lib/typescript/module/src/shared/utils/numberUtils.d.ts.map +1 -0
- package/lib/typescript/module/src/shared/utils/paymentMethodUtils.d.ts +2 -0
- package/lib/typescript/module/src/shared/utils/paymentMethodUtils.d.ts.map +1 -0
- package/lib/typescript/module/src/shared/utils/stringUtils.d.ts +2 -0
- package/lib/typescript/module/src/shared/utils/stringUtils.d.ts.map +1 -0
- package/lib/typescript/module/src/shared/utils/styleUtils.d.ts +8 -0
- package/lib/typescript/module/src/shared/utils/styleUtils.d.ts.map +1 -0
- package/lib/typescript/module/src/types/base.d.ts +48 -0
- package/lib/typescript/module/src/types/base.d.ts.map +1 -0
- package/lib/typescript/module/src/types/baseCheckout.d.ts +29 -0
- package/lib/typescript/module/src/types/baseCheckout.d.ts.map +1 -0
- package/lib/typescript/module/src/types/baseEnrollment.d.ts +11 -0
- package/lib/typescript/module/src/types/baseEnrollment.d.ts.map +1 -0
- package/lib/typescript/module/src/types/baseSDK.d.ts +10 -0
- package/lib/typescript/module/src/types/baseSDK.d.ts.map +1 -0
- package/lib/typescript/module/src/types/business.d.ts +36 -0
- package/lib/typescript/module/src/types/business.d.ts.map +1 -0
- package/lib/typescript/module/src/types/card.d.ts +33 -0
- package/lib/typescript/module/src/types/card.d.ts.map +1 -0
- package/lib/typescript/module/src/types/checkout.d.ts +150 -0
- package/lib/typescript/module/src/types/checkout.d.ts.map +1 -0
- package/lib/typescript/module/src/types/common.d.ts +60 -0
- package/lib/typescript/module/src/types/common.d.ts.map +1 -0
- package/lib/typescript/module/src/types/customer.d.ts +28 -0
- package/lib/typescript/module/src/types/customer.d.ts.map +1 -0
- package/lib/typescript/module/src/types/enrollment.d.ts +66 -0
- package/lib/typescript/module/src/types/enrollment.d.ts.map +1 -0
- package/lib/typescript/module/src/types/index.d.ts +19 -0
- package/lib/typescript/module/src/types/index.d.ts.map +1 -0
- package/lib/typescript/module/src/types/inlineCheckout.d.ts +78 -0
- package/lib/typescript/module/src/types/inlineCheckout.d.ts.map +1 -0
- package/lib/typescript/module/src/types/input.d.ts +13 -0
- package/lib/typescript/module/src/types/input.d.ts.map +1 -0
- package/lib/typescript/module/src/types/liteCheckout.d.ts +90 -0
- package/lib/typescript/module/src/types/liteCheckout.d.ts.map +1 -0
- package/lib/typescript/module/src/types/openpay.d.ts +11 -0
- package/lib/typescript/module/src/types/openpay.d.ts.map +1 -0
- package/lib/typescript/module/src/types/payment.d.ts +59 -0
- package/lib/typescript/module/src/types/payment.d.ts.map +1 -0
- package/lib/typescript/module/src/types/secure.d.ts +4 -0
- package/lib/typescript/module/src/types/secure.d.ts.map +1 -0
- package/lib/typescript/module/src/types/threeDSHandler.d.ts +7 -0
- package/lib/typescript/module/src/types/threeDSHandler.d.ts.map +1 -0
- package/lib/typescript/module/src/types/transaction.d.ts +103 -0
- package/lib/typescript/module/src/types/transaction.d.ts.map +1 -0
- package/lib/typescript/module/src/ui/components/Button/ProcessButton.d.ts +11 -0
- package/lib/typescript/module/src/ui/components/Button/ProcessButton.d.ts.map +1 -0
- package/lib/typescript/module/src/ui/components/CardForm/index.d.ts +13 -0
- package/lib/typescript/module/src/ui/components/CardForm/index.d.ts.map +1 -0
- package/lib/typescript/module/src/ui/components/Checkbox/Checkbox.d.ts +9 -0
- package/lib/typescript/module/src/ui/components/Checkbox/Checkbox.d.ts.map +1 -0
- package/lib/typescript/module/src/ui/components/Input/CardCVVInput.d.ts +4 -0
- package/lib/typescript/module/src/ui/components/Input/CardCVVInput.d.ts.map +1 -0
- package/lib/typescript/module/src/ui/components/Input/CardExpirationDateInput.d.ts +10 -0
- package/lib/typescript/module/src/ui/components/Input/CardExpirationDateInput.d.ts.map +1 -0
- package/lib/typescript/module/src/ui/components/Input/CardExpirationMonthInput.d.ts +4 -0
- package/lib/typescript/module/src/ui/components/Input/CardExpirationMonthInput.d.ts.map +1 -0
- package/lib/typescript/module/src/ui/components/Input/CardExpirationYearInput.d.ts +4 -0
- package/lib/typescript/module/src/ui/components/Input/CardExpirationYearInput.d.ts.map +1 -0
- package/lib/typescript/module/src/ui/components/Input/CardHolderInput.d.ts +4 -0
- package/lib/typescript/module/src/ui/components/Input/CardHolderInput.d.ts.map +1 -0
- package/lib/typescript/module/src/ui/components/Input/CardNumberInput.d.ts +4 -0
- package/lib/typescript/module/src/ui/components/Input/CardNumberInput.d.ts.map +1 -0
- package/lib/typescript/module/src/ui/components/PaymentMethodsList/index.d.ts +11 -0
- package/lib/typescript/module/src/ui/components/PaymentMethodsList/index.d.ts.map +1 -0
- package/lib/typescript/module/src/ui/components/RadioButton/index.d.ts +14 -0
- package/lib/typescript/module/src/ui/components/RadioButton/index.d.ts.map +1 -0
- package/lib/typescript/module/src/ui/components/SavedCardsList/index.d.ts +14 -0
- package/lib/typescript/module/src/ui/components/SavedCardsList/index.d.ts.map +1 -0
- package/lib/typescript/module/src/ui/components/Skeleton/CardFormSkeleton.d.ts +5 -0
- package/lib/typescript/module/src/ui/components/Skeleton/CardFormSkeleton.d.ts.map +1 -0
- package/lib/typescript/module/src/ui/components/WebView/ThreeDSWebView.d.ts +9 -0
- package/lib/typescript/module/src/ui/components/WebView/ThreeDSWebView.d.ts.map +1 -0
- package/lib/typescript/module/src/ui/features/TonderEnrollment/index.d.ts +6 -0
- package/lib/typescript/module/src/ui/features/TonderEnrollment/index.d.ts.map +1 -0
- package/lib/typescript/module/src/ui/features/TonderPayment/index.d.ts +6 -0
- package/lib/typescript/module/src/ui/features/TonderPayment/index.d.ts.map +1 -0
- package/lib/typescript/module/src/ui/providers/InnerProvider/index.d.ts +10 -0
- package/lib/typescript/module/src/ui/providers/InnerProvider/index.d.ts.map +1 -0
- package/lib/typescript/module/src/ui/providers/SkyflowContainerWrapper/index.d.ts +10 -0
- package/lib/typescript/module/src/ui/providers/SkyflowContainerWrapper/index.d.ts.map +1 -0
- package/lib/typescript/module/src/ui/providers/TonderProvider/context.d.ts +5 -0
- package/lib/typescript/module/src/ui/providers/TonderProvider/context.d.ts.map +1 -0
- package/lib/typescript/module/src/ui/providers/TonderProvider/hook.d.ts +4 -0
- package/lib/typescript/module/src/ui/providers/TonderProvider/hook.d.ts.map +1 -0
- package/lib/typescript/module/src/ui/providers/TonderProvider/index.d.ts +8 -0
- package/lib/typescript/module/src/ui/providers/TonderProvider/index.d.ts.map +1 -0
- package/lib/typescript/module/src/ui/providers/TonderProvider/uiWrapper.d.ts +10 -0
- package/lib/typescript/module/src/ui/providers/TonderProvider/uiWrapper.d.ts.map +1 -0
- package/lib/typescript/module/src/ui/styles/payment.d.ts +20 -0
- package/lib/typescript/module/src/ui/styles/payment.d.ts.map +1 -0
- package/lib/typescript/module/src/ui/styles/skyflow.d.ts +44 -0
- package/lib/typescript/module/src/ui/styles/skyflow.d.ts.map +1 -0
- package/package.json +206 -0
- package/src/core/3DSHandler.ts +140 -0
- package/src/core/BaseCheckout/index.ts +420 -0
- package/src/core/BaseEnrollment/index.ts +99 -0
- package/src/core/BaseSDK/index.ts +93 -0
- package/src/core/EnrollmentContainer/index.ts +105 -0
- package/src/core/PaymentInlineContainer/index.ts +127 -0
- package/src/core/PaymentLiteContainer/index.ts +201 -0
- package/src/core/Tonder/index.ts +147 -0
- package/src/hooks/useTonder/index-old.ts +35 -0
- package/src/hooks/useTonder/index.ts +10 -0
- package/src/index.tsx +11 -0
- package/src/infrastructure/HttpClient.ts +121 -0
- package/src/infrastructure/ServiceManager.ts +54 -0
- package/src/infrastructure/index.ts +2 -0
- package/src/services/BusinessService.ts +33 -0
- package/src/services/CardService.ts +118 -0
- package/src/services/CheckoutService.ts +135 -0
- package/src/services/CustomerService.ts +59 -0
- package/src/services/MercadoPagoService.ts +19 -0
- package/src/services/OpenPayService.ts +22 -0
- package/src/services/PaymentMethodService.ts +38 -0
- package/src/services/SkyflowService.ts +50 -0
- package/src/services/StorageService.ts +56 -0
- package/src/services/TokenService.ts +45 -0
- package/src/services/TransactionService.ts +23 -0
- package/src/services/index.ts +12 -0
- package/src/shared/catalog/cardBrandCatalog.ts +16 -0
- package/src/shared/catalog/paymentMethodsCatalog.ts +252 -0
- package/src/shared/constants/environments.ts +8 -0
- package/src/shared/constants/index.ts +2 -0
- package/src/shared/constants/messages.ts +119 -0
- package/src/shared/constants/paymentMethods.ts +63 -0
- package/src/shared/constants/skyflow.ts +60 -0
- package/src/shared/enum/ErrorKeyEnum.ts +47 -0
- package/src/shared/enum/index.ts +1 -0
- package/src/shared/index.ts +3 -0
- package/src/shared/utils/common.ts +46 -0
- package/src/shared/utils/errors.ts +25 -0
- package/src/shared/utils/numberUtils.ts +10 -0
- package/src/shared/utils/paymentMethodUtils.ts +17 -0
- package/src/shared/utils/stringUtils.ts +3 -0
- package/src/shared/utils/styleUtils.ts +11 -0
- package/src/types/base.ts +79 -0
- package/src/types/baseCheckout.ts +42 -0
- package/src/types/baseEnrollment.ts +17 -0
- package/src/types/baseSDK.ts +10 -0
- package/src/types/business.ts +34 -0
- package/src/types/card.ts +38 -0
- package/src/types/checkout.ts +157 -0
- package/src/types/common.ts +68 -0
- package/src/types/customer.ts +29 -0
- package/src/types/enrollment.ts +70 -0
- package/src/types/index.ts +18 -0
- package/src/types/inlineCheckout.ts +96 -0
- package/src/types/input.ts +17 -0
- package/src/types/liteCheckout.ts +108 -0
- package/src/types/openpay-react-native.d.ts +3 -0
- package/src/types/openpay.ts +8 -0
- package/src/types/payment.ts +66 -0
- package/src/types/secure.ts +3 -0
- package/src/types/skyflow-react-native.d.ts +81 -0
- package/src/types/threeDSHandler.ts +10 -0
- package/src/types/transaction.ts +106 -0
- package/src/ui/components/Button/ProcessButton.tsx +57 -0
- package/src/ui/components/CardForm/index.tsx +91 -0
- package/src/ui/components/Checkbox/Checkbox.tsx +56 -0
- package/src/ui/components/Input/CardCVVInput.tsx +91 -0
- package/src/ui/components/Input/CardExpirationDateInput.tsx +95 -0
- package/src/ui/components/Input/CardExpirationMonthInput.tsx +90 -0
- package/src/ui/components/Input/CardExpirationYearInput.tsx +91 -0
- package/src/ui/components/Input/CardHolderInput.tsx +91 -0
- package/src/ui/components/Input/CardNumberInput.tsx +90 -0
- package/src/ui/components/PaymentMethodsList/index.tsx +103 -0
- package/src/ui/components/RadioButton/index.tsx +57 -0
- package/src/ui/components/SavedCardsList/index.tsx +137 -0
- package/src/ui/components/Skeleton/CardFormSkeleton.tsx +109 -0
- package/src/ui/components/WebView/ThreeDSWebView.tsx +110 -0
- package/src/ui/features/TonderEnrollment/index.tsx +141 -0
- package/src/ui/features/TonderPayment/index.tsx +243 -0
- package/src/ui/providers/InnerProvider/index.tsx +24 -0
- package/src/ui/providers/SkyflowContainerWrapper/index.tsx +35 -0
- package/src/ui/providers/TonderProvider/context.tsx +11 -0
- package/src/ui/providers/TonderProvider/hook.ts +10 -0
- package/src/ui/providers/TonderProvider/index.tsx +110 -0
- package/src/ui/providers/TonderProvider/uiWrapper.ts +67 -0
- package/src/ui/styles/payment.ts +23 -0
- package/src/ui/styles/skyflow.ts +58 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useState","Image","StyleSheet","Text","View","SavedCardsList","ProcessButton","PaymentMethodsList","NewCardForm","RadioButton","getCardType","CardFormSkeleton","DEFAULT_PAYMENT_CONTAINER","buildBaseStyleText","toCurrency","useTonderContext","jsx","_jsx","jsxs","_jsxs","TonderPayment","uiWrapper","sdk","state","deletingCards","setDelitingCards","handleMethodSelect","methodId","type","value","uiData","paymentMethods","find","it","id","payment_method","updateMethod","handleSaveCardChange","updateSaveCard","onDeleteCard","cardId","prev","removeCustomerCard","filter","error","console","onPayment","payment","isCreating","isCreated","style","styles","container","children","message","base","minHeight","customization","sdkCard","saveCards","showSaved","savedCards","cards","selectedMethod","card","onMethodSelect","showDeleteButton","showDeleteOption","cardForm","show","newCardSection","paymentRadio","selected","onSelect","radioBase","radioSelected","inner","radioInner","source","uri","cardImage","cardIcon","newCardText","showSaveOption","showSaveCardOption","saveCard","onSaveCardChange","labels","placeholders","showMessages","messageContainer","errorMessage","errorText","successMessage","successText","methods","paymentButton","text","paymentData","cart","total","showAmount","onPress","isLoading","isProcessing","create","position","flexDirection","alignItems","paddingVertical","paddingHorizontal","borderBottomWidth","borderBottomColor","width","height","marginLeft","fontSize","color"],"sourceRoot":"../../../../../src","sources":["ui/features/TonderPayment/index.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AACvC,SAASC,KAAK,EAAEC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AAC5D,OAAOC,cAAc,MAAM,4BAA4B;AACvD,SAASC,aAAa,QAAQ,kCAAkC;AAChE,OAAOC,kBAAkB,MAAM,gCAAgC;AAC/D,SAASC,WAAW,QAAQ,sBAAsB;AAClD,SAASC,WAAW,QAAQ,yBAAyB;AACrD,SAASC,WAAW,QAAQ,kCAAkC;AAC9D,OAAOC,gBAAgB,MAAM,uCAAuC;AACpE,SAASC,yBAAyB,QAAQ,oBAAoB;AAC9D,SAASC,kBAAkB,QAAQ,0BAA0B;AAC7D,SAASC,UAAU,QAAQ,2BAA2B;AACtD,OAAOC,gBAAgB,MAAM,mCAAmC;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAIjE,MAAMC,aAA4C,GAAGA,CAAA,KAAM;EACzD,MAAM;IAAEC,SAAS;IAAEC,GAAG;IAAEC;EAAM,CAAC,GAAGR,gBAAgB,CAAiB,CAAC;EACpE,MAAM,CAACS,aAAa,EAAEC,gBAAgB,CAAC,GAAGzB,QAAQ,CAAW,EAAE,CAAC;EAEhE,MAAM0B,kBAAkB,GAAGA,CAACC,QAAgB,EAAEC,IAAY,KAAK;IAC7D,MAAMC,KAAK,GACTD,IAAI,KAAK,MAAM,GACXD,QAAQ,GACRC,IAAI,KAAK,gBAAgB,GACvBL,KAAK,CAACO,MAAM,EAAEC,cAAc,CAACC,IAAI,CAAEC,EAAE,IAAKA,EAAE,CAACC,EAAE,KAAKP,QAAQ,CAAC,EACzDQ,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AAE,EAAE;IACrBC,iBAAiB,EAAE,CAAC;IACpBC,iBAAiB,EAAE;EACrB,CAAC;EACDhC,SAAS,EAAE;IACTiC,KAAK,EAAE,EAAE;IACTC,MAAM,EAAE,EAAE;IACVC,UAAU,EAAE;EACd,CAAC;EACDjC,WAAW,EAAE;IACXkC,QAAQ,EAAE,EAAE;IACZC,KAAK,EAAE,SAAS;IAChBF,UAAU,EAAE;EACd,CAAC;EACDzB,gBAAgB,EAAE;IAChBoB,iBAAiB,EAAE;EACrB,CAAC;EACDlB,SAAS,EAAE;IACTyB,KAAK,EAAE,KAAK;IACZD,QAAQ,EAAE;EACZ,CAAC;EACDtB,WAAW,EAAE;IACXuB,KAAK,EAAE,SAAS;IAChBD,QAAQ,EAAE;EACZ;AACF,CAAC,CAAC;AAEF,eAAehG,aAAa","ignoreList":[]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { tonderContext } from '@ui/providers/TonderProvider/context';
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
const InnerProvider = ({
|
|
8
|
+
children,
|
|
9
|
+
contextValue
|
|
10
|
+
}) => {
|
|
11
|
+
return /*#__PURE__*/_jsx(tonderContext.Provider, {
|
|
12
|
+
value: {
|
|
13
|
+
...contextValue
|
|
14
|
+
},
|
|
15
|
+
children: children
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
export default InnerProvider;
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","tonderContext","jsx","_jsx","InnerProvider","children","contextValue","Provider","value"],"sourceRoot":"../../../../../src","sources":["ui/providers/InnerProvider/index.tsx"],"mappings":";;AAAA;AACA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,aAAa,QAAQ,sCAAsC;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAQrE,MAAMC,aAAa,GAAGA,CAAC;EAAEC,QAAQ;EAAEC;AAAiC,CAAC,KAAK;EACxE,oBACEH,IAAA,CAACF,aAAa,CAACM,QAAQ;IACrBC,KAAK,EAAE;MACL,GAAGF;IACL,CAAE;IAAAD,QAAA,EAEDA;EAAQ,CACa,CAAC;AAE7B,CAAC;AAED,eAAeD,aAAa","ignoreList":[]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { useEffect } from 'react';
|
|
4
|
+
import { useCollectContainer } from 'skyflow-react-native';
|
|
5
|
+
import InnerProvider from '@ui/providers/InnerProvider';
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
const SkyflowContainerWrapper = ({
|
|
8
|
+
children,
|
|
9
|
+
contextValue
|
|
10
|
+
}) => {
|
|
11
|
+
const container = useCollectContainer();
|
|
12
|
+
useEffect(() => {
|
|
13
|
+
if (contextValue?.state?.isCreated && container) {
|
|
14
|
+
contextValue.uiWrapper.setSkyFlowContainer(container);
|
|
15
|
+
}
|
|
16
|
+
}, [contextValue?.state?.isCreated, contextValue.sdk, contextValue.uiWrapper]);
|
|
17
|
+
return /*#__PURE__*/_jsx(InnerProvider, {
|
|
18
|
+
container: container,
|
|
19
|
+
contextValue: contextValue,
|
|
20
|
+
children: children
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
export default SkyflowContainerWrapper;
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useEffect","useCollectContainer","InnerProvider","jsx","_jsx","SkyflowContainerWrapper","children","contextValue","container","state","isCreated","uiWrapper","setSkyFlowContainer","sdk"],"sourceRoot":"../../../../../src","sources":["ui/providers/SkyflowContainerWrapper/index.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,SAASC,mBAAmB,QAAQ,sBAAsB;AAC1D,OAAOC,aAAa,MAAM,6BAA6B;AAAC,SAAAC,GAAA,IAAAC,IAAA;AASxD,MAAMC,uBAAuB,GAAGA,CAAC;EAC/BC,QAAQ;EACRC;AAC4B,CAAC,KAAK;EAClC,MAAMC,SAAS,GAAGP,mBAAmB,CAAC,CAAC;EAEvCD,SAAS,CAAC,MAAM;IACd,IAAIO,YAAY,EAAEE,KAAK,EAAEC,SAAS,IAAIF,SAAS,EAAE;MAC/CD,YAAY,CAACI,SAAS,CAACC,mBAAmB,CAACJ,SAAS,CAAC;IACvD;EACF,CAAC,EAAE,CACDD,YAAY,EAAEE,KAAK,EAAEC,SAAS,EAC9BH,YAAY,CAACM,GAAG,EAChBN,YAAY,CAACI,SAAS,CACvB,CAAC;EAEF,oBACEP,IAAA,CAACF,aAAa;IAACM,SAAS,EAAEA,SAAU;IAACD,YAAY,EAAEA,YAAa;IAAAD,QAAA,EAC7DA;EAAQ,CACI,CAAC;AAEpB,CAAC;AAED,eAAeD,uBAAuB","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","tonderContext","createContext","sdk","state","uiWrapper"],"sourceRoot":"../../../../../src","sources":["ui/providers/TonderProvider/context.tsx"],"mappings":";;AAAA;AACA,OAAOA,KAAK,MAAM,OAAO;AAKzB,OAAO,MAAMC,aAAa,gBAAGD,KAAK,CAACE,aAAa,CAA0B;EACxEC,GAAG,EAAE,CAAC,CAAyB;EAC/BC,KAAK,EAAE,CAAC,CAAC;EACTC,SAAS,EAAE,CAAC;AACd,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
import { useContext } from 'react';
|
|
5
|
+
import { tonderContext } from '@ui/providers/TonderProvider/context';
|
|
6
|
+
const useTonderContext = () => {
|
|
7
|
+
return useContext(tonderContext);
|
|
8
|
+
};
|
|
9
|
+
export default useTonderContext;
|
|
10
|
+
//# sourceMappingURL=hook.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useContext","tonderContext","useTonderContext"],"sourceRoot":"../../../../../src","sources":["ui/providers/TonderProvider/hook.ts"],"mappings":";;AAAA;AACA,SAASA,UAAU,QAAQ,OAAO;AAElC,SAASC,aAAa,QAAQ,sCAAsC;AAEpE,MAAMC,gBAAgB,GAAGA,CAAA,KAA4C;EACnE,OAAOF,UAAU,CAACC,aAAa,CAAC;AAClC,CAAC;AAED,eAAeC,gBAAgB","ignoreList":[]}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
import React, { useEffect, useMemo, useState } from 'react';
|
|
5
|
+
import Tonder from '@core/Tonder';
|
|
6
|
+
import { SDKType } from '@types';
|
|
7
|
+
import { SkyflowProvider } from 'skyflow-react-native';
|
|
8
|
+
import SkyflowContainerWrapper from '@ui/providers/SkyflowContainerWrapper';
|
|
9
|
+
import { ThreeDSWebView } from '@components/WebView/ThreeDSWebView';
|
|
10
|
+
import { EnrollmentContainer } from '@core/EnrollmentContainer';
|
|
11
|
+
import PaymentLiteContainer from '@core/PaymentLiteContainer';
|
|
12
|
+
import PaymentInlineContainer from '@core/PaymentInlineContainer';
|
|
13
|
+
import uiWrapper from '@ui/providers/TonderProvider/uiWrapper';
|
|
14
|
+
import { tonderContext } from '@ui/providers/TonderProvider/context';
|
|
15
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
|
+
const TonderProvider = ({
|
|
17
|
+
children,
|
|
18
|
+
config
|
|
19
|
+
}) => {
|
|
20
|
+
const [skyflowConfig, setSkyflowConfig] = useState(null);
|
|
21
|
+
const [state, setState] = useState(() => {});
|
|
22
|
+
const [threeDSConfig, setThreeDSConfig] = useState({});
|
|
23
|
+
const tonder = useMemo(() => new Tonder(config), [config]);
|
|
24
|
+
const sdk = useMemo(() => {
|
|
25
|
+
if (config.type === SDKType.ENROLLMENT) {
|
|
26
|
+
return new EnrollmentContainer(tonder, setSkyflowConfig);
|
|
27
|
+
}
|
|
28
|
+
if (config.type === SDKType.LITE) {
|
|
29
|
+
return new PaymentLiteContainer(tonder, setSkyflowConfig);
|
|
30
|
+
}
|
|
31
|
+
return new PaymentInlineContainer(tonder, setSkyflowConfig);
|
|
32
|
+
}, [tonder, setSkyflowConfig]);
|
|
33
|
+
const uiSDKWrapper = useMemo(() => uiWrapper(tonder), [tonder]);
|
|
34
|
+
useEffect(() => {
|
|
35
|
+
const unsubscribe = tonder.subscribe(() => {
|
|
36
|
+
setState(tonder.getState());
|
|
37
|
+
});
|
|
38
|
+
return () => {
|
|
39
|
+
unsubscribe();
|
|
40
|
+
};
|
|
41
|
+
}, [tonder]);
|
|
42
|
+
useEffect(() => {
|
|
43
|
+
if (!tonder) return;
|
|
44
|
+
const unsubscribeShow = tonder.on('show3DS', ({
|
|
45
|
+
url,
|
|
46
|
+
onComplete,
|
|
47
|
+
returnURL
|
|
48
|
+
}) => {
|
|
49
|
+
setThreeDSConfig({
|
|
50
|
+
url,
|
|
51
|
+
onComplete,
|
|
52
|
+
returnURL
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
const unsubscribeHide = tonder.on('hide3DS', ({}) => {
|
|
56
|
+
setThreeDSConfig({
|
|
57
|
+
url: ''
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
return () => {
|
|
61
|
+
unsubscribeShow();
|
|
62
|
+
unsubscribeHide();
|
|
63
|
+
};
|
|
64
|
+
}, [tonder]);
|
|
65
|
+
const contextValue = useMemo(() => ({
|
|
66
|
+
sdk: sdk,
|
|
67
|
+
uiWrapper: uiSDKWrapper,
|
|
68
|
+
state
|
|
69
|
+
}), [sdk, state, uiSDKWrapper]);
|
|
70
|
+
return /*#__PURE__*/_jsx(tonderContext.Provider, {
|
|
71
|
+
value: contextValue,
|
|
72
|
+
children: /*#__PURE__*/_jsx(SkyflowProvider, {
|
|
73
|
+
config: skyflowConfig,
|
|
74
|
+
children: /*#__PURE__*/_jsxs(SkyflowContainerWrapper, {
|
|
75
|
+
contextValue: contextValue,
|
|
76
|
+
children: [/*#__PURE__*/_jsx(ThreeDSWebView, {
|
|
77
|
+
url: threeDSConfig.url,
|
|
78
|
+
onComplete: () => {
|
|
79
|
+
threeDSConfig.onComplete?.();
|
|
80
|
+
},
|
|
81
|
+
returnURL: threeDSConfig.returnURL
|
|
82
|
+
}), children]
|
|
83
|
+
})
|
|
84
|
+
})
|
|
85
|
+
});
|
|
86
|
+
};
|
|
87
|
+
export default /*#__PURE__*/React.memo(TonderProvider);
|
|
88
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useEffect","useMemo","useState","Tonder","SDKType","SkyflowProvider","SkyflowContainerWrapper","ThreeDSWebView","EnrollmentContainer","PaymentLiteContainer","PaymentInlineContainer","uiWrapper","tonderContext","jsx","_jsx","jsxs","_jsxs","TonderProvider","children","config","skyflowConfig","setSkyflowConfig","state","setState","threeDSConfig","setThreeDSConfig","tonder","sdk","type","ENROLLMENT","LITE","uiSDKWrapper","unsubscribe","subscribe","getState","unsubscribeShow","on","url","onComplete","returnURL","unsubscribeHide","contextValue","Provider","value","memo"],"sourceRoot":"../../../../../src","sources":["ui/providers/TonderProvider/index.tsx"],"mappings":";;AAAA;AACA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AAC3D,OAAOC,MAAM,MAAM,cAAc;AAEjC,SAASC,OAAO,QAAQ,QAAQ;AAChC,SAASC,eAAe,QAAQ,sBAAsB;AACtD,OAAOC,uBAAuB,MAAM,uCAAuC;AAC3E,SAASC,cAAc,QAAQ,oCAAoC;AACnE,SAASC,mBAAmB,QAAQ,2BAA2B;AAC/D,OAAOC,oBAAoB,MAAM,4BAA4B;AAC7D,OAAOC,sBAAsB,MAAM,8BAA8B;AACj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E;UACFC,SAAS,EAAEf,aAAa,CAACe;QAAW,CACrC,CAAC,EACDrB,QAAQ;MAAA,CACc;IAAC,CACX;EAAC,CACI,CAAC;AAE7B,CAAC;AAED,4BAAenB,KAAK,CAAC6C,IAAI,CAAC3B,cAAc,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { executeCallback } from '@shared/utils/common';
|
|
4
|
+
import { MESSAGES_EN } from '@shared/constants';
|
|
5
|
+
const uiWrapper = tonder => ({
|
|
6
|
+
removeCustomerCard: async cardId => {
|
|
7
|
+
const callbacks = tonder.getState().callbacks;
|
|
8
|
+
try {
|
|
9
|
+
await executeCallback({
|
|
10
|
+
callbacks,
|
|
11
|
+
callback: 'beforeDeleteCard',
|
|
12
|
+
throwError: true
|
|
13
|
+
});
|
|
14
|
+
await tonder.getService().card.removeCustomerCard(tonder.getCustomerAuthToken(), tonder.getSecureToken(), cardId, tonder.getBusinessPK());
|
|
15
|
+
tonder.updateUIState({
|
|
16
|
+
cards: tonder.getState().uiData.cards.filter(card => card.id !== cardId)
|
|
17
|
+
});
|
|
18
|
+
await executeCallback({
|
|
19
|
+
callbacks,
|
|
20
|
+
callback: 'onFinishDeleteCard',
|
|
21
|
+
data: {
|
|
22
|
+
response: MESSAGES_EN.REMOVE_CARD
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
} catch (error) {
|
|
26
|
+
await executeCallback({
|
|
27
|
+
callbacks,
|
|
28
|
+
callback: 'onFinishDeleteCard',
|
|
29
|
+
data: {
|
|
30
|
+
error: error
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
updateMethod: (method, value) => {
|
|
36
|
+
tonder.updateUIState({
|
|
37
|
+
...(method === 'card' ? {
|
|
38
|
+
card: value
|
|
39
|
+
} : method === 'payment_method' ? {
|
|
40
|
+
paymentMethod: value
|
|
41
|
+
} : {}),
|
|
42
|
+
selectedMethod: method === '' ? 'new' : method
|
|
43
|
+
});
|
|
44
|
+
},
|
|
45
|
+
updateSaveCard: value => {
|
|
46
|
+
tonder.updateUIState({
|
|
47
|
+
saveCard: value
|
|
48
|
+
});
|
|
49
|
+
},
|
|
50
|
+
setSkyFlowContainer: value => {
|
|
51
|
+
tonder.setState({
|
|
52
|
+
skyflowContainer: value
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
export default uiWrapper;
|
|
57
|
+
//# sourceMappingURL=uiWrapper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["executeCallback","MESSAGES_EN","uiWrapper","tonder","removeCustomerCard","cardId","callbacks","getState","callback","throwError","getService","card","getCustomerAuthToken","getSecureToken","getBusinessPK","updateUIState","cards","uiData","filter","id","data","response","REMOVE_CARD","error","updateMethod","method","value","paymentMethod","selectedMethod","updateSaveCard","saveCard","setSkyFlowContainer","setState","skyflowContainer"],"sourceRoot":"../../../../../src","sources":["ui/providers/TonderProvider/uiWrapper.ts"],"mappings":";;AACA,SAASA,eAAe,QAAQ,sBAAsB;AACtD,SAASC,WAAW,QAAQ,mBAAmB;AAS/C,MAAMC,SAAS,GAAIC,MAAc,KAAkB;EACjDC,kBAAkB,EAAE,MAAOC,MAAc,IAAK;IAC5C,MAAMC,SAAS,GAAGH,MAAM,CAACI,QAAQ,CAAC,CAAC,CAACD,SAAS;IAC7C,IAAI;MACF,MAAMN,eAAe,CAAC;QACpBM,SAAS;QACTE,QAAQ,EAAE,kBAAkB;QAC5BC,UAAU,EAAE;MACd,CAAC,CAAC;MAEF,MAAMN,MAAM,CACTO,UAAU,CAAC,CAAC,CACZC,IAAI,CAACP,kBAAkB,CACtBD,MAAM,CAACS,oBAAoB,CAAC,CAAC,EAC7BT,MAAM,CAACU,cAAc,CAAC,CAAC,EACvBR,MAAM,EACNF,MAAM,CAACW,aAAa,CAAC,CACvB,CAAC;MAEHX,MAAM,CAACY,aAAa,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HECK INTER FAMILY
|
|
6
|
+
const DEFAULT_INPUT_CONTAINER_STYLES = StyleSheet.create({
|
|
7
|
+
base: {
|
|
8
|
+
display: 'flex',
|
|
9
|
+
flexDirection: 'column',
|
|
10
|
+
justifyContent: 'flex-start',
|
|
11
|
+
flex: 1,
|
|
12
|
+
marginVertical: 5
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
const DEFAULT_PAYMENT_CONTAINER = StyleSheet.create({
|
|
16
|
+
base: {
|
|
17
|
+
backgroundColor: '#F9F9F9',
|
|
18
|
+
borderWidth: 1,
|
|
19
|
+
borderColor: '#e3e3e3',
|
|
20
|
+
width: '100%',
|
|
21
|
+
marginBottom: 10
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
export { DEFAULT_INPUT_CONTAINER_STYLES, DEFAULT_PAYMENT_CONTAINER };
|
|
25
|
+
//# sourceMappingURL=payment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["StyleSheet","DEFAULT_INPUT_CONTAINER_STYLES","create","base","display","flexDirection","justifyContent","flex","marginVertical","DEFAULT_PAYMENT_CONTAINER","backgroundColor","borderWidth","borderColor","width","marginBottom"],"sourceRoot":"../../../../src","sources":["ui/styles/payment.ts"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,cAAc;;AAEzC;AACA,MAAMC,8BAA8B,GAAGD,UAAU,CAACE,MAAM,CAAC;EACvDC,IAAI,EAAE;IACJC,OAAO,EAAE,MAAM;IACfC,aAAa,EAAE,QAAQ;IACvBC,cAAc,EAAE,YAAY;IAC5BC,IAAI,EAAE,CAAC;IACPC,cAAc,EAAE;EAClB;AACF,CAAC,CAAC;AAEF,MAAMC,yBAAyB,GAAGT,UAAU,CAACE,MAAM,CAAC;EAClDC,IAAI,EAAE;IACJO,eAAe,EAAE,SAAS;IAC1BC,WAAW,EAAE,CAAC;IACdC,WAAW,EAAE,SAAS;IACtBC,KAAK,EAAE,MAAM;IACbC,YAAY,EAAE;EAChB;AACF,CAAC,CAAC;AACF,SAASb,8BAA8B,EAAEQ,yBAAyB","ignoreList":[]}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { StyleSheet } from 'react-native';
|
|
4
|
+
|
|
5
|
+
// TODO: CHECK INTER FAMILY
|
|
6
|
+
const DEFAULT_SKYFLOW_INPUT_STYLES = StyleSheet.create({
|
|
7
|
+
base: {
|
|
8
|
+
borderWidth: 1,
|
|
9
|
+
borderColor: '#e0e0e0',
|
|
10
|
+
fontSize: 12,
|
|
11
|
+
paddingVertical: 0,
|
|
12
|
+
paddingHorizontal: 5,
|
|
13
|
+
borderRadius: 5,
|
|
14
|
+
color: '#1d1d1d',
|
|
15
|
+
backgroundColor: 'white'
|
|
16
|
+
// fontFamily: 'Inter',
|
|
17
|
+
},
|
|
18
|
+
complete: {
|
|
19
|
+
color: '#4caf50'
|
|
20
|
+
},
|
|
21
|
+
invalid: {
|
|
22
|
+
borderWidth: 1,
|
|
23
|
+
borderColor: 'f44336'
|
|
24
|
+
},
|
|
25
|
+
empty: {},
|
|
26
|
+
focus: {}
|
|
27
|
+
});
|
|
28
|
+
const DEFAULT_SKYFLOW_lABEL_STYLES = {
|
|
29
|
+
base: {
|
|
30
|
+
fontSize: 12,
|
|
31
|
+
fontWeight: 500
|
|
32
|
+
// fontFamily: 'Inter',
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
const DEFAULT_SKYFLOW_ERROR_TEXT_STYLES = StyleSheet.create({
|
|
36
|
+
base: {
|
|
37
|
+
fontWeight: 500,
|
|
38
|
+
color: '#f44336',
|
|
39
|
+
marginTop: 0,
|
|
40
|
+
paddingVertical: 0,
|
|
41
|
+
fontSize: 12
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
const SKYFLOW_HIDDEN_ERROR_TEXT_STYLES = {
|
|
45
|
+
base: {
|
|
46
|
+
color: 'transparent',
|
|
47
|
+
display: 'none'
|
|
48
|
+
// fontFamily: 'Inter',
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
export { DEFAULT_SKYFLOW_INPUT_STYLES, DEFAULT_SKYFLOW_lABEL_STYLES, DEFAULT_SKYFLOW_ERROR_TEXT_STYLES, SKYFLOW_HIDDEN_ERROR_TEXT_STYLES };
|
|
52
|
+
//# sourceMappingURL=skyflow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["StyleSheet","DEFAULT_SKYFLOW_INPUT_STYLES","create","base","borderWidth","borderColor","fontSize","paddingVertical","paddingHorizontal","borderRadius","color","backgroundColor","complete","invalid","empty","focus","DEFAULT_SKYFLOW_lABEL_STYLES","fontWeight","DEFAULT_SKYFLOW_ERROR_TEXT_STYLES","marginTop","SKYFLOW_HIDDEN_ERROR_TEXT_STYLES","display"],"sourceRoot":"../../../../src","sources":["ui/styles/skyflow.ts"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,cAAc;;AAEzC;AACA,MAAMC,4BAA4B,GAAGD,UAAU,CAACE,MAAM,CAAC;EACrDC,IAAI,EAAE;IACJC,WAAW,EAAE,CAAC;IACdC,WAAW,EAAE,SAAS;IACtBC,QAAQ,EAAE,EAAE;IACZC,eAAe,EAAE,CAAC;IAClBC,iBAAiB,EAAE,CAAC;IACpBC,YAAY,EAAE,CAAC;IACfC,KAAK,EAAE,SAAS;IAChBC,eAAe,EAAE;IACjB;EACF,CAAC;EACDC,QAAQ,EAAE;IACRF,KAAK,EAAE;EACT,CAAC;EACDG,OAAO,EAAE;IACPT,WAAW,EAAE,CAAC;IACdC,WAAW,EAAE;EACf,CAAC;EACDS,KAAK,EAAE,CAAC,CAAC;EACTC,KAAK,EAAE,CAAC;AACV,CAAC,CAAC;AAEF,MAAMC,4BAA4B,GAAG;EACnCb,IAAI,EAAE;IACJG,QAAQ,EAAE,EAAE;IACZW,UAAU,EAAE;IACZ;EACF;AACF,CAAC;AAED,MAAMC,iCAAiC,GAAGlB,UAAU,CAACE,MAAM,CAAC;EAC1DC,IAAI,EAAE;IACJc,UAAU,EAAE,GAAG;IACfP,KAAK,EAAE,SAAS;IAChBS,SAAS,EAAE,CAAC;IACZZ,eAAe,EAAE,CAAC;IAClBD,QAAQ,EAAE;EACZ;AACF,CAAC,CAAC;AAEF,MAAMc,gCAAgC,GAAG;EACvCjB,IAAI,EAAE;IACJO,KAAK,EAAE,aAAa;IACpBW,OAAO,EAAE;IACT;EACF;AACF,CAAC;AAED,SACEpB,4BAA4B,EAC5Be,4BAA4B,EAC5BE,iCAAiC,EACjCE,gCAAgC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"commonjs"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ICheckoutResponse, ISDKBaseConfig, ITransaction, IThreeDSHandler } from '@types';
|
|
2
|
+
import { ServiceManager } from '@infrastructure/ServiceManager';
|
|
3
|
+
import TonderError from '@shared/utils/errors';
|
|
4
|
+
export declare class ThreeDSHandler implements IThreeDSHandler {
|
|
5
|
+
protected readonly config: ISDKBaseConfig;
|
|
6
|
+
protected readonly service: ServiceManager;
|
|
7
|
+
private payload?;
|
|
8
|
+
private readonly STORAGE_KEY;
|
|
9
|
+
private onFinish;
|
|
10
|
+
emit3DS: (eventName: string, data: any) => void;
|
|
11
|
+
resumeCheckout: (checkoutId: string) => Promise<ICheckoutResponse>;
|
|
12
|
+
returnURL?: string;
|
|
13
|
+
constructor(config: ISDKBaseConfig, service: ServiceManager, emit3DS: (eventName: string, data: any) => void, resumeCheckout: (checkoutId: string) => Promise<ICheckoutResponse>);
|
|
14
|
+
verifyTransaction(): Promise<ITransaction>;
|
|
15
|
+
handle3DS(payload: ICheckoutResponse, onFinish: (response: ITransaction | TonderError) => Promise<void>): Promise<ITransaction>;
|
|
16
|
+
private setPayload;
|
|
17
|
+
private getRedirectUrl;
|
|
18
|
+
private saveVerifyTransactionUrl;
|
|
19
|
+
private removeVerifyTransactionUrl;
|
|
20
|
+
private loadIframe;
|
|
21
|
+
private handle3dsChallenge;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=3DSHandler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"3DSHandler.d.ts","sourceRoot":"","sources":["../../../../../src/core/3DSHandler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,cAAc,EACd,YAAY,EACZ,eAAe,EAChB,MAAM,QAAQ,CAAC;AAChB,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,WAAW,MAAM,sBAAsB,CAAC;AAG/C,qBAAa,cAAe,YAAW,eAAe;IASlD,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,cAAc;IAR3C,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,cAAc,CAAC;IAC3C,OAAO,CAAC,OAAO,CAAC,CAAoB;IACpC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAmC;IAC/D,OAAO,CAAC,QAAQ,CAA0D;IAC1E,OAAO,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC;IAChD,cAAc,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,OAAO,CAAC,iBAAiB,CAAC,CAAC;IACnE,SAAS,CAAC,EAAE,MAAM,CAAC;gBAEE,MAAM,EAAE,cAAc,EACzC,OAAO,EAAE,cAAc,EACvB,OAAO,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,KAAK,IAAI,EAC/C,cAAc,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,OAAO,CAAC,iBAAiB,CAAC;IAQvD,iBAAiB,IAAI,OAAO,CAAC,YAAY,CAAC;IAY1C,SAAS,CACpB,OAAO,EAAE,iBAAiB,EAC1B,QAAQ,EAAE,CAAC,QAAQ,EAAE,YAAY,GAAG,WAAW,KAAK,OAAO,CAAC,IAAI,CAAC,GAChE,OAAO,CAAC,YAAY,CAAC;YAqEV,UAAU;IAIxB,OAAO,CAAC,cAAc;YAGR,wBAAwB;YAYxB,0BAA0B;YAI1B,UAAU;YACV,kBAAkB;CACjC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type Tonder from '@core/Tonder';
|
|
2
|
+
import BaseSDK from '@core/BaseSDK';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import type { IProcessPaymentRequest, ISaveCardResponse, ITransaction } from '@types';
|
|
5
|
+
import TonderError from '@shared/utils/errors';
|
|
6
|
+
declare class BaseCheckout extends BaseSDK {
|
|
7
|
+
#private;
|
|
8
|
+
constructor(tonderClient: Tonder, getState: () => Readonly<any>, setState: (newState: Partial<any>) => void, setSkyflowConfig: React.Dispatch<React.SetStateAction<any>>);
|
|
9
|
+
create: () => Promise<{
|
|
10
|
+
error?: TonderError;
|
|
11
|
+
}>;
|
|
12
|
+
setupPaymentFlow: (data: IProcessPaymentRequest) => Promise<ITransaction>;
|
|
13
|
+
private prepareCheckoutData;
|
|
14
|
+
validateAndSaveCard: (cardId?: string, saveCard?: boolean) => Promise<ISaveCardResponse | void>;
|
|
15
|
+
private handleCheckout;
|
|
16
|
+
private createOrder;
|
|
17
|
+
private createPayment;
|
|
18
|
+
private startCheckoutRouter;
|
|
19
|
+
private handle3DSFlow;
|
|
20
|
+
handlePaymentError(error: any): Promise<TonderError>;
|
|
21
|
+
private resumeCheckout;
|
|
22
|
+
private getUIData;
|
|
23
|
+
private getCards;
|
|
24
|
+
private getPaymentMethods;
|
|
25
|
+
private getDataForCards;
|
|
26
|
+
}
|
|
27
|
+
export default BaseCheckout;
|
|
28
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/core/BaseCheckout/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,cAAc,CAAC;AACvC,OAAO,OAAO,MAAM,eAAe,CAAC;AACpC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAMV,sBAAsB,EACtB,iBAAiB,EAGjB,YAAY,EACb,MAAM,QAAQ,CAAC;AAKhB,OAAO,WAAW,MAAM,sBAAsB,CAAC;AAK/C,cAAM,YAAa,SAAQ,OAAO;;gBAI9B,YAAY,EAAE,MAAM,EACpB,QAAQ,EAAE,MAAM,QAAQ,CAAC,GAAG,CAAC,EAC7B,QAAQ,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,KAAK,IAAI,EAC1C,gBAAgB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC;IAWtD,MAAM,QAAa,OAAO,CAAC;QAAE,KAAK,CAAC,EAAE,WAAW,CAAA;KAAE,CAAC,CA2BxD;IAEK,gBAAgB,SACf,sBAAsB,KAC3B,OAAO,CAAC,YAAY,CAAC,CA6CtB;YAEY,mBAAmB;IA0B1B,mBAAmB,YACf,MAAM,aACJ,OAAO,KACjB,OAAO,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAclC;YAEY,cAAc;YAyBd,WAAW;YAoBX,aAAa;YAiBb,mBAAmB;IAgDjC,OAAO,CAAC,aAAa;IA6BR,kBAAkB,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CAAC,WAAW,CAAC;YAkCnD,cAAc;YAMd,SAAS;YAmBT,QAAQ;YAkBR,iBAAiB;IA6B/B,OAAO,CAAC,eAAe;CAOxB;AAED,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import TonderError from '@shared/utils/errors';
|
|
2
|
+
import type { ISaveCardResponse, SDKOptions } from '@types';
|
|
3
|
+
import { SDKType } from '@types';
|
|
4
|
+
import BaseSDK from '@core/BaseSDK';
|
|
5
|
+
import type Tonder from '@core/Tonder';
|
|
6
|
+
import React from 'react';
|
|
7
|
+
declare class BaseEnrollment extends BaseSDK {
|
|
8
|
+
#private;
|
|
9
|
+
constructor(tonderClient: Tonder, getState: () => Readonly<any>, setState: (newState: Partial<any>) => void, setSkyflowConfig: React.Dispatch<React.SetStateAction<any>>);
|
|
10
|
+
create: (data: SDKOptions<SDKType.ENROLLMENT>) => Promise<{
|
|
11
|
+
error?: TonderError;
|
|
12
|
+
}>;
|
|
13
|
+
saveCard: (cardId?: string) => Promise<ISaveCardResponse>;
|
|
14
|
+
}
|
|
15
|
+
export default BaseEnrollment;
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/core/BaseEnrollment/index.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,sBAAsB,CAAC;AAE/C,OAAO,KAAK,EACV,iBAAiB,EACjB,UAAU,EAEX,MAAM,QAAQ,CAAC;AAChB,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAEjC,OAAO,OAAO,MAAM,eAAe,CAAC;AACpC,OAAO,KAAK,MAAM,MAAM,cAAc,CAAC;AACvC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,cAAM,cAAe,SAAQ,OAAO;;gBAShC,YAAY,EAAE,MAAM,EACpB,QAAQ,EAAE,MAAM,QAAQ,CAAC,GAAG,CAAC,EAC7B,QAAQ,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,KAAK,IAAI,EAC1C,gBAAgB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC;IAKtD,MAAM,SACL,UAAU,CAAC,OAAO,CAAC,UAAU,CAAC,KACnC,OAAO,CAAC;QAAE,KAAK,CAAC,EAAE,WAAW,CAAA;KAAE,CAAC,CA4CjC;IAEK,QAAQ,YAAmB,MAAM,KAAG,OAAO,CAAC,iBAAiB,CAAC,CAiBnE;CACH;AAED,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type Tonder from '@core/Tonder';
|
|
2
|
+
import type { ICustomer, ICustomerResponse } from '@types';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
declare class BaseSDK {
|
|
5
|
+
tonderClient: Tonder;
|
|
6
|
+
getState: () => Readonly<any>;
|
|
7
|
+
setState: (newState: Partial<any>) => void;
|
|
8
|
+
private readonly setSkyflowConfig;
|
|
9
|
+
constructor(tonderClient: Tonder, getState: () => Readonly<any>, setState: (newState: Partial<any>) => void, setSkyflowConfig: React.Dispatch<React.SetStateAction<any>>);
|
|
10
|
+
getInitialData(): Promise<void>;
|
|
11
|
+
protected getOrRegisterCustomer(customer?: ICustomer): Promise<ICustomerResponse | null>;
|
|
12
|
+
initializeProviders(providers?: {
|
|
13
|
+
mercadoPago?: boolean;
|
|
14
|
+
}): Promise<void>;
|
|
15
|
+
private initMercadoPago;
|
|
16
|
+
private initSkyflow;
|
|
17
|
+
}
|
|
18
|
+
export default BaseSDK;
|
|
19
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/core/BaseSDK/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,cAAc,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAG3D,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,cAAM,OAAO;IACX,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,QAAQ,CAAC,GAAG,CAAC,CAAC;IAC9B,QAAQ,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,KAAK,IAAI,CAAC;IAC3C,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAA4C;gBAG3E,YAAY,EAAE,MAAM,EACpB,QAAQ,EAAE,MAAM,QAAQ,CAAC,GAAG,CAAC,EAC7B,QAAQ,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,KAAK,IAAI,EAC1C,gBAAgB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC;IAQhD,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC;cAe5B,qBAAqB,CACnC,QAAQ,CAAC,EAAE,SAAS,GACnB,OAAO,CAAC,iBAAiB,GAAG,IAAI,CAAC;IAoBvB,mBAAmB,CAAC,SAAS,CAAC,EAAE;QAC3C,WAAW,CAAC,EAAE,OAAO,CAAC;KACvB,GAAG,OAAO,CAAC,IAAI,CAAC;IAOjB,OAAO,CAAC,eAAe;YAQT,WAAW;CAY1B;AAED,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { IBaseResponse, IEnrollment, ISaveCardResponse, SDKOptions } from '@types';
|
|
2
|
+
import TonderError from '@shared/utils/errors';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { SDKType } from '@types';
|
|
5
|
+
import Tonder from '@core/Tonder';
|
|
6
|
+
export declare class EnrollmentContainer implements IEnrollment {
|
|
7
|
+
#private;
|
|
8
|
+
constructor(tonderClient: Tonder, setSkyflowConfig: React.Dispatch<React.SetStateAction<any>>);
|
|
9
|
+
create: (data: SDKOptions<SDKType.ENROLLMENT>) => Promise<{
|
|
10
|
+
error?: TonderError;
|
|
11
|
+
}>;
|
|
12
|
+
saveCustomerCard(): Promise<IBaseResponse<ISaveCardResponse>>;
|
|
13
|
+
reset: () => void;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/core/EnrollmentContainer/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,WAAW,EACX,iBAAiB,EACjB,UAAU,EACX,MAAM,QAAQ,CAAC;AAChB,OAAO,WAAW,MAAM,sBAAsB,CAAC;AAG/C,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AACjC,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,qBAAa,mBAAoB,YAAW,WAAW;;gBAKnD,YAAY,EAAE,MAAM,EACpB,gBAAgB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC;IAWtD,MAAM,SACL,UAAU,CAAC,OAAO,CAAC,UAAU,CAAC,KACnC,OAAO,CAAC;QAAE,KAAK,CAAC,EAAE,WAAW,CAAA;KAAE,CAAC,CAEjC;IACW,gBAAgB,IAAI,OAAO,CAAC,aAAa,CAAC,iBAAiB,CAAC,CAAC;IAgE1E,KAAK,QAAO,IAAI,CAEd;CACH"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type Tonder from '@core/Tonder';
|
|
2
|
+
import TonderError from '@shared/utils/errors';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import type { IBaseProcessPaymentRequest, IBaseResponse, IPaymentInlineContainer, ITransaction, SDKOptions } from '@types';
|
|
5
|
+
import { SDKType } from '@types';
|
|
6
|
+
declare class PaymentInlineContainer implements IPaymentInlineContainer {
|
|
7
|
+
#private;
|
|
8
|
+
constructor(tonderClient: Tonder, setSkyflowConfig: React.Dispatch<React.SetStateAction<any>>);
|
|
9
|
+
create: (data: SDKOptions<SDKType.INLINE>) => Promise<{
|
|
10
|
+
error?: TonderError;
|
|
11
|
+
}>;
|
|
12
|
+
payment: (data?: IBaseProcessPaymentRequest) => Promise<IBaseResponse<ITransaction>>;
|
|
13
|
+
reset: () => void;
|
|
14
|
+
private validateProcessPaymentData;
|
|
15
|
+
}
|
|
16
|
+
export default PaymentInlineContainer;
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/core/PaymentInlineContainer/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,cAAc,CAAC;AACvC,OAAO,WAAW,MAAM,sBAAsB,CAAC;AAE/C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EACV,0BAA0B,EAC1B,aAAa,EAEb,uBAAuB,EAEvB,YAAY,EACZ,UAAU,EACX,MAAM,QAAQ,CAAC;AAEhB,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAEjC,cAAM,sBAAuB,YAAW,uBAAuB;;gBAyB3D,YAAY,EAAE,MAAM,EACpB,gBAAgB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC;IAWtD,MAAM,SACL,UAAU,CAAC,OAAO,CAAC,MAAM,CAAC,KAC/B,OAAO,CAAC;QAAE,KAAK,CAAC,EAAE,WAAW,CAAA;KAAE,CAAC,CAmCjC;IACK,OAAO,UACL,0BAA0B,KAChC,OAAO,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC,CAkBrC;IAEF,KAAK,QAAO,IAAI,CAEd;IAEF,OAAO,CAAC,0BAA0B;CAOnC;AAED,eAAe,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type Tonder from '@core/Tonder';
|
|
2
|
+
import TonderError from '@shared/utils/errors';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import type { IBaseResponse, ICustomerCardsResponse, IPaymentLiteContainer, IPaymentMethod, IProcessPaymentRequest, ISaveCardResponse, ITransaction, SDKOptions } from '@types';
|
|
5
|
+
import { SDKType } from '@types';
|
|
6
|
+
declare class PaymentLiteContainer implements IPaymentLiteContainer {
|
|
7
|
+
#private;
|
|
8
|
+
constructor(tonderClient: Tonder, setSkyflowConfig: React.Dispatch<React.SetStateAction<any>>);
|
|
9
|
+
create: (data: SDKOptions<SDKType.LITE>) => Promise<{
|
|
10
|
+
error?: TonderError;
|
|
11
|
+
}>;
|
|
12
|
+
payment: (data?: IProcessPaymentRequest) => Promise<IBaseResponse<ITransaction>>;
|
|
13
|
+
saveCustomerCard: () => Promise<IBaseResponse<ISaveCardResponse>>;
|
|
14
|
+
getCustomerCards: () => Promise<IBaseResponse<ICustomerCardsResponse>>;
|
|
15
|
+
removeCustomerCard: (id: string) => Promise<IBaseResponse<string>>;
|
|
16
|
+
getPaymentMethods: () => Promise<IBaseResponse<IPaymentMethod[]>>;
|
|
17
|
+
reset: () => void;
|
|
18
|
+
private validateProcessPaymentData;
|
|
19
|
+
}
|
|
20
|
+
export default PaymentLiteContainer;
|
|
21
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/core/PaymentLiteContainer/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,cAAc,CAAC;AACvC,OAAO,WAAW,MAAM,sBAAsB,CAAC;AAE/C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EACV,aAAa,EACb,sBAAsB,EAEtB,qBAAqB,EACrB,cAAc,EACd,sBAAsB,EACtB,iBAAiB,EACjB,YAAY,EACZ,UAAU,EACX,MAAM,QAAQ,CAAC;AAEhB,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAKjC,cAAM,oBAAqB,YAAW,qBAAqB;;gBAUvD,YAAY,EAAE,MAAM,EACpB,gBAAgB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC;IAWtD,MAAM,SACL,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,KAC7B,OAAO,CAAC;QAAE,KAAK,CAAC,EAAE,WAAW,CAAA;KAAE,CAAC,CAejC;IACK,OAAO,UACL,sBAAsB,KAC5B,OAAO,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC,CAgBrC;IAEK,gBAAgB,QAAa,OAAO,CACzC,aAAa,CAAC,iBAAiB,CAAC,CACjC,CA6BC;IAEK,gBAAgB,QAAa,OAAO,CACzC,aAAa,CAAC,sBAAsB,CAAC,CACtC,CAuBC;IAEK,kBAAkB,OACnB,MAAM,KACT,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAkB/B;IAEK,iBAAiB,QAAa,OAAO,CAC1C,aAAa,CAAC,cAAc,EAAE,CAAC,CAChC,CAWC;IAEF,KAAK,QAAO,IAAI,CAEd;IAEF,OAAO,CAAC,0BAA0B;CAgBnC;AAED,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { ICard, IPaymentMethod, ISDKBaseConfig } from '@types';
|
|
2
|
+
import { ServiceManager } from '@infrastructure/ServiceManager';
|
|
3
|
+
declare class Tonder {
|
|
4
|
+
private config;
|
|
5
|
+
service: ServiceManager;
|
|
6
|
+
private state;
|
|
7
|
+
private subscribers;
|
|
8
|
+
private eventListeners;
|
|
9
|
+
constructor(config: ISDKBaseConfig);
|
|
10
|
+
private initData;
|
|
11
|
+
getConfig(): Readonly<ISDKBaseConfig>;
|
|
12
|
+
getService(): ServiceManager;
|
|
13
|
+
getCustomerAuthToken(): string;
|
|
14
|
+
getSecureToken(): string;
|
|
15
|
+
getBusinessPK(): string;
|
|
16
|
+
getState: () => Readonly<any>;
|
|
17
|
+
setState: (newState: Partial<any>) => void;
|
|
18
|
+
updateUIState({ card, paymentMethod, selectedMethod, cards, paymentMethods, saveCard, }: {
|
|
19
|
+
card?: string;
|
|
20
|
+
paymentMethod?: string;
|
|
21
|
+
selectedMethod?: string;
|
|
22
|
+
cards?: ICard[];
|
|
23
|
+
paymentMethods?: IPaymentMethod[];
|
|
24
|
+
saveCard?: boolean;
|
|
25
|
+
}): void;
|
|
26
|
+
subscribe(callback: () => void): () => void;
|
|
27
|
+
emit: (eventName: string, data: any) => void;
|
|
28
|
+
on(eventName: string, listener: (data: any) => void): () => void;
|
|
29
|
+
private notifySubscribers;
|
|
30
|
+
reset(): void;
|
|
31
|
+
}
|
|
32
|
+
export default Tonder;
|
|
33
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/core/Tonder/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,KAAK,EAEL,cAAc,EACd,cAAc,EACf,MAAM,QAAQ,CAAC;AAChB,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAKhE,cAAM,MAAM;IACV,OAAO,CAAC,MAAM,CAAiB;IACxB,OAAO,EAAE,cAAc,CAAC;IAC/B,OAAO,CAAC,KAAK,CAAM;IACnB,OAAO,CAAC,WAAW,CAAsB;IACzC,OAAO,CAAC,cAAc,CAAoD;gBAE9D,MAAM,EAAE,cAAc;IAIlC,OAAO,CAAC,QAAQ;IAahB,SAAS,IAAI,QAAQ,CAAC,cAAc,CAAC;IAGrC,UAAU,IAAI,cAAc;IAIrB,oBAAoB,IAAI,MAAM;IAU9B,cAAc,IAAI,MAAM;IAIxB,aAAa,IAAI,MAAM;IAIvB,QAAQ,QAAO,QAAQ,CAAC,GAAG,CAAC,CAEjC;IAEK,QAAQ,aAAc,OAAO,CAAC,GAAG,CAAC,KAAG,IAAI,CAG9C;IAEK,aAAa,CAAC,EACnB,IAAI,EACJ,aAAa,EACb,cAAc,EACd,KAAK,EACL,cAAc,EACd,QAAQ,GACT,EAAE;QACD,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,KAAK,CAAC,EAAE,KAAK,EAAE,CAAC;QAChB,cAAc,CAAC,EAAE,cAAc,EAAE,CAAC;QAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;KACpB;IA0BM,SAAS,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI;IAO3C,IAAI,cAAe,MAAM,QAAQ,GAAG,KAAG,IAAI,CAKhD;IAEK,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,GAAG,MAAM,IAAI;IAWvE,OAAO,CAAC,iBAAiB;IAIlB,KAAK;CAMb;AAED,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=index-old.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-old.d.ts","sourceRoot":"","sources":["../../../../../../src/hooks/useTonder/index-old.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/hooks/useTonder/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAEjC,QAAA,MAAM,SAAS,GAAI,CAAC,SAAS,OAAO,sCAInC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from './ui/components/Input/CardHolderInput';
|
|
2
|
+
export * from './ui/components/Input/CardExpirationMonthInput';
|
|
3
|
+
export * from './ui/components/Input/CardExpirationYearInput';
|
|
4
|
+
export * from './ui/components/Input/CardCVVInput';
|
|
5
|
+
export * from './ui/components/Input/CardNumberInput';
|
|
6
|
+
export { default as TonderProvider } from './ui/providers/TonderProvider';
|
|
7
|
+
export { default as useTonder } from './hooks/useTonder';
|
|
8
|
+
export { default as TonderPayment } from './ui/features/TonderPayment';
|
|
9
|
+
export { default as TonderEnrollment } from './ui/features/TonderEnrollment';
|
|
10
|
+
export { default as TonderError } from './shared/utils/errors';
|
|
11
|
+
export * from './types';
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AAAA,cAAc,uCAAuC,CAAC;AACtD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,+CAA+C,CAAC;AAC9D,cAAc,oCAAoC,CAAC;AACnD,cAAc,uCAAuC,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAC/D,cAAc,SAAS,CAAC"}
|