@tonder.io/rn-sdk 0.1.0-beta.DEV1355.6 → 0.1.0-beta.DEV1355.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -3
- package/android/build.gradle +99 -0
- package/android/gradle.properties +5 -0
- package/android/src/main/AndroidManifest.xml +3 -0
- package/android/src/main/AndroidManifestNew.xml +2 -0
- package/android/src/main/java/com/tonderio/rnsdk/RnSdkModule.kt +25 -0
- package/android/src/main/java/com/tonderio/rnsdk/RnSdkPackage.kt +17 -0
- package/ios/RnSdk-Bridging-Header.h +2 -0
- package/ios/RnSdk.mm +14 -0
- package/ios/RnSdk.swift +8 -0
- package/lib/commonjs/core/3DSHandler.js +17 -12
- package/lib/commonjs/core/3DSHandler.js.map +1 -1
- package/lib/commonjs/core/BaseCheckout/index.js +22 -23
- package/lib/commonjs/core/BaseCheckout/index.js.map +1 -1
- package/lib/commonjs/core/BaseEnrollment/index.js +8 -9
- package/lib/commonjs/core/BaseEnrollment/index.js.map +1 -1
- package/lib/commonjs/core/BaseSDK/index.js +3 -3
- package/lib/commonjs/core/BaseSDK/index.js.map +1 -1
- package/lib/commonjs/core/EnrollmentContainer/index.js +9 -10
- package/lib/commonjs/core/EnrollmentContainer/index.js.map +1 -1
- package/lib/commonjs/core/PaymentInlineContainer/index.js +5 -5
- package/lib/commonjs/core/PaymentInlineContainer/index.js.map +1 -1
- package/lib/commonjs/core/PaymentLiteContainer/index.js +12 -12
- package/lib/commonjs/core/PaymentLiteContainer/index.js.map +1 -1
- package/lib/commonjs/core/Tonder/index.js +16 -10
- package/lib/commonjs/core/Tonder/index.js.map +1 -1
- package/lib/commonjs/hooks/useTonder/index.js +1 -1
- package/lib/commonjs/hooks/useTonder/index.js.map +1 -1
- package/lib/commonjs/index.js +15 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/infrastructure/HttpClient.js +7 -8
- package/lib/commonjs/infrastructure/HttpClient.js.map +1 -1
- package/lib/commonjs/infrastructure/ServiceManager.js +12 -13
- package/lib/commonjs/infrastructure/ServiceManager.js.map +1 -1
- package/lib/commonjs/services/BusinessService.js +3 -3
- package/lib/commonjs/services/BusinessService.js.map +1 -1
- package/lib/commonjs/services/CardService.js +7 -8
- package/lib/commonjs/services/CardService.js.map +1 -1
- package/lib/commonjs/services/CheckoutService.js +11 -11
- package/lib/commonjs/services/CheckoutService.js.map +1 -1
- package/lib/commonjs/services/CustomerService.js +5 -5
- package/lib/commonjs/services/CustomerService.js.map +1 -1
- package/lib/commonjs/services/PaymentMethodService.js +3 -3
- package/lib/commonjs/services/PaymentMethodService.js.map +1 -1
- package/lib/commonjs/services/SkyflowService.js +4 -4
- package/lib/commonjs/services/SkyflowService.js.map +1 -1
- package/lib/commonjs/services/TokenService.js +4 -4
- package/lib/commonjs/services/TokenService.js.map +1 -1
- package/lib/commonjs/services/TransactionService.js +3 -3
- package/lib/commonjs/services/TransactionService.js.map +1 -1
- package/lib/commonjs/services/index.js +0 -11
- package/lib/commonjs/services/index.js.map +1 -1
- package/lib/commonjs/shared/catalog/cardBrandCatalog.js +1 -1
- package/lib/commonjs/shared/catalog/paymentMethodsCatalog.js +2 -2
- package/lib/commonjs/shared/constants/environments.js +1 -1
- package/lib/commonjs/shared/constants/messages.js +90 -90
- package/lib/commonjs/shared/constants/messages.js.map +1 -1
- package/lib/commonjs/shared/utils/errors.js +2 -2
- package/lib/commonjs/shared/utils/errors.js.map +1 -1
- package/lib/commonjs/shared/utils/paymentMethodUtils.js +3 -3
- package/lib/commonjs/shared/utils/paymentMethodUtils.js.map +1 -1
- package/lib/commonjs/shared/utils/stringUtils.js +17 -1
- package/lib/commonjs/shared/utils/stringUtils.js.map +1 -1
- package/lib/commonjs/types/srn-temp.d.js +2 -0
- package/lib/commonjs/types/srn-temp.d.js.map +1 -0
- package/lib/commonjs/ui/components/Button/ProcessButton.js +1 -1
- package/lib/commonjs/ui/components/Button/ProcessButton.js.map +1 -1
- package/lib/commonjs/ui/components/CardForm/index.js +5 -5
- package/lib/commonjs/ui/components/CardForm/index.js.map +1 -1
- package/lib/commonjs/ui/components/Input/CardCVVInput.js +6 -4
- package/lib/commonjs/ui/components/Input/CardCVVInput.js.map +1 -1
- package/lib/commonjs/ui/components/Input/CardExpirationDateInput.js +5 -5
- package/lib/commonjs/ui/components/Input/CardExpirationDateInput.js.map +1 -1
- package/lib/commonjs/ui/components/Input/CardExpirationMonthInput.js +6 -4
- package/lib/commonjs/ui/components/Input/CardExpirationMonthInput.js.map +1 -1
- package/lib/commonjs/ui/components/Input/CardExpirationYearInput.js +6 -4
- package/lib/commonjs/ui/components/Input/CardExpirationYearInput.js.map +1 -1
- package/lib/commonjs/ui/components/Input/CardHolderInput.js +6 -4
- package/lib/commonjs/ui/components/Input/CardHolderInput.js.map +1 -1
- package/lib/commonjs/ui/components/Input/CardNumberInput.js +6 -4
- package/lib/commonjs/ui/components/Input/CardNumberInput.js.map +1 -1
- package/lib/commonjs/ui/components/PaymentMethodsList/index.js +7 -7
- package/lib/commonjs/ui/components/PaymentMethodsList/index.js.map +1 -1
- package/lib/commonjs/ui/components/SavedCardsList/index.js +6 -4
- package/lib/commonjs/ui/components/SavedCardsList/index.js.map +1 -1
- package/lib/commonjs/ui/features/TonderEnrollment/index.js +7 -7
- package/lib/commonjs/ui/features/TonderEnrollment/index.js.map +1 -1
- package/lib/commonjs/ui/features/TonderPayment/index.js +16 -17
- package/lib/commonjs/ui/features/TonderPayment/index.js.map +1 -1
- package/lib/commonjs/ui/providers/InnerProvider/index.js +1 -1
- package/lib/commonjs/ui/providers/InnerProvider/index.js.map +1 -1
- package/lib/commonjs/ui/providers/SkyflowContainerWrapper/index.js +2 -2
- package/lib/commonjs/ui/providers/SkyflowContainerWrapper/index.js.map +1 -1
- package/lib/commonjs/ui/providers/TonderProvider/hook.js +1 -1
- package/lib/commonjs/ui/providers/TonderProvider/index.js +22 -20
- package/lib/commonjs/ui/providers/TonderProvider/index.js.map +1 -1
- package/lib/commonjs/ui/providers/TonderProvider/uiWrapper.js +3 -3
- package/lib/commonjs/ui/providers/TonderProvider/uiWrapper.js.map +1 -1
- package/lib/commonjs/ui/styles/skyflow.js +1 -1
- package/lib/module/core/3DSHandler.js +16 -11
- package/lib/module/core/3DSHandler.js.map +1 -1
- package/lib/module/core/BaseCheckout/index.js +9 -10
- package/lib/module/core/BaseCheckout/index.js.map +1 -1
- package/lib/module/core/BaseEnrollment/index.js +3 -4
- package/lib/module/core/BaseEnrollment/index.js.map +1 -1
- package/lib/module/core/BaseSDK/index.js +2 -2
- package/lib/module/core/BaseSDK/index.js.map +1 -1
- package/lib/module/core/EnrollmentContainer/index.js +4 -5
- package/lib/module/core/EnrollmentContainer/index.js.map +1 -1
- package/lib/module/core/PaymentInlineContainer/index.js +3 -3
- package/lib/module/core/PaymentInlineContainer/index.js.map +1 -1
- package/lib/module/core/PaymentLiteContainer/index.js +6 -6
- package/lib/module/core/PaymentLiteContainer/index.js.map +1 -1
- package/lib/module/core/Tonder/index.js +14 -8
- package/lib/module/core/Tonder/index.js.map +1 -1
- package/lib/module/hooks/useTonder/index.js +1 -1
- package/lib/module/hooks/useTonder/index.js.map +1 -1
- package/lib/module/index.js +13 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/infrastructure/HttpClient.js +2 -3
- package/lib/module/infrastructure/HttpClient.js.map +1 -1
- package/lib/module/infrastructure/ServiceManager.js +2 -3
- package/lib/module/infrastructure/ServiceManager.js.map +1 -1
- package/lib/module/services/BusinessService.js +2 -2
- package/lib/module/services/BusinessService.js.map +1 -1
- package/lib/module/services/CardService.js +2 -3
- package/lib/module/services/CardService.js.map +1 -1
- package/lib/module/services/CheckoutService.js +2 -2
- package/lib/module/services/CheckoutService.js.map +1 -1
- package/lib/module/services/CustomerService.js +2 -2
- package/lib/module/services/CustomerService.js.map +1 -1
- package/lib/module/services/PaymentMethodService.js +2 -2
- package/lib/module/services/PaymentMethodService.js.map +1 -1
- package/lib/module/services/SkyflowService.js +2 -2
- package/lib/module/services/SkyflowService.js.map +1 -1
- package/lib/module/services/TokenService.js +2 -2
- package/lib/module/services/TokenService.js.map +1 -1
- package/lib/module/services/TransactionService.js +2 -2
- package/lib/module/services/TransactionService.js.map +1 -1
- package/lib/module/services/index.js +0 -1
- package/lib/module/services/index.js.map +1 -1
- package/lib/module/shared/catalog/cardBrandCatalog.js +1 -1
- package/lib/module/shared/catalog/cardBrandCatalog.js.map +1 -1
- package/lib/module/shared/catalog/paymentMethodsCatalog.js +2 -2
- package/lib/module/shared/catalog/paymentMethodsCatalog.js.map +1 -1
- package/lib/module/shared/constants/environments.js +1 -1
- package/lib/module/shared/constants/messages.js +1 -1
- package/lib/module/shared/constants/messages.js.map +1 -1
- package/lib/module/shared/utils/errors.js +1 -1
- package/lib/module/shared/utils/errors.js.map +1 -1
- package/lib/module/shared/utils/paymentMethodUtils.js +2 -2
- package/lib/module/shared/utils/paymentMethodUtils.js.map +1 -1
- package/lib/module/shared/utils/stringUtils.js +15 -0
- package/lib/module/shared/utils/stringUtils.js.map +1 -1
- package/lib/module/types/srn-temp.d.js +2 -0
- package/lib/module/types/srn-temp.d.js.map +1 -0
- package/lib/module/ui/components/Button/ProcessButton.js +1 -1
- package/lib/module/ui/components/Button/ProcessButton.js.map +1 -1
- package/lib/module/ui/components/CardForm/index.js +5 -5
- package/lib/module/ui/components/CardForm/index.js.map +1 -1
- package/lib/module/ui/components/Input/CardCVVInput.js +5 -4
- package/lib/module/ui/components/Input/CardCVVInput.js.map +1 -1
- package/lib/module/ui/components/Input/CardExpirationDateInput.js +5 -5
- package/lib/module/ui/components/Input/CardExpirationDateInput.js.map +1 -1
- package/lib/module/ui/components/Input/CardExpirationMonthInput.js +6 -5
- package/lib/module/ui/components/Input/CardExpirationMonthInput.js.map +1 -1
- package/lib/module/ui/components/Input/CardExpirationYearInput.js +5 -4
- package/lib/module/ui/components/Input/CardExpirationYearInput.js.map +1 -1
- package/lib/module/ui/components/Input/CardHolderInput.js +5 -4
- package/lib/module/ui/components/Input/CardHolderInput.js.map +1 -1
- package/lib/module/ui/components/Input/CardNumberInput.js +5 -4
- package/lib/module/ui/components/Input/CardNumberInput.js.map +1 -1
- package/lib/module/ui/components/PaymentMethodsList/index.js +6 -6
- package/lib/module/ui/components/PaymentMethodsList/index.js.map +1 -1
- package/lib/module/ui/components/SavedCardsList/index.js +4 -3
- package/lib/module/ui/components/SavedCardsList/index.js.map +1 -1
- package/lib/module/ui/features/TonderEnrollment/index.js +6 -6
- package/lib/module/ui/features/TonderEnrollment/index.js.map +1 -1
- package/lib/module/ui/features/TonderPayment/index.js +12 -13
- package/lib/module/ui/features/TonderPayment/index.js.map +1 -1
- package/lib/module/ui/providers/InnerProvider/index.js +1 -1
- package/lib/module/ui/providers/InnerProvider/index.js.map +1 -1
- package/lib/module/ui/providers/SkyflowContainerWrapper/index.js +1 -1
- package/lib/module/ui/providers/SkyflowContainerWrapper/index.js.map +1 -1
- package/lib/module/ui/providers/TonderProvider/hook.js +1 -1
- package/lib/module/ui/providers/TonderProvider/hook.js.map +1 -1
- package/lib/module/ui/providers/TonderProvider/index.js +15 -13
- package/lib/module/ui/providers/TonderProvider/index.js.map +1 -1
- package/lib/module/ui/providers/TonderProvider/uiWrapper.js +2 -2
- package/lib/module/ui/providers/TonderProvider/uiWrapper.js.map +1 -1
- package/lib/module/ui/styles/skyflow.js +1 -1
- package/lib/typescript/commonjs/src/core/3DSHandler.d.ts +4 -4
- package/lib/typescript/commonjs/src/core/3DSHandler.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/core/BaseCheckout/index.d.ts +5 -5
- package/lib/typescript/commonjs/src/core/BaseCheckout/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/core/BaseEnrollment/index.d.ts +5 -5
- package/lib/typescript/commonjs/src/core/BaseEnrollment/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/core/BaseSDK/index.d.ts +2 -2
- package/lib/typescript/commonjs/src/core/BaseSDK/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/core/EnrollmentContainer/index.d.ts +4 -4
- package/lib/typescript/commonjs/src/core/EnrollmentContainer/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/core/PaymentInlineContainer/index.d.ts +4 -4
- package/lib/typescript/commonjs/src/core/PaymentInlineContainer/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/core/PaymentLiteContainer/index.d.ts +4 -4
- package/lib/typescript/commonjs/src/core/PaymentLiteContainer/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/core/Tonder/index.d.ts +2 -2
- package/lib/typescript/commonjs/src/core/Tonder/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/hooks/useTonder/index.d.ts +2 -2
- package/lib/typescript/commonjs/src/hooks/useTonder/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/index.d.ts +1 -0
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/infrastructure/HttpClient.d.ts +1 -1
- package/lib/typescript/commonjs/src/infrastructure/HttpClient.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/infrastructure/ServiceManager.d.ts +2 -3
- package/lib/typescript/commonjs/src/infrastructure/ServiceManager.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/services/BusinessService.d.ts +2 -2
- package/lib/typescript/commonjs/src/services/BusinessService.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/services/CardService.d.ts +2 -2
- package/lib/typescript/commonjs/src/services/CardService.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/services/CheckoutService.d.ts +2 -2
- package/lib/typescript/commonjs/src/services/CheckoutService.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/services/CustomerService.d.ts +2 -2
- package/lib/typescript/commonjs/src/services/CustomerService.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/services/PaymentMethodService.d.ts +2 -2
- package/lib/typescript/commonjs/src/services/PaymentMethodService.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/services/SkyflowService.d.ts +1 -1
- package/lib/typescript/commonjs/src/services/SkyflowService.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/services/TokenService.d.ts +2 -2
- package/lib/typescript/commonjs/src/services/TokenService.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/services/TransactionService.d.ts +2 -2
- package/lib/typescript/commonjs/src/services/TransactionService.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/services/index.d.ts +0 -1
- package/lib/typescript/commonjs/src/services/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/shared/constants/environments.d.ts +1 -1
- package/lib/typescript/commonjs/src/shared/utils/common.d.ts +1 -1
- package/lib/typescript/commonjs/src/shared/utils/common.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/shared/utils/stringUtils.d.ts +3 -0
- package/lib/typescript/commonjs/src/shared/utils/stringUtils.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/shared/utils/styleUtils.d.ts +1 -1
- package/lib/typescript/commonjs/src/shared/utils/styleUtils.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/base.d.ts +5 -5
- package/lib/typescript/commonjs/src/types/base.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/baseCheckout.d.ts +2 -2
- package/lib/typescript/commonjs/src/types/baseCheckout.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/baseEnrollment.d.ts +2 -2
- package/lib/typescript/commonjs/src/types/baseEnrollment.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/baseSDK.d.ts +2 -2
- package/lib/typescript/commonjs/src/types/baseSDK.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/common.d.ts +1 -1
- package/lib/typescript/commonjs/src/types/common.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/enrollment.d.ts +1 -1
- package/lib/typescript/commonjs/src/types/enrollment.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/inlineCheckout.d.ts +3 -3
- package/lib/typescript/commonjs/src/types/inlineCheckout.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/liteCheckout.d.ts +3 -3
- package/lib/typescript/commonjs/src/types/liteCheckout.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/threeDSHandler.d.ts +2 -2
- package/lib/typescript/commonjs/src/types/threeDSHandler.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/components/Button/ProcessButton.d.ts +1 -1
- package/lib/typescript/commonjs/src/ui/components/Button/ProcessButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/components/CardForm/index.d.ts +1 -1
- package/lib/typescript/commonjs/src/ui/components/CardForm/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/components/Input/CardCVVInput.d.ts +1 -1
- package/lib/typescript/commonjs/src/ui/components/Input/CardCVVInput.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/components/Input/CardExpirationDateInput.d.ts +1 -1
- package/lib/typescript/commonjs/src/ui/components/Input/CardExpirationDateInput.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/components/Input/CardExpirationMonthInput.d.ts +1 -1
- package/lib/typescript/commonjs/src/ui/components/Input/CardExpirationMonthInput.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/components/Input/CardExpirationYearInput.d.ts +1 -1
- package/lib/typescript/commonjs/src/ui/components/Input/CardExpirationYearInput.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/components/Input/CardHolderInput.d.ts +1 -1
- package/lib/typescript/commonjs/src/ui/components/Input/CardHolderInput.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/components/Input/CardNumberInput.d.ts +1 -1
- package/lib/typescript/commonjs/src/ui/components/Input/CardNumberInput.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/components/PaymentMethodsList/index.d.ts +1 -1
- package/lib/typescript/commonjs/src/ui/components/PaymentMethodsList/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/components/RadioButton/index.d.ts +1 -1
- package/lib/typescript/commonjs/src/ui/components/RadioButton/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/components/SavedCardsList/index.d.ts +1 -1
- package/lib/typescript/commonjs/src/ui/components/SavedCardsList/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/features/TonderPayment/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/providers/InnerProvider/index.d.ts +1 -1
- package/lib/typescript/commonjs/src/ui/providers/InnerProvider/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/providers/SkyflowContainerWrapper/index.d.ts +2 -2
- package/lib/typescript/commonjs/src/ui/providers/SkyflowContainerWrapper/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/providers/TonderProvider/context.d.ts +2 -2
- package/lib/typescript/commonjs/src/ui/providers/TonderProvider/context.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/providers/TonderProvider/hook.d.ts +1 -1
- package/lib/typescript/commonjs/src/ui/providers/TonderProvider/hook.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/providers/TonderProvider/index.d.ts +1 -1
- package/lib/typescript/commonjs/src/ui/providers/TonderProvider/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/providers/TonderProvider/uiWrapper.d.ts +1 -1
- package/lib/typescript/commonjs/src/ui/providers/TonderProvider/uiWrapper.d.ts.map +1 -1
- package/lib/typescript/module/src/core/3DSHandler.d.ts +4 -4
- package/lib/typescript/module/src/core/3DSHandler.d.ts.map +1 -1
- package/lib/typescript/module/src/core/BaseCheckout/index.d.ts +5 -5
- package/lib/typescript/module/src/core/BaseCheckout/index.d.ts.map +1 -1
- package/lib/typescript/module/src/core/BaseEnrollment/index.d.ts +5 -5
- package/lib/typescript/module/src/core/BaseEnrollment/index.d.ts.map +1 -1
- package/lib/typescript/module/src/core/BaseSDK/index.d.ts +2 -2
- package/lib/typescript/module/src/core/BaseSDK/index.d.ts.map +1 -1
- package/lib/typescript/module/src/core/EnrollmentContainer/index.d.ts +4 -4
- package/lib/typescript/module/src/core/EnrollmentContainer/index.d.ts.map +1 -1
- package/lib/typescript/module/src/core/PaymentInlineContainer/index.d.ts +4 -4
- package/lib/typescript/module/src/core/PaymentInlineContainer/index.d.ts.map +1 -1
- package/lib/typescript/module/src/core/PaymentLiteContainer/index.d.ts +4 -4
- package/lib/typescript/module/src/core/PaymentLiteContainer/index.d.ts.map +1 -1
- package/lib/typescript/module/src/core/Tonder/index.d.ts +2 -2
- package/lib/typescript/module/src/core/Tonder/index.d.ts.map +1 -1
- package/lib/typescript/module/src/hooks/useTonder/index.d.ts +2 -2
- package/lib/typescript/module/src/hooks/useTonder/index.d.ts.map +1 -1
- package/lib/typescript/module/src/index.d.ts +1 -0
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/infrastructure/HttpClient.d.ts +1 -1
- package/lib/typescript/module/src/infrastructure/HttpClient.d.ts.map +1 -1
- package/lib/typescript/module/src/infrastructure/ServiceManager.d.ts +2 -3
- package/lib/typescript/module/src/infrastructure/ServiceManager.d.ts.map +1 -1
- package/lib/typescript/module/src/services/BusinessService.d.ts +2 -2
- package/lib/typescript/module/src/services/BusinessService.d.ts.map +1 -1
- package/lib/typescript/module/src/services/CardService.d.ts +2 -2
- package/lib/typescript/module/src/services/CardService.d.ts.map +1 -1
- package/lib/typescript/module/src/services/CheckoutService.d.ts +2 -2
- package/lib/typescript/module/src/services/CheckoutService.d.ts.map +1 -1
- package/lib/typescript/module/src/services/CustomerService.d.ts +2 -2
- package/lib/typescript/module/src/services/CustomerService.d.ts.map +1 -1
- package/lib/typescript/module/src/services/PaymentMethodService.d.ts +2 -2
- package/lib/typescript/module/src/services/PaymentMethodService.d.ts.map +1 -1
- package/lib/typescript/module/src/services/SkyflowService.d.ts +1 -1
- package/lib/typescript/module/src/services/SkyflowService.d.ts.map +1 -1
- package/lib/typescript/module/src/services/TokenService.d.ts +2 -2
- package/lib/typescript/module/src/services/TokenService.d.ts.map +1 -1
- package/lib/typescript/module/src/services/TransactionService.d.ts +2 -2
- package/lib/typescript/module/src/services/TransactionService.d.ts.map +1 -1
- package/lib/typescript/module/src/services/index.d.ts +0 -1
- package/lib/typescript/module/src/services/index.d.ts.map +1 -1
- package/lib/typescript/module/src/shared/constants/environments.d.ts +1 -1
- package/lib/typescript/module/src/shared/utils/common.d.ts +1 -1
- package/lib/typescript/module/src/shared/utils/common.d.ts.map +1 -1
- package/lib/typescript/module/src/shared/utils/stringUtils.d.ts +3 -0
- package/lib/typescript/module/src/shared/utils/stringUtils.d.ts.map +1 -1
- package/lib/typescript/module/src/shared/utils/styleUtils.d.ts +1 -1
- package/lib/typescript/module/src/shared/utils/styleUtils.d.ts.map +1 -1
- package/lib/typescript/module/src/types/base.d.ts +5 -5
- package/lib/typescript/module/src/types/base.d.ts.map +1 -1
- package/lib/typescript/module/src/types/baseCheckout.d.ts +2 -2
- package/lib/typescript/module/src/types/baseCheckout.d.ts.map +1 -1
- package/lib/typescript/module/src/types/baseEnrollment.d.ts +2 -2
- package/lib/typescript/module/src/types/baseEnrollment.d.ts.map +1 -1
- package/lib/typescript/module/src/types/baseSDK.d.ts +2 -2
- package/lib/typescript/module/src/types/baseSDK.d.ts.map +1 -1
- package/lib/typescript/module/src/types/common.d.ts +1 -1
- package/lib/typescript/module/src/types/common.d.ts.map +1 -1
- package/lib/typescript/module/src/types/enrollment.d.ts +1 -1
- package/lib/typescript/module/src/types/enrollment.d.ts.map +1 -1
- package/lib/typescript/module/src/types/inlineCheckout.d.ts +3 -3
- package/lib/typescript/module/src/types/inlineCheckout.d.ts.map +1 -1
- package/lib/typescript/module/src/types/liteCheckout.d.ts +3 -3
- package/lib/typescript/module/src/types/liteCheckout.d.ts.map +1 -1
- package/lib/typescript/module/src/types/threeDSHandler.d.ts +2 -2
- package/lib/typescript/module/src/types/threeDSHandler.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/components/Button/ProcessButton.d.ts +1 -1
- package/lib/typescript/module/src/ui/components/Button/ProcessButton.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/components/CardForm/index.d.ts +1 -1
- package/lib/typescript/module/src/ui/components/CardForm/index.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/components/Input/CardCVVInput.d.ts +1 -1
- package/lib/typescript/module/src/ui/components/Input/CardCVVInput.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/components/Input/CardExpirationDateInput.d.ts +1 -1
- package/lib/typescript/module/src/ui/components/Input/CardExpirationDateInput.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/components/Input/CardExpirationMonthInput.d.ts +1 -1
- package/lib/typescript/module/src/ui/components/Input/CardExpirationMonthInput.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/components/Input/CardExpirationYearInput.d.ts +1 -1
- package/lib/typescript/module/src/ui/components/Input/CardExpirationYearInput.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/components/Input/CardHolderInput.d.ts +1 -1
- package/lib/typescript/module/src/ui/components/Input/CardHolderInput.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/components/Input/CardNumberInput.d.ts +1 -1
- package/lib/typescript/module/src/ui/components/Input/CardNumberInput.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/components/PaymentMethodsList/index.d.ts +1 -1
- package/lib/typescript/module/src/ui/components/PaymentMethodsList/index.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/components/RadioButton/index.d.ts +1 -1
- package/lib/typescript/module/src/ui/components/RadioButton/index.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/components/SavedCardsList/index.d.ts +1 -1
- package/lib/typescript/module/src/ui/components/SavedCardsList/index.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/features/TonderPayment/index.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/providers/InnerProvider/index.d.ts +1 -1
- package/lib/typescript/module/src/ui/providers/InnerProvider/index.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/providers/SkyflowContainerWrapper/index.d.ts +2 -2
- package/lib/typescript/module/src/ui/providers/SkyflowContainerWrapper/index.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/providers/TonderProvider/context.d.ts +2 -2
- package/lib/typescript/module/src/ui/providers/TonderProvider/context.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/providers/TonderProvider/hook.d.ts +1 -1
- package/lib/typescript/module/src/ui/providers/TonderProvider/hook.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/providers/TonderProvider/index.d.ts +1 -1
- package/lib/typescript/module/src/ui/providers/TonderProvider/index.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/providers/TonderProvider/uiWrapper.d.ts +1 -1
- package/lib/typescript/module/src/ui/providers/TonderProvider/uiWrapper.d.ts.map +1 -1
- package/package.json +24 -30
- package/src/core/3DSHandler.ts +26 -16
- package/src/core/BaseCheckout/index.ts +11 -12
- package/src/core/BaseEnrollment/index.ts +6 -7
- package/src/core/BaseSDK/index.ts +4 -4
- package/src/core/EnrollmentContainer/index.ts +7 -8
- package/src/core/PaymentInlineContainer/index.ts +6 -6
- package/src/core/PaymentLiteContainer/index.ts +9 -9
- package/src/core/Tonder/index.ts +13 -10
- package/src/hooks/useTonder/index.ts +2 -2
- package/src/index.tsx +23 -0
- package/src/infrastructure/HttpClient.ts +3 -4
- package/src/infrastructure/ServiceManager.ts +3 -6
- package/src/services/BusinessService.ts +4 -4
- package/src/services/CardService.ts +4 -5
- package/src/services/CheckoutService.ts +4 -4
- package/src/services/CustomerService.ts +4 -4
- package/src/services/PaymentMethodService.ts +4 -4
- package/src/services/SkyflowService.ts +3 -3
- package/src/services/TokenService.ts +4 -4
- package/src/services/TransactionService.ts +4 -4
- package/src/services/index.ts +0 -1
- package/src/shared/catalog/cardBrandCatalog.ts +1 -1
- package/src/shared/catalog/paymentMethodsCatalog.ts +2 -2
- package/src/shared/constants/environments.ts +1 -1
- package/src/shared/constants/messages.ts +1 -1
- package/src/shared/utils/common.ts +1 -1
- package/src/shared/utils/errors.ts +1 -1
- package/src/shared/utils/paymentMethodUtils.ts +2 -2
- package/src/shared/utils/stringUtils.ts +24 -0
- package/src/shared/utils/styleUtils.ts +1 -1
- package/src/types/base.ts +5 -5
- package/src/types/baseCheckout.ts +2 -3
- package/src/types/baseEnrollment.ts +2 -2
- package/src/types/baseSDK.ts +2 -2
- package/src/types/common.ts +1 -1
- package/src/types/enrollment.ts +1 -1
- package/src/types/inlineCheckout.ts +3 -3
- package/src/types/liteCheckout.ts +3 -3
- package/src/types/{skyflow-react-native.d.ts → srn-temp.d.ts} +1 -1
- package/src/types/threeDSHandler.ts +2 -2
- package/src/ui/components/Button/ProcessButton.tsx +2 -2
- package/src/ui/components/CardForm/index.tsx +6 -6
- package/src/ui/components/Input/CardCVVInput.tsx +6 -5
- package/src/ui/components/Input/CardExpirationDateInput.tsx +6 -6
- package/src/ui/components/Input/CardExpirationMonthInput.tsx +10 -6
- package/src/ui/components/Input/CardExpirationYearInput.tsx +6 -5
- package/src/ui/components/Input/CardHolderInput.tsx +6 -5
- package/src/ui/components/Input/CardNumberInput.tsx +6 -5
- package/src/ui/components/PaymentMethodsList/index.tsx +7 -7
- package/src/ui/components/RadioButton/index.tsx +1 -1
- package/src/ui/components/SavedCardsList/index.tsx +5 -4
- package/src/ui/features/TonderEnrollment/index.tsx +7 -7
- package/src/ui/features/TonderPayment/index.tsx +13 -20
- package/src/ui/providers/InnerProvider/index.tsx +2 -2
- package/src/ui/providers/SkyflowContainerWrapper/index.tsx +3 -3
- package/src/ui/providers/TonderProvider/context.tsx +3 -3
- package/src/ui/providers/TonderProvider/hook.ts +2 -2
- package/src/ui/providers/TonderProvider/index.tsx +24 -20
- package/src/ui/providers/TonderProvider/uiWrapper.ts +3 -3
- package/src/ui/styles/skyflow.ts +1 -1
- package/tonder-io-rn-sdk.podspec +41 -0
- package/.yarn/patches/skyflow-react-native-npm-1.7.0-0841655e49.patch +0 -13
- package/lib/commonjs/services/StorageService.js +0 -49
- package/lib/commonjs/services/StorageService.js.map +0 -1
- package/lib/commonjs/types/skyflow-react-native.d.js +0 -2
- package/lib/commonjs/types/skyflow-react-native.d.js.map +0 -1
- package/lib/module/services/StorageService.js +0 -43
- package/lib/module/services/StorageService.js.map +0 -1
- package/lib/module/types/skyflow-react-native.d.js +0 -2
- package/lib/module/types/skyflow-react-native.d.js.map +0 -1
- package/lib/typescript/commonjs/src/services/StorageService.d.ts +0 -7
- package/lib/typescript/commonjs/src/services/StorageService.d.ts.map +0 -1
- package/lib/typescript/module/src/services/StorageService.d.ts +0 -7
- package/lib/typescript/module/src/services/StorageService.d.ts.map +0 -1
- package/src/services/StorageService.ts +0 -56
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.CheckoutService = void 0;
|
|
7
|
-
var _errors = _interopRequireDefault(require("
|
|
8
|
-
var
|
|
7
|
+
var _errors = _interopRequireDefault(require("../shared/utils/errors.js"));
|
|
8
|
+
var _index = require("../shared/index.js");
|
|
9
9
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
10
|
class CheckoutService {
|
|
11
11
|
BASE_PATHS = {
|
|
@@ -27,7 +27,7 @@ class CheckoutService {
|
|
|
27
27
|
return await this.http.post(this.BASE_PATHS.orders, orderItems);
|
|
28
28
|
} catch (error) {
|
|
29
29
|
throw new _errors.default({
|
|
30
|
-
code:
|
|
30
|
+
code: _index.ErrorKeyEnum.CREATE_ORDER_ERROR,
|
|
31
31
|
details: error
|
|
32
32
|
});
|
|
33
33
|
}
|
|
@@ -44,7 +44,7 @@ class CheckoutService {
|
|
|
44
44
|
return await this.http.post(`${this.BASE_PATHS.payments}/${paymentItems.business_pk}/payments/`, paymentItems);
|
|
45
45
|
} catch (error) {
|
|
46
46
|
throw new _errors.default({
|
|
47
|
-
code:
|
|
47
|
+
code: _index.ErrorKeyEnum.CREATE_PAYMENT_ERROR,
|
|
48
48
|
details: error
|
|
49
49
|
});
|
|
50
50
|
}
|
|
@@ -67,7 +67,7 @@ class CheckoutService {
|
|
|
67
67
|
return await this.http.post(this.BASE_PATHS.checkout, payload);
|
|
68
68
|
} catch (error) {
|
|
69
69
|
throw new _errors.default({
|
|
70
|
-
code:
|
|
70
|
+
code: _index.ErrorKeyEnum.START_CHECKOUT_ERROR,
|
|
71
71
|
details: error
|
|
72
72
|
});
|
|
73
73
|
}
|
|
@@ -80,17 +80,17 @@ class CheckoutService {
|
|
|
80
80
|
validateOrderData(orderItems) {
|
|
81
81
|
if (!orderItems.business) {
|
|
82
82
|
throw new _errors.default({
|
|
83
|
-
code:
|
|
83
|
+
code: _index.ErrorKeyEnum.BUSINESS_ID_REQUIRED
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
86
|
if (!orderItems.amount || orderItems.amount <= 0) {
|
|
87
87
|
throw new _errors.default({
|
|
88
|
-
code:
|
|
88
|
+
code: _index.ErrorKeyEnum.INVALID_AMOUNT
|
|
89
89
|
});
|
|
90
90
|
}
|
|
91
91
|
if (!orderItems.items?.length) {
|
|
92
92
|
throw new _errors.default({
|
|
93
|
-
code:
|
|
93
|
+
code: _index.ErrorKeyEnum.INVALID_ITEMS
|
|
94
94
|
});
|
|
95
95
|
}
|
|
96
96
|
}
|
|
@@ -102,17 +102,17 @@ class CheckoutService {
|
|
|
102
102
|
validatePaymentData(paymentItems) {
|
|
103
103
|
if (!paymentItems.business_pk) {
|
|
104
104
|
throw new _errors.default({
|
|
105
|
-
code:
|
|
105
|
+
code: _index.ErrorKeyEnum.BUSINESS_ID_REQUIRED
|
|
106
106
|
});
|
|
107
107
|
}
|
|
108
108
|
if (!paymentItems.client_id) {
|
|
109
109
|
throw new _errors.default({
|
|
110
|
-
code:
|
|
110
|
+
code: _index.ErrorKeyEnum.CLIENT_ID_REQUIRED
|
|
111
111
|
});
|
|
112
112
|
}
|
|
113
113
|
if (!paymentItems.amount || paymentItems.amount <= 0) {
|
|
114
114
|
throw new _errors.default({
|
|
115
|
-
code:
|
|
115
|
+
code: _index.ErrorKeyEnum.INVALID_AMOUNT
|
|
116
116
|
});
|
|
117
117
|
}
|
|
118
118
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_errors","_interopRequireDefault","require","
|
|
1
|
+
{"version":3,"names":["_errors","_interopRequireDefault","require","_index","e","__esModule","default","CheckoutService","BASE_PATHS","orders","payments","checkout","constructor","http","createOrder","orderItems","validateOrderData","post","error","TonderError","code","ErrorKeyEnum","CREATE_ORDER_ERROR","details","createPayment","paymentItems","validatePaymentData","business_pk","CREATE_PAYMENT_ERROR","startCheckoutRouter","routerItems","deviceSessionId","payload","mp_device_session_id","START_CHECKOUT_ERROR","business","BUSINESS_ID_REQUIRED","amount","INVALID_AMOUNT","items","length","INVALID_ITEMS","client_id","CLIENT_ID_REQUIRED","exports"],"sourceRoot":"../../../src","sources":["services/CheckoutService.ts"],"mappings":";;;;;;AASA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAD,OAAA;AAAyC,SAAAD,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAElC,MAAMG,eAAe,CAAC;EACVC,UAAU,GAAG;IAC5BC,MAAM,EAAE,iBAAiB;IACzBC,QAAQ,EAAE,kBAAkB;IAC5BC,QAAQ,EAAE;EACZ,CAAC;EAIDC,WAAWA,CAACC,IAAgB,EAAE;IAC5B,IAAI,CAACA,IAAI,GAAGA,IAAI;EAClB;EACA;AACF;AACA;AACA;AACA;EACE,MAAMC,WAAWA,CACfC,UAA+B,EACA;IAC/B,IAAI;MACF,IAAI,CAACC,iBAAiB,CAACD,UAAU,CAAC;MAElC,OAAO,MAAM,IAAI,CAACF,IAAI,CAACI,IAAI,CACzB,IAAI,CAACT,UAAU,CAACC,MAAM,EACtBM,UACF,CAAC;IACH,CAAC,CAAC,OAAOG,KAAK,EAAE;MACd,MAAM,IAAIC,eAAW,CAAC;QACpBC,IAAI,EAAEC,mBAAY,CAACC,kBAAkB;QACrCC,OAAO,EA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AAM,IAAIlB,eAAW,CAAC;QAAEC,IAAI,EAAEC,mBAAY,CAACiB;MAAe,CAAC,CAAC;IAC9D;IAEA,IAAI,CAACvB,UAAU,CAACwB,KAAK,EAAEC,MAAM,EAAE;MAC7B,MAAM,IAAIrB,eAAW,CAAC;QAAEC,IAAI,EAAEC,mBAAY,CAACoB;MAAc,CAAC,CAAC;IAC7D;EACF;;EAEA;AACF;AACA;AACA;EACUf,mBAAmBA,CAACD,YAAmC,EAAQ;IACrE,IAAI,CAACA,YAAY,CAACE,WAAW,EAAE;MAC7B,MAAM,IAAIR,eAAW,CAAC;QAAEC,IAAI,EAAEC,mBAAY,CAACe;MAAqB,CAAC,CAAC;IACpE;IAEA,IAAI,CAACX,YAAY,CAACiB,SAAS,EAAE;MAC3B,MAAM,IAAIvB,eAAW,CAAC;QAAEC,IAAI,EAAEC,mBAAY,CAACsB;MAAmB,CAAC,CAAC;IAClE;IAEA,IAAI,CAAClB,YAAY,CAACY,MAAM,IAAIZ,YAAY,CAACY,MAAM,IAAI,CAAC,EAAE;MACpD,MAAM,IAAIlB,eAAW,CAAC;QAAEC,IAAI,EAAEC,mBAAY,CAACiB;MAAe,CAAC,CAAC;IAC9D;EACF;AACF;AAACM,OAAA,CAAArC,eAAA,GAAAA,eAAA","ignoreList":[]}
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.CustomerService = void 0;
|
|
7
|
-
var _errors = _interopRequireDefault(require("
|
|
8
|
-
var
|
|
7
|
+
var _errors = _interopRequireDefault(require("../shared/utils/errors.js"));
|
|
8
|
+
var _index = require("../shared/index.js");
|
|
9
9
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
10
|
class CustomerService {
|
|
11
11
|
BASE_PATH = '/api/v1/customer/';
|
|
@@ -27,7 +27,7 @@ class CustomerService {
|
|
|
27
27
|
} catch (error) {
|
|
28
28
|
console.error('CUSTOMER_OPERATION_ERROR', error);
|
|
29
29
|
throw new _errors.default({
|
|
30
|
-
code:
|
|
30
|
+
code: _index.ErrorKeyEnum.CUSTOMER_OPERATION_ERROR,
|
|
31
31
|
details: error
|
|
32
32
|
});
|
|
33
33
|
}
|
|
@@ -40,12 +40,12 @@ class CustomerService {
|
|
|
40
40
|
validateCustomerData(customer) {
|
|
41
41
|
if (!customer.email) {
|
|
42
42
|
throw new _errors.default({
|
|
43
|
-
code:
|
|
43
|
+
code: _index.ErrorKeyEnum.INVALID_EMAIL
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
46
|
if (!this.isValidEmail(customer.email)) {
|
|
47
47
|
throw new _errors.default({
|
|
48
|
-
code:
|
|
48
|
+
code: _index.ErrorKeyEnum.INVALID_EMAIL
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
51
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_errors","_interopRequireDefault","require","
|
|
1
|
+
{"version":3,"names":["_errors","_interopRequireDefault","require","_index","e","__esModule","default","CustomerService","BASE_PATH","constructor","http","registerOrFetchCustomer","customer","signal","validateCustomerData","post","error","console","TonderError","code","ErrorKeyEnum","CUSTOMER_OPERATION_ERROR","details","email","INVALID_EMAIL","isValidEmail","emailRegex","test","exports"],"sourceRoot":"../../../src","sources":["services/CustomerService.ts"],"mappings":";;;;;;AACA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAD,OAAA;AAAyC,SAAAD,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAElC,MAAMG,eAAe,CAAC;EACVC,SAAS,GAAG,mBAAmB;EAGhDC,WAAWA,CAACC,IAAgB,EAAE;IAC5B,IAAI,CAACA,IAAI,GAAGA,IAAI;EAClB;EACA;AACF;AACA;AACA;AACA;AACA;EACE,MAAMC,uBAAuBA,CAC3BC,QAAmB,EACnBC,MAAoB,EACQ;IAC5B,IAAI;MACF,IAAI,CAACC,oBAAoB,CAACF,QAAQ,CAAC;MAEnC,OAAO,MAAM,IAAI,CAACF,IAAI,CAACK,IAAI,CAAoB,IAAI,CAACP,SAAS,EAAEI,QAAQ,EAAE;QACvEC;MACF,CAAgB,CAAC;IACnB,CAAC,CAAC,OAAOG,KAAK,EAAE;MACdC,OAAO,CAACD,KAAK,CAAC,0BAA0B,EAAEA,KAAK,CAAC;MAChD,MAAM,IAAIE,eAAW,CAAC;QACpBC,IAAI,EAAEC,mBAAY,CAACC,wBAAwB;QAC3CC,OAAO,EAAEN;MACX,CAAC,CAAC;IACJ;EACF;;EAEA;AACF;AACA;AACA;EACUF,oBAAoBA,CAACF,QAAmB,EAAQ;IACtD,IAAI,CAACA,QAAQ,CAACW,KAAK,EAAE;MACnB,MAAM,IAAIL,eAAW,CAAC;QAAEC,IAAI,EAAEC,mBAAY,CAACI;MAAc,CAAC,CAAC;IAC7D;IAEA,IAAI,CAAC,IAAI,CAACC,YAAY,CAACb,QAAQ,CAACW,KAAK,CAAC,EAAE;MACtC,MAAM,IAAIL,eAAW,CAAC;QAAEC,IAAI,EAAEC,mBAAY,CAACI;MAAc,CAAC,CAAC;IAC7D;EACF;;EAEA;AACF;AACA;EACUC,YAAYA,CAACF,KAAa,EAAW;IAC3C,MAAMG,UAAU,GAAG,4BAA4B;IAC/C,OAAOA,UAAU,CAACC,IAAI,CAACJ,KAAK,CAAC;EAC/B;AACF;AAACK,OAAA,CAAArB,eAAA,GAAAA,eAAA","ignoreList":[]}
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.PaymentMethodService = void 0;
|
|
7
|
-
var _errors = _interopRequireDefault(require("
|
|
8
|
-
var
|
|
7
|
+
var _errors = _interopRequireDefault(require("../shared/utils/errors.js"));
|
|
8
|
+
var _index = require("../shared/index.js");
|
|
9
9
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
10
|
class PaymentMethodService {
|
|
11
11
|
BASE_PATH = '/api/v1/payment_methods';
|
|
@@ -27,7 +27,7 @@ class PaymentMethodService {
|
|
|
27
27
|
return await this.http.get(`${this.BASE_PATH}?${queryString}`);
|
|
28
28
|
} catch (error) {
|
|
29
29
|
throw new _errors.default({
|
|
30
|
-
code:
|
|
30
|
+
code: _index.ErrorKeyEnum.FETCH_PAYMENT_METHODS_ERROR,
|
|
31
31
|
details: error
|
|
32
32
|
});
|
|
33
33
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_errors","_interopRequireDefault","require","
|
|
1
|
+
{"version":3,"names":["_errors","_interopRequireDefault","require","_index","e","__esModule","default","PaymentMethodService","BASE_PATH","DEFAULT_PAGE_SIZE","constructor","http","fetchPaymentMethods","params","status","pagesize","queryString","URLSearchParams","toString","get","error","TonderError","code","ErrorKeyEnum","FETCH_PAYMENT_METHODS_ERROR","details","exports"],"sourceRoot":"../../../src","sources":["services/PaymentMethodService.ts"],"mappings":";;;;;;AACA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAD,OAAA;AAAyC,SAAAD,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAElC,MAAMG,oBAAoB,CAAC;EACfC,SAAS,GAAG,yBAAyB;EACrCC,iBAAiB,GAAG,OAAO;EAG5CC,WAAWA,CAACC,IAAgB,EAAE;IAC5B,IAAI,CAACA,IAAI,GAAGA,IAAI;EAClB;EACA;AACF;AACA;AACA;AACA;EACE,MAAMC,mBAAmBA,CACvBC,MAA8B,GAAG;IAC/BC,MAAM,EAAE,QAAQ;IAChBC,QAAQ,EAAE,IAAI,CAACN;EACjB,CAAC,EACgC;IACjC,IAAI;MACF,MAAMO,WAAW,GAAG,IAAIC,eAAe,CAACJ,MAAM,CAAC,CAACK,QAAQ,CAAC,CAAC;MAE1D,OAAO,MAAM,IAAI,CAACP,IAAI,CAACQ,GAAG,CACxB,GAAG,IAAI,CAACX,SAAS,IAAIQ,WAAW,EAClC,CAAC;IACH,CAAC,CAAC,OAAOI,KAAK,EAAE;MACd,MAAM,IAAIC,eAAW,CAAC;QACpBC,IAAI,EAAEC,mBAAY,CAACC,2BAA2B;QAC9CC,OAAO,EAAEL;MACX,CAAC,CAAC;IACJ;EACF;AACF;AAACM,OAAA,CAAAnB,oBAAA,GAAAA,oBAAA","ignoreList":[]}
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.SkyflowService = void 0;
|
|
7
|
-
var _errors = _interopRequireDefault(require("
|
|
8
|
-
var
|
|
7
|
+
var _errors = _interopRequireDefault(require("../shared/utils/errors.js"));
|
|
8
|
+
var _index = require("../shared/index.js");
|
|
9
9
|
var _skyflowReactNative = require("skyflow-react-native");
|
|
10
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
11
|
class SkyflowService {
|
|
@@ -26,13 +26,13 @@ class SkyflowService {
|
|
|
26
26
|
});
|
|
27
27
|
if (!response.token) {
|
|
28
28
|
throw new _errors.default({
|
|
29
|
-
code:
|
|
29
|
+
code: _index.ErrorKeyEnum.INVALID_VAULT_TOKEN
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
32
|
return response.token;
|
|
33
33
|
} catch (error) {
|
|
34
34
|
throw new _errors.default({
|
|
35
|
-
code:
|
|
35
|
+
code: _index.ErrorKeyEnum.VAULT_TOKEN_ERROR,
|
|
36
36
|
details: error
|
|
37
37
|
});
|
|
38
38
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_errors","_interopRequireDefault","require","
|
|
1
|
+
{"version":3,"names":["_errors","_interopRequireDefault","require","_index","_skyflowReactNative","e","__esModule","default","SkyflowService","BASE_PATH","constructor","http","getVaultToken","signal","response","get","token","TonderError","code","ErrorKeyEnum","INVALID_VAULT_TOKEN","error","VAULT_TOKEN_ERROR","details","createSkyflowConfig","merchantData","vaultID","vault_id","vaultURL","vault_url","options","logLevel","LogLevel","ERROR","env","Env","DEV","getBearerToken","exports"],"sourceRoot":"../../../src","sources":["services/SkyflowService.ts"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAD,OAAA;AAEA,IAAAE,mBAAA,GAAAF,OAAA;AAAqD,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAE9C,MAAMG,cAAc,CAAC;EACTC,SAAS,GAAG,qBAAqB;EAGlDC,WAAWA,CAACC,IAAgB,EAAE;IAC5B,IAAI,CAACA,IAAI,GAAGA,IAAI;EAClB;;EAEA;AACF;AACA;AACA;AACA;EACE,MAAMC,aAAaA,CAACC,MAAoB,EAAmB;IACzD,IAAI;MACF,MAAMC,QAAQ,GAAG,MAAM,IAAI,CAACH,IAAI,CAACI,GAAG,CAAoB,IAAI,CAACN,SAAS,EAAE;QACtEI;MACF,CAAgB,CAAC;MAEjB,IAAI,CAACC,QAAQ,CAACE,KAAK,EAAE;QACnB,MAAM,IAAIC,eAAW,CAAC;UAAEC,IAAI,EAAEC,mBAAY,CAACC;QAAoB,CAAC,CAAC;MACnE;MAEA,OAAON,QAAQ,CAACE,KAAK;IACvB,CAAC,CAAC,OAAOK,KAAK,EAAE;MACd,MAAM,IAAIJ,eAAW,CAAC;QACpBC,IAAI,EAAEC,mBAAY,CAACG,iBAAiB;QACpCC,OAAO,EAAEF;MACX,CAAC,CAAC;IACJ;EACF;EAEA,MAAMG,mBAAmBA,CAACC,YAAiB,EAAoB;IAC7D,OAAO;MACLC,OAAO,EAAED,YAAY,CAACE,QAAQ;MAC9BC,QAAQ,EAAEH,YAAY,CAACI,SAAS;MAChCC,OAAO,EAAE;QACPC,QAAQ,EAAEC,4BAAQ,CAACC,KAAK;QACxBC,GAAG,EAAEC,uBAAG,CAACC;MACX,CAAC;MACDC,cAAc,EAAE,MAAAA,CAAA,KAAY,MAAM,IAAI,CAACzB,aAAa,CAAC;IACvD,CAAC;EACH;AACF;AAAC0B,OAAA,CAAA9B,cAAA,GAAAA,cAAA","ignoreList":[]}
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.TokenService = void 0;
|
|
7
|
-
var _errors = _interopRequireDefault(require("
|
|
8
|
-
var
|
|
7
|
+
var _errors = _interopRequireDefault(require("../shared/utils/errors.js"));
|
|
8
|
+
var _index = require("../shared/index.js");
|
|
9
9
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
10
|
class TokenService {
|
|
11
11
|
BASE_PATH = '/api/secure-token/';
|
|
@@ -29,7 +29,7 @@ class TokenService {
|
|
|
29
29
|
});
|
|
30
30
|
} catch (error) {
|
|
31
31
|
throw new _errors.default({
|
|
32
|
-
code:
|
|
32
|
+
code: _index.ErrorKeyEnum.SECURE_TOKEN_ERROR,
|
|
33
33
|
details: error
|
|
34
34
|
});
|
|
35
35
|
}
|
|
@@ -37,7 +37,7 @@ class TokenService {
|
|
|
37
37
|
validateToken(token) {
|
|
38
38
|
if (!token) {
|
|
39
39
|
throw new _errors.default({
|
|
40
|
-
code:
|
|
40
|
+
code: _index.ErrorKeyEnum.INVALID_SECRET_API_KEY
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
43
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_errors","_interopRequireDefault","require","
|
|
1
|
+
{"version":3,"names":["_errors","_interopRequireDefault","require","_index","e","__esModule","default","TokenService","BASE_PATH","constructor","http","getSecureToken","secretApiKey","signal","validateToken","post","headers","Authorization","error","TonderError","code","ErrorKeyEnum","SECURE_TOKEN_ERROR","details","token","INVALID_SECRET_API_KEY","exports"],"sourceRoot":"../../../src","sources":["services/TokenService.ts"],"mappings":";;;;;;AACA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAD,OAAA;AAAyC,SAAAD,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAElC,MAAMG,YAAY,CAAC;EACPC,SAAS,GAAG,oBAAoB;EAGjDC,WAAWA,CAACC,IAAgB,EAAE;IAC5B,IAAI,CAACA,IAAI,GAAGA,IAAI;EAClB;EACA;AACF;AACA;AACA;AACA;AACA;EACE,MAAMC,cAAcA,CAClBC,YAAoB,EACpBC,MAAoB,EACc;IAClC,IAAI;MACF,IAAI,CAACC,aAAa,CAACF,YAAY,CAAC;MAEhC,OAAO,MAAM,IAAI,CAACF,IAAI,CAACK,IAAI,CAA0B,IAAI,CAACP,SAAS,EAAE,CAAC,CAAC,EAAE;QACvEQ,OAAO,EAAE;UACPC,aAAa,EAAE,SAASL,YAAY;QACtC,CAAC;QACDC;MACF,CAAgB,CAAC;IACnB,CAAC,CAAC,OAAOK,KAAK,EAAE;MACd,MAAM,IAAIC,eAAW,CAAC;QACpBC,IAAI,EAAEC,mBAAY,CAACC,kBAAkB;QACrCC,OAAO,EAAEL;MACX,CAAC,CAAC;IACJ;EACF;EAEQJ,aAAaA,CAACU,KAAa,EAAQ;IACzC,IAAI,CAACA,KAAK,EAAE;MACV,MAAM,IAAIL,eAAW,CAAC;QAAEC,IAAI,EAAEC,mBAAY,CAACI;MAAuB,CAAC,CAAC;IACtE;EACF;AACF;AAACC,OAAA,CAAAnB,YAAA,GAAAA,YAAA","ignoreList":[]}
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.TransactionService = void 0;
|
|
7
|
-
var _errors = _interopRequireDefault(require("
|
|
8
|
-
var
|
|
7
|
+
var _errors = _interopRequireDefault(require("../shared/utils/errors.js"));
|
|
8
|
+
var _index = require("../shared/index.js");
|
|
9
9
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
10
|
class TransactionService {
|
|
11
11
|
constructor(http) {
|
|
@@ -16,7 +16,7 @@ class TransactionService {
|
|
|
16
16
|
return await this.http.get(`${verifyUrl}`);
|
|
17
17
|
} catch (error) {
|
|
18
18
|
throw new _errors.default({
|
|
19
|
-
code:
|
|
19
|
+
code: _index.ErrorKeyEnum.FETCH_TRANSACTION_ERROR,
|
|
20
20
|
details: error
|
|
21
21
|
});
|
|
22
22
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_errors","_interopRequireDefault","require","
|
|
1
|
+
{"version":3,"names":["_errors","_interopRequireDefault","require","_index","e","__esModule","default","TransactionService","constructor","http","verifyTransactionStatus","verifyUrl","get","error","TonderError","code","ErrorKeyEnum","FETCH_TRANSACTION_ERROR","details","exports"],"sourceRoot":"../../../src","sources":["services/TransactionService.ts"],"mappings":";;;;;;AACA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAD,OAAA;AAAyC,SAAAD,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAElC,MAAMG,kBAAkB,CAAC;EAG9BC,WAAWA,CAACC,IAAgB,EAAE;IAC5B,IAAI,CAACA,IAAI,GAAGA,IAAI;EAClB;EAEA,MAAMC,uBAAuBA,CAACC,SAAiB,EAAyB;IACtE,IAAI;MACF,OAAO,MAAM,IAAI,CAACF,IAAI,CAACG,GAAG,CAAe,GAAGD,SAAS,EAAE,CAAC;IAC1D,CAAC,CAAC,OAAOE,KAAK,EAAE;MACd,MAAM,IAAIC,eAAW,CAAC;QACpBC,IAAI,EAAEC,mBAAY,CAACC,uBAAuB;QAC1CC,OAAO,EAAEL;MACX,CAAC,CAAC;IACJ;EACF;AACF;AAACM,OAAA,CAAAZ,kBAAA,GAAAA,kBAAA","ignoreList":[]}
|
|
@@ -113,15 +113,4 @@ Object.keys(_TransactionService).forEach(function (key) {
|
|
|
113
113
|
}
|
|
114
114
|
});
|
|
115
115
|
});
|
|
116
|
-
var _StorageService = require("./StorageService.js");
|
|
117
|
-
Object.keys(_StorageService).forEach(function (key) {
|
|
118
|
-
if (key === "default" || key === "__esModule") return;
|
|
119
|
-
if (key in exports && exports[key] === _StorageService[key]) return;
|
|
120
|
-
Object.defineProperty(exports, key, {
|
|
121
|
-
enumerable: true,
|
|
122
|
-
get: function () {
|
|
123
|
-
return _StorageService[key];
|
|
124
|
-
}
|
|
125
|
-
});
|
|
126
|
-
});
|
|
127
116
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_CardService","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_TokenService","_SkyflowService","_OpenPayService","_CheckoutService","_CustomerService","_PaymentMethodService","_BusinessService","_MercadoPagoService","_TransactionService"
|
|
1
|
+
{"version":3,"names":["_CardService","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_TokenService","_SkyflowService","_OpenPayService","_CheckoutService","_CustomerService","_PaymentMethodService","_BusinessService","_MercadoPagoService","_TransactionService"],"sourceRoot":"../../../src","sources":["services/index.ts"],"mappings":";;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAIAC,MAAA,CAAAC,IAAA,CAAAH,YAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,YAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAA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AA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAO,gBAAA,CAAAX,GAAA;IAAA;EAAA;AAAA;AACA,IAAAY,mBAAA,GAAAhB,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAc,mBAAA,EAAAb,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAY,mBAAA,CAAAZ,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAQ,mBAAA,CAAAZ,GAAA;IAAA;EAAA;AAAA;AACA,IAAAa,mBAAA,GAAAjB,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAe,mBAAA,EAAAd,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAa,mBAAA,CAAAb,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAS,mBAAA,CAAAb,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.getCardType = void 0;
|
|
7
|
-
var _stringUtils = require("
|
|
7
|
+
var _stringUtils = require("../utils/stringUtils.js");
|
|
8
8
|
const CARD_BRAND_CATALOG = {
|
|
9
9
|
visa: 'https://d35a75syrgujp0.cloudfront.net/cards/visa.png',
|
|
10
10
|
mastercard: 'https://d35a75syrgujp0.cloudfront.net/cards/mastercard.png',
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.getPaymentMethodDetails = void 0;
|
|
7
|
-
var _paymentMethods = require("
|
|
8
|
-
var _stringUtils = require("
|
|
7
|
+
var _paymentMethods = require("../constants/paymentMethods.js");
|
|
8
|
+
var _stringUtils = require("../utils/stringUtils.js");
|
|
9
9
|
const PAYMENT_METHODS_CATALOG = {
|
|
10
10
|
[_paymentMethods.PAYMENT_METHODS.SORIANA]: {
|
|
11
11
|
label: 'Soriana',
|
|
@@ -8,6 +8,6 @@ const TONDER_URL_BY_MODE = exports.TONDER_URL_BY_MODE = Object.freeze({
|
|
|
8
8
|
production: 'https://app.tonder.io',
|
|
9
9
|
sandbox: 'https://sandbox.tonder.io',
|
|
10
10
|
stage: 'https://stage.tonder.io',
|
|
11
|
-
development: 'http://192.168.
|
|
11
|
+
development: 'http://192.168.68.107:8000'
|
|
12
12
|
});
|
|
13
13
|
//# sourceMappingURL=environments.js.map
|
|
@@ -4,98 +4,98 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.MESSAGES_ES = exports.MESSAGES_EN = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _index = require("../enum/index.js");
|
|
8
8
|
const MESSAGES_EN = exports.MESSAGES_EN = {
|
|
9
|
-
[
|
|
10
|
-
[
|
|
11
|
-
[
|
|
12
|
-
[
|
|
13
|
-
[
|
|
14
|
-
[
|
|
15
|
-
[
|
|
16
|
-
[
|
|
17
|
-
[
|
|
18
|
-
[
|
|
19
|
-
[
|
|
20
|
-
[
|
|
21
|
-
[
|
|
22
|
-
[
|
|
23
|
-
[
|
|
24
|
-
[
|
|
25
|
-
[
|
|
26
|
-
[
|
|
27
|
-
[
|
|
28
|
-
[
|
|
29
|
-
[
|
|
30
|
-
[
|
|
31
|
-
[
|
|
32
|
-
[
|
|
33
|
-
[
|
|
34
|
-
[
|
|
35
|
-
[
|
|
36
|
-
[
|
|
37
|
-
[
|
|
38
|
-
[
|
|
39
|
-
[
|
|
40
|
-
[
|
|
41
|
-
[
|
|
42
|
-
[
|
|
43
|
-
[
|
|
44
|
-
[
|
|
45
|
-
[
|
|
46
|
-
[
|
|
47
|
-
[
|
|
48
|
-
[
|
|
49
|
-
[
|
|
50
|
-
[
|
|
51
|
-
[
|
|
52
|
-
[
|
|
53
|
-
[
|
|
9
|
+
[_index.ErrorKeyEnum.INIT_ERROR]: 'Error initializing the SDK.',
|
|
10
|
+
[_index.ErrorKeyEnum.INVALID_TYPE]: 'SDK Type invalid.',
|
|
11
|
+
[_index.ErrorKeyEnum.STATE_ERROR]: 'Error updating SDK state.',
|
|
12
|
+
[_index.ErrorKeyEnum.FETCH_BUSINESS_ERROR]: 'Error retrieving merchant information.',
|
|
13
|
+
[_index.ErrorKeyEnum.INVALID_CONFIG]: 'Required configuration options.',
|
|
14
|
+
[_index.ErrorKeyEnum.MERCHANT_CREDENTIAL_REQUIRED]: 'Merchant credential required.',
|
|
15
|
+
[_index.ErrorKeyEnum.INVALID_PAYMENT_REQUEST]: 'The payment data must be of type: :::interface:::.',
|
|
16
|
+
[_index.ErrorKeyEnum.INVALID_PAYMENT_REQUEST_CARD_PM]: 'The fields card and payment_method cannot be provided together.',
|
|
17
|
+
[_index.ErrorKeyEnum.TYPE_SDK_REQUIRED]: 'SDK type required.',
|
|
18
|
+
[_index.ErrorKeyEnum.ENVIRONMENT_REQUIRED]: 'Environment required.',
|
|
19
|
+
[_index.ErrorKeyEnum.FETCH_CARDS_ERROR]: 'Error retrieving cards.',
|
|
20
|
+
[_index.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.",
|
|
21
|
+
[_index.ErrorKeyEnum.SAVE_CARD_ERROR]: 'Error saving the card.',
|
|
22
|
+
[_index.ErrorKeyEnum.REMOVE_CARD_ERROR]: 'Error deleting the card.',
|
|
23
|
+
[_index.ErrorKeyEnum.CREATE_PAYMENT_ERROR]: 'Error creating the payment.',
|
|
24
|
+
[_index.ErrorKeyEnum.PAYMENT_PROCESS_ERROR]: 'There was an issue processing the payment.',
|
|
25
|
+
[_index.ErrorKeyEnum.CARD_SAVED_SUCCESSFULLY]: 'Card saved successfully.',
|
|
26
|
+
[_index.ErrorKeyEnum.CARD_REMOVED_SUCCESSFULLY]: 'Card deleted successfully.',
|
|
27
|
+
[_index.ErrorKeyEnum.SAVE_CARD_PROCESS_ERROR]: 'Error processing card data.',
|
|
28
|
+
[_index.ErrorKeyEnum.START_CHECKOUT_ERROR]: 'Error processing the payment.',
|
|
29
|
+
[_index.ErrorKeyEnum.CREATE_ORDER_ERROR]: 'Error creating the order.',
|
|
30
|
+
[_index.ErrorKeyEnum.BUSINESS_ID_REQUIRED]: 'Business ID is required.',
|
|
31
|
+
[_index.ErrorKeyEnum.CLIENT_ID_REQUIRED]: 'Client ID is required.',
|
|
32
|
+
[_index.ErrorKeyEnum.INVALID_AMOUNT]: 'Invalid amount.',
|
|
33
|
+
[_index.ErrorKeyEnum.INVALID_ITEMS]: 'Invalid items.',
|
|
34
|
+
[_index.ErrorKeyEnum.CUSTOMER_OPERATION_ERROR]: 'Error registering or fetching customer',
|
|
35
|
+
[_index.ErrorKeyEnum.INVALID_EMAIL]: 'Invalid email.',
|
|
36
|
+
[_index.ErrorKeyEnum.FETCH_PAYMENT_METHODS_ERROR]: 'Error retrieving active payment methods.',
|
|
37
|
+
[_index.ErrorKeyEnum.INVALID_VAULT_TOKEN]: 'An invalid vault token response was received.',
|
|
38
|
+
[_index.ErrorKeyEnum.VAULT_TOKEN_ERROR]: 'Error retrieving the vault token.',
|
|
39
|
+
[_index.ErrorKeyEnum.SECURE_TOKEN_ERROR]: 'Error getting secure token.',
|
|
40
|
+
[_index.ErrorKeyEnum.SECURE_TOKEN_INVALID]: 'Invalid secure token.',
|
|
41
|
+
[_index.ErrorKeyEnum.INVALID_SECRET_API_KEY]: 'SECRET API KEY is required.',
|
|
42
|
+
[_index.ErrorKeyEnum.REMOVE_CARD]: 'Card deleted successfully',
|
|
43
|
+
[_index.ErrorKeyEnum.SKYFLOW_NOT_INITIALIZED]: 'Skyflow not initialized.',
|
|
44
|
+
[_index.ErrorKeyEnum.ERROR_LOAD_PAYMENT_FORM]: 'There was an issue loading the payment form.',
|
|
45
|
+
[_index.ErrorKeyEnum.INVALID_CARD_DATA]: 'Invalid card data.',
|
|
46
|
+
[_index.ErrorKeyEnum.ERROR_LOAD_ENROLLMENT_FORM]: 'There was an issue loading the card form.',
|
|
47
|
+
[_index.ErrorKeyEnum.REQUEST_ABORTED]: 'Requests canceled.',
|
|
48
|
+
[_index.ErrorKeyEnum.REQUEST_FAILED]: 'Request failed.',
|
|
49
|
+
[_index.ErrorKeyEnum.UNKNOWN_ERROR]: 'An unexpected error occurred.',
|
|
50
|
+
[_index.ErrorKeyEnum.CREATE_ERROR]: 'Error creating the SDK.',
|
|
51
|
+
[_index.ErrorKeyEnum.FETCH_TRANSACTION_ERROR]: 'Error retrieving the transaction.',
|
|
52
|
+
[_index.ErrorKeyEnum.THREEDS_REDIRECTION_ERROR]: 'Ocurrió un error durante la redirección de 3DS.',
|
|
53
|
+
[_index.ErrorKeyEnum.REMOVE_SDK_ERROR]: 'Ocurrió un error removiendo la instancia del SDK.'
|
|
54
54
|
};
|
|
55
55
|
const MESSAGES_ES = exports.MESSAGES_ES = {
|
|
56
|
-
[
|
|
57
|
-
[
|
|
58
|
-
[
|
|
59
|
-
[
|
|
60
|
-
[
|
|
61
|
-
[
|
|
62
|
-
[
|
|
63
|
-
[
|
|
64
|
-
[
|
|
65
|
-
[
|
|
66
|
-
[
|
|
67
|
-
[
|
|
68
|
-
[
|
|
69
|
-
[
|
|
70
|
-
[
|
|
71
|
-
[
|
|
72
|
-
[
|
|
73
|
-
[
|
|
74
|
-
[
|
|
75
|
-
[
|
|
76
|
-
[
|
|
77
|
-
[
|
|
78
|
-
[
|
|
79
|
-
[
|
|
80
|
-
[
|
|
81
|
-
[
|
|
82
|
-
[
|
|
83
|
-
[
|
|
84
|
-
[
|
|
85
|
-
[
|
|
86
|
-
[
|
|
87
|
-
[
|
|
88
|
-
[
|
|
89
|
-
[
|
|
90
|
-
[
|
|
91
|
-
[
|
|
92
|
-
[
|
|
93
|
-
[
|
|
94
|
-
[
|
|
95
|
-
[
|
|
96
|
-
[
|
|
97
|
-
[
|
|
98
|
-
[
|
|
99
|
-
[
|
|
56
|
+
[_index.ErrorKeyEnum.INIT_ERROR]: 'Error inicializando el SDK',
|
|
57
|
+
[_index.ErrorKeyEnum.STATE_ERROR]: 'Error actualizando el estado del SDK.',
|
|
58
|
+
[_index.ErrorKeyEnum.FETCH_BUSINESS_ERROR]: 'Error obteniendo información del comercio',
|
|
59
|
+
[_index.ErrorKeyEnum.INVALID_CONFIG]: 'Opciones de configuración requeridas',
|
|
60
|
+
[_index.ErrorKeyEnum.TYPE_SDK_REQUIRED]: 'Tipo de SDK requerido',
|
|
61
|
+
[_index.ErrorKeyEnum.ENVIRONMENT_REQUIRED]: 'Ambiente requerido',
|
|
62
|
+
[_index.ErrorKeyEnum.FETCH_CARDS_ERROR]: 'Error obteniendo las tarjetas.',
|
|
63
|
+
[_index.ErrorKeyEnum.SAVE_CARD_ERROR]: 'Error guardando la tarjeta',
|
|
64
|
+
[_index.ErrorKeyEnum.REMOVE_CARD_ERROR]: 'Error eliminando la tarjeta.',
|
|
65
|
+
[_index.ErrorKeyEnum.CREATE_PAYMENT_ERROR]: 'Error creando el pago.',
|
|
66
|
+
[_index.ErrorKeyEnum.START_CHECKOUT_ERROR]: 'Error al procesar el pago.',
|
|
67
|
+
[_index.ErrorKeyEnum.CREATE_ORDER_ERROR]: 'Error creando la orden.',
|
|
68
|
+
[_index.ErrorKeyEnum.BUSINESS_ID_REQUIRED]: 'ID de Comercio es requerido',
|
|
69
|
+
[_index.ErrorKeyEnum.CLIENT_ID_REQUIRED]: 'ID de Cliente es requerido.',
|
|
70
|
+
[_index.ErrorKeyEnum.INVALID_AMOUNT]: 'Monto no válido.',
|
|
71
|
+
[_index.ErrorKeyEnum.INVALID_ITEMS]: 'Artículos no válidos.',
|
|
72
|
+
[_index.ErrorKeyEnum.CUSTOMER_OPERATION_ERROR]: 'Error registrando u obteniendo el cliente.',
|
|
73
|
+
[_index.ErrorKeyEnum.INVALID_EMAIL]: 'Correo electrónico no válido.',
|
|
74
|
+
[_index.ErrorKeyEnum.FETCH_PAYMENT_METHODS_ERROR]: 'Error obteniendo los métodos de pago activos.',
|
|
75
|
+
[_index.ErrorKeyEnum.INVALID_VAULT_TOKEN]: 'Se recibió una respuesta de token de bóveda no válida.',
|
|
76
|
+
[_index.ErrorKeyEnum.VAULT_TOKEN_ERROR]: 'Error al obtener el token de la bóveda.',
|
|
77
|
+
[_index.ErrorKeyEnum.SECURE_TOKEN_ERROR]: 'Error obteniendo el token seguro.',
|
|
78
|
+
[_index.ErrorKeyEnum.INVALID_SECRET_API_KEY]: 'SECRET API KEY es requerido.',
|
|
79
|
+
[_index.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.',
|
|
80
|
+
[_index.ErrorKeyEnum.SECURE_TOKEN_INVALID]: 'Token de seguridad inválido.',
|
|
81
|
+
[_index.ErrorKeyEnum.REMOVE_CARD]: 'Tarjeta eliminada exitosamente.',
|
|
82
|
+
[_index.ErrorKeyEnum.SKYFLOW_NOT_INITIALIZED]: 'Skyflow no inicializado.',
|
|
83
|
+
[_index.ErrorKeyEnum.INVALID_TYPE]: 'Tipo de SDK inválido.',
|
|
84
|
+
[_index.ErrorKeyEnum.PAYMENT_PROCESS_ERROR]: 'Hubo un problema al procesar el pago.',
|
|
85
|
+
[_index.ErrorKeyEnum.INVALID_PAYMENT_REQUEST]: 'Los datos de pago deben ser del tipo: :::interface:::}}.',
|
|
86
|
+
[_index.ErrorKeyEnum.INVALID_PAYMENT_REQUEST_CARD_PM]: 'Los datos card y payment_method no se pueden proporcionar juntos.',
|
|
87
|
+
[_index.ErrorKeyEnum.SAVE_CARD_PROCESS_ERROR]: 'Error procesando los datos de la tarjeta.',
|
|
88
|
+
[_index.ErrorKeyEnum.ERROR_LOAD_PAYMENT_FORM]: 'Hubo un problema cargando el formulario de pago.',
|
|
89
|
+
[_index.ErrorKeyEnum.INVALID_CARD_DATA]: 'Datos de tarjeta no válidos.',
|
|
90
|
+
[_index.ErrorKeyEnum.ERROR_LOAD_ENROLLMENT_FORM]: 'Hubo un problema cargando el formulario de tarjeta.',
|
|
91
|
+
[_index.ErrorKeyEnum.CARD_SAVED_SUCCESSFULLY]: 'Tarjeta registrada con éxito.',
|
|
92
|
+
[_index.ErrorKeyEnum.CARD_REMOVED_SUCCESSFULLY]: 'Tarjeta eliminada con éxito.',
|
|
93
|
+
[_index.ErrorKeyEnum.REQUEST_ABORTED]: 'Peticiones canceladas.',
|
|
94
|
+
[_index.ErrorKeyEnum.REQUEST_FAILED]: 'Petición fallida.',
|
|
95
|
+
[_index.ErrorKeyEnum.UNKNOWN_ERROR]: 'Ocurrió un error inesperado.',
|
|
96
|
+
[_index.ErrorKeyEnum.CREATE_ERROR]: 'Error creando el SDK.',
|
|
97
|
+
[_index.ErrorKeyEnum.FETCH_TRANSACTION_ERROR]: 'Error obteniendo la transacción',
|
|
98
|
+
[_index.ErrorKeyEnum.THREEDS_REDIRECTION_ERROR]: 'An error occurred during the 3DS redirection.',
|
|
99
|
+
[_index.ErrorKeyEnum.REMOVE_SDK_ERROR]: 'An error occurred while removing the SDK instance.'
|
|
100
100
|
};
|
|
101
101
|
//# sourceMappingURL=messages.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_index","require","MESSAGES_EN","exports","ErrorKeyEnum","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,IAAAA,MAAA,GAAAC,OAAA;AAEO,MAAMC,WAAW,GAAAC,OAAA,CAAAD,WAAA,GAAG;EACzB,CAACE,mBAAY,CAACC,UAAU,GAAG,6BAA6B;EACxD,CAACD,mBAAY,CAACE,YAAY,GAAG,mBAAmB;EAChD,CAACF,mBAAY,CAACG,WAAW,GAAG,2BAA2B;EACvD,CAACH,mBAAY,CAACI,oBAAoB,GAAG,wCAAwC;EAC7E,CAACJ,mBAAY,CAACK,cAAc,GAAG,iCAAiC;EAChE,CAACL,mBAAY,CAACM,4BAA4B,GAAG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D,CAACpC,mBAAY,CAACqC,iBAAiB,GAAG,8BAA8B;EAChE,CAACrC,mBAAY,CAACsC,0BAA0B,GACtC,qDAAqD;EACvD,CAACtC,mBAAY,CAACiB,uBAAuB,GAAG,+BAA+B;EACvE,CAACjB,mBAAY,CAACkB,yBAAyB,GAAG,8BAA8B;EACxE,CAAClB,mBAAY,CAACuC,eAAe,GAAG,wBAAwB;EACxD,CAACvC,mBAAY,CAACwC,cAAc,GAAG,mBAAmB;EAClD,CAACxC,mBAAY,CAACyC,aAAa,GAAG,8BAA8B;EAC5D,CAACzC,mBAAY,CAAC0C,YAAY,GAAG,uBAAuB;EACpD,CAAC1C,mBAAY,CAAC2C,uBAAuB,GAAG,iCAAiC;EACzE,CAAC3C,mBAAY,CAAC4C,yBAAyB,GACrC,+CAA+C;EACjD,CAAC5C,mBAAY,CAAC6C,gBAAgB,GAC5B;AACJ,CAAC","ignoreList":[]}
|
|
@@ -4,10 +4,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _index = require("../constants/index.js");
|
|
8
8
|
class TonderError extends Error {
|
|
9
9
|
constructor(params) {
|
|
10
|
-
const resolvedMessage = params.message ||
|
|
10
|
+
const resolvedMessage = params.message || _index.MESSAGES_EN[params.code] || 'Unknown error';
|
|
11
11
|
super(resolvedMessage);
|
|
12
12
|
this.name = 'TonderError';
|
|
13
13
|
this.code = params.code;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_index","require","TonderError","Error","constructor","params","resolvedMessage","message","MESSAGES_EN","code","name","details","_default","exports","default"],"sourceRoot":"../../../../src","sources":["shared/utils/errors.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAQA,MAAMC,WAAW,SAASC,KAAK,CAAC;EAG9BC,WAAWA,CAACC,MAA0B,EAAE;IACtC,MAAMC,eAAe,GACnBD,MAAM,CAACE,OAAO,IAAIC,kBAAW,CAACH,MAAM,CAACI,IAAI,CAAC,IAAI,eAAe;IAC/D,KAAK,CAACH,eAAe,CAAC;IACtB,IAAI,CAACI,IAAI,GAAG,aAAa;IACzB,IAAI,CAACD,IAAI,GAAGJ,MAAM,CAACI,IAAI;IACvB,IAAI,CAACE,OAAO,GAAG;MACbF,IAAI,EAAEJ,MAAM,CAACM,OAAO,EAAEF,IAAI,IAAIJ,MAAM,CAACI,IAAI;MACzCF,OAAO,EAAEF,MAAM,CAACM,OAAO,EAAEJ,OAAO,IAAID;IACtC,CAAC;EACH;AACF;AAAC,IAAAM,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEcZ,WAAW","ignoreList":[]}
|