@paydock/client-sdk 0.1.0 → 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/.idea/client-sdk-3.iml +0 -12
- package/.idea/jsLibraryMappings.xml +0 -7
- package/.idea/misc.xml +0 -16
- package/.idea/modules.xml +0 -8
- package/.idea/vcs.xml +0 -6
- package/.idea/workspace.xml +0 -639
- package/.npmignore +0 -14
- 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,337 @@
|
|
|
1
|
+
import { Container } from "../components/container";
|
|
2
|
+
import { IFrame } from "../components/iframe";
|
|
3
|
+
import { type IEventData } from "../components/iframe-event";
|
|
4
|
+
import { type IFormValidation, type IFormValues, type ValidatorFieldsMapKey } from '../components/param';
|
|
5
|
+
import { type ITriggerData, Trigger } from "../components/trigger";
|
|
6
|
+
import { MultiWidget } from "./multi-widget";
|
|
7
|
+
export interface IEventMetaData extends IEventData {
|
|
8
|
+
configuration_token: string;
|
|
9
|
+
type: string;
|
|
10
|
+
account_name?: string;
|
|
11
|
+
account_number?: string;
|
|
12
|
+
card_number_last4?: string;
|
|
13
|
+
card_number_length?: number;
|
|
14
|
+
card_scheme?: string;
|
|
15
|
+
gateway_type?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface IEventAfterLoadData extends IEventData {
|
|
18
|
+
}
|
|
19
|
+
export interface IEventFinishData extends IEventData {
|
|
20
|
+
payment_source: string;
|
|
21
|
+
payment_source_token?: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Interface of data from validation event.
|
|
25
|
+
*
|
|
26
|
+
* @interface IFormValidation
|
|
27
|
+
*
|
|
28
|
+
* @param {string} event The name of the event.
|
|
29
|
+
* @param {string} message_source A system variable that identifies the event source.
|
|
30
|
+
* @param {string} purpose A system variable that states the purpose of the event.
|
|
31
|
+
* @param {string} [ref_id] Custom unique value that identifies result of processed operation.
|
|
32
|
+
* @param {boolean} [form_valid] Indicates wether or not the form is valid.
|
|
33
|
+
* @param {Array<string>} [invalid_fields] Names of form fields with invalid data.
|
|
34
|
+
* @param {Array<string>} [invalid_showed_fields] Names of invalid form fields which are already displaying the error.
|
|
35
|
+
* @param {Partial<Record<CardValidatorValue | GenericValidatorValue, Array<string>>>} [validators] Object containing validator identifiers as keys and the fields subject to that validator as an array of form field names.
|
|
36
|
+
* See list of available [Generic Vallidators]{@link GENERIC_VALIDATORS} and [Card Validators]{@link CARD_VALIDATORS},
|
|
37
|
+
*/
|
|
38
|
+
/**
|
|
39
|
+
* Contains basic information associated with the event and additional meta data
|
|
40
|
+
* specific to the event. E.g., card info, gateway info, etc.
|
|
41
|
+
*
|
|
42
|
+
* @interface IEventMetaData
|
|
43
|
+
*
|
|
44
|
+
* @param {string} event The name of the event.
|
|
45
|
+
* @param {string} purpose A system variable that states the purpose of the event.
|
|
46
|
+
* @param {string} message_source A system variable that identifies the event source.
|
|
47
|
+
* @param {string} [ref_id] Custom unique value that identifies result of processed operation.
|
|
48
|
+
* @param {string} configuration_token Token received from our API with widget data
|
|
49
|
+
* @param {string} type Payment type 'card', 'bank_account'
|
|
50
|
+
* @param {string} gateway_type Gateway type
|
|
51
|
+
* @param {string} [card_number_last4] Last 4 digit of your card
|
|
52
|
+
* @param {string} [card_scheme] Card scheme, e.g., (Visa, Mastercard and American Express (AmEx))
|
|
53
|
+
* @param {number} [card_number_length] Card number length
|
|
54
|
+
* @param {string} [account_name] Bank account account name
|
|
55
|
+
* @param {string} [account_number] Bank account account number
|
|
56
|
+
* */
|
|
57
|
+
/**
|
|
58
|
+
* Interface of data from event.
|
|
59
|
+
* @interface IEventAfterLoadData
|
|
60
|
+
*
|
|
61
|
+
* @param {string} event The name of the event.
|
|
62
|
+
* @param {string} purpose A system variable that states the purpose of the event.
|
|
63
|
+
* @param {string} message_source A system variable that identifies the event source.
|
|
64
|
+
* @param {string} [ref_id] Custom unique value that identifies result of processed operation.
|
|
65
|
+
* */
|
|
66
|
+
/**
|
|
67
|
+
* Interface of data from event.
|
|
68
|
+
* @interface IEventFinishData
|
|
69
|
+
*
|
|
70
|
+
* @param {string} event The name of the event.
|
|
71
|
+
* @param {string} purpose A system variable that states the purpose of the event.
|
|
72
|
+
* @param {string} message_source A system variable that identifies the event source.
|
|
73
|
+
* @param {string} [ref_id] Custom unique value that identifies result of processed operation.
|
|
74
|
+
* @param {string} payment_source One time token. Result from this endpoint [API docs](https://docs.paydock.com/#tokens)
|
|
75
|
+
* */
|
|
76
|
+
/**
|
|
77
|
+
* List of available event's name
|
|
78
|
+
* @const EVENT
|
|
79
|
+
*
|
|
80
|
+
* @type {object}
|
|
81
|
+
* @param {string} AFTER_LOAD=afterLoad
|
|
82
|
+
* @param {string} SUBMIT=submit
|
|
83
|
+
* @param {string} FINISH=finish
|
|
84
|
+
* @param {string} VALIDATION=validation
|
|
85
|
+
* @param {string} VALIDATION_ERROR=validationError
|
|
86
|
+
* @param {string} SYSTEM_ERROR=systemError
|
|
87
|
+
* @param {string} META_CHANGE=metaChange
|
|
88
|
+
* @param {string} RESIZE=resize
|
|
89
|
+
*/
|
|
90
|
+
/**
|
|
91
|
+
* List of available event's name
|
|
92
|
+
* @const VAULT_DISPLAY_EVENT
|
|
93
|
+
*
|
|
94
|
+
* @type {object}
|
|
95
|
+
* @param {string} AFTER_LOAD=afterLoad
|
|
96
|
+
* @param {string} SYSTEM_ERROR=system_error
|
|
97
|
+
* @param {string} CVV_SECURE_CODE_REQUESTED=cvv_secure_code_requested
|
|
98
|
+
* @param {string} CARD_NUMBER_SECURE_CODE_REQUESTED=card_number_secure_code_requested
|
|
99
|
+
* @param {string} ACCESS_FORBIDDEN=access_forbidden
|
|
100
|
+
* @param {string} SESSION_EXPIRED=systemError
|
|
101
|
+
* @param {string} SYSTEM_ERROR=session_expired
|
|
102
|
+
* @param {string} OPERATION_FORBIDDEN=operation_forbidden
|
|
103
|
+
*/
|
|
104
|
+
/**
|
|
105
|
+
* Class HtmlMultiWidget include method for working with html
|
|
106
|
+
* @constructor
|
|
107
|
+
* @extends MultiWidget
|
|
108
|
+
*
|
|
109
|
+
* @param {string} selector - Selector of html element. Container for widget
|
|
110
|
+
* @param {string} publicKey - PayDock users public key
|
|
111
|
+
* @param {(Configuration | string | Configuration[] | string[])} conf - exemplar[s] Configuration class OR configuration token
|
|
112
|
+
* @example
|
|
113
|
+
* var widget = new MultiWidget('#widget', 'publicKey','configurationToken'); // With a pre-created configuration token
|
|
114
|
+
*
|
|
115
|
+
* var widget = new MultiWidget('#widget', 'publicKey',['configurationToken', 'configurationToken2']); // With pre-created configuration tokens
|
|
116
|
+
*
|
|
117
|
+
* var widget = new MultiWidget('#widget', 'publicKey', new Configuration('gatewayId')); With Configuration
|
|
118
|
+
*
|
|
119
|
+
* var widget = new MultiWidget('#widget', 'publicKey',[ With Configurations
|
|
120
|
+
* Configuration(), // default gateway_id,
|
|
121
|
+
* Configuration('not_configured'), // without gateway,
|
|
122
|
+
* Configuration('gatewayId'),
|
|
123
|
+
* Configuration('gatewayId', 'bank_account')
|
|
124
|
+
* ]);
|
|
125
|
+
*/
|
|
126
|
+
declare class HtmlMultiWidget extends MultiWidget {
|
|
127
|
+
protected container: Container;
|
|
128
|
+
protected iFrame: IFrame;
|
|
129
|
+
protected triggerElement: Trigger;
|
|
130
|
+
protected validationData: IFormValidation;
|
|
131
|
+
/** @constructs */ constructor(selector: string, publicKey: string, conf: any);
|
|
132
|
+
/**
|
|
133
|
+
* Loads the widget.
|
|
134
|
+
*
|
|
135
|
+
* Calling this method results in an iframe element being inserted and rendered in the DOM.
|
|
136
|
+
*/
|
|
137
|
+
load(): void;
|
|
138
|
+
/**
|
|
139
|
+
* Registers a form validation callback for validation events.
|
|
140
|
+
*/
|
|
141
|
+
protected afterLoad(): void;
|
|
142
|
+
/**
|
|
143
|
+
* Listen to events of widget
|
|
144
|
+
*
|
|
145
|
+
* @example
|
|
146
|
+
*
|
|
147
|
+
* ```javascript
|
|
148
|
+
* widget.on('form_submit', function (data) {
|
|
149
|
+
* console.log(data);
|
|
150
|
+
* });
|
|
151
|
+
* ```
|
|
152
|
+
*
|
|
153
|
+
* @example
|
|
154
|
+
*
|
|
155
|
+
* ```javascript
|
|
156
|
+
* widget.on('form_submit').then(function (data) {
|
|
157
|
+
* console.log(data);
|
|
158
|
+
* });
|
|
159
|
+
* ```
|
|
160
|
+
*
|
|
161
|
+
* @typedef {(data: IEventData | IEventMetaData | IEventFinishData | IFormValidation) => void} EventListenerCallback
|
|
162
|
+
*
|
|
163
|
+
* @param {string} eventName - The name of the event that should be listened. Available event names [EVENT]{@link EVENT}.
|
|
164
|
+
* @param {EventListenerCallback} [cb] - A function to be invoked whenever the event occurs.
|
|
165
|
+
*
|
|
166
|
+
* @return {Promise<IEventData | IEventMetaData | IEventFinishData | IFormValidation> | void}
|
|
167
|
+
*/
|
|
168
|
+
on(eventName: string): Promise<IEventData | IEventMetaData | IEventFinishData | IFormValidation>;
|
|
169
|
+
on(eventName: string, cb: (data: IEventData | IEventMetaData | IEventFinishData | IFormValidation) => void): any;
|
|
170
|
+
/**
|
|
171
|
+
* Registers callback that will be invoked for every trigger.
|
|
172
|
+
*
|
|
173
|
+
* @param {'submit_form' | 'tab'} triggers - The Widget element identifier that caused the trigger.
|
|
174
|
+
* @param {ITriggerData} data - Data that will be sent to the widget when the trigger occurs.
|
|
175
|
+
*/
|
|
176
|
+
trigger(triggerName: string, data?: ITriggerData): void;
|
|
177
|
+
/**
|
|
178
|
+
* Gets a reference to the form current validation state.
|
|
179
|
+
*
|
|
180
|
+
* !Warning: do not directly modify the values of the returned object.
|
|
181
|
+
*
|
|
182
|
+
* @return {IFormValidation} Form validation object
|
|
183
|
+
*/
|
|
184
|
+
getValidationState(): IFormValidation;
|
|
185
|
+
/**
|
|
186
|
+
* Checks if a given form is valid.
|
|
187
|
+
*
|
|
188
|
+
* A form is valid if all form fields are valid.
|
|
189
|
+
*
|
|
190
|
+
* @return {boolean} Indicates wether or not form is valid.
|
|
191
|
+
*/
|
|
192
|
+
isValidForm(): boolean;
|
|
193
|
+
/**
|
|
194
|
+
* Using this method you can check if a specific form field is invalid
|
|
195
|
+
*
|
|
196
|
+
* @param {string} field - Field name
|
|
197
|
+
* @return {boolean} Field is invalid
|
|
198
|
+
*/
|
|
199
|
+
isInvalidField(field?: string): boolean;
|
|
200
|
+
/**
|
|
201
|
+
* Checks if a given form field is displaying an error.
|
|
202
|
+
*
|
|
203
|
+
* @param {string} field - The form field name
|
|
204
|
+
*
|
|
205
|
+
* @return {boolean} Indicates wether or not the Error message is being displayed on the associated field.
|
|
206
|
+
*/
|
|
207
|
+
isFieldErrorShowed(field?: string): boolean;
|
|
208
|
+
/**
|
|
209
|
+
* Checks if a given form field is valid or invalid by name.
|
|
210
|
+
*
|
|
211
|
+
* @param {string} field - The form field name
|
|
212
|
+
* @param validator - The name of the validator.
|
|
213
|
+
*
|
|
214
|
+
* @return {boolean} Indicates wether or not the field is invalid based on validator intepretation.
|
|
215
|
+
*/
|
|
216
|
+
isInvalidFieldByValidator(field: string, validator: ValidatorFieldsMapKey): boolean;
|
|
217
|
+
/**
|
|
218
|
+
* Hides the widget.
|
|
219
|
+
*
|
|
220
|
+
* E.g., use this method to hide the widget after it loads.
|
|
221
|
+
*
|
|
222
|
+
* @param {boolean} [saveSize=false] Wether the original iframe element size should be saved before being hidden.
|
|
223
|
+
*/
|
|
224
|
+
hide(saveSize: boolean): void;
|
|
225
|
+
/**
|
|
226
|
+
* Shows the widget.
|
|
227
|
+
*
|
|
228
|
+
* E.g., use this method to show the widget after it was explicitly hidden.
|
|
229
|
+
*/
|
|
230
|
+
show(): void;
|
|
231
|
+
/**
|
|
232
|
+
* Reloads the widget.
|
|
233
|
+
*/
|
|
234
|
+
reload(): void;
|
|
235
|
+
/**
|
|
236
|
+
* Hides the specified Widget elements by their identifier.
|
|
237
|
+
*
|
|
238
|
+
* @example
|
|
239
|
+
*
|
|
240
|
+
* ```javascript
|
|
241
|
+
* widget.hideElements(['submit_button', 'email']);
|
|
242
|
+
* ```
|
|
243
|
+
*
|
|
244
|
+
* @param {string[]} elements - List of element which can be hidden [ELEMENT]{@link ELEMENT} || [FORM_FIELD]{@link FORM_FIELD}
|
|
245
|
+
*/
|
|
246
|
+
hideElements(elements: string[]): void;
|
|
247
|
+
/**
|
|
248
|
+
* Shows the specified Widget elements by their identifier.
|
|
249
|
+
*
|
|
250
|
+
* @example
|
|
251
|
+
*
|
|
252
|
+
* ```javascript
|
|
253
|
+
* widget.showElements(['submit_button', 'email']);
|
|
254
|
+
* ```
|
|
255
|
+
*
|
|
256
|
+
* @param {string[]} elements - List of elements which can be showed [ELEMENT]{@link ELEMENT} || [FORM_FIELD]{@link FORM_FIELD}
|
|
257
|
+
*/
|
|
258
|
+
showElements(elements: string[]): void;
|
|
259
|
+
/**
|
|
260
|
+
* Updates the form field values inside the widget.
|
|
261
|
+
*
|
|
262
|
+
* @example
|
|
263
|
+
*
|
|
264
|
+
* ```javascript
|
|
265
|
+
* widget.updateFormValues({
|
|
266
|
+
* email: 'predefined@email.com',
|
|
267
|
+
* card_name: 'Houston'
|
|
268
|
+
* });
|
|
269
|
+
*```
|
|
270
|
+
*
|
|
271
|
+
* @param {IFormValues} fieldValues - Fields with values
|
|
272
|
+
*/
|
|
273
|
+
updateFormValues(fieldValues: IFormValues): void;
|
|
274
|
+
/**
|
|
275
|
+
* Updates a single form field values inside the widget by the form field name.
|
|
276
|
+
*
|
|
277
|
+
* @example
|
|
278
|
+
*
|
|
279
|
+
* ```javascript
|
|
280
|
+
* widget.updateFormValue("card_name", "John Doe");
|
|
281
|
+
*```
|
|
282
|
+
*
|
|
283
|
+
* @param {string} key - The form field name
|
|
284
|
+
* @param {string} value - The form field value
|
|
285
|
+
*/
|
|
286
|
+
updateFormValue(key: string, value: string): void;
|
|
287
|
+
/**
|
|
288
|
+
* Inserts the event data (after finish event) onto the input field associated with the provided CSS selector.
|
|
289
|
+
*
|
|
290
|
+
* @param {string} selector - A CSS selector. E.g., ".my-class", "#my-id", or others
|
|
291
|
+
* @param {string} dataType - The data type of IEventData object.
|
|
292
|
+
*/
|
|
293
|
+
onFinishInsert(selector: string, dataType: string): void;
|
|
294
|
+
/**
|
|
295
|
+
* Intercepts a form submission and delegates processing to the widget.
|
|
296
|
+
*
|
|
297
|
+
* An simplified example of the process:
|
|
298
|
+
* - User clicks submit button in your form
|
|
299
|
+
* - This implicitly triggers a submission to the widget
|
|
300
|
+
* - The widget submits your form
|
|
301
|
+
*
|
|
302
|
+
* @note The widget's submit button will be hidden.
|
|
303
|
+
*
|
|
304
|
+
* @param {string} selector - css selector of your form
|
|
305
|
+
*
|
|
306
|
+
* @example
|
|
307
|
+
*
|
|
308
|
+
* ```html
|
|
309
|
+
* <body>
|
|
310
|
+
* <form id="myForm">
|
|
311
|
+
* <input name="amount">
|
|
312
|
+
* <button type="submit">Submit</button>
|
|
313
|
+
* </form>
|
|
314
|
+
* <script>
|
|
315
|
+
* widget.interceptSubmitForm('#myForm');
|
|
316
|
+
* </script>
|
|
317
|
+
* </body>
|
|
318
|
+
* ```
|
|
319
|
+
*/
|
|
320
|
+
interceptSubmitForm(selector: string): void;
|
|
321
|
+
/**
|
|
322
|
+
* This method hides a submit button and automatically execute form submit
|
|
323
|
+
*/
|
|
324
|
+
useCheckoutAutoSubmit(): void;
|
|
325
|
+
/**
|
|
326
|
+
* Use this method for resize iFrame according content height
|
|
327
|
+
*
|
|
328
|
+
* @example
|
|
329
|
+
*
|
|
330
|
+
* ```javascript
|
|
331
|
+
* widget.useAutoResize();
|
|
332
|
+
*```
|
|
333
|
+
*/
|
|
334
|
+
useAutoResize(): void;
|
|
335
|
+
}
|
|
336
|
+
export { HtmlMultiWidget };
|
|
337
|
+
//# sourceMappingURL=html-multi-widget.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"html-multi-widget.d.ts","sourceRoot":"","sources":["../../src/widget/html-multi-widget.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEpD,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAQ,KAAK,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAsB,KAAK,eAAe,EAAE,KAAK,WAAW,EAA0C,KAAK,qBAAqB,EAAC,MAAM,qBAAqB,CAAC;AACpK,OAAO,EAAE,KAAK,YAAY,EAAW,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAI5E,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,WAAW,cAAe,SAAQ,UAAU;IAC9C,mBAAmB,EAAE,MAAM,CAAC;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB;AAGD,MAAM,WAAW,mBAAqB,SAAQ,UAAU;CAAI;AAE5D,MAAM,WAAW,gBAAiB,SAAQ,UAAU;IAChD,cAAc,EAAE,MAAM,CAAC;IACvB,oBAAoB,CAAC,EAAE,MAAM,CAAA;CAChC;AAGD;;;;;;;;;;;;;;GAcG;AAEH;;;;;;;;;;;;;;;;;;KAkBK;AAGL;;;;;;;;KAQK;AAGL;;;;;;;;;KASK;AAGL;;;;;;;;;;;;;GAaG;AAGH;;;;;;;;;;;;;GAaG;AAGH;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,cAAM,eAAgB,SAAQ,WAAW;IAErC,SAAS,CAAC,SAAS,EAAE,SAAS,CAAC;IAC/B,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,cAAc,EAAE,OAAO,CAAC;IAClC,SAAS,CAAC,cAAc,EAAE,eAAe,CAAM;IAE/C,kBAAkB,aACN,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG;IAO1D;;;;OAIG;IACI,IAAI;IAkBX;;OAEG;IACH,SAAS,CAAC,SAAS;IAMnB;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACI,EAAE,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,GAAG,cAAc,GAAG,gBAAgB,GAAG,eAAe,CAAC;IAChG,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,IAAI,EAAE,UAAU,GAAG,cAAc,GAAG,gBAAgB,GAAG,eAAe,KAAK,IAAI;IAQjH;;;;;OAKG;IACI,OAAO,CAAC,WAAW,EAAE,MAAM,EAAE,IAAI,GAAE,YAAiB;IAI3D;;;;;;OAMG;IACI,kBAAkB,IAAI,eAAe;IAI5C;;;;;;OAMG;IACI,WAAW,IAAI,OAAO;IAI7B;;;;;OAKG;IACI,cAAc,CAAC,KAAK,SAAK,GAAG,OAAO;IAO1C;;;;;;OAMG;IACI,kBAAkB,CAAC,KAAK,SAAK,GAAG,OAAO;IAO9C;;;;;;;OAOG;IACI,yBAAyB,CAAC,KAAK,QAAK,EAAE,SAAS,EAAE,qBAAqB,GAAG,OAAO;IAgBvF;;;;;;OAMG;IACI,IAAI,CAAC,QAAQ,EAAE,OAAO;IAI7B;;;;OAIG;IACI,IAAI;IAIX;;OAEG;IACI,MAAM;IAKb;;;;;;;;;;OAUG;IACI,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE;IAkBtC;;;;;;;;;;OAUG;IACI,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE;IAmBtC;;;;;;;;;;;;;OAaG;IACI,gBAAgB,CAAC,WAAW,EAAE,WAAW;IAOhD;;;;;;;;;;;OAWG;IACI,eAAe,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;IAWjD;;;;;OAKG;IACI,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAOxD;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACI,mBAAmB,CAAC,QAAQ,EAAE,MAAM;IAY3C;;OAEG;IACI,qBAAqB;IAa5B;;;;;;;;OAQG;IACI,aAAa;CAUvB;AAED,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import type { IBamboraMeta, IFormElement, IPayPalMeta } from '../components/param';
|
|
2
|
+
import { type PURPOSE } from './configuration';
|
|
3
|
+
import { HtmlMultiWidget } from './html-multi-widget';
|
|
4
|
+
/**
|
|
5
|
+
* Class Widget include method for working on html and include extended by HtmlMultiWidget methods
|
|
6
|
+
* @constructor
|
|
7
|
+
* @extends HtmlMultiWidget
|
|
8
|
+
* @extends MultiWidget
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* var widget = new HtmlWidget('#widget', 'publicKey', 'gatewayID'); // short
|
|
12
|
+
*
|
|
13
|
+
* var widget = new HtmlWidget('#widget', 'publicKey', 'gatewayID', 'bank_account', 'payment_source'); // extend
|
|
14
|
+
*
|
|
15
|
+
* var widget = new HtmlWidget('#widget', 'publicKey', 'not_configured'); // without gateway
|
|
16
|
+
*
|
|
17
|
+
* @param {string} selector - Selector of html element. Container for widget
|
|
18
|
+
* @param {string} publicKey - PayDock users public key
|
|
19
|
+
* @param {string} [gatewayID=default] - ID of a gateway connected to PayDock. By default or if put 'default', it will use the selected default gateway. If put 'not_configured', it won’t use gateway to create downstream token.
|
|
20
|
+
* @param {string} [paymentType=card] - Type of payment source which shows in widget form. Available parameters : “card”, “bank_account”.
|
|
21
|
+
* @param {string} [purpose=payment_source] - Purpose of widget form. Available parameters: ‘payment_source’, ‘card_payment_source_with_cvv’, ‘card_payment_source_without_cvv’
|
|
22
|
+
*/
|
|
23
|
+
declare class HtmlWidget extends HtmlMultiWidget {
|
|
24
|
+
/** @constructs */ constructor(selector: string, publicKey: string, gatewayID?: string, paymentType?: string, purpose?: PURPOSE);
|
|
25
|
+
/**
|
|
26
|
+
* Destination, where customer will receive all successful responses.
|
|
27
|
+
* Response will contain “data” object with “payment_source” or other parameters, in depending on 'purpose'
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* widget.setWebHookDestination('http://google.com');
|
|
31
|
+
*
|
|
32
|
+
* @param {string} url - Your endpoint for post request.
|
|
33
|
+
*/
|
|
34
|
+
setWebHookDestination(url: string): void;
|
|
35
|
+
/**
|
|
36
|
+
* URL to which the Customer will be redirected to after the success finish
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* widget.setSuccessRedirectUrl('google.com/search?q=success');
|
|
40
|
+
*
|
|
41
|
+
* @param {string} url
|
|
42
|
+
*/
|
|
43
|
+
setSuccessRedirectUrl(url: string): void;
|
|
44
|
+
/**
|
|
45
|
+
* URL to which the Customer will be redirected to if an error is triggered in the process of operation
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* widget.setErrorRedirectUrl('google.com/search?q=error');
|
|
49
|
+
*
|
|
50
|
+
* @param {string} url
|
|
51
|
+
*/
|
|
52
|
+
setErrorRedirectUrl(url: string): void;
|
|
53
|
+
/**
|
|
54
|
+
* Set list with widget form field, which will be shown in form. Also you can set the required validation for these fields
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* widget.setFormFields(['phone', 'email', 'first_name*']);
|
|
58
|
+
*
|
|
59
|
+
* @param {string[]} fields - name of fields which can be shown in a widget.
|
|
60
|
+
* If after a name of a field, you put “*”, this field will be required on client-side. (For validation, you can specify any fields, even those that are shown by default: card_number, expiration, etc... ) [FORM_FIELD]{@link FORM_FIELD}
|
|
61
|
+
*/
|
|
62
|
+
setFormFields(fields: string[]): void;
|
|
63
|
+
/**
|
|
64
|
+
* The method to set the full configuration for the all specific form elements (visibility, required, label, placeholder, value)
|
|
65
|
+
* You can also use the other method for the partial configuration like: setFormFields, setFormValues, setFormPlaceholder, setFormLabel
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* widget.setFormElements([
|
|
69
|
+
* {
|
|
70
|
+
* field: 'card_name*',
|
|
71
|
+
* placeholder: 'Input your card holder name...',
|
|
72
|
+
* label: 'Card Holder Name',
|
|
73
|
+
* value: 'Houston',
|
|
74
|
+
* },
|
|
75
|
+
* {
|
|
76
|
+
* field: 'email',
|
|
77
|
+
* placeholder: 'Input your email, like test@example.com',
|
|
78
|
+
* label: 'Email for the receipt',
|
|
79
|
+
* value: 'predefined@email.com',
|
|
80
|
+
* },
|
|
81
|
+
* ])
|
|
82
|
+
*
|
|
83
|
+
* @param { Object[] } elements - List of elements
|
|
84
|
+
* @param { string } elements[].field - Field name of element. If after a name of a field, you put “*”, this field will be required on client-side. (For validation, you can specify any fields, even those that are shown by default: card_number, expiration, etc... ) [FORM_FIELD]{@link FORM_FIELD}
|
|
85
|
+
* @param { string } elements[].placeholder - Set custom placeholders in form fields
|
|
86
|
+
* @param { string } elements[].label - Set a custom labels near the form field
|
|
87
|
+
* @param { string } elements[].value - Set predefined values for the form field
|
|
88
|
+
*/
|
|
89
|
+
setFormElements(elements: IFormElement[]): void;
|
|
90
|
+
setFormElement(element: IFormElement): void;
|
|
91
|
+
/**
|
|
92
|
+
* The method to set meta information for the checkout page
|
|
93
|
+
*
|
|
94
|
+
* @example
|
|
95
|
+
* config.setMeta({
|
|
96
|
+
brand_name: 'paydock',
|
|
97
|
+
reference: '15',
|
|
98
|
+
email: 'wault@paydock.com'
|
|
99
|
+
});
|
|
100
|
+
*
|
|
101
|
+
* @param {IPayPalMeta | IBamboraMeta} object - data which can be shown on checkout page [IPayPalMeta]{@link IPayPalMeta} [IBamboraMeta]{@link IBamboraMeta}
|
|
102
|
+
*/
|
|
103
|
+
setMeta(meta: IPayPalMeta | IBamboraMeta): void;
|
|
104
|
+
setGiftCardScheme(giftCardScheme: any, processingNetwork: any): void;
|
|
105
|
+
}
|
|
106
|
+
export { HtmlWidget };
|
|
107
|
+
//# sourceMappingURL=html-widget.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"html-widget.d.ts","sourceRoot":"","sources":["../../src/widget/html-widget.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACnF,OAAO,EAAiB,KAAK,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD;;;;;;;;;;;;;;;;;;GAkBG;AACH,cAAM,UAAW,SAAQ,eAAe;IACtC,kBAAkB,aAEhB,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,EACjB,SAAS,SAAY,EACrB,WAAW,CAAC,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,OAAO;IAOnB;;;;;;;;OAQG;IACI,qBAAqB,CAAC,GAAG,EAAE,MAAM;IAIxC;;;;;;;OAOG;IACI,qBAAqB,CAAC,GAAG,EAAE,MAAM;IAIxC;;;;;;;OAOG;IACI,mBAAmB,CAAC,GAAG,EAAE,MAAM;IAItC;;;;;;;;OAQG;IACI,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE;IAIrC;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACI,eAAe,CAAC,QAAQ,EAAE,YAAY,EAAE;IAMxC,cAAc,CAAC,OAAO,EAAE,YAAY;IAK3C;;;;;;;;;;;SAWK;IACE,OAAO,CAAC,IAAI,EAAE,WAAW,GAAG,YAAY;IAIxC,iBAAiB,CAAC,cAAc,KAAA,EAAE,iBAAiB,KAAA;CAG3D;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
export { MultiWidget } from './multi-widget';
|
|
2
|
+
export { HtmlMultiWidget } from './html-multi-widget';
|
|
3
|
+
export { HtmlWidget } from './html-widget';
|
|
4
|
+
export { Configuration, PAYMENT_TYPE, PURPOSE } from './configuration';
|
|
5
|
+
export { STYLABLE_ELEMENT, type IElementStyleInput, STYLABLE_ELEMENT_STATE } from './style';
|
|
6
|
+
/**
|
|
7
|
+
* Interface for PayPal checkout meta information
|
|
8
|
+
* @interface IPayPalMeta
|
|
9
|
+
*
|
|
10
|
+
* @param {string} [brand_name] A label that overrides the business name in the PayPal account on the PayPal hosted checkout pages
|
|
11
|
+
* @param {string} [cart_border_color] The HTML hex code for your principal identifying color
|
|
12
|
+
* @param {string} [reference] Merchant Customer Service number displayed on the PayPal pages
|
|
13
|
+
* @param {string} [email] The consumer’s email
|
|
14
|
+
* @param {string} [hdr_img] URL for the image you want to appear at the top left of the payment page
|
|
15
|
+
* @param {string} [logo_img] A URL to your logo image
|
|
16
|
+
* @param {string} [pay_flow_color] Sets the background color for the payment page. By default, the color is white.
|
|
17
|
+
* @param {string} [first_name] The consumer’s given names
|
|
18
|
+
* @param {string} [last_name] The consumer’s surname
|
|
19
|
+
* @param {string} [address_line] Street address
|
|
20
|
+
* @param {string} [address_line2] Second line of the address
|
|
21
|
+
* @param {string} [address_city] City
|
|
22
|
+
* @param {string} [address_state] State
|
|
23
|
+
* @param {string} [address_postcode] Postcode
|
|
24
|
+
* @param {string} [address_country] Country
|
|
25
|
+
* @param {string} [phone] The consumer’s phone number in E.164 international notation (Example: +12345678901)
|
|
26
|
+
* @param {boolean} [hide_shipping_address] Determines whether PayPal displays shipping address fields on the PayPal pages
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* Interface for classes that represent widget's styles.
|
|
30
|
+
* @interface IStyles
|
|
31
|
+
*
|
|
32
|
+
* @param {string} [background_color]
|
|
33
|
+
* @param {string} [text_color]
|
|
34
|
+
* @param {string} [border_color]
|
|
35
|
+
* @param {string} [button_color]
|
|
36
|
+
* @param {string} [error_color]
|
|
37
|
+
* @param {string} [success_color]
|
|
38
|
+
* @param {string} [font_size]
|
|
39
|
+
* @param {string} [font_family]
|
|
40
|
+
*/
|
|
41
|
+
/**
|
|
42
|
+
* Interface for classes that represent widget's text.
|
|
43
|
+
* @interface ITexts
|
|
44
|
+
*
|
|
45
|
+
* @param {string} [title]
|
|
46
|
+
* @param {string} [title_h1]
|
|
47
|
+
* @param {string} [title_h2]
|
|
48
|
+
* @param {string} [title_h3]
|
|
49
|
+
* @param {string} [title_h4]
|
|
50
|
+
* @param {string} [title_h5]
|
|
51
|
+
* @param {string} [title_h6]
|
|
52
|
+
* @param {string} [finish_text]
|
|
53
|
+
* @param {string} [title_description]
|
|
54
|
+
* @param {string} [submit_button]
|
|
55
|
+
* @param {string} [submit_button_processing]
|
|
56
|
+
* */
|
|
57
|
+
/**
|
|
58
|
+
* Current constant include available type of fields which can be included to widget
|
|
59
|
+
* @const FORM_FIELD
|
|
60
|
+
* @type {object}
|
|
61
|
+
* @param {string} CARD_NAME=card_name
|
|
62
|
+
* @param {string} CARD_NUMBER=card_number
|
|
63
|
+
* @param {string} EXPIRE_MONTH=expire_month
|
|
64
|
+
* @param {string} EXPIRE_YEAR=expire_year
|
|
65
|
+
* @param {string} CARD_CCV=card_ccv
|
|
66
|
+
* @param {string} CARD_PIN=card_pin
|
|
67
|
+
* @param {string} ACCOUNT_NAME=account_name
|
|
68
|
+
* @param {string} ACCOUNT_BSB=account_bsb
|
|
69
|
+
* @param {string} ACCOUNT_NUMBER=account_number
|
|
70
|
+
* @param {string} ACCOUNT_ROUTING=account_routing
|
|
71
|
+
* @param {string} ACCOUNT_HOLDER_TYPE=account_holder_type
|
|
72
|
+
* @param {string} ACCOUNT_BANK_NAME=account_bank_name
|
|
73
|
+
* @param {string} ACCOUNT_TYPE=account_type
|
|
74
|
+
* @param {string} FIRST_NAME=first_name
|
|
75
|
+
* @param {string} LAST_NAME=last_name
|
|
76
|
+
* @param {string} EMAIL=email
|
|
77
|
+
* @param {string} PHONE=phone
|
|
78
|
+
* @param {string} PHONE2=phone2
|
|
79
|
+
* @param {string} ADDRESS_LINE1=address_line1
|
|
80
|
+
* @param {string} ADDRESS_LINE2=address_line2
|
|
81
|
+
* @param {string} ADDRESS_STATE=address_state
|
|
82
|
+
* @param {string} ADDRESS_COUNTRY=address_country
|
|
83
|
+
* @param {string} ADDRESS_CITY=address_city
|
|
84
|
+
* @param {string} ADDRESS_POSTCODE=address_postcode
|
|
85
|
+
* @param {string} ADDRESS_COMPANY=address_company
|
|
86
|
+
* */
|
|
87
|
+
/**
|
|
88
|
+
* List of available style params for widget
|
|
89
|
+
*
|
|
90
|
+
* @const STYLE
|
|
91
|
+
* @type {object}
|
|
92
|
+
* @param {string} BACKGROUND_COLOR=background_color
|
|
93
|
+
* @param {string} TEXT_COLOR=text_color
|
|
94
|
+
* @param {string} BORDER_COLOR=border_color
|
|
95
|
+
* @param {string} BUTTON_COLOR=button_color
|
|
96
|
+
* @param {string} ERROR_COLOR=error_color
|
|
97
|
+
* @param {string} SUCCESS_COLOR=success_color
|
|
98
|
+
* @param {string} FONT_SIZE=font_size
|
|
99
|
+
* @param {string} FONT_FAMILY=font_family
|
|
100
|
+
*/
|
|
101
|
+
/**
|
|
102
|
+
* List of available text item params for widget
|
|
103
|
+
*
|
|
104
|
+
* @const TEXT
|
|
105
|
+
* @type {object}
|
|
106
|
+
* @param {string} TITLE=title
|
|
107
|
+
* @param {string} FINISH=finish_text
|
|
108
|
+
*/
|
|
109
|
+
/**
|
|
110
|
+
* List of available params for hide elements
|
|
111
|
+
*
|
|
112
|
+
* @const ELEMENT
|
|
113
|
+
* @type {object}
|
|
114
|
+
* @param {string} SUBMIT_BUTTON=submit_button
|
|
115
|
+
* @param {string} TABS=tabs
|
|
116
|
+
*/
|
|
117
|
+
/**
|
|
118
|
+
* The list of available parameters for showing card icons
|
|
119
|
+
* @const SUPPORTED_CARD_TYPES
|
|
120
|
+
* @type {object}
|
|
121
|
+
* @param {string} AMEX=amex
|
|
122
|
+
* @param {string} AUSBC=ausbc
|
|
123
|
+
* @param {string} DINERS=diners
|
|
124
|
+
* @param {string} DISCOVER=discover
|
|
125
|
+
* @param {string} JAPCB=japcb
|
|
126
|
+
* @param {string} LASER=laser
|
|
127
|
+
* @param {string} MASTERCARD=mastercard
|
|
128
|
+
* @param {string} SOLO=solo
|
|
129
|
+
* @param {string} VISA=visa
|
|
130
|
+
* @param {string} VISA_WHITE=visa_white
|
|
131
|
+
*/
|
|
132
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/widget/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AACvE,OAAO,EAAE,gBAAgB,EAAE,KAAK,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAI5F;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH;;;;;;;;;;;;GAYG;AAGH;;;;;;;;;;;;;;;KAeK;AAGL;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA6BK;AAIL;;;;;;;;;;;;;GAaG;AAGH;;;;;;;GAOG;AAGH;;;;;;;GAOG;AAGH;;;;;;;;;;;;;;GAcG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../src/widget/meta.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|