@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,247 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { PAYMENT_METHODS } from '@shared/constants/paymentMethods';
|
|
4
|
+
import { clearSpace } from '@shared/utils/stringUtils';
|
|
5
|
+
const PAYMENT_METHODS_CATALOG = {
|
|
6
|
+
[PAYMENT_METHODS.SORIANA]: {
|
|
7
|
+
label: 'Soriana',
|
|
8
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/soriana.png'
|
|
9
|
+
},
|
|
10
|
+
[PAYMENT_METHODS.OXXO]: {
|
|
11
|
+
label: 'Oxxo',
|
|
12
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/oxxo.png'
|
|
13
|
+
},
|
|
14
|
+
[PAYMENT_METHODS.CODI]: {
|
|
15
|
+
label: 'CoDi',
|
|
16
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/codi.png'
|
|
17
|
+
},
|
|
18
|
+
[PAYMENT_METHODS.SPEI]: {
|
|
19
|
+
label: 'SPEI',
|
|
20
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/spei.png'
|
|
21
|
+
},
|
|
22
|
+
[PAYMENT_METHODS.PAYPAL]: {
|
|
23
|
+
label: 'Paypal',
|
|
24
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/paypal.png'
|
|
25
|
+
},
|
|
26
|
+
[PAYMENT_METHODS.COMERCIALMEXICANA]: {
|
|
27
|
+
label: 'Comercial Mexicana',
|
|
28
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/comercial_exicana.png'
|
|
29
|
+
},
|
|
30
|
+
[PAYMENT_METHODS.BANCOMER]: {
|
|
31
|
+
label: 'Bancomer',
|
|
32
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/bancomer.png'
|
|
33
|
+
},
|
|
34
|
+
[PAYMENT_METHODS.WALMART]: {
|
|
35
|
+
label: 'Walmart',
|
|
36
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/walmart.png'
|
|
37
|
+
},
|
|
38
|
+
[PAYMENT_METHODS.BODEGA]: {
|
|
39
|
+
label: 'Bodega Aurrera',
|
|
40
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/bodega_aurrera.png'
|
|
41
|
+
},
|
|
42
|
+
[PAYMENT_METHODS.SAMSCLUB]: {
|
|
43
|
+
label: 'Sam´s Club',
|
|
44
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/sams_club.png'
|
|
45
|
+
},
|
|
46
|
+
[PAYMENT_METHODS.SUPERAMA]: {
|
|
47
|
+
label: 'Superama',
|
|
48
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/superama.png'
|
|
49
|
+
},
|
|
50
|
+
[PAYMENT_METHODS.CALIMAX]: {
|
|
51
|
+
label: 'Calimax',
|
|
52
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/calimax.png'
|
|
53
|
+
},
|
|
54
|
+
[PAYMENT_METHODS.EXTRA]: {
|
|
55
|
+
label: 'Tiendas Extra',
|
|
56
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/tiendas_extra.png'
|
|
57
|
+
},
|
|
58
|
+
[PAYMENT_METHODS.CIRCULOK]: {
|
|
59
|
+
label: 'Círculo K',
|
|
60
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/circulo_k.png'
|
|
61
|
+
},
|
|
62
|
+
[PAYMENT_METHODS.SEVEN11]: {
|
|
63
|
+
label: '7 Eleven',
|
|
64
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/7_eleven.png'
|
|
65
|
+
},
|
|
66
|
+
[PAYMENT_METHODS.TELECOMM]: {
|
|
67
|
+
label: 'Telecomm',
|
|
68
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/telecomm.png'
|
|
69
|
+
},
|
|
70
|
+
[PAYMENT_METHODS.BANORTE]: {
|
|
71
|
+
label: 'Banorte',
|
|
72
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/banorte.png'
|
|
73
|
+
},
|
|
74
|
+
[PAYMENT_METHODS.BENAVIDES]: {
|
|
75
|
+
label: 'Farmacias Benavides',
|
|
76
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/farmacias_benavides.png'
|
|
77
|
+
},
|
|
78
|
+
[PAYMENT_METHODS.DELAHORRO]: {
|
|
79
|
+
label: 'Farmacias del Ahorro',
|
|
80
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/farmacias_ahorro.png'
|
|
81
|
+
},
|
|
82
|
+
[PAYMENT_METHODS.ELASTURIANO]: {
|
|
83
|
+
label: 'El Asturiano',
|
|
84
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/asturiano.png'
|
|
85
|
+
},
|
|
86
|
+
[PAYMENT_METHODS.WALDOS]: {
|
|
87
|
+
label: 'Waldos',
|
|
88
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/waldos.png'
|
|
89
|
+
},
|
|
90
|
+
[PAYMENT_METHODS.ALSUPER]: {
|
|
91
|
+
label: 'Alsuper',
|
|
92
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/al_super.png'
|
|
93
|
+
},
|
|
94
|
+
[PAYMENT_METHODS.KIOSKO]: {
|
|
95
|
+
label: 'Kiosko',
|
|
96
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/kiosko.png'
|
|
97
|
+
},
|
|
98
|
+
[PAYMENT_METHODS.STAMARIA]: {
|
|
99
|
+
label: 'Farmacias Santa María',
|
|
100
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/farmacias_santa_maria.png'
|
|
101
|
+
},
|
|
102
|
+
[PAYMENT_METHODS.LAMASBARATA]: {
|
|
103
|
+
label: 'Farmacias la más barata',
|
|
104
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/farmacias_barata.png'
|
|
105
|
+
},
|
|
106
|
+
[PAYMENT_METHODS.FARMROMA]: {
|
|
107
|
+
label: 'Farmacias Roma',
|
|
108
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/farmacias_roma.png'
|
|
109
|
+
},
|
|
110
|
+
[PAYMENT_METHODS.FARMUNION]: {
|
|
111
|
+
label: 'Pago en Farmacias Unión',
|
|
112
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/farmacias_union.png'
|
|
113
|
+
},
|
|
114
|
+
[PAYMENT_METHODS.FARMATODO]: {
|
|
115
|
+
label: 'Pago en Farmacias Farmatodo',
|
|
116
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/farmacias_farmatodo.png '
|
|
117
|
+
},
|
|
118
|
+
[PAYMENT_METHODS.SFDEASIS]: {
|
|
119
|
+
label: 'Pago en Farmacias San Francisco de Asís',
|
|
120
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/farmacias_san_francisco.png'
|
|
121
|
+
},
|
|
122
|
+
[PAYMENT_METHODS.FARM911]: {
|
|
123
|
+
label: 'Farmacias 911',
|
|
124
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/store.png'
|
|
125
|
+
},
|
|
126
|
+
[PAYMENT_METHODS.FARMECONOMICAS]: {
|
|
127
|
+
label: 'Farmacias Economicas',
|
|
128
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/store.png'
|
|
129
|
+
},
|
|
130
|
+
[PAYMENT_METHODS.FARMMEDICITY]: {
|
|
131
|
+
label: 'Farmacias Medicity',
|
|
132
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/store.png'
|
|
133
|
+
},
|
|
134
|
+
[PAYMENT_METHODS.RIANXEIRA]: {
|
|
135
|
+
label: 'Rianxeira',
|
|
136
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/store.png'
|
|
137
|
+
},
|
|
138
|
+
[PAYMENT_METHODS.WESTERNUNION]: {
|
|
139
|
+
label: 'Western Union',
|
|
140
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/store.png'
|
|
141
|
+
},
|
|
142
|
+
[PAYMENT_METHODS.ZONAPAGO]: {
|
|
143
|
+
label: 'Zona Pago',
|
|
144
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/store.png'
|
|
145
|
+
},
|
|
146
|
+
[PAYMENT_METHODS.CAJALOSANDES]: {
|
|
147
|
+
label: 'Caja Los Andes',
|
|
148
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/store.png'
|
|
149
|
+
},
|
|
150
|
+
[PAYMENT_METHODS.CAJAPAITA]: {
|
|
151
|
+
label: 'Caja Paita',
|
|
152
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/store.png'
|
|
153
|
+
},
|
|
154
|
+
[PAYMENT_METHODS.CAJASANTA]: {
|
|
155
|
+
label: 'Caja Santa',
|
|
156
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/store.png'
|
|
157
|
+
},
|
|
158
|
+
[PAYMENT_METHODS.CAJASULLANA]: {
|
|
159
|
+
label: 'Caja Sullana',
|
|
160
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/store.png'
|
|
161
|
+
},
|
|
162
|
+
[PAYMENT_METHODS.CAJATRUJILLO]: {
|
|
163
|
+
label: 'Caja Trujillo',
|
|
164
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/store.png'
|
|
165
|
+
},
|
|
166
|
+
[PAYMENT_METHODS.EDPYME]: {
|
|
167
|
+
label: 'Edpyme',
|
|
168
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/store.png'
|
|
169
|
+
},
|
|
170
|
+
[PAYMENT_METHODS.KASNET]: {
|
|
171
|
+
label: 'KasNet',
|
|
172
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/store.png'
|
|
173
|
+
},
|
|
174
|
+
[PAYMENT_METHODS.NORANDINO]: {
|
|
175
|
+
label: 'Norandino',
|
|
176
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/store.png'
|
|
177
|
+
},
|
|
178
|
+
[PAYMENT_METHODS.QAPAQ]: {
|
|
179
|
+
label: 'Qapaq',
|
|
180
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/store.png'
|
|
181
|
+
},
|
|
182
|
+
[PAYMENT_METHODS.RAIZ]: {
|
|
183
|
+
label: 'Raiz',
|
|
184
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/store.png'
|
|
185
|
+
},
|
|
186
|
+
[PAYMENT_METHODS.PAYSER]: {
|
|
187
|
+
label: 'Paysera',
|
|
188
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/store.png'
|
|
189
|
+
},
|
|
190
|
+
[PAYMENT_METHODS.WUNION]: {
|
|
191
|
+
label: 'Western Union',
|
|
192
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/store.png'
|
|
193
|
+
},
|
|
194
|
+
[PAYMENT_METHODS.BANCOCONTINENTAL]: {
|
|
195
|
+
label: 'Banco Continental',
|
|
196
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/store.png'
|
|
197
|
+
},
|
|
198
|
+
[PAYMENT_METHODS.GMONEY]: {
|
|
199
|
+
label: 'Go money',
|
|
200
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/store.png'
|
|
201
|
+
},
|
|
202
|
+
[PAYMENT_METHODS.GOPAY]: {
|
|
203
|
+
label: 'Go pay',
|
|
204
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/store.png'
|
|
205
|
+
},
|
|
206
|
+
[PAYMENT_METHODS.WU]: {
|
|
207
|
+
label: 'Western Union',
|
|
208
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/store.png'
|
|
209
|
+
},
|
|
210
|
+
[PAYMENT_METHODS.PUNTOSHEY]: {
|
|
211
|
+
label: 'Puntoshey',
|
|
212
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/store.png'
|
|
213
|
+
},
|
|
214
|
+
[PAYMENT_METHODS.AMPM]: {
|
|
215
|
+
label: 'Ampm',
|
|
216
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/store.png'
|
|
217
|
+
},
|
|
218
|
+
[PAYMENT_METHODS.JUMBOMARKET]: {
|
|
219
|
+
label: 'Jumbomarket',
|
|
220
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/store.png'
|
|
221
|
+
},
|
|
222
|
+
[PAYMENT_METHODS.SMELPUEBLO]: {
|
|
223
|
+
label: 'Smelpueblo',
|
|
224
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/store.png'
|
|
225
|
+
},
|
|
226
|
+
[PAYMENT_METHODS.BAM]: {
|
|
227
|
+
label: 'Bam',
|
|
228
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/store.png'
|
|
229
|
+
},
|
|
230
|
+
[PAYMENT_METHODS.REFACIL]: {
|
|
231
|
+
label: 'Refacil',
|
|
232
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/store.png'
|
|
233
|
+
},
|
|
234
|
+
[PAYMENT_METHODS.ACYVALORES]: {
|
|
235
|
+
label: 'Acyvalores',
|
|
236
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/store.png'
|
|
237
|
+
}
|
|
238
|
+
};
|
|
239
|
+
export const getPaymentMethodDetails = scheme_data => {
|
|
240
|
+
const scheme = clearSpace(scheme_data.toUpperCase());
|
|
241
|
+
const _default = {
|
|
242
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/store.png',
|
|
243
|
+
label: ''
|
|
244
|
+
};
|
|
245
|
+
return PAYMENT_METHODS_CATALOG[scheme] || _default;
|
|
246
|
+
};
|
|
247
|
+
//# sourceMappingURL=paymentMethodsCatalog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["PAYMENT_METHODS","clearSpace","PAYMENT_METHODS_CATALOG","SORIANA","label","icon","OXXO","CODI","SPEI","PAYPAL","COMERCIALMEXICANA","BANCOMER","WALMART","BODEGA","SAMSCLUB","SUPERAMA","CALIMAX","EXTRA","CIRCULOK","SEVEN11","TELECOMM","BANORTE","BENAVIDES","DELAHORRO","ELASTURIANO","WALDOS","ALSUPER","KIOSKO","STAMARIA","LAMASBARATA","FARMROMA","FARMUNION","FARMATODO","SFDEASIS","FARM911","FARMECONOMICAS","FARMMEDICITY","RIANXEIRA","WESTERNUNION","ZONAPAGO","CAJALOSANDES","CAJAPAITA","CAJASANTA","CAJASULLANA","CAJATRUJILLO","EDPYME","KASNET","NORANDINO","QAPAQ","RAIZ","PAYSER","WUNION","BANCOCONTINENTAL","GMONEY","GOPAY","WU","PUNTOSHEY","AMPM","JUMBOMARKET","SMELPUEBLO","BAM","REFACIL","ACYVALORES","getPaymentMethodDetails","scheme_data","scheme","toUpperCase","_default"],"sourceRoot":"../../../../src","sources":["shared/catalog/paymentMethodsCatalog.ts"],"mappings":";;AAAA,SAASA,eAAe,QAAQ,kCAAkC;AAClE,SAASC,UAAU,QAAQ,2BAA2B;AAEtD,MAAMC,uBAEL,GAAG;EACF,CAACF,eAAe,CAACG,OAAO,GAAG;IACzBC,KAAK,EAAE,SAAS;IAChBC,IAAI,EAAE;EACR,CAAC;EACD,CAACL,eAAe,CAACM,IAAI,GAAG;IACtBF,KAAK,EAAE,MAAM;IACbC,IAAI,EAAE;EACR,CAAC;EACD,CAACL,eAAe,CAACO,IAAI,GAAG;IACtBH,KAAK,EAAE,MAAM;IACbC,IAAI,EAAE;EACR,CAAC;EACD,CAACL,eAAe,CAACQ,IAAI,GAAG;IACtBJ,KAAK,EAAE,MAAM;IACbC,IAAI,EAAE;EACR,CAAC;EACD,CAACL,eAAe,CAACS,MAAM,GAAG;IACxBL,KAAK,EAAE,QAAQ;IACfC,IAAI,EAAE;EACR,CAAC;EACD,CAACL,eAAe,CAACU,iBAAiB,GAAG;IACnCN,KAAK,EAAE,oBAAoB;IAC3BC,IAAI,EAAE;EACR,CAAC;EACD,CAACL,eAAe,CAACW,QAAQ,GAAG;IAC1BP,KAAK,EAAE,UAAU;IACjBC,IAAI,EAAE;EACR,CAAC;EACD,CAACL,eAAe,CAACY,OAAO,GAAG;IACzBR,KAAK,EAAE,SAAS;IAChBC,IAAI,EAAE;EACR,CAAC;EACD,CAACL,eAAe,CAACa,MAAM,GAAG;IACxBT,KAAK,EAAE,gBAAgB;IACvBC,IAAI,EAAE;EACR,CAAC;EACD,CAACL,eAAe,CAACc,QAAQ,GAAG;IAC1BV,KAAK,EAAE,YAAY;IACnBC,IAAI,EAAE;EACR,CAAC;EACD,CAACL,eAAe,CAACe,QAAQ,GAAG;IAC1BX,KAAK,EAAE,UAAU;IACjBC,IAAI,EAAE;EACR,CAAC;EACD,CAACL,eAAe,CAACgB,OAAO,GAAG;IACzB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KAAK,EAAE,eAAe;IACtBC,IAAI,EAAE;EACR,CAAC;EACD,CAACL,eAAe,CAACwD,SAAS,GAAG;IAC3BpD,KAAK,EAAE,WAAW;IAClBC,IAAI,EAAE;EACR,CAAC;EACD,CAACL,eAAe,CAACyD,IAAI,GAAG;IACtBrD,KAAK,EAAE,MAAM;IACbC,IAAI,EAAE;EACR,CAAC;EACD,CAACL,eAAe,CAAC0D,WAAW,GAAG;IAC7BtD,KAAK,EAAE,aAAa;IACpBC,IAAI,EAAE;EACR,CAAC;EACD,CAACL,eAAe,CAAC2D,UAAU,GAAG;IAC5BvD,KAAK,EAAE,YAAY;IACnBC,IAAI,EAAE;EACR,CAAC;EACD,CAACL,eAAe,CAAC4D,GAAG,GAAG;IACrBxD,KAAK,EAAE,KAAK;IACZC,IAAI,EAAE;EACR,CAAC;EACD,CAACL,eAAe,CAAC6D,OAAO,GAAG;IACzBzD,KAAK,EAAE,SAAS;IAChBC,IAAI,EAAE;EACR,CAAC;EACD,CAACL,eAAe,CAAC8D,UAAU,GAAG;IAC5B1D,KAAK,EAAE,YAAY;IACnBC,IAAI,EAAE;EACR;AACF,CAAC;AAID,OAAO,MAAM0D,uBAAuB,GAClCC,WAAmB,IACiB;EACpC,MAAMC,MAAwB,GAAGhE,UAAU,CAAC+D,WAAW,CAACE,WAAW,CAAC,CAAC,CAAC;EACtE,MAAMC,QAAQ,GAAG;IACf9D,IAAI,EAAE,iEAAiE;IACvED,KAAK,EAAE;EACT,CAAC;EACD,OAAOF,uBAAuB,CAAC+D,MAAM,CAAC,IAAIE,QAAQ;AACpD,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
const TONDER_URL_BY_MODE = Object.freeze({
|
|
4
|
+
production: 'https://app.tonder.io',
|
|
5
|
+
sandbox: 'https://sandbox.tonder.io',
|
|
6
|
+
stage: 'https://stage.tonder.io',
|
|
7
|
+
development: 'http://192.168.100.117:8000'
|
|
8
|
+
});
|
|
9
|
+
export { TONDER_URL_BY_MODE };
|
|
10
|
+
//# sourceMappingURL=environments.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["TONDER_URL_BY_MODE","Object","freeze","production","sandbox","stage","development"],"sourceRoot":"../../../../src","sources":["shared/constants/environments.ts"],"mappings":";;AAAA,MAAMA,kBAAkB,GAAGC,MAAM,CAACC,MAAM,CAAC;EACvCC,UAAU,EAAE,uBAAuB;EACnCC,OAAO,EAAE,2BAA2B;EACpCC,KAAK,EAAE,yBAAyB;EAChCC,WAAW,EAAE;AACf,CAAC,CAAC;AAEF,SAASN,kBAAkB","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["shared/constants/index.ts"],"mappings":";;AAAA,cAAc,mBAAgB;AAC9B,cAAc,eAAY","ignoreList":[]}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { ErrorKeyEnum } from '@shared/enum';
|
|
4
|
+
export const MESSAGES_EN = {
|
|
5
|
+
[ErrorKeyEnum.INIT_ERROR]: 'Error initializing the SDK.',
|
|
6
|
+
[ErrorKeyEnum.INVALID_TYPE]: 'SDK Type invalid.',
|
|
7
|
+
[ErrorKeyEnum.STATE_ERROR]: 'Error updating SDK state.',
|
|
8
|
+
[ErrorKeyEnum.FETCH_BUSINESS_ERROR]: 'Error retrieving merchant information.',
|
|
9
|
+
[ErrorKeyEnum.INVALID_CONFIG]: 'Required configuration options.',
|
|
10
|
+
[ErrorKeyEnum.MERCHANT_CREDENTIAL_REQUIRED]: 'Merchant credential required.',
|
|
11
|
+
[ErrorKeyEnum.INVALID_PAYMENT_REQUEST]: 'The payment data must be of type: :::interface:::.',
|
|
12
|
+
[ErrorKeyEnum.INVALID_PAYMENT_REQUEST_CARD_PM]: 'The fields card and payment_method cannot be provided together.',
|
|
13
|
+
[ErrorKeyEnum.TYPE_SDK_REQUIRED]: 'SDK type required.',
|
|
14
|
+
[ErrorKeyEnum.ENVIRONMENT_REQUIRED]: 'Environment required.',
|
|
15
|
+
[ErrorKeyEnum.FETCH_CARDS_ERROR]: 'Error retrieving cards.',
|
|
16
|
+
[ErrorKeyEnum.CUSTOMER_AUTH_TOKEN_NOT_VALID]: "The customer's auth token is invalid. Please verify that the customer's data was provided when creating the SDK (sdk.create) and try again.",
|
|
17
|
+
[ErrorKeyEnum.SAVE_CARD_ERROR]: 'Error saving the card.',
|
|
18
|
+
[ErrorKeyEnum.REMOVE_CARD_ERROR]: 'Error deleting the card.',
|
|
19
|
+
[ErrorKeyEnum.CREATE_PAYMENT_ERROR]: 'Error creating the payment.',
|
|
20
|
+
[ErrorKeyEnum.PAYMENT_PROCESS_ERROR]: 'There was an issue processing the payment.',
|
|
21
|
+
[ErrorKeyEnum.CARD_SAVED_SUCCESSFULLY]: 'Card saved successfully.',
|
|
22
|
+
[ErrorKeyEnum.CARD_REMOVED_SUCCESSFULLY]: 'Card deleted successfully.',
|
|
23
|
+
[ErrorKeyEnum.SAVE_CARD_PROCESS_ERROR]: 'Error processing card data.',
|
|
24
|
+
[ErrorKeyEnum.START_CHECKOUT_ERROR]: 'Error processing the payment.',
|
|
25
|
+
[ErrorKeyEnum.CREATE_ORDER_ERROR]: 'Error creating the order.',
|
|
26
|
+
[ErrorKeyEnum.BUSINESS_ID_REQUIRED]: 'Business ID is required.',
|
|
27
|
+
[ErrorKeyEnum.CLIENT_ID_REQUIRED]: 'Client ID is required.',
|
|
28
|
+
[ErrorKeyEnum.INVALID_AMOUNT]: 'Invalid amount.',
|
|
29
|
+
[ErrorKeyEnum.INVALID_ITEMS]: 'Invalid items.',
|
|
30
|
+
[ErrorKeyEnum.CUSTOMER_OPERATION_ERROR]: 'Error registering or fetching customer',
|
|
31
|
+
[ErrorKeyEnum.INVALID_EMAIL]: 'Invalid email.',
|
|
32
|
+
[ErrorKeyEnum.FETCH_PAYMENT_METHODS_ERROR]: 'Error retrieving active payment methods.',
|
|
33
|
+
[ErrorKeyEnum.INVALID_VAULT_TOKEN]: 'An invalid vault token response was received.',
|
|
34
|
+
[ErrorKeyEnum.VAULT_TOKEN_ERROR]: 'Error retrieving the vault token.',
|
|
35
|
+
[ErrorKeyEnum.SECURE_TOKEN_ERROR]: 'Error getting secure token.',
|
|
36
|
+
[ErrorKeyEnum.SECURE_TOKEN_INVALID]: 'Invalid secure token.',
|
|
37
|
+
[ErrorKeyEnum.INVALID_SECRET_API_KEY]: 'SECRET API KEY is required.',
|
|
38
|
+
[ErrorKeyEnum.REMOVE_CARD]: 'Card deleted successfully',
|
|
39
|
+
[ErrorKeyEnum.SKYFLOW_NOT_INITIALIZED]: 'Skyflow not initialized.',
|
|
40
|
+
[ErrorKeyEnum.ERROR_LOAD_PAYMENT_FORM]: 'There was an issue loading the payment form.',
|
|
41
|
+
[ErrorKeyEnum.INVALID_CARD_DATA]: 'Invalid card data.',
|
|
42
|
+
[ErrorKeyEnum.ERROR_LOAD_ENROLLMENT_FORM]: 'There was an issue loading the card form.',
|
|
43
|
+
[ErrorKeyEnum.REQUEST_ABORTED]: 'Requests canceled.',
|
|
44
|
+
[ErrorKeyEnum.REQUEST_FAILED]: 'Request failed.',
|
|
45
|
+
[ErrorKeyEnum.UNKNOWN_ERROR]: 'An unexpected error occurred.',
|
|
46
|
+
[ErrorKeyEnum.CREATE_ERROR]: 'Error creating the SDK.',
|
|
47
|
+
[ErrorKeyEnum.FETCH_TRANSACTION_ERROR]: 'Error retrieving the transaction.',
|
|
48
|
+
[ErrorKeyEnum.THREEDS_REDIRECTION_ERROR]: 'Ocurrió un error durante la redirección de 3DS.',
|
|
49
|
+
[ErrorKeyEnum.REMOVE_SDK_ERROR]: 'Ocurrió un error removiendo la instancia del SDK.'
|
|
50
|
+
};
|
|
51
|
+
export const MESSAGES_ES = {
|
|
52
|
+
[ErrorKeyEnum.INIT_ERROR]: 'Error inicializando el SDK',
|
|
53
|
+
[ErrorKeyEnum.STATE_ERROR]: 'Error actualizando el estado del SDK.',
|
|
54
|
+
[ErrorKeyEnum.FETCH_BUSINESS_ERROR]: 'Error obteniendo información del comercio',
|
|
55
|
+
[ErrorKeyEnum.INVALID_CONFIG]: 'Opciones de configuración requeridas',
|
|
56
|
+
[ErrorKeyEnum.TYPE_SDK_REQUIRED]: 'Tipo de SDK requerido',
|
|
57
|
+
[ErrorKeyEnum.ENVIRONMENT_REQUIRED]: 'Ambiente requerido',
|
|
58
|
+
[ErrorKeyEnum.FETCH_CARDS_ERROR]: 'Error obteniendo las tarjetas.',
|
|
59
|
+
[ErrorKeyEnum.SAVE_CARD_ERROR]: 'Error guardando la tarjeta',
|
|
60
|
+
[ErrorKeyEnum.REMOVE_CARD_ERROR]: 'Error eliminando la tarjeta.',
|
|
61
|
+
[ErrorKeyEnum.CREATE_PAYMENT_ERROR]: 'Error creando el pago.',
|
|
62
|
+
[ErrorKeyEnum.START_CHECKOUT_ERROR]: 'Error al procesar el pago.',
|
|
63
|
+
[ErrorKeyEnum.CREATE_ORDER_ERROR]: 'Error creando la orden.',
|
|
64
|
+
[ErrorKeyEnum.BUSINESS_ID_REQUIRED]: 'ID de Comercio es requerido',
|
|
65
|
+
[ErrorKeyEnum.CLIENT_ID_REQUIRED]: 'ID de Cliente es requerido.',
|
|
66
|
+
[ErrorKeyEnum.INVALID_AMOUNT]: 'Monto no válido.',
|
|
67
|
+
[ErrorKeyEnum.INVALID_ITEMS]: 'Artículos no válidos.',
|
|
68
|
+
[ErrorKeyEnum.CUSTOMER_OPERATION_ERROR]: 'Error registrando u obteniendo el cliente.',
|
|
69
|
+
[ErrorKeyEnum.INVALID_EMAIL]: 'Correo electrónico no válido.',
|
|
70
|
+
[ErrorKeyEnum.FETCH_PAYMENT_METHODS_ERROR]: 'Error obteniendo los métodos de pago activos.',
|
|
71
|
+
[ErrorKeyEnum.INVALID_VAULT_TOKEN]: 'Se recibió una respuesta de token de bóveda no válida.',
|
|
72
|
+
[ErrorKeyEnum.VAULT_TOKEN_ERROR]: 'Error al obtener el token de la bóveda.',
|
|
73
|
+
[ErrorKeyEnum.SECURE_TOKEN_ERROR]: 'Error obteniendo el token seguro.',
|
|
74
|
+
[ErrorKeyEnum.INVALID_SECRET_API_KEY]: 'SECRET API KEY es requerido.',
|
|
75
|
+
[ErrorKeyEnum.CUSTOMER_AUTH_TOKEN_NOT_VALID]: 'El token del cliente no es valido, por favor verifica que se haya proporcionado los datos del cliente al crear el sdk (sdk.create) e intenta nuevamente.',
|
|
76
|
+
[ErrorKeyEnum.SECURE_TOKEN_INVALID]: 'Token de seguridad inválido.',
|
|
77
|
+
[ErrorKeyEnum.REMOVE_CARD]: 'Tarjeta eliminada exitosamente.',
|
|
78
|
+
[ErrorKeyEnum.SKYFLOW_NOT_INITIALIZED]: 'Skyflow no inicializado.',
|
|
79
|
+
[ErrorKeyEnum.INVALID_TYPE]: 'Tipo de SDK inválido.',
|
|
80
|
+
[ErrorKeyEnum.PAYMENT_PROCESS_ERROR]: 'Hubo un problema al procesar el pago.',
|
|
81
|
+
[ErrorKeyEnum.INVALID_PAYMENT_REQUEST]: 'Los datos de pago deben ser del tipo: :::interface:::}}.',
|
|
82
|
+
[ErrorKeyEnum.INVALID_PAYMENT_REQUEST_CARD_PM]: 'Los datos card y payment_method no se pueden proporcionar juntos.',
|
|
83
|
+
[ErrorKeyEnum.SAVE_CARD_PROCESS_ERROR]: 'Error procesando los datos de la tarjeta.',
|
|
84
|
+
[ErrorKeyEnum.ERROR_LOAD_PAYMENT_FORM]: 'Hubo un problema cargando el formulario de pago.',
|
|
85
|
+
[ErrorKeyEnum.INVALID_CARD_DATA]: 'Datos de tarjeta no válidos.',
|
|
86
|
+
[ErrorKeyEnum.ERROR_LOAD_ENROLLMENT_FORM]: 'Hubo un problema cargando el formulario de tarjeta.',
|
|
87
|
+
[ErrorKeyEnum.CARD_SAVED_SUCCESSFULLY]: 'Tarjeta registrada con éxito.',
|
|
88
|
+
[ErrorKeyEnum.CARD_REMOVED_SUCCESSFULLY]: 'Tarjeta eliminada con éxito.',
|
|
89
|
+
[ErrorKeyEnum.REQUEST_ABORTED]: 'Peticiones canceladas.',
|
|
90
|
+
[ErrorKeyEnum.REQUEST_FAILED]: 'Petición fallida.',
|
|
91
|
+
[ErrorKeyEnum.UNKNOWN_ERROR]: 'Ocurrió un error inesperado.',
|
|
92
|
+
[ErrorKeyEnum.CREATE_ERROR]: 'Error creando el SDK.',
|
|
93
|
+
[ErrorKeyEnum.FETCH_TRANSACTION_ERROR]: 'Error obteniendo la transacción',
|
|
94
|
+
[ErrorKeyEnum.THREEDS_REDIRECTION_ERROR]: 'An error occurred during the 3DS redirection.',
|
|
95
|
+
[ErrorKeyEnum.REMOVE_SDK_ERROR]: 'An error occurred while removing the SDK instance.'
|
|
96
|
+
};
|
|
97
|
+
//# sourceMappingURL=messages.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ErrorKeyEnum","MESSAGES_EN","INIT_ERROR","INVALID_TYPE","STATE_ERROR","FETCH_BUSINESS_ERROR","INVALID_CONFIG","MERCHANT_CREDENTIAL_REQUIRED","INVALID_PAYMENT_REQUEST","INVALID_PAYMENT_REQUEST_CARD_PM","TYPE_SDK_REQUIRED","ENVIRONMENT_REQUIRED","FETCH_CARDS_ERROR","CUSTOMER_AUTH_TOKEN_NOT_VALID","SAVE_CARD_ERROR","REMOVE_CARD_ERROR","CREATE_PAYMENT_ERROR","PAYMENT_PROCESS_ERROR","CARD_SAVED_SUCCESSFULLY","CARD_REMOVED_SUCCESSFULLY","SAVE_CARD_PROCESS_ERROR","START_CHECKOUT_ERROR","CREATE_ORDER_ERROR","BUSINESS_ID_REQUIRED","CLIENT_ID_REQUIRED","INVALID_AMOUNT","INVALID_ITEMS","CUSTOMER_OPERATION_ERROR","INVALID_EMAIL","FETCH_PAYMENT_METHODS_ERROR","INVALID_VAULT_TOKEN","VAULT_TOKEN_ERROR","SECURE_TOKEN_ERROR","SECURE_TOKEN_INVALID","INVALID_SECRET_API_KEY","REMOVE_CARD","SKYFLOW_NOT_INITIALIZED","ERROR_LOAD_PAYMENT_FORM","INVALID_CARD_DATA","ERROR_LOAD_ENROLLMENT_FORM","REQUEST_ABORTED","REQUEST_FAILED","UNKNOWN_ERROR","CREATE_ERROR","FETCH_TRANSACTION_ERROR","THREEDS_REDIRECTION_ERROR","REMOVE_SDK_ERROR","MESSAGES_ES"],"sourceRoot":"../../../../src","sources":["shared/constants/messages.ts"],"mappings":";;AAAA,SAASA,YAAY,QAAQ,cAAc;AAE3C,OAAO,MAAMC,WAAW,GAAG;EACzB,CAACD,YAAY,CAACE,UAAU,GAAG,6BAA6B;EACxD,CAACF,YAAY,CAACG,YAAY,GAAG,mBAAmB;EAChD,CAACH,YAAY,CAACI,WAAW,GAAG,2BAA2B;EACvD,CAACJ,YAAY,CAACK,oBAAoB,GAAG,wCAAwC;EAC7E,CAACL,YAAY,CAACM,cAAc,GAAG,iCAAiC;EAChE,CAACN,YAAY,CAACO,4BAA4B,GAAG,+BAA+B;EAC5E,CAACP,YAAY,CAACQ,uBAAuB,GACnC,oDAAoD;EACtD,CAACR,YAAY,CAACS,+BAA+B,GAC3C,iEAAiE;EACnE,CAACT,YAAY,CAACU,iBAAiB,GAAG,oBAAoB;EACtD,CAACV,YAAY,CAACW,oBAAoB,GAAG,uBAAuB;EAC5D,CAACX,YAAY,CAACY,iBAAiB,GAAG,yBAAyB;EAC3D,CAACZ,YAAY,CAACa,6BAA6B,GACzC,6IAA6I;EAC/I,CAACb,YAAY,CAACc,eAAe,GAAG,wBAAwB;EACxD,CAACd,YAAY,CAACe,iBAAiB,GAAG,0BAA0B;EAC5D,CAACf,YAAY,CAACgB,oBAAoB,GAAG,6BAA6B;EAClE,CAAChB,YAAY,CAACiB,qBAAqB,GACjC,4CAA4C;EAC9C,CAACjB,YAAY,CAACkB,uBAAuB,GAAG,0BAA0B;EAClE,CAAClB,YAAY,CAACmB,yBAAyB,GAAG,4BAA4B;EAC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OXXO: 'OXXO',
|
|
6
|
+
SPEI: 'SPEI',
|
|
7
|
+
CODI: 'CODI',
|
|
8
|
+
MERCADOPAGO: 'MERCADOPAGO',
|
|
9
|
+
PAYPAL: 'PAYPAL',
|
|
10
|
+
COMERCIALMEXICANA: 'COMERCIALMEXICANA',
|
|
11
|
+
BANCOMER: 'BANCOMER',
|
|
12
|
+
WALMART: 'WALMART',
|
|
13
|
+
BODEGA: 'BODEGA',
|
|
14
|
+
SAMSCLUB: 'SAMSCLUB',
|
|
15
|
+
SUPERAMA: 'SUPERAMA',
|
|
16
|
+
CALIMAX: 'CALIMAX',
|
|
17
|
+
EXTRA: 'EXTRA',
|
|
18
|
+
CIRCULOK: 'CIRCULOK',
|
|
19
|
+
SEVEN11: '7ELEVEN',
|
|
20
|
+
TELECOMM: 'TELECOMM',
|
|
21
|
+
BANORTE: 'BANORTE',
|
|
22
|
+
BENAVIDES: 'BENAVIDES',
|
|
23
|
+
DELAHORRO: 'DELAHORRO',
|
|
24
|
+
ELASTURIANO: 'ELASTURIANO',
|
|
25
|
+
WALDOS: 'WALDOS',
|
|
26
|
+
ALSUPER: 'ALSUPER',
|
|
27
|
+
KIOSKO: 'KIOSKO',
|
|
28
|
+
STAMARIA: 'STAMARIA',
|
|
29
|
+
LAMASBARATA: 'LAMASBARATA',
|
|
30
|
+
FARMROMA: 'FARMROMA',
|
|
31
|
+
FARMUNION: 'FARMUNION',
|
|
32
|
+
FARMATODO: 'FARMATODO',
|
|
33
|
+
SFDEASIS: 'SFDEASIS',
|
|
34
|
+
FARM911: 'FARM911',
|
|
35
|
+
FARMECONOMICAS: 'FARMECONOMICAS',
|
|
36
|
+
FARMMEDICITY: 'FARMMEDICITY',
|
|
37
|
+
RIANXEIRA: 'RIANXEIRA',
|
|
38
|
+
WESTERNUNION: 'WESTERNUNION',
|
|
39
|
+
ZONAPAGO: 'ZONAPAGO',
|
|
40
|
+
CAJALOSANDES: 'CAJALOSANDES',
|
|
41
|
+
CAJAPAITA: 'CAJAPAITA',
|
|
42
|
+
CAJASANTA: 'CAJASANTA',
|
|
43
|
+
CAJASULLANA: 'CAJASULLANA',
|
|
44
|
+
CAJATRUJILLO: 'CAJATRUJILLO',
|
|
45
|
+
EDPYME: 'EDPYME',
|
|
46
|
+
KASNET: 'KASNET',
|
|
47
|
+
NORANDINO: 'NORANDINO',
|
|
48
|
+
QAPAQ: 'QAPAQ',
|
|
49
|
+
RAIZ: 'RAIZ',
|
|
50
|
+
PAYSER: 'PAYSER',
|
|
51
|
+
WUNION: 'WUNION',
|
|
52
|
+
BANCOCONTINENTAL: 'BANCOCONTINENTAL',
|
|
53
|
+
GMONEY: 'GMONEY',
|
|
54
|
+
GOPAY: 'GOPAY',
|
|
55
|
+
WU: 'WU',
|
|
56
|
+
PUNTOSHEY: 'PUNTOSHEY',
|
|
57
|
+
AMPM: 'AMPM',
|
|
58
|
+
JUMBOMARKET: 'JUMBOMARKET',
|
|
59
|
+
SMELPUEBLO: 'SMELPUEBLO',
|
|
60
|
+
BAM: 'BAM',
|
|
61
|
+
REFACIL: 'REFACIL',
|
|
62
|
+
ACYVALORES: 'ACYVALORES'
|
|
63
|
+
});
|
|
64
|
+
export { PAYMENT_METHODS };
|
|
65
|
+
//# sourceMappingURL=paymentMethods.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["PAYMENT_METHODS","Object","freeze","SORIANA","OXXO","SPEI","CODI","MERCADOPAGO","PAYPAL","COMERCIALMEXICANA","BANCOMER","WALMART","BODEGA","SAMSCLUB","SUPERAMA","CALIMAX","EXTRA","CIRCULOK","SEVEN11","TELECOMM","BANORTE","BENAVIDES","DELAHORRO","ELASTURIANO","WALDOS","ALSUPER","KIOSKO","STAMARIA","LAMASBARATA","FARMROMA","FARMUNION","FARMATODO","SFDEASIS","FARM911","FARMECONOMICAS","FARMMEDICITY","RIANXEIRA","WESTERNUNION","ZONAPAGO","CAJALOSANDES","CAJAPAITA","CAJASANTA","CAJASULLANA","CAJATRUJILLO","EDPYME","KASNET","NORANDINO","QAPAQ","RAIZ","PAYSER","WUNION","BANCOCONTINENTAL","GMONEY","GOPAY","WU","PUNTOSHEY","AMPM","JUMBOMARKET","SMELPUEBLO","BAM","REFACIL","ACYVALORES"],"sourceRoot":"../../../../src","sources":["shared/constants/paymentMethods.ts"],"mappings":";;AAAA,MAAMA,eAAe,GAAGC,MAAM,CAACC,MAAM,CAAC;EACpCC,OAAO,EAAE,SAAS;EAClBC,IAAI,EAAE,MAAM;EACZC,IAAI,EAAE,MAAM;EACZC,IAAI,EAAE,MAAM;EACZC,WAAW,EAAE,aAAa;EAC1BC,MAAM,EAAE,QAAQ;EAChBC,iBAAiB,EAAE,mBAAmB;EACtCC,QAAQ,EAAE,UAAU;EACpBC,OAAO,EAAE,SAAS;EAClBC,MAAM,EAAE,QAAQ;EAChBC,QAAQ,EAAE,UAAU;EACpBC,QAAQ,EAAE,UAAU;EACpBC,OAAO,EAAE,SAAS;EAClBC,KAAK,EAAE,OAAO;EACdC,QAAQ,EAAE,UAAU;EACpBC,OAAO,EAAE,SAAS;EAClBC,QAAQ,EAAE,UAAU;EACpBC,OAAO,EAAE,SAAS;EAClBC,SAAS,EAAE,WAAW;EACtBC,SAAS,EAAE,WAAW;EACtBC,WAAW,EAAE,aAAa;EAC1BC,MAAM,EAAE,QAAQ;EAChBC,OAAO,EAAE,SAAS;EAClBC,MAAM,EAAE,QAAQ;EAChBC,QAAQ,EAAE,UAAU;EACpBC,WAAW,EAAE,aAAa;EAC1BC,QAAQ,EAAE,UAAU;EACpBC,SAAS,EAAE,WAAW;EACtBC,SAAS,EAAE,WAAW;EACtBC,QAAQ,EAAE,UAAU;EACpBC,OAAO,EAAE,SAAS;EAClBC,cAAc,EAAE,gBAAgB;EAChCC,YAAY,EAAE,cAAc;EAC5BC,SAAS,EAAE,WAAW;EACtBC,YAAY,EAAE,cAAc;EAC5BC,QAAQ,EAAE,UAAU;EACpBC,YAAY,EAAE,cAAc;EAC5BC,SAAS,EAAE,WAAW;EACtBC,SAAS,EAAE,WAAW;EACtBC,WAAW,EAAE,aAAa;EAC1BC,YAAY,EAAE,cAAc;EAC5BC,MAAM,EAAE,QAAQ;EAChBC,MAAM,EAAE,QAAQ;EAChBC,SAAS,EAAE,WAAW;EACtBC,KAAK,EAAE,OAAO;EACdC,IAAI,EAAE,MAAM;EACZC,MAAM,EAAE,QAAQ;EAChBC,MAAM,EAAE,QAAQ;EAChBC,gBAAgB,EAAE,kBAAkB;EACpCC,MAAM,EAAE,QAAQ;EAChBC,KAAK,EAAE,OAAO;EACdC,EAAE,EAAE,IAAI;EACRC,SAAS,EAAE,WAAW;EACtBC,IAAI,EAAE,MAAM;EACZC,WAAW,EAAE,aAAa;EAC1BC,UAAU,EAAE,YAAY;EACxBC,GAAG,EAAE,KAAK;EACVC,OAAO,EAAE,SAAS;EAClBC,UAAU,EAAE;AACd,CAAC,CAAC;AAEF,SAAS7D,eAAe","ignoreList":[]}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { ValidationRuleType } from 'skyflow-react-native';
|
|
4
|
+
const lengthMatchRule = {
|
|
5
|
+
type: ValidationRuleType.LENGTH_MATCH_RULE,
|
|
6
|
+
params: {
|
|
7
|
+
max: 70
|
|
8
|
+
}
|
|
9
|
+
};
|
|
10
|
+
const regexEmpty = RegExp('^(?!s*$).+');
|
|
11
|
+
const regexMatchRule = {
|
|
12
|
+
type: ValidationRuleType.REGEX_MATCH_RULE,
|
|
13
|
+
params: {
|
|
14
|
+
regex: regexEmpty,
|
|
15
|
+
error: 'El campo es requerido' // Optional, default error is 'VALIDATION FAILED'.
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
const getErrorField = (event, field) => {
|
|
19
|
+
if (event.isEmpty) {
|
|
20
|
+
return 'El campo es requerido';
|
|
21
|
+
} else if (!event.isValid && !event.isEmpty) {
|
|
22
|
+
return `El campo ${field} es inválido`;
|
|
23
|
+
} else {
|
|
24
|
+
return '';
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
const DEFAULT_SKYFLOW_lABELS = {
|
|
28
|
+
nameLabel: 'Titular de la tarjeta',
|
|
29
|
+
cardLabel: 'Número de tarjeta',
|
|
30
|
+
cvvLabel: 'CVC/CVV',
|
|
31
|
+
expiryMonthLabel: 'Mes',
|
|
32
|
+
expiryYearLabel: 'Año',
|
|
33
|
+
expiryDateLabel: 'Fecha de expiración'
|
|
34
|
+
};
|
|
35
|
+
const DEFAULT_SKYFLOW_PLACEHOLDERS = {
|
|
36
|
+
namePlaceholder: 'Nombre como aparece en la tarjeta',
|
|
37
|
+
cardPlaceholder: '1234 1234 1234 1234',
|
|
38
|
+
cvvPlaceholder: '3-4 dígitos',
|
|
39
|
+
expiryMonthPlaceholder: 'MM',
|
|
40
|
+
expiryYearPlaceholder: 'AA'
|
|
41
|
+
};
|
|
42
|
+
export { lengthMatchRule, regexMatchRule, getErrorField, DEFAULT_SKYFLOW_lABELS, DEFAULT_SKYFLOW_PLACEHOLDERS };
|
|
43
|
+
//# sourceMappingURL=skyflow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ValidationRuleType","lengthMatchRule","type","LENGTH_MATCH_RULE","params","max","regexEmpty","RegExp","regexMatchRule","REGEX_MATCH_RULE","regex","error","getErrorField","event","field","isEmpty","isValid","DEFAULT_SKYFLOW_lABELS","nameLabel","cardLabel","cvvLabel","expiryMonthLabel","expiryYearLabel","expiryDateLabel","DEFAULT_SKYFLOW_PLACEHOLDERS","namePlaceholder","cardPlaceholder","cvvPlaceholder","expiryMonthPlaceholder","expiryYearPlaceholder"],"sourceRoot":"../../../../src","sources":["shared/constants/skyflow.ts"],"mappings":";;AAAA,SAASA,kBAAkB,QAAQ,sBAAsB;AACzD,MAAMC,eAAe,GAAG;EACtBC,IAAI,EAAEF,kBAAkB,CAACG,iBAAiB;EAC1CC,MAAM,EAAE;IACNC,GAAG,EAAE;EACP;AACF,CAAC;AACD,MAAMC,UAAU,GAAGC,MAAM,CAAC,YAAY,CAAC;AAEvC,MAAMC,cAAc,GAAG;EACrBN,IAAI,EAAEF,kBAAkB,CAACS,gBAAgB;EACzCL,MAAM,EAAE;IACNM,KAAK,EAAEJ,UAAU;IACjBK,KAAK,EAAE,uBAAuB,CAAE;EAClC;AACF,CAAC;AAED,MAAMC,aAAa,GAAGA,CACpBC,KAMC,EACDC,KAAa,KACV;EACH,IAAID,KAAK,CAACE,OAAO,EAAE;IACjB,OAAO,uBAAuB;EAChC,CAAC,MAAM,IAAI,CAACF,KAAK,CAACG,OAAO,IAAI,CAACH,KAAK,CAACE,OAAO,EAAE;IAC3C,OAAO,YAAYD,KAAK,cAAc;EACxC,CAAC,MAAM;IACL,OAAO,EAAE;EACX;AACF,CAAC;AAED,MAAMG,sBAAsB,GAAG;EAC7BC,SAAS,EAAE,uBAAuB;EAClCC,SAAS,EAAE,mBAAmB;EAC9BC,QAAQ,EAAE,SAAS;EACnBC,gBAAgB,EAAE,KAAK;EACvBC,eAAe,EAAE,KAAK;EACtBC,eAAe,EAAE;AACnB,CAAC;AAED,MAAMC,4BAA4B,GAAG;EACnCC,eAAe,EAAE,mCAAmC;EACpDC,eAAe,EAAE,qBAAqB;EACtCC,cAAc,EAAE,aAAa;EAC7BC,sBAAsB,EAAE,IAAI;EAC5BC,qBAAqB,EAAE;AACzB,CAAC;AAED,SACE5B,eAAe,EACfO,cAAc,EACdI,aAAa,EACbK,sBAAsB,EACtBO,4BAA4B","ignoreList":[]}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
export let ErrorKeyEnum = /*#__PURE__*/function (ErrorKeyEnum) {
|
|
4
|
+
ErrorKeyEnum["INIT_ERROR"] = "INIT_ERROR";
|
|
5
|
+
ErrorKeyEnum["CREATE_ERROR"] = "CREATE_ERROR";
|
|
6
|
+
ErrorKeyEnum["REMOVE_SDK_ERROR"] = "REMOVE_SDK_ERROR";
|
|
7
|
+
ErrorKeyEnum["INVALID_TYPE"] = "INVALID_TYPE";
|
|
8
|
+
ErrorKeyEnum["STATE_ERROR"] = "STATE_ERROR";
|
|
9
|
+
ErrorKeyEnum["FETCH_BUSINESS_ERROR"] = "FETCH_BUSINESS_ERROR";
|
|
10
|
+
ErrorKeyEnum["INVALID_CONFIG"] = "INVALID_CONFIG";
|
|
11
|
+
ErrorKeyEnum["MERCHANT_CREDENTIAL_REQUIRED"] = "MERCHANT_CREDENTIAL_REQUIRED";
|
|
12
|
+
ErrorKeyEnum["INVALID_PAYMENT_REQUEST"] = "INVALID_PAYMENT_REQUEST";
|
|
13
|
+
ErrorKeyEnum["INVALID_PAYMENT_REQUEST_CARD_PM"] = "INVALID_PAYMENT_REQUEST_CARD_PM";
|
|
14
|
+
ErrorKeyEnum["TYPE_SDK_REQUIRED"] = "TYPE_SDK_REQUIRED";
|
|
15
|
+
ErrorKeyEnum["ENVIRONMENT_REQUIRED"] = "ENVIRONMENT_REQUIRED";
|
|
16
|
+
ErrorKeyEnum["FETCH_CARDS_ERROR"] = "FETCH_CARDS_ERROR";
|
|
17
|
+
ErrorKeyEnum["FETCH_TRANSACTION_ERROR"] = "FETCH_TRANSACTION_ERROR";
|
|
18
|
+
ErrorKeyEnum["CUSTOMER_AUTH_TOKEN_NOT_VALID"] = "CUSTOMER_AUTH_TOKEN_NOT_VALID";
|
|
19
|
+
ErrorKeyEnum["SAVE_CARD_ERROR"] = "SAVE_CARD_ERROR";
|
|
20
|
+
ErrorKeyEnum["REMOVE_CARD_ERROR"] = "REMOVE_CARD_ERROR";
|
|
21
|
+
ErrorKeyEnum["CREATE_PAYMENT_ERROR"] = "CREATE_PAYMENT_ERROR";
|
|
22
|
+
ErrorKeyEnum["PAYMENT_PROCESS_ERROR"] = "PAYMENT_PROCESS_ERROR";
|
|
23
|
+
ErrorKeyEnum["INVALID_CARD_DATA"] = "INVALID_CARD_DATA";
|
|
24
|
+
ErrorKeyEnum["SAVE_CARD_PROCESS_ERROR"] = "SAVE_CARD_PROCESS_ERROR";
|
|
25
|
+
ErrorKeyEnum["START_CHECKOUT_ERROR"] = "START_CHECKOUT_ERROR";
|
|
26
|
+
ErrorKeyEnum["CREATE_ORDER_ERROR"] = "CREATE_ORDER_ERROR";
|
|
27
|
+
ErrorKeyEnum["BUSINESS_ID_REQUIRED"] = "BUSINESS_ID_REQUIRED";
|
|
28
|
+
ErrorKeyEnum["CLIENT_ID_REQUIRED"] = "CLIENT_ID_REQUIRED";
|
|
29
|
+
ErrorKeyEnum["INVALID_AMOUNT"] = "INVALID_AMOUNT";
|
|
30
|
+
ErrorKeyEnum["INVALID_ITEMS"] = "INVALID_ITEMS";
|
|
31
|
+
ErrorKeyEnum["CUSTOMER_OPERATION_ERROR"] = "CUSTOMER_OPERATION_ERROR";
|
|
32
|
+
ErrorKeyEnum["INVALID_EMAIL"] = "INVALID_EMAIL";
|
|
33
|
+
ErrorKeyEnum["FETCH_PAYMENT_METHODS_ERROR"] = "FETCH_PAYMENT_METHODS_ERROR";
|
|
34
|
+
ErrorKeyEnum["INVALID_VAULT_TOKEN"] = "INVALID_VAULT_TOKEN";
|
|
35
|
+
ErrorKeyEnum["VAULT_TOKEN_ERROR"] = "VAULT_TOKEN_ERROR";
|
|
36
|
+
ErrorKeyEnum["SECURE_TOKEN_ERROR"] = "SECURE_TOKEN_ERROR";
|
|
37
|
+
ErrorKeyEnum["SECURE_TOKEN_INVALID"] = "SECURE_TOKEN_INVALID";
|
|
38
|
+
ErrorKeyEnum["INVALID_SECRET_API_KEY"] = "INVALID_SECRET_API_KEY";
|
|
39
|
+
ErrorKeyEnum["REMOVE_CARD"] = "REMOVE_CARD";
|
|
40
|
+
ErrorKeyEnum["SKYFLOW_NOT_INITIALIZED"] = "SKYFLOW_NOT_INITIALIZED";
|
|
41
|
+
ErrorKeyEnum["ERROR_LOAD_PAYMENT_FORM"] = "ERROR_LOAD_PAYMENT_FORM";
|
|
42
|
+
ErrorKeyEnum["ERROR_LOAD_ENROLLMENT_FORM"] = "ERROR_LOAD_ENROLLMENT_FORM";
|
|
43
|
+
ErrorKeyEnum["CARD_SAVED_SUCCESSFULLY"] = "CARD_SAVED_SUCCESSFULLY";
|
|
44
|
+
ErrorKeyEnum["CARD_REMOVED_SUCCESSFULLY"] = "CARD_REMOVED_SUCCESSFULLY";
|
|
45
|
+
ErrorKeyEnum["REQUEST_ABORTED"] = "REQUEST_ABORTED";
|
|
46
|
+
ErrorKeyEnum["REQUEST_FAILED"] = "REQUEST_FAILED";
|
|
47
|
+
ErrorKeyEnum["UNKNOWN_ERROR"] = "UNKNOWN_ERROR";
|
|
48
|
+
ErrorKeyEnum["THREEDS_REDIRECTION_ERROR"] = "THREEDS_REDIRECTION_ERROR";
|
|
49
|
+
return ErrorKeyEnum;
|
|
50
|
+
}({});
|
|
51
|
+
//# sourceMappingURL=ErrorKeyEnum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ErrorKeyEnum"],"sourceRoot":"../../../../src","sources":["shared/enum/ErrorKeyEnum.ts"],"mappings":";;AAAA,WAAYA,YAAY,0BAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAA,OAAZA,YAAY;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["shared/enum/index.ts"],"mappings":";;AAAA,cAAc,mBAAgB","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["shared/index.ts"],"mappings":";;AAAA,cAAc,sBAAa;AAC3B,cAAc,mBAAgB;AAC9B,cAAc,iBAAQ","ignoreList":[]}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
export const getAppInfo = () => {
|
|
4
|
+
// TODO: IMPLEMENT getAppInfo IBrowserInfo
|
|
5
|
+
return {};
|
|
6
|
+
// return {
|
|
7
|
+
// javascript_enabled: true, // Assumed since JavaScript is running
|
|
8
|
+
// time_zone: new Date().getTimezoneOffset(),
|
|
9
|
+
// language: navigator.language || 'en-US', // Fallback to 'en-US'
|
|
10
|
+
// color_depth: window.screen ? window.screen.colorDepth : null,
|
|
11
|
+
// screen_width: window.screen
|
|
12
|
+
// ? window.screen.width * window.devicePixelRatio || window.screen.width
|
|
13
|
+
// : null,
|
|
14
|
+
// screen_height: window.screen
|
|
15
|
+
// ? window.screen.height * window.devicePixelRatio || window.screen.height
|
|
16
|
+
// : null,
|
|
17
|
+
// user_agent: navigator.userAgent,
|
|
18
|
+
// };
|
|
19
|
+
};
|
|
20
|
+
export const executeCallback = async ({
|
|
21
|
+
callbacks,
|
|
22
|
+
callback,
|
|
23
|
+
data = null,
|
|
24
|
+
throwError = false
|
|
25
|
+
}) => {
|
|
26
|
+
try {
|
|
27
|
+
if (callbacks && callback in callbacks) {
|
|
28
|
+
if (data) {
|
|
29
|
+
await callbacks[callback](data);
|
|
30
|
+
} else {
|
|
31
|
+
await callbacks[callback]();
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
} catch (e) {
|
|
35
|
+
console.error(e);
|
|
36
|
+
if (throwError) {
|
|
37
|
+
throw e;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=common.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["getAppInfo","executeCallback","callbacks","callback","data","throwError","e","console","error"],"sourceRoot":"../../../../src","sources":["shared/utils/common.ts"],"mappings":";;AAEA,OAAO,MAAMA,UAAU,GAAGA,CAAA,KAAoB;EAC5C;EACA,OAAO,CAAC,CAAC;EACT;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AACF,CAAC;AAED,OAAO,MAAMC,eAAe,GAAG,MAAAA,CAAO;EACpCC,SAAS;EACTC,QAAQ;EACRC,IAAI,GAAG,IAAI;EACXC,UAAU,GAAG;AAMf,CAAC,KAAK;EACJ,IAAI;IACF,IAAIH,SAAS,IAAIC,QAAQ,IAAID,SAAS,EAAE;MACtC,IAAIE,IAAI,EAAE;QACR,MAAMF,SAAS,CAACC,QAAQ,CAAC,CAACC,IAAI,CAAC;MACjC,CAAC,MAAM;QACL,MAAMF,SAAS,CAACC,QAAQ,CAAC,CAAC,CAAC;MAC7B;IACF;EACF,CAAC,CAAC,OAAOG,CAAC,EAAE;IACVC,OAAO,CAACC,KAAK,CAACF,CAAC,CAAC;IAChB,IAAID,UAAU,EAAE;MACd,MAAMC,CAAC;IACT;EACF;AACF,CAAC","ignoreList":[]}
|