@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
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"configuration.js","sourceRoot":"","sources":["../../widget/configuration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAE,GAAG,EAAC,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAC,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE9C,MAAM,CAAC,MAAM,YAAY,GAAG;IACxB,IAAI,EAAE,MAAM;IACZ,YAAY,EAAE,cAAc;CAC/B,CAAA;AAED,MAAM,CAAC,MAAM,OAAO,GAAG;IACnB,cAAc,EAAE,gBAAgB;CACnC,CA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CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA,CAAC;YACd,EAAE,CAAC,GAAG,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;QAC5B,CAAC,CAAC;IACN,CAAC;IAGM,UAAU;QACb,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC;IACxB,CAAC;IAGO,MAAM;QACV,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC,GAAG,GAAG,kBAAkB,CAAC;IACvD,CAAC;CACJ"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export const DATE_TYPE = {
|
|
2
|
-
PAYMENT_SOURCE: 'payment_source',
|
|
3
|
-
REF_ID: 'ref_id'
|
|
4
|
-
};
|
|
5
|
-
export class Event {
|
|
6
|
-
static insertToInput(selector, dataType, eventData) {
|
|
7
|
-
if (typeof eventData[dataType] === "undefined")
|
|
8
|
-
return;
|
|
9
|
-
let input = document.querySelector(selector);
|
|
10
|
-
if (!input)
|
|
11
|
-
return;
|
|
12
|
-
input.value = eventData[dataType];
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=../../../src/lib/widget/helper/event.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"event.js","sourceRoot":"","sources":["../../../widget/helper/event.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,SAAS,GAAG;IACrB,cAAc,EAAE,gBAAgB;IAChC,MAAM,EAAE,QAAQ;CACnB,CAAA;AAED,MAAM;IACK,MAAM,CAAC,aAAa,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAqB;QACjE,EAAE,CAAC,CAAC,OAAO,SAAS,CAAC,QAAQ,CAAC,KAAK,WAAW,CAAC;YAC3C,MAAM,CAAC;QAEX,IAAI,KAAK,GAAuC,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;QACjF,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC;YACP,MAAM,CAAC;QAEX,KAAK,CAAC,KAAK,GAAG,SAAS,CAAC,QAAQ,CAAC,CAAC;IACtC,CAAC;CACJ"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"object.js","sourceRoot":"","sources":["../../../widget/helper/object.ts"],"names":[],"mappings":"AACA,MAAM;IAEK,MAAM,CAAC,MAAM,CAAC,MAAc;QAC/B,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,OAAO,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACrE,CAAC;CACJ"}
|
package/lib/widget/helper/url.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export class Url {
|
|
2
|
-
static extendSearchParams(uri, key, val) {
|
|
3
|
-
return uri
|
|
4
|
-
.replace(new RegExp("([?&]" + key + "(?=[=&#]|$)[^#&]*|(?=#|$))"), "&" + key + "=" + encodeURIComponent(val))
|
|
5
|
-
.replace(/^([^?&]+)&/, "$1?");
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=../../../src/lib/widget/helper/url.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"url.js","sourceRoot":"","sources":["../../../widget/helper/url.ts"],"names":[],"mappings":"AAEA,MAAM;IAEK,MAAM,CAAC,kBAAkB,CAAC,GAAW,EAAE,GAAW,EAAE,GAAW;QAClE,MAAM,CAAC,GAAG;aACL,OAAO,CAAC,IAAI,MAAM,CAAC,OAAO,GAAG,GAAG,GAAG,4BAA4B,CAAC,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,kBAAkB,CAAC,GAAG,CAAC,CAAC;aAC5G,OAAO,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;IACtC,CAAC;CACJ"}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { MultiWidget } from "./multi-widget";
|
|
2
|
-
import { Container } from "./components/container";
|
|
3
|
-
import { IFrame } from "./components/iframe";
|
|
4
|
-
import { Event, IEventData } from "./components/event";
|
|
5
|
-
import { Trigger } from "./components/trigger";
|
|
6
|
-
/**
|
|
7
|
-
* Class Widget include method for work with html
|
|
8
|
-
* @extends HtmlMultiWidget
|
|
9
|
-
*
|
|
10
|
-
* @param {string} selector - Selector of html element. Container for widget
|
|
11
|
-
* @param {string} publicKey - PayDock users public key
|
|
12
|
-
* @param { Configuration | string | Configuration[] | string[]} conf - exemplar[s] Configuration class OR configuration token
|
|
13
|
-
**/
|
|
14
|
-
export declare class HtmlMultiWidget extends MultiWidget {
|
|
15
|
-
protected container: Container;
|
|
16
|
-
protected iFrame: IFrame;
|
|
17
|
-
protected trigger: Trigger;
|
|
18
|
-
protected event: Event;
|
|
19
|
-
constructor(selector: string, publicKey: string, conf: any);
|
|
20
|
-
/**
|
|
21
|
-
* Load widget on in container
|
|
22
|
-
*/
|
|
23
|
-
load(): void;
|
|
24
|
-
/**
|
|
25
|
-
* This callback will be called at each event of widget
|
|
26
|
-
*
|
|
27
|
-
* @callback listener
|
|
28
|
-
* @param {IEventData} responseCode
|
|
29
|
-
*/
|
|
30
|
-
/**
|
|
31
|
-
* Listen to events of widget
|
|
32
|
-
* @param {string} eventName
|
|
33
|
-
* @param {listener} cb
|
|
34
|
-
*/
|
|
35
|
-
on(eventName: string, cb: (data: IEventData) => void): void;
|
|
36
|
-
/**
|
|
37
|
-
* Reload widget
|
|
38
|
-
*/
|
|
39
|
-
reload(): void;
|
|
40
|
-
/**
|
|
41
|
-
* After finish event of widget, data (dataType) will be insert to input (selector)
|
|
42
|
-
*
|
|
43
|
-
* @param {string} selector - css selector . [] #
|
|
44
|
-
* @param {string} dataType - data type of IEventData object.
|
|
45
|
-
*/
|
|
46
|
-
onFinishInsert(selector: string, dataType: string): void;
|
|
47
|
-
/**
|
|
48
|
-
* Widget will intercept submit of your form
|
|
49
|
-
*
|
|
50
|
-
* Process: click by submit button in your form --> submit widget ---> submit your form
|
|
51
|
-
* @note submit button in widget will be hidden.
|
|
52
|
-
*
|
|
53
|
-
* @param selector - css selector . [] #
|
|
54
|
-
*/
|
|
55
|
-
interceptSubmitForm(selector: string): void;
|
|
56
|
-
}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { MultiWidget } from "./multi-widget";
|
|
2
|
-
import { Container } from "./components/container";
|
|
3
|
-
import { IFrame } from "./components/iframe";
|
|
4
|
-
import { Event, EVENT } from "./components/event";
|
|
5
|
-
import { Trigger, TRIGGER } from "./components/trigger";
|
|
6
|
-
import { Event as EventHelper } from "./helper/event";
|
|
7
|
-
import { FormInterceptor } from "./components/form-Interceptor";
|
|
8
|
-
import { HIDDEN_ELEMENT } from './components/param';
|
|
9
|
-
/**
|
|
10
|
-
* Class Widget include method for work with html
|
|
11
|
-
* @extends HtmlMultiWidget
|
|
12
|
-
*
|
|
13
|
-
* @param {string} selector - Selector of html element. Container for widget
|
|
14
|
-
* @param {string} publicKey - PayDock users public key
|
|
15
|
-
* @param { Configuration | string | Configuration[] | string[]} conf - exemplar[s] Configuration class OR configuration token
|
|
16
|
-
**/
|
|
17
|
-
export class HtmlMultiWidget extends MultiWidget {
|
|
18
|
-
constructor(selector, publicKey, conf) {
|
|
19
|
-
super(publicKey, conf);
|
|
20
|
-
this.container = new Container(selector);
|
|
21
|
-
this.iFrame = new IFrame(this.container);
|
|
22
|
-
this.trigger = new Trigger(this.iFrame);
|
|
23
|
-
this.event = new Event(window);
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Load widget on in container
|
|
27
|
-
*/
|
|
28
|
-
load() {
|
|
29
|
-
this.loadIFrameUrl((url) => {
|
|
30
|
-
this.iFrame.load(url);
|
|
31
|
-
}, (errors) => {
|
|
32
|
-
console.error('Errors when creating a token[s, widget will not be load:');
|
|
33
|
-
for (let index in errors) {
|
|
34
|
-
console.error(`--- | ${errors[index]}`);
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* This callback will be called at each event of widget
|
|
40
|
-
*
|
|
41
|
-
* @callback listener
|
|
42
|
-
* @param {IEventData} responseCode
|
|
43
|
-
*/
|
|
44
|
-
/**
|
|
45
|
-
* Listen to events of widget
|
|
46
|
-
* @param {string} eventName
|
|
47
|
-
* @param {listener} cb
|
|
48
|
-
*/
|
|
49
|
-
on(eventName, cb) {
|
|
50
|
-
this.event.on(eventName, cb);
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Reload widget
|
|
54
|
-
*/
|
|
55
|
-
reload() {
|
|
56
|
-
this.iFrame.remove();
|
|
57
|
-
this.load();
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* After finish event of widget, data (dataType) will be insert to input (selector)
|
|
61
|
-
*
|
|
62
|
-
* @param {string} selector - css selector . [] #
|
|
63
|
-
* @param {string} dataType - data type of IEventData object.
|
|
64
|
-
*/
|
|
65
|
-
onFinishInsert(selector, dataType) {
|
|
66
|
-
this.event.on(EVENT.FINISH, (event) => {
|
|
67
|
-
EventHelper.insertToInput(selector, dataType, event);
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* Widget will intercept submit of your form
|
|
72
|
-
*
|
|
73
|
-
* Process: click by submit button in your form --> submit widget ---> submit your form
|
|
74
|
-
* @note submit button in widget will be hidden.
|
|
75
|
-
*
|
|
76
|
-
* @param selector - css selector . [] #
|
|
77
|
-
*/
|
|
78
|
-
interceptSubmitForm(selector) {
|
|
79
|
-
this.hideElements([HIDDEN_ELEMENT.SUBMIT_BUTTON]);
|
|
80
|
-
let formInterceptor = new FormInterceptor(selector);
|
|
81
|
-
formInterceptor.beforeSubmit(() => {
|
|
82
|
-
this.trigger.push(TRIGGER.SUBMIT_FORM, {});
|
|
83
|
-
this.event.on(EVENT.FINISH, () => {
|
|
84
|
-
formInterceptor.continueSubmit();
|
|
85
|
-
});
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
//# sourceMappingURL=../../src/lib/widget/html-multi-widget.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"html-multi-widget.js","sourceRoot":"","sources":["../../widget/html-multi-widget.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,KAAK,EAAe,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,KAAK,IAAI,WAAW,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAIpD;;;;;;;IAOI;AACJ,MAAM,sBAAuB,SAAQ,WAAW;IAQ5C,YAAY,QAAgB,EAAE,SAAiB,EAAE,IAAS;QACtD,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;QACvB,IAAI,CAAC,SAAS,GAAG,IAAI,SAAS,CAAC,QAAQ,CAAC,CAAC;QACzC,IAAI,CAAC,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACzC,IAAI,CAAC,OAAO,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACxC,IAAI,CAAC,KAAK,GAAG,IAAI,KAAK,CAAC,MAAM,CAAC,CAAC;IACnC,CAAC;IAED;;OAEG;IACI,IAAI;QACP,IAAI,CAAC,aAAa,CACd,CAAC,GAAW;YACR,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC1B,CAAC,EACD,CAAC,MAAgB;YACb,OAAO,CAAC,KAAK,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1
|
-
import { HtmlMultiWidget } from "./html-multi-widget";
|
|
2
|
-
/**
|
|
3
|
-
* Class Widget include method for work with html
|
|
4
|
-
* @extends HtmlMultiWidget
|
|
5
|
-
*
|
|
6
|
-
* @param {string} selector - Selector of html element. Container for widget
|
|
7
|
-
* @param {string} publicKey - PayDock users public key
|
|
8
|
-
* @param {string} gatewayID - ID of a gateway connected to PayDock
|
|
9
|
-
* @param {string} [paymentType=card] - Type of payment source which shows in widget form. Available parameters : “card”, “bank_account”.
|
|
10
|
-
* @param {string} [purpose=payment_source] - Purpose of widget form. Available parameters: ‘payment_source’
|
|
11
|
-
**/
|
|
12
|
-
export declare class HtmlWidget extends HtmlMultiWidget {
|
|
13
|
-
constructor(selector: string, publicKey: string, gatewayID: string, paymentType?: string, purpose?: string);
|
|
14
|
-
/**
|
|
15
|
-
* Destination, where customer will receive all successful responses.
|
|
16
|
-
* Response will contain “data” object with “payment_source” or other parameters, in depending on 'purpose'
|
|
17
|
-
* @param {string} url - Your endpoint for post request.
|
|
18
|
-
*/
|
|
19
|
-
setWebHookDestination(url: string): void;
|
|
20
|
-
/**
|
|
21
|
-
* URL to which the Customer will be redirected to after the success finish
|
|
22
|
-
* @param {string} url
|
|
23
|
-
*/
|
|
24
|
-
setSuccessRedirectUrl(url: string): void;
|
|
25
|
-
/**
|
|
26
|
-
* URL to which the Customer will be redirected to if an error is triggered in the process of operation
|
|
27
|
-
*
|
|
28
|
-
* @param {string} url
|
|
29
|
-
*/
|
|
30
|
-
setErrorRedirectUrl(url: string): void;
|
|
31
|
-
/**
|
|
32
|
-
* Array with widget form field, which will be shown in form
|
|
33
|
-
*
|
|
34
|
-
* @param {string[]} fields - DEFINED_FORM_FIELDS
|
|
35
|
-
*/
|
|
36
|
-
setFormFields(fields: string[]): void;
|
|
37
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { Configuration } from "./configuration";
|
|
2
|
-
import { HtmlMultiWidget } from "./html-multi-widget";
|
|
3
|
-
/**
|
|
4
|
-
* Class Widget include method for work with html
|
|
5
|
-
* @extends HtmlMultiWidget
|
|
6
|
-
*
|
|
7
|
-
* @param {string} selector - Selector of html element. Container for widget
|
|
8
|
-
* @param {string} publicKey - PayDock users public key
|
|
9
|
-
* @param {string} gatewayID - ID of a gateway connected to PayDock
|
|
10
|
-
* @param {string} [paymentType=card] - Type of payment source which shows in widget form. Available parameters : “card”, “bank_account”.
|
|
11
|
-
* @param {string} [purpose=payment_source] - Purpose of widget form. Available parameters: ‘payment_source’
|
|
12
|
-
**/
|
|
13
|
-
export class HtmlWidget extends HtmlMultiWidget {
|
|
14
|
-
constructor(selector, publicKey, gatewayID, paymentType, purpose) {
|
|
15
|
-
let conf = new Configuration(gatewayID, paymentType, purpose);
|
|
16
|
-
super(selector, publicKey, conf);
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Destination, where customer will receive all successful responses.
|
|
20
|
-
* Response will contain “data” object with “payment_source” or other parameters, in depending on 'purpose'
|
|
21
|
-
* @param {string} url - Your endpoint for post request.
|
|
22
|
-
*/
|
|
23
|
-
setWebHookDestination(url) {
|
|
24
|
-
this.configs[0].setWebHookDestination(url);
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* URL to which the Customer will be redirected to after the success finish
|
|
28
|
-
* @param {string} url
|
|
29
|
-
*/
|
|
30
|
-
setSuccessRedirectUrl(url) {
|
|
31
|
-
this.configs[0].setSuccessRedirectUrl(url);
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* URL to which the Customer will be redirected to if an error is triggered in the process of operation
|
|
35
|
-
*
|
|
36
|
-
* @param {string} url
|
|
37
|
-
*/
|
|
38
|
-
setErrorRedirectUrl(url) {
|
|
39
|
-
this.configs[0].setErrorRedirectUrl(url);
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Array with widget form field, which will be shown in form
|
|
43
|
-
*
|
|
44
|
-
* @param {string[]} fields - DEFINED_FORM_FIELDS
|
|
45
|
-
*/
|
|
46
|
-
setFormFields(fields) {
|
|
47
|
-
this.configs[0].setFormFields(fields);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
//# sourceMappingURL=../../src/lib/widget/html-widget.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"html-widget.js","sourceRoot":"","sources":["../../widget/html-widget.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAsB,MAAM,iBAAiB,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAMtD;;;;;;;;;IASI;AACJ,MAAM,iBAAkB,SAAQ,eAAe;IAG3C,YAAY,QAAgB,EAAE,SAAiB,EAAE,SAAiB,EAAE,WAAoB,EAAE,OAAgB;QACtG,IAAI,IAAI,GAAG,IAAI,aAAa,CAAC,SAAS,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;QAC9D,KAAK,CAAC,QAAQ,EAAE,SAAS,EAAE,IAAI,CAAC,CAAC;IACrC,CAAC;IAGD;;;;OAIG;IACI,qBAAqB,CAAC,GAAW;QACpC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,qBAAqB,CAAC,GAAG,CAAC,CAAC;IAC/C,CAAC;IAED;;;OAGG;IACI,qBAAqB,CAAC,GAAW;QACpC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,qBAAqB,CAAC,GAAG,CAAC,CAAC;IAC/C,CAAC;IAGD;;;;OAIG;IACI,mBAAmB,CAAC,GAAW;QAClC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,mBAAmB,CAAC,GAAG,CAAC,CAAC;IAC7C,CAAC;IAGD;;;;OAIG;IACI,aAAa,CAAC,MAAgB;QACjC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;IAC1C,CAAC;CACJ"}
|
package/lib/widget/index.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { MultiWidget } from './multi-widget';
|
|
2
|
-
export { HtmlMultiWidget } from './html-multi-widget';
|
|
3
|
-
export { HtmlWidget } from './html-widget';
|
|
4
|
-
export { Configuration, DEFINED_FORM_FIELDS, PAYMENT_TYPE, PURPOSE } from './configuration';
|
|
5
|
-
export { STYLE, HIDDEN_ELEMENT, TEXT, IStyles, ITexts } from './components/param';
|
package/lib/widget/index.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export { MultiWidget, } from './multi-widget';
|
|
2
|
-
export { HtmlMultiWidget, } from './html-multi-widget';
|
|
3
|
-
export { HtmlWidget } from './html-widget';
|
|
4
|
-
export { Configuration, DEFINED_FORM_FIELDS, PAYMENT_TYPE, PURPOSE } from './configuration';
|
|
5
|
-
export { STYLE, HIDDEN_ELEMENT, TEXT } from './components/param';
|
|
6
|
-
//# sourceMappingURL=../../src/lib/widget/index.js.map
|
package/lib/widget/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../widget/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,GAAI,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,eAAe,GAAI,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC5F,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,IAAI,EAAkB,MAAM,oBAAoB,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Link } from './components/link';
|
|
2
|
-
import { Configuration } from './configuration';
|
|
3
|
-
import { IStyles, ITexts } from './components/param';
|
|
4
|
-
export declare class MultiWidget {
|
|
5
|
-
protected link: Link;
|
|
6
|
-
protected configs: Configuration[];
|
|
7
|
-
protected configTokens: string[];
|
|
8
|
-
protected publicKey: string;
|
|
9
|
-
constructor(publicKey: string, confTokens: string[]);
|
|
10
|
-
constructor(publicKey: string, confToken: string);
|
|
11
|
-
constructor(publicKey: string, configs: Configuration[]);
|
|
12
|
-
constructor(publicKey: string, conf: Configuration);
|
|
13
|
-
setStyles(styles: IStyles): void;
|
|
14
|
-
setStyle(param: string, value: string): void;
|
|
15
|
-
setTexts(texts: ITexts): void;
|
|
16
|
-
setText(param: string, value: string): void;
|
|
17
|
-
hideElements(elements: string[]): void;
|
|
18
|
-
setRefId(refId: string): void;
|
|
19
|
-
setEnv(env: string): void;
|
|
20
|
-
getEnv(): void;
|
|
21
|
-
loadIFrameUrl(cb: (url: string) => void, errorCb?: (errors: string[]) => void): void;
|
|
22
|
-
}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { Link } from './components/link';
|
|
2
|
-
import { Configuration } from './configuration';
|
|
3
|
-
import { STYLE, TEXT, HIDDEN_ELEMENT } from './components/param';
|
|
4
|
-
import { ObjectHelper } from './helper/object';
|
|
5
|
-
export class MultiWidget {
|
|
6
|
-
constructor(publicKey, conf) {
|
|
7
|
-
this.configs = [];
|
|
8
|
-
this.configTokens = [];
|
|
9
|
-
this.link = new Link();
|
|
10
|
-
this.link.setParams({ public_key: publicKey });
|
|
11
|
-
this.publicKey = publicKey;
|
|
12
|
-
if (!conf || (Array.isArray(conf) && !conf.length))
|
|
13
|
-
throw Error('configuration token is required');
|
|
14
|
-
if (typeof conf === 'string')
|
|
15
|
-
this.configTokens.push(conf);
|
|
16
|
-
else if (conf instanceof Configuration)
|
|
17
|
-
this.configs.push(conf);
|
|
18
|
-
else if (Array.isArray(conf) && typeof conf[0] == 'string')
|
|
19
|
-
this.configTokens = conf;
|
|
20
|
-
else if (Array.isArray(conf) && conf[0] instanceof Configuration)
|
|
21
|
-
this.configs = conf;
|
|
22
|
-
else
|
|
23
|
-
throw Error('Unsupported type of configuration token');
|
|
24
|
-
}
|
|
25
|
-
setStyles(styles) {
|
|
26
|
-
for (let index in styles) {
|
|
27
|
-
this.setStyle(index, styles[index]);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
setStyle(param, value) {
|
|
31
|
-
if (ObjectHelper.values(STYLE).indexOf(param) !== -1)
|
|
32
|
-
this.link.setParams({ [param]: value });
|
|
33
|
-
else
|
|
34
|
-
console.warn(`Widget::setStyle[s: unsupported style param ${param}`);
|
|
35
|
-
}
|
|
36
|
-
setTexts(texts) {
|
|
37
|
-
for (let index in texts) {
|
|
38
|
-
this.setText(index, texts[index]);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
setText(param, value) {
|
|
42
|
-
if (ObjectHelper.values(TEXT).indexOf(param) !== -1)
|
|
43
|
-
this.link.setParams({ [param]: value });
|
|
44
|
-
else
|
|
45
|
-
console.warn(`Widget::setText[s: unsupported text param ${param}`);
|
|
46
|
-
}
|
|
47
|
-
hideElements(elements) {
|
|
48
|
-
let supportedElements = [];
|
|
49
|
-
for (let index in elements) {
|
|
50
|
-
if (ObjectHelper.values(HIDDEN_ELEMENT).indexOf(elements[index]) !== -1)
|
|
51
|
-
supportedElements.push(elements[index]);
|
|
52
|
-
else
|
|
53
|
-
console.warn(`Widget::hideElements: unsupported element ${elements[index]}`);
|
|
54
|
-
}
|
|
55
|
-
if (supportedElements.length)
|
|
56
|
-
this.link.setParams({ hidden_elements: supportedElements.join(',') });
|
|
57
|
-
}
|
|
58
|
-
setRefId(refId) {
|
|
59
|
-
this.link.setParams({ ref_id: refId });
|
|
60
|
-
}
|
|
61
|
-
setEnv(env) {
|
|
62
|
-
this.link.setEnv(env);
|
|
63
|
-
for (let index in this.configs) {
|
|
64
|
-
this.configs[index].setEnv(env);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
getEnv() {
|
|
68
|
-
this.link.getEnv();
|
|
69
|
-
}
|
|
70
|
-
loadIFrameUrl(cb, errorCb = (errors) => { }) {
|
|
71
|
-
if (this.configTokens.length) {
|
|
72
|
-
this.link.setParams({ configuration_tokens: this.configTokens.join(',') });
|
|
73
|
-
return cb(this.link.getUrl());
|
|
74
|
-
}
|
|
75
|
-
Configuration.createEachToken(this.publicKey, this.configs, (tokens) => {
|
|
76
|
-
this.link.setParams({ configuration_tokens: tokens.join(',') });
|
|
77
|
-
return cb(this.link.getUrl());
|
|
78
|
-
}, (errors) => {
|
|
79
|
-
errorCb(errors);
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
//# sourceMappingURL=../../src/lib/widget/multi-widget.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"multi-widget.js","sourceRoot":"","sources":["../../widget/multi-widget.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAmB,KAAK,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAClF,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG/C,MAAM;IAWF,YAAY,SAAiB,EAAE,IAAS;QAR9B,YAAO,GAAoB,EAAE,CAAC;QAC9B,iBAAY,GAAa,EAAE,CAAC;QAQlC,IAAI,CAAC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QACvB,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,EAAC,UAAU,EAAE,SAAS,EAAC,CAAC,CAAC;QAC7C,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAE3B,EAAE,CAAA,CAAC,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YAC9C,MAAM,KAAK,CAAC,iCAAiC,CAAC,CAAC;QAEnD,EAAE,CAAC,CAAE,OAAO,IAAI,KAAK,QAAS,CAAC;YAC3B,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,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