@paydock/client-sdk 0.0.3 → 0.1.2-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9050 -52
- package/bundles/index.cjs +38558 -0
- package/bundles/index.cjs.d.ts +4777 -0
- package/bundles/index.mjs +38519 -0
- package/bundles/index.mjs.d.ts +4777 -0
- package/bundles/types/api/api-base.d.ts +54 -0
- package/bundles/types/api/api-base.d.ts.map +1 -0
- package/bundles/types/api/api-charge-internal.d.ts +99 -0
- package/bundles/types/api/api-charge-internal.d.ts.map +1 -0
- package/bundles/types/api/api-charge.d.ts +36 -0
- package/bundles/types/api/api-charge.d.ts.map +1 -0
- package/bundles/types/api/api-checkout-internal.d.ts +58 -0
- package/bundles/types/api/api-checkout-internal.d.ts.map +1 -0
- package/bundles/types/api/api-gateway-internal.d.ts +12 -0
- package/bundles/types/api/api-gateway-internal.d.ts.map +1 -0
- package/bundles/types/api/api-internal.d.ts +13 -0
- package/bundles/types/api/api-internal.d.ts.map +1 -0
- package/bundles/types/api/api-service-internal.d.ts +19 -0
- package/bundles/types/api/api-service-internal.d.ts.map +1 -0
- package/bundles/types/api/api.d.ts +55 -0
- package/bundles/types/api/api.d.ts.map +1 -0
- package/bundles/types/api/index.d.ts +2 -0
- package/bundles/types/api/index.d.ts.map +1 -0
- package/bundles/types/canvas-3ds/canvas-3ds.d.ts +109 -0
- package/bundles/types/canvas-3ds/canvas-3ds.d.ts.map +1 -0
- package/bundles/types/canvas-3ds/index.d.ts +2 -0
- package/bundles/types/canvas-3ds/index.d.ts.map +1 -0
- package/bundles/types/canvas-3ds/services/gpayments-service.d.ts +43 -0
- package/bundles/types/canvas-3ds/services/gpayments-service.d.ts.map +1 -0
- package/bundles/types/canvas-3ds/services/index.d.ts +2 -0
- package/bundles/types/canvas-3ds/services/index.d.ts.map +1 -0
- package/bundles/types/canvas-3ds/services/standalone3ds-service.d.ts +22 -0
- package/bundles/types/canvas-3ds/services/standalone3ds-service.d.ts.map +1 -0
- package/bundles/types/checkout/checkout.d.ts +107 -0
- package/bundles/types/checkout/checkout.d.ts.map +1 -0
- package/bundles/types/checkout/helpers/instruction-handler.d.ts +25 -0
- package/bundles/types/checkout/helpers/instruction-handler.d.ts.map +1 -0
- package/bundles/types/checkout/helpers/instruction-module.d.ts +6 -0
- package/bundles/types/checkout/helpers/instruction-module.d.ts.map +1 -0
- package/bundles/types/checkout/helpers/instruction-module.decorator.d.ts +6 -0
- package/bundles/types/checkout/helpers/instruction-module.decorator.d.ts.map +1 -0
- package/bundles/types/checkout/helpers/instruction.decorator.d.ts +5 -0
- package/bundles/types/checkout/helpers/instruction.decorator.d.ts.map +1 -0
- package/bundles/types/checkout/helpers/resource-helper.d.ts +6 -0
- package/bundles/types/checkout/helpers/resource-helper.d.ts.map +1 -0
- package/bundles/types/checkout/helpers/session-helper.d.ts +8 -0
- package/bundles/types/checkout/helpers/session-helper.d.ts.map +1 -0
- package/bundles/types/checkout/index.d.ts +2 -0
- package/bundles/types/checkout/index.d.ts.map +1 -0
- package/bundles/types/checkout/instructions/index.d.ts +3 -0
- package/bundles/types/checkout/instructions/index.d.ts.map +1 -0
- package/bundles/types/checkout/instructions/v1/index.d.ts +4 -0
- package/bundles/types/checkout/instructions/v1/index.d.ts.map +1 -0
- package/bundles/types/checkout/instructions/v1/instruction.afterpay_checkout_form.show.d.ts +20 -0
- package/bundles/types/checkout/instructions/v1/instruction.afterpay_checkout_form.show.d.ts.map +1 -0
- package/bundles/types/checkout/instructions/v1/instruction.afterpay_wallet_form.show.d.ts +14 -0
- package/bundles/types/checkout/instructions/v1/instruction.afterpay_wallet_form.show.d.ts.map +1 -0
- package/bundles/types/checkout/instructions/v1/instruction.apple_pay_form.show.d.ts +18 -0
- package/bundles/types/checkout/instructions/v1/instruction.apple_pay_form.show.d.ts.map +1 -0
- package/bundles/types/checkout/instructions/v1/instruction.bank_account_form.show.d.ts +15 -0
- package/bundles/types/checkout/instructions/v1/instruction.bank_account_form.show.d.ts.map +1 -0
- package/bundles/types/checkout/instructions/v1/instruction.canvas_3ds.show.d.ts +11 -0
- package/bundles/types/checkout/instructions/v1/instruction.canvas_3ds.show.d.ts.map +1 -0
- package/bundles/types/checkout/instructions/v1/instruction.card_form.show.d.ts +19 -0
- package/bundles/types/checkout/instructions/v1/instruction.card_form.show.d.ts.map +1 -0
- package/bundles/types/checkout/instructions/v1/instruction.disable_payment_method_event.emit.d.ts +20 -0
- package/bundles/types/checkout/instructions/v1/instruction.disable_payment_method_event.emit.d.ts.map +1 -0
- package/bundles/types/checkout/instructions/v1/instruction.fraud_service.show.d.ts +21 -0
- package/bundles/types/checkout/instructions/v1/instruction.fraud_service.show.d.ts.map +1 -0
- package/bundles/types/checkout/instructions/v1/instruction.generic.show_message.d.ts +26 -0
- package/bundles/types/checkout/instructions/v1/instruction.generic.show_message.d.ts.map +1 -0
- package/bundles/types/checkout/instructions/v1/instruction.google_pay_form.show.d.ts +18 -0
- package/bundles/types/checkout/instructions/v1/instruction.google_pay_form.show.d.ts.map +1 -0
- package/bundles/types/checkout/instructions/v1/instruction.merchant_event.emit.d.ts +18 -0
- package/bundles/types/checkout/instructions/v1/instruction.merchant_event.emit.d.ts.map +1 -0
- package/bundles/types/checkout/instructions/v1/instruction.payment_methods.show.d.ts +18 -0
- package/bundles/types/checkout/instructions/v1/instruction.payment_methods.show.d.ts.map +1 -0
- package/bundles/types/checkout/instructions/v1/instruction.paypal_form.show.d.ts +21 -0
- package/bundles/types/checkout/instructions/v1/instruction.paypal_form.show.d.ts.map +1 -0
- package/bundles/types/checkout/instructions/v1/instruction.zip_checkout_form.show.d.ts +19 -0
- package/bundles/types/checkout/instructions/v1/instruction.zip_checkout_form.show.d.ts.map +1 -0
- package/bundles/types/checkout/layout-widgets/additionals.d.ts +3 -0
- package/bundles/types/checkout/layout-widgets/additionals.d.ts.map +1 -0
- package/bundles/types/checkout/layout-widgets/default-variables.enum.d.ts +9 -0
- package/bundles/types/checkout/layout-widgets/default-variables.enum.d.ts.map +1 -0
- package/bundles/types/checkout/layout-widgets/message.d.ts +34 -0
- package/bundles/types/checkout/layout-widgets/message.d.ts.map +1 -0
- package/bundles/types/checkout/layout-widgets/payment-methods-template.d.ts +13 -0
- package/bundles/types/checkout/layout-widgets/payment-methods-template.d.ts.map +1 -0
- package/bundles/types/checkout/layout-widgets/payment-methods.d.ts +55 -0
- package/bundles/types/checkout/layout-widgets/payment-methods.d.ts.map +1 -0
- package/bundles/types/checkout/layout-widgets/payment-template.d.ts +3 -0
- package/bundles/types/checkout/layout-widgets/payment-template.d.ts.map +1 -0
- package/bundles/types/checkout-button/afterpay/afterpay-checkout-button.d.ts +36 -0
- package/bundles/types/checkout-button/afterpay/afterpay-checkout-button.d.ts.map +1 -0
- package/bundles/types/checkout-button/afterpay/afterpay.runner.d.ts +13 -0
- package/bundles/types/checkout-button/afterpay/afterpay.runner.d.ts.map +1 -0
- package/bundles/types/checkout-button/checkout-button.d.ts +139 -0
- package/bundles/types/checkout-button/checkout-button.d.ts.map +1 -0
- package/bundles/types/checkout-button/checkout-button.interface.d.ts +49 -0
- package/bundles/types/checkout-button/checkout-button.interface.d.ts.map +1 -0
- package/bundles/types/checkout-button/checkout-contextual-handler.d.ts +27 -0
- package/bundles/types/checkout-button/checkout-contextual-handler.d.ts.map +1 -0
- package/bundles/types/checkout-button/index.d.ts +85 -0
- package/bundles/types/checkout-button/index.d.ts.map +1 -0
- package/bundles/types/checkout-button/paypal/paypal-checkout-button.d.ts +21 -0
- package/bundles/types/checkout-button/paypal/paypal-checkout-button.d.ts.map +1 -0
- package/bundles/types/checkout-button/paypal/paypal.runner.d.ts +6 -0
- package/bundles/types/checkout-button/paypal/paypal.runner.d.ts.map +1 -0
- package/bundles/types/checkout-button/runner/base.runner.d.ts +18 -0
- package/bundles/types/checkout-button/runner/base.runner.d.ts.map +1 -0
- package/bundles/types/checkout-button/runner/contextual.runner.d.ts +39 -0
- package/bundles/types/checkout-button/runner/contextual.runner.d.ts.map +1 -0
- package/bundles/types/checkout-button/runner/index.d.ts +9 -0
- package/bundles/types/checkout-button/runner/index.d.ts.map +1 -0
- package/bundles/types/checkout-button/runner/popup.runner.d.ts +35 -0
- package/bundles/types/checkout-button/runner/popup.runner.d.ts.map +1 -0
- package/bundles/types/checkout-button/runner/redirect.runner.d.ts +17 -0
- package/bundles/types/checkout-button/runner/redirect.runner.d.ts.map +1 -0
- package/bundles/types/checkout-button/zipmoney/index.d.ts +4 -0
- package/bundles/types/checkout-button/zipmoney/index.d.ts.map +1 -0
- package/bundles/types/checkout-button/zipmoney/zipmoney-checkout-button.d.ts +49 -0
- package/bundles/types/checkout-button/zipmoney/zipmoney-checkout-button.d.ts.map +1 -0
- package/bundles/types/checkout-button/zipmoney/zipmoney-contextual.runner.d.ts +39 -0
- package/bundles/types/checkout-button/zipmoney/zipmoney-contextual.runner.d.ts.map +1 -0
- package/bundles/types/checkout-button/zipmoney/zipmoney-redirect.runner.d.ts +26 -0
- package/bundles/types/checkout-button/zipmoney/zipmoney-redirect.runner.d.ts.map +1 -0
- package/bundles/types/checkout-button/zipmoney/zipmoney.config.d.ts +4 -0
- package/bundles/types/checkout-button/zipmoney/zipmoney.config.d.ts.map +1 -0
- package/bundles/types/checkout-button/zipmoney/zipmoney.runner.d.ts +10 -0
- package/bundles/types/checkout-button/zipmoney/zipmoney.runner.d.ts.map +1 -0
- package/bundles/types/checkout-button/zipmoney/zipmoney.types.d.ts +12 -0
- package/bundles/types/checkout-button/zipmoney/zipmoney.types.d.ts.map +1 -0
- package/bundles/types/components/ability-guard.d.ts +12 -0
- package/bundles/types/components/ability-guard.d.ts.map +1 -0
- package/bundles/types/components/background.d.ts +43 -0
- package/bundles/types/components/background.d.ts.map +1 -0
- package/bundles/types/components/container.d.ts +12 -0
- package/bundles/types/components/container.d.ts.map +1 -0
- package/bundles/types/components/dispatcher.d.ts +14 -0
- package/bundles/types/components/dispatcher.d.ts.map +1 -0
- package/bundles/types/components/element-style.d.ts +17 -0
- package/bundles/types/components/element-style.d.ts.map +1 -0
- package/bundles/types/components/flypay-iframe-event.d.ts +15 -0
- package/bundles/types/components/flypay-iframe-event.d.ts.map +1 -0
- package/{lib/widget/components/form-Interceptor.d.ts → bundles/types/components/form-interceptor.d.ts} +2 -1
- package/bundles/types/components/form-interceptor.d.ts.map +1 -0
- package/bundles/types/components/http-core.d.ts +14 -0
- package/bundles/types/components/http-core.d.ts.map +1 -0
- package/bundles/types/components/iframe-event.d.ts +72 -0
- package/bundles/types/components/iframe-event.d.ts.map +1 -0
- package/bundles/types/components/iframe.d.ts +20 -0
- package/bundles/types/components/iframe.d.ts.map +1 -0
- package/bundles/types/components/link.d.ts +27 -0
- package/bundles/types/components/link.d.ts.map +1 -0
- package/bundles/types/components/loader.d.ts +5 -0
- package/bundles/types/components/loader.d.ts.map +1 -0
- package/bundles/types/components/param.d.ts +430 -0
- package/bundles/types/components/param.d.ts.map +1 -0
- package/bundles/types/components/popup.d.ts +30 -0
- package/bundles/types/components/popup.d.ts.map +1 -0
- package/bundles/types/components/storage-dispatcher.d.ts +31 -0
- package/bundles/types/components/storage-dispatcher.d.ts.map +1 -0
- package/bundles/types/components/trigger.d.ts +48 -0
- package/bundles/types/components/trigger.d.ts.map +1 -0
- package/bundles/types/components/vault-display-iframe-event.d.ts +5 -0
- package/bundles/types/components/vault-display-iframe-event.d.ts.map +1 -0
- package/bundles/types/components/wallet-background.d.ts +13 -0
- package/bundles/types/components/wallet-background.d.ts.map +1 -0
- package/bundles/types/components/wallet-trigger.d.ts +19 -0
- package/bundles/types/components/wallet-trigger.d.ts.map +1 -0
- package/bundles/types/configs/env/environment.cba.d.ts +30 -0
- package/bundles/types/configs/env/environment.cba.d.ts.map +1 -0
- package/bundles/types/configs/env/environment.interface.d.ts +12 -0
- package/bundles/types/configs/env/environment.interface.d.ts.map +1 -0
- package/bundles/types/configs/env/environment.paydock.d.ts +49 -0
- package/bundles/types/configs/env/environment.paydock.d.ts.map +1 -0
- package/bundles/types/configs/env/index.d.ts +3 -0
- package/bundles/types/configs/env/index.d.ts.map +1 -0
- package/bundles/types/configs/sdk.d.ts +10 -0
- package/bundles/types/configs/sdk.d.ts.map +1 -0
- package/bundles/types/constants/validators.d.ts +45 -0
- package/bundles/types/constants/validators.d.ts.map +1 -0
- package/bundles/types/external-checkout/builder.d.ts +29 -0
- package/bundles/types/external-checkout/builder.d.ts.map +1 -0
- package/bundles/types/external-checkout/checker.d.ts +14 -0
- package/bundles/types/external-checkout/checker.d.ts.map +1 -0
- package/bundles/types/external-checkout/index.d.ts +3 -0
- package/bundles/types/external-checkout/index.d.ts.map +1 -0
- package/bundles/types/fraud-prevention/fraud-prevention.constants.d.ts +9 -0
- package/bundles/types/fraud-prevention/fraud-prevention.constants.d.ts.map +1 -0
- package/bundles/types/fraud-prevention/fraud-prevention.events.d.ts +42 -0
- package/bundles/types/fraud-prevention/fraud-prevention.events.d.ts.map +1 -0
- package/bundles/types/fraud-prevention/fraud-prevention.service.d.ts +163 -0
- package/bundles/types/fraud-prevention/fraud-prevention.service.d.ts.map +1 -0
- package/bundles/types/fraud-prevention/index.d.ts +3 -0
- package/bundles/types/fraud-prevention/index.d.ts.map +1 -0
- package/bundles/types/fraud-prevention/providers/forter/forter-device-agent.service.d.ts +79 -0
- package/bundles/types/fraud-prevention/providers/forter/forter-device-agent.service.d.ts.map +1 -0
- package/bundles/types/fraud-prevention/providers/forter/templates/forter-snippet-2025-02-06t14:19:34z.template.d.ts +2 -0
- package/bundles/types/fraud-prevention/providers/forter/templates/forter-snippet-2025-02-06t14:19:34z.template.d.ts.map +1 -0
- package/bundles/types/fraud-prevention/resources/find-service-config.repository.d.ts +20 -0
- package/bundles/types/fraud-prevention/resources/find-service-config.repository.d.ts.map +1 -0
- package/bundles/types/helper/access-token.d.ts +26 -0
- package/bundles/types/helper/access-token.d.ts.map +1 -0
- package/bundles/types/helper/browser.d.ts +17 -0
- package/bundles/types/helper/browser.d.ts.map +1 -0
- package/bundles/types/helper/deep-clone.d.ts +13 -0
- package/bundles/types/helper/deep-clone.d.ts.map +1 -0
- package/bundles/types/helper/element-id.d.ts +5 -0
- package/bundles/types/helper/element-id.d.ts.map +1 -0
- package/bundles/types/helper/event-emitter.d.ts +7 -0
- package/bundles/types/helper/event-emitter.d.ts.map +1 -0
- package/bundles/types/helper/event-error.d.ts +55 -0
- package/bundles/types/helper/event-error.d.ts.map +1 -0
- package/bundles/types/helper/event.d.ts +10 -0
- package/bundles/types/helper/event.d.ts.map +1 -0
- package/bundles/types/helper/ms.d.ts +6 -0
- package/bundles/types/helper/ms.d.ts.map +1 -0
- package/{lib/widget → bundles/types}/helper/object.d.ts +1 -0
- package/bundles/types/helper/object.d.ts.map +1 -0
- package/bundles/types/helper/process-event-error.d.ts +9 -0
- package/bundles/types/helper/process-event-error.d.ts.map +1 -0
- package/bundles/types/helper/spiner.util.d.ts +6 -0
- package/bundles/types/helper/spiner.util.d.ts.map +1 -0
- package/bundles/types/helper/url.d.ts +5 -0
- package/bundles/types/helper/url.d.ts.map +1 -0
- package/bundles/types/helper/uuid.d.ts +6 -0
- package/bundles/types/helper/uuid.d.ts.map +1 -0
- package/bundles/types/index-cba.d.ts +52 -0
- package/bundles/types/index-cba.d.ts.map +1 -0
- package/bundles/types/index.d.ts +52 -0
- package/bundles/types/index.d.ts.map +1 -0
- package/bundles/types/payment-source/builder.d.ts +23 -0
- package/bundles/types/payment-source/builder.d.ts.map +1 -0
- package/bundles/types/payment-source/index.d.ts +2 -0
- package/bundles/types/payment-source/index.d.ts.map +1 -0
- package/bundles/types/payment-source-widget/html-payment-source-widget.d.ts +181 -0
- package/bundles/types/payment-source-widget/html-payment-source-widget.d.ts.map +1 -0
- package/bundles/types/payment-source-widget/index.d.ts +35 -0
- package/bundles/types/payment-source-widget/index.d.ts.map +1 -0
- package/bundles/types/payment-source-widget/interfaces.d.ts +12 -0
- package/bundles/types/payment-source-widget/interfaces.d.ts.map +1 -0
- package/bundles/types/payment-source-widget/payment-source-widget.d.ts +93 -0
- package/bundles/types/payment-source-widget/payment-source-widget.d.ts.map +1 -0
- package/bundles/types/paypal-data-collector/index.d.ts +23 -0
- package/bundles/types/paypal-data-collector/index.d.ts.map +1 -0
- package/bundles/types/paypal-data-collector/paypal-data-collector.d.ts +58 -0
- package/bundles/types/paypal-data-collector/paypal-data-collector.d.ts.map +1 -0
- package/bundles/types/paypal-data-collector/paypal-data-collector.interfaces.d.ts +21 -0
- package/bundles/types/paypal-data-collector/paypal-data-collector.interfaces.d.ts.map +1 -0
- package/bundles/types/paypal-data-collector/paypal-data-collector.service.d.ts +17 -0
- package/bundles/types/paypal-data-collector/paypal-data-collector.service.d.ts.map +1 -0
- package/bundles/types/paypal-save-payment-source/index.d.ts +61 -0
- package/bundles/types/paypal-save-payment-source/index.d.ts.map +1 -0
- package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.d.ts +85 -0
- package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.d.ts.map +1 -0
- package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.interfaces.d.ts +83 -0
- package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.interfaces.d.ts.map +1 -0
- package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.service.d.ts +35 -0
- package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.service.d.ts.map +1 -0
- package/bundles/types/secure-remote-commerce/click-to-pay-secure-remote-commerce.d.ts +31 -0
- package/bundles/types/secure-remote-commerce/click-to-pay-secure-remote-commerce.d.ts.map +1 -0
- package/bundles/types/secure-remote-commerce/index.d.ts +105 -0
- package/bundles/types/secure-remote-commerce/index.d.ts.map +1 -0
- package/bundles/types/secure-remote-commerce/interfaces.d.ts +156 -0
- package/bundles/types/secure-remote-commerce/interfaces.d.ts.map +1 -0
- package/bundles/types/secure-remote-commerce/providers/mastercard-src/index.d.ts +2 -0
- package/bundles/types/secure-remote-commerce/providers/mastercard-src/index.d.ts.map +1 -0
- package/bundles/types/secure-remote-commerce/providers/mastercard-src/mastercard-src.d.ts +25 -0
- package/bundles/types/secure-remote-commerce/providers/mastercard-src/mastercard-src.d.ts.map +1 -0
- package/bundles/types/secure-remote-commerce/providers/src-provider.d.ts +11 -0
- package/bundles/types/secure-remote-commerce/providers/src-provider.d.ts.map +1 -0
- package/bundles/types/secure-remote-commerce/secure-remote-commerce.d.ts +86 -0
- package/bundles/types/secure-remote-commerce/secure-remote-commerce.d.ts.map +1 -0
- package/bundles/types/shared/device/device-info.service.d.ts +13 -0
- package/bundles/types/shared/device/device-info.service.d.ts.map +1 -0
- package/bundles/types/shared/http/authorization-strategy.d.ts +41 -0
- package/bundles/types/shared/http/authorization-strategy.d.ts.map +1 -0
- package/bundles/types/shared/http/http-fetcher.d.ts +29 -0
- package/bundles/types/shared/http/http-fetcher.d.ts.map +1 -0
- package/bundles/types/shared/http/http-fetcher.factory.d.ts +17 -0
- package/bundles/types/shared/http/http-fetcher.factory.d.ts.map +1 -0
- package/bundles/types/shared/http/http-request.d.ts +14 -0
- package/bundles/types/shared/http/http-request.d.ts.map +1 -0
- package/bundles/types/shared/http/http-response.dto.d.ts +19 -0
- package/bundles/types/shared/http/http-response.dto.d.ts.map +1 -0
- package/bundles/types/shared/services/configuration-validation/configuration-validation.d.ts +12 -0
- package/bundles/types/shared/services/configuration-validation/configuration-validation.d.ts.map +1 -0
- package/bundles/types/shared/services/configuration-validation/types.d.ts +73 -0
- package/bundles/types/shared/services/configuration-validation/types.d.ts.map +1 -0
- package/bundles/types/shared/services/instrumentation/instrumentation.agent.d.ts +15 -0
- package/bundles/types/shared/services/instrumentation/instrumentation.agent.d.ts.map +1 -0
- package/bundles/types/shared/services/instrumentation/instrumentation.config.d.ts +66 -0
- package/bundles/types/shared/services/instrumentation/instrumentation.config.d.ts.map +1 -0
- package/bundles/types/shared/services/instrumentation/instrumentation.types.d.ts +14 -0
- package/bundles/types/shared/services/instrumentation/instrumentation.types.d.ts.map +1 -0
- package/bundles/types/shared/services/instrumentation/repositories/action.repository.d.ts +15 -0
- package/bundles/types/shared/services/instrumentation/repositories/action.repository.d.ts.map +1 -0
- package/bundles/types/shared/services/instrumentation/repositories/error.repository.d.ts +23 -0
- package/bundles/types/shared/services/instrumentation/repositories/error.repository.d.ts.map +1 -0
- package/bundles/types/shared/services/instrumentation/repositories/event.repository.d.ts +15 -0
- package/bundles/types/shared/services/instrumentation/repositories/event.repository.d.ts.map +1 -0
- package/bundles/types/shared/services/instrumentation/repositories/index.d.ts +4 -0
- package/bundles/types/shared/services/instrumentation/repositories/index.d.ts.map +1 -0
- package/bundles/types/shared/shared.constants.d.ts +6 -0
- package/bundles/types/shared/shared.constants.d.ts.map +1 -0
- package/bundles/types/vault-display-widget/index.d.ts +14 -0
- package/bundles/types/vault-display-widget/index.d.ts.map +1 -0
- package/bundles/types/vault-display-widget/vault-display-widget.d.ts +69 -0
- package/bundles/types/vault-display-widget/vault-display-widget.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/enums.d.ts +12 -0
- package/bundles/types/wallet-buttons/enums.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/helpers/flypay-v2.helper.d.ts +6 -0
- package/bundles/types/wallet-buttons/helpers/flypay-v2.helper.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/index-cba.d.ts +2 -0
- package/bundles/types/wallet-buttons/index-cba.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/index.d.ts +138 -0
- package/bundles/types/wallet-buttons/index.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/interfaces.d.ts +128 -0
- package/bundles/types/wallet-buttons/interfaces.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/wallet-buttons.d.ts +321 -0
- package/bundles/types/wallet-buttons/wallet-buttons.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/wallet-cba-buttons.d.ts +330 -0
- package/bundles/types/wallet-buttons/wallet-cba-buttons.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/wallet-services/afterpay.wallet-service.d.ts +24 -0
- package/bundles/types/wallet-buttons/wallet-services/afterpay.wallet-service.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/wallet-services/apple.wallet-service.d.ts +49 -0
- package/bundles/types/wallet-buttons/wallet-services/apple.wallet-service.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/wallet-services/flypay-v2.wallet-service.d.ts +28 -0
- package/bundles/types/wallet-buttons/wallet-services/flypay-v2.wallet-service.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/wallet-services/flypay.wallet-service.d.ts +26 -0
- package/bundles/types/wallet-buttons/wallet-services/flypay.wallet-service.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/wallet-services/google.wallet-service.d.ts +35 -0
- package/bundles/types/wallet-buttons/wallet-services/google.wallet-service.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/wallet-services/mastercard.wallet-service.d.ts +8 -0
- package/bundles/types/wallet-buttons/wallet-services/mastercard.wallet-service.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/wallet-services/paypal.wallet-service.d.ts +26 -0
- package/bundles/types/wallet-buttons/wallet-services/paypal.wallet-service.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/wallet-services/stripe.wallet-service.d.ts +19 -0
- package/bundles/types/wallet-buttons/wallet-services/stripe.wallet-service.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/wallet-services/wallet-service.d.ts +131 -0
- package/bundles/types/wallet-buttons/wallet-services/wallet-service.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/base.wallet-button-express.d.ts +252 -0
- package/bundles/types/wallet-buttons-express/base.wallet-button-express.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/enum/event.enum.d.ts +12 -0
- package/bundles/types/wallet-buttons-express/enum/event.enum.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/index.d.ts +245 -0
- package/bundles/types/wallet-buttons-express/index.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/interfaces/base-event-data.interface.d.ts +6 -0
- package/bundles/types/wallet-buttons-express/interfaces/base-event-data.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/interfaces/base-gateway-config.interface.d.ts +6 -0
- package/bundles/types/wallet-buttons-express/interfaces/base-gateway-config.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/interfaces/base-wallet-meta.interface.d.ts +5 -0
- package/bundles/types/wallet-buttons-express/interfaces/base-wallet-meta.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/interfaces/charge-wallet-token-meta.interface.d.ts +44 -0
- package/bundles/types/wallet-buttons-express/interfaces/charge-wallet-token-meta.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-click-event-data.interface.d.ts +6 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-click-event-data.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-close-event-data.interface.d.ts +6 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-close-event-data.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-error-event-data.interface.d.ts +6 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-error-event-data.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-payment-error-event-data.interface.d.ts +9 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-payment-error-event-data.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-payment-in-review-event-data.interface.d.ts +6 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-payment-in-review-event-data.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-payment-successful-event-data.interface.d.ts +11 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-payment-successful-event-data.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-shipping-address-change-event-data.interface.d.ts +21 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-shipping-address-change-event-data.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-shipping-address-change-event-response.interface.d.ts +9 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-shipping-address-change-event-response.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-shipping-option-change-event-data.interface.d.ts +13 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-shipping-option-change-event-data.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-shipping-option-change-event-response.interface.d.ts +9 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-shipping-option-change-event-response.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-unavailable-event-data.interface.d.ts +6 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-unavailable-event-data.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/interfaces/wallet-capture-request.interface.d.ts +22 -0
- package/bundles/types/wallet-buttons-express/interfaces/wallet-capture-request.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/apple-pay.wallet-button-express.d.ts +58 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/apple-pay.wallet-button-express.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/constants/apple-pay-button-style.constant.d.ts +2 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/constants/apple-pay-button-style.constant.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/constants/apple-pay-events.constant.d.ts +5 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/constants/apple-pay-events.constant.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-gateway-config.interface.d.ts +6 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-gateway-config.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-wallet-meta.interface.d.ts +22 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-wallet-meta.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-button-style.type.d.ts +2 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-button-style.type.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-button-type.type.d.ts +2 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-button-type.type.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-contact-editing-mode.type.d.ts +5 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-contact-editing-mode.type.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-shipping-data.d.ts +21 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-shipping-data.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-shipping-method.type.d.ts +21 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-shipping-method.type.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-gateway-config.interface.d.ts +4 -0
- package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-gateway-config.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-sdk.interface.d.ts +164 -0
- package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-sdk.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-wallet-meta.interface.d.ts +32 -0
- package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-wallet-meta.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/services/paypal/paypal.wallet-button-express.d.ts +53 -0
- package/bundles/types/wallet-buttons-express/services/paypal/paypal.wallet-button-express.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/types/shipping-event-to-response.type.d.ts +6 -0
- package/bundles/types/wallet-buttons-express/types/shipping-event-to-response.type.d.ts.map +1 -0
- package/bundles/types/widget/configuration.d.ts +165 -0
- package/bundles/types/widget/configuration.d.ts.map +1 -0
- package/bundles/types/widget/html-multi-widget.d.ts +337 -0
- package/bundles/types/widget/html-multi-widget.d.ts.map +1 -0
- package/bundles/types/widget/html-widget.d.ts +107 -0
- package/bundles/types/widget/html-widget.d.ts.map +1 -0
- package/bundles/types/widget/index.d.ts +132 -0
- package/bundles/types/widget/index.d.ts.map +1 -0
- package/bundles/types/widget/meta.d.ts +8 -0
- package/bundles/types/widget/meta.d.ts.map +1 -0
- package/bundles/types/widget/multi-widget.d.ts +241 -0
- package/bundles/types/widget/multi-widget.d.ts.map +1 -0
- package/bundles/types/widget/style.d.ts +177 -0
- package/bundles/types/widget/style.d.ts.map +1 -0
- package/bundles/widget.umd.js +38429 -767
- package/bundles/widget.umd.js.d.ts +4777 -0
- package/bundles/widget.umd.js.min.d.ts +4777 -0
- package/bundles/widget.umd.min.js +1 -0
- package/docs/api-canvas3ds.md +158 -0
- package/docs/api-checkout-button.md +912 -0
- package/docs/api-examples.md +65 -0
- package/docs/api-ps-widget.md +585 -0
- package/docs/api-vault-display.md +94 -0
- package/docs/api-widget.md +2542 -0
- package/docs/api-wrapper.md +45 -0
- package/docs/canvas3ds-examples.md +242 -0
- package/docs/cba-header.md +13 -0
- package/docs/cba-license.md +2 -0
- package/docs/checkout-examples.md +248 -0
- package/docs/click-to-pay-examples.md +231 -0
- package/docs/click-to-pay.md +337 -0
- package/docs/fraud-prevention-examples.md +154 -0
- package/docs/fraud-prevention.md +0 -0
- package/docs/header.md +15 -0
- package/docs/html/layout.html +79 -0
- package/docs/html/marked.js +23 -0
- package/docs/html/style.css +365 -0
- package/docs/install/npm.content.md +16 -0
- package/docs/install/npm.example.md +24 -0
- package/docs/install/umd.content.md +20 -0
- package/docs/install/umd.example.md +6 -0
- package/docs/install.md +43 -0
- package/docs/install.readme.t.md +17 -0
- package/docs/install.slate.t.md +17 -0
- package/docs/license.md +2 -0
- package/docs/partials/header.hbs +3 -0
- package/docs/paypal-data-collector-examples.md +59 -0
- package/docs/paypal-data-collector.md +149 -0
- package/docs/paypal-save-payment-source-examples.md +63 -0
- package/docs/paypal-save-payment-source.md +256 -0
- package/docs/ps-examples.md +129 -0
- package/docs/vault-display-example.md +132 -0
- package/docs/wallet-buttons-examples.md +638 -0
- package/docs/wallet-buttons-express-examples.md +201 -0
- package/docs/wallet-buttons-express.md +1076 -0
- package/docs/wallet-buttons.md +625 -0
- package/docs/wallet-cba-buttons-examples.md +388 -0
- package/docs/widget-examples.md +271 -0
- package/examples/html-widget/actions.html +47 -0
- package/examples/html-widget/events.html +2 -2
- package/examples/html-widget/form.html +2 -3
- package/examples/html-widget/html-styles.html +29 -0
- package/examples/html-widget/insert-input.html +2 -2
- package/examples/html-widget/optional-settings.html +30 -0
- package/examples/html-widget/simple.html +3 -3
- package/examples/html-widget/styles.html +3 -3
- package/examples/multi-html-widget/extend.html +7 -2
- package/examples/multi-html-widget/simple.html +6 -8
- package/package.json +225 -55
- package/slate.md +2218 -0
- package/.npmignore +0 -15
- package/lib/index.d.ts +0 -2
- package/lib/index.js +0 -3
- package/lib/index.js.map +0 -1
- package/lib/widget/components/container.d.ts +0 -9
- package/lib/widget/components/container.js +0 -18
- package/lib/widget/components/container.js.map +0 -1
- package/lib/widget/components/env.d.ts +0 -19
- package/lib/widget/components/env.js +0 -33
- package/lib/widget/components/env.js.map +0 -1
- package/lib/widget/components/event.d.ts +0 -26
- package/lib/widget/components/event.js +0 -49
- package/lib/widget/components/event.js.map +0 -1
- package/lib/widget/components/form-Interceptor.js +0 -38
- package/lib/widget/components/form-Interceptor.js.map +0 -1
- package/lib/widget/components/iframe.d.ts +0 -11
- package/lib/widget/components/iframe.js +0 -31
- package/lib/widget/components/iframe.js.map +0 -1
- package/lib/widget/components/link.d.ts +0 -13
- package/lib/widget/components/link.js +0 -37
- package/lib/widget/components/link.js.map +0 -1
- package/lib/widget/components/param.d.ts +0 -39
- package/lib/widget/components/param.js +0 -21
- package/lib/widget/components/param.js.map +0 -1
- package/lib/widget/components/trigger.d.ts +0 -19
- package/lib/widget/components/trigger.js +0 -22
- package/lib/widget/components/trigger.js.map +0 -1
- package/lib/widget/configuration.d.ts +0 -59
- package/lib/widget/configuration.js +0 -134
- package/lib/widget/configuration.js.map +0 -1
- package/lib/widget/helper/event.d.ts +0 -8
- package/lib/widget/helper/event.js +0 -15
- package/lib/widget/helper/event.js.map +0 -1
- package/lib/widget/helper/object.js +0 -6
- package/lib/widget/helper/object.js.map +0 -1
- package/lib/widget/helper/url.d.ts +0 -3
- package/lib/widget/helper/url.js +0 -8
- package/lib/widget/helper/url.js.map +0 -1
- package/lib/widget/html-multi-widget.d.ts +0 -56
- package/lib/widget/html-multi-widget.js +0 -89
- package/lib/widget/html-multi-widget.js.map +0 -1
- package/lib/widget/html-widget.d.ts +0 -37
- package/lib/widget/html-widget.js +0 -50
- package/lib/widget/html-widget.js.map +0 -1
- package/lib/widget/index.d.ts +0 -5
- package/lib/widget/index.js +0 -6
- package/lib/widget/index.js.map +0 -1
- package/lib/widget/multi-widget.d.ts +0 -22
- package/lib/widget/multi-widget.js +0 -83
- package/lib/widget/multi-widget.js.map +0 -1
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { IShippingOption, WALLET_TYPE } from './../components/param';
|
|
2
|
+
export interface IWalletPaymentSuccessful {
|
|
3
|
+
id: string;
|
|
4
|
+
amount: number;
|
|
5
|
+
currency: string;
|
|
6
|
+
status: string;
|
|
7
|
+
payer_name?: string;
|
|
8
|
+
payer_email?: string;
|
|
9
|
+
payer_phone?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface IWalletUnavailable {
|
|
12
|
+
wallet?: WALLET_TYPE;
|
|
13
|
+
}
|
|
14
|
+
export interface IWalletOnClick {
|
|
15
|
+
attachResult: (result: Promise<void> | boolean) => void;
|
|
16
|
+
}
|
|
17
|
+
export interface IWalletUpdate {
|
|
18
|
+
wallet_response_code?: string;
|
|
19
|
+
wallet_order_id?: string;
|
|
20
|
+
wallet_session_id?: string;
|
|
21
|
+
payment_source?: {
|
|
22
|
+
wallet_payment_method_id?: string;
|
|
23
|
+
card_number_last4?: string;
|
|
24
|
+
card_scheme?: string;
|
|
25
|
+
};
|
|
26
|
+
wallet_loyalty_account?: {
|
|
27
|
+
id?: string;
|
|
28
|
+
barcode?: string;
|
|
29
|
+
};
|
|
30
|
+
shipping?: {
|
|
31
|
+
address_line1?: string;
|
|
32
|
+
address_line2?: string;
|
|
33
|
+
address_postcode?: string;
|
|
34
|
+
address_city?: string;
|
|
35
|
+
address_state?: string;
|
|
36
|
+
address_country?: string;
|
|
37
|
+
address_company?: string;
|
|
38
|
+
post_office_box_number?: string;
|
|
39
|
+
wallet_address_id?: string;
|
|
40
|
+
wallet_address_name?: string;
|
|
41
|
+
wallet_address_created_timestamp?: string;
|
|
42
|
+
wallet_address_updated_timestamp?: string;
|
|
43
|
+
};
|
|
44
|
+
selected_shipping_option?: IShippingOption;
|
|
45
|
+
}
|
|
46
|
+
export interface IFlypayPaymentSuccessful {
|
|
47
|
+
transactionId?: string;
|
|
48
|
+
transactionStatus?: string;
|
|
49
|
+
transactionType: string;
|
|
50
|
+
transactionTimestamp?: string;
|
|
51
|
+
authorizationId?: string;
|
|
52
|
+
merchantOrderId?: string;
|
|
53
|
+
addressId?: string;
|
|
54
|
+
loyaltyAccountId?: string;
|
|
55
|
+
amount?: number;
|
|
56
|
+
currencyCode?: string;
|
|
57
|
+
merchantNumber?: string;
|
|
58
|
+
storeId?: string;
|
|
59
|
+
charge?: {
|
|
60
|
+
status?: string;
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
export interface IFlypayUpdate {
|
|
64
|
+
responseCode?: string;
|
|
65
|
+
sessionId?: string;
|
|
66
|
+
paymentMethodDetails?: {
|
|
67
|
+
paymentMethodId?: string;
|
|
68
|
+
lastFourDigitsOfPan?: string;
|
|
69
|
+
paymentScheme?: string;
|
|
70
|
+
};
|
|
71
|
+
loyaltyAccountSummary?: {
|
|
72
|
+
loyaltyAccountId?: string;
|
|
73
|
+
loyaltyAccountBarcode?: string;
|
|
74
|
+
};
|
|
75
|
+
deliveryAddressDetails?: {
|
|
76
|
+
addressId?: string;
|
|
77
|
+
addressLine?: string;
|
|
78
|
+
line1?: string;
|
|
79
|
+
line2?: string;
|
|
80
|
+
line3?: string;
|
|
81
|
+
postOfficeBoxNumber?: string;
|
|
82
|
+
postalCode?: string;
|
|
83
|
+
city?: string;
|
|
84
|
+
state?: string;
|
|
85
|
+
countryCode?: string;
|
|
86
|
+
createdTimestamp?: string;
|
|
87
|
+
updatedTimestamp?: string;
|
|
88
|
+
name?: string;
|
|
89
|
+
companyName?: string;
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
interface AfterPayCallBackData {
|
|
93
|
+
ref_token: string;
|
|
94
|
+
charge: {
|
|
95
|
+
status: string;
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
export interface ButtonColor {
|
|
99
|
+
background: string;
|
|
100
|
+
color: string;
|
|
101
|
+
}
|
|
102
|
+
export interface AfterpayCallback {
|
|
103
|
+
type: string;
|
|
104
|
+
data: AfterPayCallBackData;
|
|
105
|
+
}
|
|
106
|
+
export interface IPaypalUpdate {
|
|
107
|
+
orderID: string;
|
|
108
|
+
paymentID?: string;
|
|
109
|
+
paymentToken: string;
|
|
110
|
+
shipping_address: {
|
|
111
|
+
city?: string;
|
|
112
|
+
state?: string;
|
|
113
|
+
postal_code?: string;
|
|
114
|
+
country_code?: string;
|
|
115
|
+
};
|
|
116
|
+
selected_shipping_option?: {
|
|
117
|
+
id: string;
|
|
118
|
+
label: string;
|
|
119
|
+
selected: boolean;
|
|
120
|
+
type: 'SHIPPING' | 'PICKUP';
|
|
121
|
+
amount: {
|
|
122
|
+
currency_code: string;
|
|
123
|
+
value: string;
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
export {};
|
|
128
|
+
//# sourceMappingURL=interfaces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+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AE,UAAU,GAAG,QAAQ,CAAC;QAC5B,MAAM,EAAE;YACJ,aAAa,EAAE,MAAM,CAAC;YACtB,KAAK,EAAE,MAAM,CAAC;SACjB,CAAC;KACL,CAAC;CACL"}
|
|
@@ -0,0 +1,321 @@
|
|
|
1
|
+
import { ApiInternal } from "../api/api-internal";
|
|
2
|
+
import { Container } from "../components/container";
|
|
3
|
+
import { EventEmitter } from "../helper/event-emitter";
|
|
4
|
+
import { type IWalletService } from "./wallet-services/wallet-service";
|
|
5
|
+
import { type IWalletMeta } from "../components/param";
|
|
6
|
+
import type { IWalletOnClick, IWalletPaymentSuccessful, IWalletUnavailable, IWalletUpdate } from "./interfaces";
|
|
7
|
+
import { EventEnum } from './enums';
|
|
8
|
+
/**
|
|
9
|
+
* List of available event's name in the wallet button lifecycle
|
|
10
|
+
* @const EVENT
|
|
11
|
+
*
|
|
12
|
+
* @type {object}
|
|
13
|
+
* @param {string} UNAVAILABLE=unavailable
|
|
14
|
+
* @param {string} UPDATE=update
|
|
15
|
+
* @param {string} PAYMENT_SUCCESSFUL=paymentSuccessful
|
|
16
|
+
* @param {string} PAYMENT_ERROR=paymentError
|
|
17
|
+
* @param {string} ON_CLICK=onClick
|
|
18
|
+
*/
|
|
19
|
+
export declare const EVENT: {
|
|
20
|
+
UNAVAILABLE: EventEnum;
|
|
21
|
+
UPDATE: EventEnum;
|
|
22
|
+
PAYMENT_SUCCESSFUL: EventEnum;
|
|
23
|
+
PAYMENT_ERROR: EventEnum;
|
|
24
|
+
PAYMENT_IN_REVIEW: EventEnum;
|
|
25
|
+
AUTH_TOKENS_CHANGED: EventEnum;
|
|
26
|
+
ON_CLICK: EventEnum;
|
|
27
|
+
ON_CHECKOUT_OPEN: EventEnum;
|
|
28
|
+
ON_CHECKOUT_CLOSE: EventEnum;
|
|
29
|
+
};
|
|
30
|
+
export interface IEventData<T = any> {
|
|
31
|
+
event: string;
|
|
32
|
+
data: T;
|
|
33
|
+
}
|
|
34
|
+
export interface IWalletPaymentSuccessfulEvent extends IEventData<IWalletPaymentSuccessful> {
|
|
35
|
+
event: EventEnum.PAYMENT_SUCCESSFUL;
|
|
36
|
+
}
|
|
37
|
+
export interface IWalletUpdateEvent extends IEventData<IWalletUpdate> {
|
|
38
|
+
event: EventEnum.UPDATE;
|
|
39
|
+
}
|
|
40
|
+
export interface IWalletUnavailableEvent extends IEventData<IWalletUnavailable> {
|
|
41
|
+
event: EventEnum.UNAVAILABLE;
|
|
42
|
+
}
|
|
43
|
+
export interface IWalletOnClickEvent extends IEventData<IWalletOnClick> {
|
|
44
|
+
event: EventEnum.ON_CLICK;
|
|
45
|
+
}
|
|
46
|
+
export interface IWalletUpdateData {
|
|
47
|
+
success: boolean;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Class WalletButtons to work with different E-Wallets within html (currently supports Apple Pay, Google Pay, Google Pay™ and Apple Pay via Stripe, Flypay, Flypay V2, Paypal, Afterpay)
|
|
51
|
+
* @constructor
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* var button = new WalletButtons('#wallet-buttons', 'charge-token', { amount_label: 'Total', country: 'us' });
|
|
55
|
+
*
|
|
56
|
+
* @param {string} selector - Selector of html element. Container for the WalletButtons.
|
|
57
|
+
* @param {string} chargeToken - token for the wallet transaction, created with a secure call to `POST charges/wallet`.
|
|
58
|
+
* @param {IWalletMeta} meta - data that configures the E-Wallet, which can be shown on checkout page and configures required customer information.
|
|
59
|
+
*/
|
|
60
|
+
declare class WalletButtons {
|
|
61
|
+
protected container: Container;
|
|
62
|
+
protected api: ApiInternal;
|
|
63
|
+
protected service: IWalletService;
|
|
64
|
+
protected eventEmitter: EventEmitter;
|
|
65
|
+
protected hasUpdateHandler: boolean;
|
|
66
|
+
/** @constructs */ constructor(selector: string, chargeToken: string, meta: IWalletMeta);
|
|
67
|
+
/**
|
|
68
|
+
* Initializes the availability checks and inserts the button if possible.
|
|
69
|
+
* Otherwise function onUnavailable(handler: VoidFunction) will be called.
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* var button = new WalletButtons(
|
|
73
|
+
* '#buttons',
|
|
74
|
+
* token,
|
|
75
|
+
* {
|
|
76
|
+
* amount_label: 'Total',
|
|
77
|
+
* country: 'DE',
|
|
78
|
+
* }
|
|
79
|
+
* );
|
|
80
|
+
* button.load();
|
|
81
|
+
*/
|
|
82
|
+
load(): void;
|
|
83
|
+
/**
|
|
84
|
+
* Triggers the update process of the wallet, if available.
|
|
85
|
+
* Currently supported by Flypay, Paypal and ApplePay/GooglePay via MPGS Wallets.
|
|
86
|
+
*
|
|
87
|
+
* @example
|
|
88
|
+
* var button = new WalletButtons(
|
|
89
|
+
* '#buttons',
|
|
90
|
+
* token,
|
|
91
|
+
* {
|
|
92
|
+
* amount_label: 'Total',
|
|
93
|
+
* country: 'DE',
|
|
94
|
+
* }
|
|
95
|
+
* );
|
|
96
|
+
* button.on('update', (data) => {
|
|
97
|
+
* updateChargeAmountInBackend(data);
|
|
98
|
+
* button.update({ success: true });
|
|
99
|
+
* });
|
|
100
|
+
*
|
|
101
|
+
* @example
|
|
102
|
+
* // ApplePay via MPGS example:
|
|
103
|
+
* var button = new WalletButtons(
|
|
104
|
+
* '#buttons',
|
|
105
|
+
* token,
|
|
106
|
+
* {
|
|
107
|
+
* amount_label: 'Total',
|
|
108
|
+
* country: 'AU',
|
|
109
|
+
* ...
|
|
110
|
+
* }
|
|
111
|
+
* );
|
|
112
|
+
* button.on('update', (data) => {
|
|
113
|
+
* updateChargeAmountInBackend(data);
|
|
114
|
+
* button.update({
|
|
115
|
+
* success: true,
|
|
116
|
+
* body: {
|
|
117
|
+
* amount: 15,
|
|
118
|
+
* shipping_options: [
|
|
119
|
+
* {
|
|
120
|
+
* id: "NEW-FreeShip",
|
|
121
|
+
* label: "NEW - Free Shipping",
|
|
122
|
+
* detail: "Arrives in 3 to 5 days",
|
|
123
|
+
* amount: "0.00"
|
|
124
|
+
* },
|
|
125
|
+
* {
|
|
126
|
+
* id: "NEW - FastShip",
|
|
127
|
+
* label: "NEW - Fast Shipping",
|
|
128
|
+
* detail: "Arrives in less than 1 day",
|
|
129
|
+
* amount: "10.00"
|
|
130
|
+
* }
|
|
131
|
+
* ]
|
|
132
|
+
* }
|
|
133
|
+
* });
|
|
134
|
+
* });
|
|
135
|
+
*/
|
|
136
|
+
update(data: IWalletUpdateData): void;
|
|
137
|
+
/**
|
|
138
|
+
* Current method can change environment. By default environment = sandbox.
|
|
139
|
+
* Also we can change domain alias for this environment. By default domain_alias = paydock.com
|
|
140
|
+
* Bear in mind that you must set an environment before calling `button.load()`.
|
|
141
|
+
*
|
|
142
|
+
* @example
|
|
143
|
+
* button.setEnv('production', 'paydock.com');
|
|
144
|
+
* @param {string} env - sandbox, production
|
|
145
|
+
* @param {string} [alias] - Own domain alias
|
|
146
|
+
*/
|
|
147
|
+
setEnv(env: string, alias?: string): void;
|
|
148
|
+
/**
|
|
149
|
+
* Current method can enable the payment button. This method is only supported for Flypay V2.
|
|
150
|
+
*
|
|
151
|
+
* @example
|
|
152
|
+
* button.enable();
|
|
153
|
+
*/
|
|
154
|
+
enable(): void;
|
|
155
|
+
/**
|
|
156
|
+
* Current method can disable the payment button. This method is only supported for Flypay V2.
|
|
157
|
+
*
|
|
158
|
+
* @example
|
|
159
|
+
* button.disable('production', 'paydock.com');
|
|
160
|
+
*/
|
|
161
|
+
disable(): void;
|
|
162
|
+
/**
|
|
163
|
+
* Closes the checkout forcibly. Currently supported in Flypay wallet.
|
|
164
|
+
*
|
|
165
|
+
* @example
|
|
166
|
+
* button.close();
|
|
167
|
+
*/
|
|
168
|
+
close(): void;
|
|
169
|
+
on(eventName: string): Promise<IEventData>;
|
|
170
|
+
on(eventName: string, cb: (data: IEventData) => void): any;
|
|
171
|
+
/**
|
|
172
|
+
* User to subscribe to the no button available event. This method is used after loading when the button is not available.
|
|
173
|
+
* For MPGS, since can have more than one wallet button configured (ApplePay/GooglePay) you will receive a body (({ wallet: WALLET_TYPE.GOOGLE }) or ({ wallet: WALLET_TYPE.APPLE })) indicating which button is unavailable
|
|
174
|
+
* Important: Do not perform thread blocking operations in callback such as window.alert() calls.
|
|
175
|
+
*
|
|
176
|
+
* @example
|
|
177
|
+
* button.onUnavailable(() => {
|
|
178
|
+
* console.log('No wallet buttons available');
|
|
179
|
+
* });
|
|
180
|
+
*
|
|
181
|
+
* @example
|
|
182
|
+
* button.onUnavailable().then(() => console.log('No wallet buttons available'));
|
|
183
|
+
*
|
|
184
|
+
* @example
|
|
185
|
+
* button.onUnavailable(function (data) {console.log('data.wallet :: ', data.wallet)});
|
|
186
|
+
*
|
|
187
|
+
* @param {listener} [handler] - Function to be called when no button is available.
|
|
188
|
+
*/
|
|
189
|
+
onUnavailable(handler?: (data: IWalletUnavailableEvent) => void): Promise<void> | (() => void);
|
|
190
|
+
/**
|
|
191
|
+
* If the wallet performs some update in the checkout process, the function passed as parameter will be called.
|
|
192
|
+
*
|
|
193
|
+
* NOTE: make sure to call the `button.update(result)` method on handler completion.
|
|
194
|
+
*
|
|
195
|
+
* @example
|
|
196
|
+
* button.onUpdate((data) => {
|
|
197
|
+
* button.update({ success: true });
|
|
198
|
+
* });
|
|
199
|
+
*
|
|
200
|
+
* @example
|
|
201
|
+
* button.onUpdate().then((data) => throw new Error());
|
|
202
|
+
*
|
|
203
|
+
* @param {listener} [handler] - Function to be called when the payment was successful.
|
|
204
|
+
*/
|
|
205
|
+
onUpdate(handler?: (data: IWalletUpdateEvent) => void): Promise<unknown> | (() => void);
|
|
206
|
+
/**
|
|
207
|
+
* If the payment was successful, the function passed as parameter will be called.
|
|
208
|
+
* Important: Do not perform thread blocking operations in callback such as window.alert() calls.
|
|
209
|
+
*
|
|
210
|
+
* @example
|
|
211
|
+
* button.onPaymentSuccessful((data) => {
|
|
212
|
+
* console.log('Payment successful!');
|
|
213
|
+
* });
|
|
214
|
+
*
|
|
215
|
+
* @example
|
|
216
|
+
* button.onPaymentSuccessful().then((data) => console.log('Payment successful!'));
|
|
217
|
+
*
|
|
218
|
+
* @param {listener} [handler] - Function to be called when the payment was successful.
|
|
219
|
+
*/
|
|
220
|
+
onPaymentSuccessful(handler?: (data: IWalletPaymentSuccessfulEvent) => void): Promise<unknown> | (() => void);
|
|
221
|
+
/**
|
|
222
|
+
* If the payment was left in fraud review, the function passed as parameter will be called.
|
|
223
|
+
* Important: Do not perform thread blocking operations in callback such as window.alert() calls.
|
|
224
|
+
*
|
|
225
|
+
* @example
|
|
226
|
+
* button.onPaymentInReview((data) => {
|
|
227
|
+
* console.log('Payment in fraud review');
|
|
228
|
+
* });
|
|
229
|
+
*
|
|
230
|
+
* @example
|
|
231
|
+
* button.onPaymentInReview().then((data) => console.log('Payment in fraud review'));
|
|
232
|
+
*
|
|
233
|
+
* @param {listener} [handler] - Function to be called when the payment was left in fraud review status.
|
|
234
|
+
*/
|
|
235
|
+
onPaymentInReview(handler?: (err: IEventData) => void): Promise<unknown> | (() => void);
|
|
236
|
+
/**
|
|
237
|
+
* If the payment was not successful, the function passed as parameter will be called.
|
|
238
|
+
* Important: Do not perform thread blocking operations in callback such as window.alert() calls.
|
|
239
|
+
*
|
|
240
|
+
* @example
|
|
241
|
+
* button.onPaymentError((err) => {
|
|
242
|
+
* console.log('Payment not successful');
|
|
243
|
+
* });
|
|
244
|
+
*
|
|
245
|
+
* @example
|
|
246
|
+
* button.onPaymentError().then((err) => console.log('Payment not successful'));
|
|
247
|
+
*
|
|
248
|
+
* @param {listener} [handler] - Function to be called when the payment was not successful.
|
|
249
|
+
*/
|
|
250
|
+
onPaymentError(handler?: (err: IEventData) => void): Promise<unknown> | (() => void);
|
|
251
|
+
/**
|
|
252
|
+
* Registers a callback function to be invoked when authentication tokens are changed.
|
|
253
|
+
* This function allows you to respond to changes in authentication tokens, such as when a user logs in.
|
|
254
|
+
*
|
|
255
|
+
* @example
|
|
256
|
+
* button.onAuthTokensChanged((eventData) => {
|
|
257
|
+
* console.log('Authentication tokens changed:', eventData);
|
|
258
|
+
* });
|
|
259
|
+
*
|
|
260
|
+
* @example
|
|
261
|
+
* button.onAuthTokensChanged().then((eventData) => {
|
|
262
|
+
* console.log('Authentication tokens changed:', eventData);
|
|
263
|
+
* });
|
|
264
|
+
*
|
|
265
|
+
* @param {listener} [handler] - Function to be called when authentication tokens are changed.
|
|
266
|
+
*/
|
|
267
|
+
onAuthTokensChanged(handler?: (err: IEventData) => void): Promise<unknown> | (() => void);
|
|
268
|
+
/**
|
|
269
|
+
* Registers a callback function to be invoked when the wallet button gets clicked.
|
|
270
|
+
* There are two operational modes supported, Synchronous and Asynchronous.
|
|
271
|
+
* When asynchronous operations need to occur on the callback handler, attaching the Promise via `attachResult` is required to have the wallet wait for a result.
|
|
272
|
+
* When synchronous operations occur on the callback handler, attaching a boolean result via `attachResult` is optional to control the execution flow.
|
|
273
|
+
* Note this is supported for Paypal, GooglePay and ApplePay wallet buttons at the moment.
|
|
274
|
+
*
|
|
275
|
+
* @example
|
|
276
|
+
* button.onClick((data) => {
|
|
277
|
+
* performValidationLogic();
|
|
278
|
+
* });
|
|
279
|
+
*
|
|
280
|
+
* @param {listener} handler - Function to be called when the wallet button is clicked.
|
|
281
|
+
*/
|
|
282
|
+
onClick(handler: (data: IWalletOnClickEvent) => void): () => void;
|
|
283
|
+
/**
|
|
284
|
+
* Registers a callback function to be invoked when the wallet checkout opens.
|
|
285
|
+
* Note this is supported for FlypayV2 wallet button at the moment.
|
|
286
|
+
*
|
|
287
|
+
* @example
|
|
288
|
+
* button.onCheckoutOpen((data) => {
|
|
289
|
+
* console.log('Checkout opens');
|
|
290
|
+
* });
|
|
291
|
+
*
|
|
292
|
+
* @param {listener} handler - Function to be called when the wallet checkout opens.
|
|
293
|
+
*/
|
|
294
|
+
onCheckoutOpen(handler?: (err: IEventData) => void): Promise<unknown> | (() => void);
|
|
295
|
+
/**
|
|
296
|
+
* Registers a callback function to be invoked when the wallet checkout closes.
|
|
297
|
+
* Note this is supported for FlypayV2 wallet button at the moment.
|
|
298
|
+
*
|
|
299
|
+
* @example
|
|
300
|
+
* button.onCheckoutClose(() => {
|
|
301
|
+
* console.log('Wallet checkout closes');
|
|
302
|
+
* });
|
|
303
|
+
*
|
|
304
|
+
* @param {listener} handler - Function to be called when the wallet checkout closes.
|
|
305
|
+
*/
|
|
306
|
+
onCheckoutClose(handler?: (err: IEventData) => void): Promise<unknown> | (() => void);
|
|
307
|
+
private setupServiceCallbacks;
|
|
308
|
+
private setupUnavailableCallback;
|
|
309
|
+
private setupUpdateCallback;
|
|
310
|
+
private setupOnClickCallback;
|
|
311
|
+
private setupOnCheckoutOpenCallback;
|
|
312
|
+
private setupOnCheckoutCloseCallback;
|
|
313
|
+
private setupWalletCallback;
|
|
314
|
+
private setupPaymentCallback;
|
|
315
|
+
private setupPaymentSuccessCallback;
|
|
316
|
+
private setupPaymentInReviewCallback;
|
|
317
|
+
private setupPaymentErrorCallback;
|
|
318
|
+
private setupAuthTokensChangedCallback;
|
|
319
|
+
}
|
|
320
|
+
export { WalletButtons };
|
|
321
|
+
//# sourceMappingURL=wallet-buttons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallet-buttons.d.ts","sourceRoot":"","sources":["../../src/wallet-buttons/wallet-buttons.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAiB,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAMvD,OAAO,EAA6E,KAAK,cAAc,EAAgB,MAAM,kCAAkC,CAAC;AAChK,OAAO,EAAE,KAAK,WAAW,EAAyC,MAAM,qBAAqB,CAAC;AAC9F,OAAO,KAAK,EAAE,cAAc,EAAE,wBAAwB,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAChH,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC;;;;;;;;;;GAUG;AACH,eAAO,MAAM,KA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