@paydock/client-sdk 1.105.1 → 1.105.56-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 +2094 -465
- package/bundles/index.cjs +35088 -0
- package/bundles/index.cjs.d.ts +4021 -0
- package/bundles/index.mjs +35050 -0
- package/bundles/index.mjs.d.ts +4021 -0
- package/bundles/types/api/api-base.d.ts +54 -0
- package/bundles/types/api/api-base.d.ts.map +1 -0
- package/{lib → bundles/types}/api/api-charge-internal.d.ts +2 -0
- package/bundles/types/api/api-charge-internal.d.ts.map +1 -0
- package/{lib → bundles/types}/api/api-charge.d.ts +1 -0
- package/bundles/types/api/api-charge.d.ts.map +1 -0
- package/bundles/types/api/api-checkout-internal.d.ts +57 -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/{lib → bundles/types}/api/api-internal.d.ts +5 -0
- package/bundles/types/api/api-internal.d.ts.map +1 -0
- package/{lib → bundles/types}/api/api-service-internal.d.ts +3 -1
- package/bundles/types/api/api-service-internal.d.ts.map +1 -0
- package/{lib → bundles/types}/api/api.d.ts +1 -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/{lib → bundles/types}/canvas-3ds/canvas-3ds.d.ts +1 -0
- package/bundles/types/canvas-3ds/canvas-3ds.d.ts.map +1 -0
- package/{lib → bundles/types}/canvas-3ds/index.d.ts +1 -0
- package/bundles/types/canvas-3ds/index.d.ts.map +1 -0
- package/{lib → bundles/types}/canvas-3ds/services/gpayments-service.d.ts +4 -3
- package/bundles/types/canvas-3ds/services/gpayments-service.d.ts.map +1 -0
- package/{lib → bundles/types}/canvas-3ds/services/index.d.ts +1 -0
- package/bundles/types/canvas-3ds/services/index.d.ts.map +1 -0
- package/{lib → bundles/types}/canvas-3ds/services/standalone3ds-service.d.ts +1 -0
- package/bundles/types/canvas-3ds/services/standalone3ds-service.d.ts.map +1 -0
- package/bundles/types/checkout/checkout.d.ts +86 -0
- package/bundles/types/checkout/checkout.d.ts.map +1 -0
- package/bundles/types/checkout/helpers/instruction-handler.d.ts +23 -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 +5 -0
- package/bundles/types/checkout/helpers/resource-helper.d.ts.map +1 -0
- package/bundles/types/checkout/helpers/session-helper.d.ts +5 -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 +19 -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.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 +52 -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/{lib → bundles/types}/checkout-button/afterpay/afterpay-checkout-button.d.ts +1 -0
- package/bundles/types/checkout-button/afterpay/afterpay-checkout-button.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/afterpay/afterpay.runner.d.ts +3 -0
- package/bundles/types/checkout-button/afterpay/afterpay.runner.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/checkout-button.d.ts +1 -0
- package/bundles/types/checkout-button/checkout-button.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/checkout-button.interface.d.ts +1 -0
- package/bundles/types/checkout-button/checkout-button.interface.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/checkout-contextual-handler.d.ts +5 -0
- package/bundles/types/checkout-button/checkout-contextual-handler.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/index.d.ts +2 -1
- package/bundles/types/checkout-button/index.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/paypal/paypal-checkout-button.d.ts +1 -0
- package/bundles/types/checkout-button/paypal/paypal-checkout-button.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/paypal/paypal.runner.d.ts +1 -0
- package/bundles/types/checkout-button/paypal/paypal.runner.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/runner/base.runner.d.ts +4 -3
- package/bundles/types/checkout-button/runner/base.runner.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/runner/contextual.runner.d.ts +4 -2
- package/bundles/types/checkout-button/runner/contextual.runner.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/runner/index.d.ts +1 -0
- package/bundles/types/checkout-button/runner/index.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/runner/popup.runner.d.ts +5 -4
- package/bundles/types/checkout-button/runner/popup.runner.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/runner/redirect.runner.d.ts +2 -1
- 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/{lib → bundles/types}/checkout-button/zipmoney/zipmoney-checkout-button.d.ts +1 -0
- package/bundles/types/checkout-button/zipmoney/zipmoney-checkout-button.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney-contextual.runner.d.ts +2 -1
- package/bundles/types/checkout-button/zipmoney/zipmoney-contextual.runner.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney-redirect.runner.d.ts +2 -1
- package/bundles/types/checkout-button/zipmoney/zipmoney-redirect.runner.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney.config.d.ts +1 -0
- package/bundles/types/checkout-button/zipmoney/zipmoney.config.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney.runner.d.ts +2 -1
- package/bundles/types/checkout-button/zipmoney/zipmoney.runner.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney.types.d.ts +1 -0
- package/bundles/types/checkout-button/zipmoney/zipmoney.types.d.ts.map +1 -0
- package/{lib → bundles/types}/components/ability-guard.d.ts +1 -0
- package/bundles/types/components/ability-guard.d.ts.map +1 -0
- package/{lib → bundles/types}/components/background.d.ts +1 -0
- package/bundles/types/components/background.d.ts.map +1 -0
- package/{lib → bundles/types}/components/container.d.ts +1 -0
- package/bundles/types/components/container.d.ts.map +1 -0
- package/{lib → bundles/types}/components/dispatcher.d.ts +2 -1
- package/bundles/types/components/dispatcher.d.ts.map +1 -0
- package/{lib → bundles/types}/components/element-style.d.ts +2 -1
- package/bundles/types/components/element-style.d.ts.map +1 -0
- package/{lib → bundles/types}/components/flypay-iframe-event.d.ts +1 -0
- package/bundles/types/components/flypay-iframe-event.d.ts.map +1 -0
- package/{lib/components/form-Interceptor.d.ts → bundles/types/components/form-interceptor.d.ts} +1 -0
- package/bundles/types/components/form-interceptor.d.ts.map +1 -0
- package/{lib → bundles/types}/components/http-core.d.ts +1 -0
- package/bundles/types/components/http-core.d.ts.map +1 -0
- package/{lib → bundles/types}/components/iframe-event.d.ts +6 -0
- package/bundles/types/components/iframe-event.d.ts.map +1 -0
- package/{lib → bundles/types}/components/iframe.d.ts +3 -0
- package/bundles/types/components/iframe.d.ts.map +1 -0
- package/{lib → bundles/types}/components/link.d.ts +6 -3
- package/bundles/types/components/link.d.ts.map +1 -0
- package/{lib → bundles/types}/components/loader.d.ts +1 -0
- package/bundles/types/components/loader.d.ts.map +1 -0
- package/{lib → bundles/types}/components/param.d.ts +16 -9
- package/bundles/types/components/param.d.ts.map +1 -0
- package/{lib → bundles/types}/components/popup.d.ts +1 -0
- package/bundles/types/components/popup.d.ts.map +1 -0
- package/{lib → bundles/types}/components/storage-dispatcher.d.ts +1 -0
- package/bundles/types/components/storage-dispatcher.d.ts.map +1 -0
- package/{lib → bundles/types}/components/trigger.d.ts +1 -0
- package/bundles/types/components/trigger.d.ts.map +1 -0
- package/{lib → bundles/types}/components/vault-display-iframe-event.d.ts +1 -0
- package/bundles/types/components/vault-display-iframe-event.d.ts.map +1 -0
- package/{lib → bundles/types}/components/wallet-background.d.ts +3 -1
- package/bundles/types/components/wallet-background.d.ts.map +1 -0
- package/{lib → bundles/types}/components/wallet-trigger.d.ts +1 -0
- package/bundles/types/components/wallet-trigger.d.ts.map +1 -0
- package/bundles/types/configs/env/environment.cba.d.ts +29 -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/{lib/configs/env/env.d.ts → bundles/types/configs/env/environment.paydock.d.ts} +5 -8
- 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/{lib → bundles/types}/configs/sdk.d.ts +3 -2
- package/bundles/types/configs/sdk.d.ts.map +1 -0
- package/{lib → bundles/types}/constants/validators.d.ts +3 -2
- package/bundles/types/constants/validators.d.ts.map +1 -0
- package/{lib → bundles/types}/external-checkout/builder.d.ts +1 -0
- package/bundles/types/external-checkout/builder.d.ts.map +1 -0
- package/{lib → bundles/types}/external-checkout/checker.d.ts +1 -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/{lib → bundles/types}/helper/access-token.d.ts +2 -0
- package/bundles/types/helper/access-token.d.ts.map +1 -0
- package/{lib → bundles/types}/helper/browser.d.ts +1 -0
- package/bundles/types/helper/browser.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/{lib → bundles/types}/helper/event-emitter.d.ts +2 -0
- package/bundles/types/helper/event-emitter.d.ts.map +1 -0
- package/{lib → bundles/types}/helper/event.d.ts +1 -0
- package/bundles/types/helper/event.d.ts.map +1 -0
- package/{lib → bundles/types}/helper/ms.d.ts +1 -0
- package/bundles/types/helper/ms.d.ts.map +1 -0
- package/{lib → bundles/types}/helper/object.d.ts +1 -0
- package/bundles/types/helper/object.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/{lib → bundles/types}/helper/url.d.ts +1 -0
- package/bundles/types/helper/url.d.ts.map +1 -0
- package/{lib → bundles/types}/helper/uuid.d.ts +1 -0
- package/bundles/types/helper/uuid.d.ts.map +1 -0
- package/bundles/types/helper/widget-logger.d.ts +9 -0
- package/bundles/types/helper/widget-logger.d.ts.map +1 -0
- package/bundles/types/index-cba.d.ts +17 -0
- package/bundles/types/index-cba.d.ts.map +1 -0
- package/bundles/types/index.d.ts +18 -0
- package/bundles/types/index.d.ts.map +1 -0
- package/{lib → bundles/types}/payment-source/builder.d.ts +1 -0
- package/bundles/types/payment-source/builder.d.ts.map +1 -0
- package/{lib → bundles/types}/payment-source/index.d.ts +1 -0
- package/bundles/types/payment-source/index.d.ts.map +1 -0
- package/{lib → bundles/types}/payment-source-widget/html-payment-source-widget.d.ts +1 -0
- package/bundles/types/payment-source-widget/html-payment-source-widget.d.ts.map +1 -0
- package/{lib → bundles/types}/payment-source-widget/index.d.ts +1 -0
- package/bundles/types/payment-source-widget/index.d.ts.map +1 -0
- package/{lib → bundles/types}/payment-source-widget/interfaces.d.ts +1 -0
- package/bundles/types/payment-source-widget/interfaces.d.ts.map +1 -0
- package/{lib → bundles/types}/payment-source-widget/payment-source-widget.d.ts +1 -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 +59 -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 +18 -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 +86 -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 +84 -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 +37 -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 +104 -0
- package/bundles/types/secure-remote-commerce/index.d.ts.map +1 -0
- package/bundles/types/secure-remote-commerce/interfaces.d.ts +159 -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/{lib/secure-remote-commerce/providers/visa-src/visa-src.d.ts → bundles/types/secure-remote-commerce/providers/mastercard-src/mastercard-src.d.ts} +5 -7
- package/bundles/types/secure-remote-commerce/providers/mastercard-src/mastercard-src.d.ts.map +1 -0
- package/{lib → bundles/types}/secure-remote-commerce/providers/src-provider.d.ts +1 -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/http/http-request.d.ts +14 -0
- package/bundles/types/shared/http/http-request.d.ts.map +1 -0
- package/bundles/types/shared/http/index.d.ts +2 -0
- package/bundles/types/shared/http/index.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/{lib → bundles/types}/vault-display-widget/index.d.ts +1 -0
- package/bundles/types/vault-display-widget/index.d.ts.map +1 -0
- package/{lib → bundles/types}/vault-display-widget/vault-display-widget.d.ts +1 -0
- package/bundles/types/vault-display-widget/vault-display-widget.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/{lib → bundles/types}/wallet-buttons/index.d.ts +5 -0
- package/bundles/types/wallet-buttons/index.d.ts.map +1 -0
- package/{lib → bundles/types}/wallet-buttons/interfaces.d.ts +1 -0
- package/bundles/types/wallet-buttons/interfaces.d.ts.map +1 -0
- package/{lib → bundles/types}/wallet-buttons/wallet-buttons.d.ts +5 -4
- 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/{lib/wallet-buttons → bundles/types/wallet-buttons/wallet-services}/afterpay.wallet-service.d.ts +2 -1
- package/bundles/types/wallet-buttons/wallet-services/afterpay.wallet-service.d.ts.map +1 -0
- package/{lib/wallet-buttons → bundles/types/wallet-buttons/wallet-services}/apple.wallet-service.d.ts +4 -3
- package/bundles/types/wallet-buttons/wallet-services/apple.wallet-service.d.ts.map +1 -0
- package/{lib/wallet-buttons → bundles/types/wallet-buttons/wallet-services}/flypay-v2.wallet-service.d.ts +5 -5
- package/bundles/types/wallet-buttons/wallet-services/flypay-v2.wallet-service.d.ts.map +1 -0
- package/{lib/wallet-buttons → bundles/types/wallet-buttons/wallet-services}/flypay.wallet-service.d.ts +7 -6
- package/bundles/types/wallet-buttons/wallet-services/flypay.wallet-service.d.ts.map +1 -0
- package/{lib/wallet-buttons → bundles/types/wallet-buttons/wallet-services}/google.wallet-service.d.ts +5 -4
- package/bundles/types/wallet-buttons/wallet-services/google.wallet-service.d.ts.map +1 -0
- package/{lib/wallet-buttons → bundles/types/wallet-buttons/wallet-services}/mastercard.wallet-service.d.ts +1 -0
- package/bundles/types/wallet-buttons/wallet-services/mastercard.wallet-service.d.ts.map +1 -0
- package/{lib/wallet-buttons → bundles/types/wallet-buttons/wallet-services}/paypal.wallet-service.d.ts +2 -1
- package/bundles/types/wallet-buttons/wallet-services/paypal.wallet-service.d.ts.map +1 -0
- package/{lib/wallet-buttons → bundles/types/wallet-buttons/wallet-services}/stripe.wallet-service.d.ts +2 -1
- package/bundles/types/wallet-buttons/wallet-services/stripe.wallet-service.d.ts.map +1 -0
- package/{lib/wallet-buttons → bundles/types/wallet-buttons/wallet-services}/wallet-service.d.ts +5 -4
- 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 +195 -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 +10 -0
- package/bundles/types/wallet-buttons-express/enum/event.enum.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/index.d.ts +131 -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 +14 -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-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 +50 -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 +3 -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/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 +17 -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/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-wallet-meta.interface.d.ts +31 -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 +47 -0
- package/bundles/types/wallet-buttons-express/services/paypal/paypal.wallet-button-express.d.ts.map +1 -0
- package/{lib → bundles/types}/widget/configuration.d.ts +2 -1
- package/bundles/types/widget/configuration.d.ts.map +1 -0
- package/{lib → bundles/types}/widget/html-multi-widget.d.ts +6 -4
- package/bundles/types/widget/html-multi-widget.d.ts.map +1 -0
- package/{lib → bundles/types}/widget/html-widget.d.ts +1 -0
- package/bundles/types/widget/html-widget.d.ts.map +1 -0
- package/{lib → bundles/types}/widget/index.d.ts +2 -1
- package/bundles/types/widget/index.d.ts.map +1 -0
- package/{lib → bundles/types}/widget/meta.d.ts +1 -0
- package/bundles/types/widget/meta.d.ts.map +1 -0
- package/{lib → bundles/types}/widget/multi-widget.d.ts +2 -1
- package/bundles/types/widget/multi-widget.d.ts.map +1 -0
- package/{lib → bundles/types}/widget/style.d.ts +1 -0
- package/bundles/types/widget/style.d.ts.map +1 -0
- package/bundles/widget.umd.js +33407 -9468
- package/bundles/widget.umd.js.d.ts +4021 -0
- package/bundles/widget.umd.js.min.d.ts +4021 -0
- package/bundles/widget.umd.min.js +61 -1
- 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 +2499 -0
- package/docs/api-wrapper.md +78 -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 +267 -0
- package/docs/click-to-pay.md +339 -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 +58 -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 +636 -0
- package/docs/wallet-buttons-express-examples.md +201 -0
- package/docs/wallet-buttons-express.md +786 -0
- package/docs/wallet-buttons.md +622 -0
- package/docs/wallet-cba-buttons-examples.md +388 -0
- package/docs/widget-examples.md +134 -0
- package/examples/multi-html-widget/simple.html +2 -1
- package/package.json +208 -80
- package/slate.md +227 -191
- package/.nvmrc +0 -1
- package/api.d.ts +0 -1
- package/api.js +0 -1
- package/canvas3ds.d.ts +0 -1
- package/canvas3ds.js +0 -1
- package/checkout-button.d.ts +0 -1
- package/checkout-button.js +0 -1
- package/inicialization-guide.md +0 -7
- package/lib/api/api-base.d.ts +0 -40
- package/lib/api/api-base.js +0 -101
- package/lib/api/api-base.js.map +0 -1
- package/lib/api/api-charge-internal.js +0 -30
- package/lib/api/api-charge-internal.js.map +0 -1
- package/lib/api/api-charge.js +0 -49
- package/lib/api/api-charge.js.map +0 -1
- package/lib/api/api-internal.js +0 -13
- package/lib/api/api-internal.js.map +0 -1
- package/lib/api/api-service-internal.js +0 -18
- package/lib/api/api-service-internal.js.map +0 -1
- package/lib/api/api.js +0 -62
- package/lib/api/api.js.map +0 -1
- package/lib/api/index.d.ts +0 -1
- package/lib/api/index.js +0 -2
- package/lib/api/index.js.map +0 -1
- package/lib/canvas-3ds/canvas-3ds.js +0 -157
- package/lib/canvas-3ds/canvas-3ds.js.map +0 -1
- package/lib/canvas-3ds/index.js +0 -2
- package/lib/canvas-3ds/index.js.map +0 -1
- package/lib/canvas-3ds/services/gpayments-service.js +0 -181
- package/lib/canvas-3ds/services/gpayments-service.js.map +0 -1
- package/lib/canvas-3ds/services/index.js +0 -2
- package/lib/canvas-3ds/services/index.js.map +0 -1
- package/lib/canvas-3ds/services/standalone3ds-service.js +0 -32
- package/lib/canvas-3ds/services/standalone3ds-service.js.map +0 -1
- package/lib/checkout-button/afterpay/afterpay-checkout-button.js +0 -50
- package/lib/checkout-button/afterpay/afterpay-checkout-button.js.map +0 -1
- package/lib/checkout-button/afterpay/afterpay.runner.js +0 -41
- package/lib/checkout-button/afterpay/afterpay.runner.js.map +0 -1
- package/lib/checkout-button/checkout-button.interface.js +0 -45
- package/lib/checkout-button/checkout-button.interface.js.map +0 -1
- package/lib/checkout-button/checkout-button.js +0 -266
- package/lib/checkout-button/checkout-button.js.map +0 -1
- package/lib/checkout-button/checkout-contextual-handler.js +0 -75
- package/lib/checkout-button/checkout-contextual-handler.js.map +0 -1
- package/lib/checkout-button/index.js +0 -85
- package/lib/checkout-button/index.js.map +0 -1
- package/lib/checkout-button/paypal/paypal-checkout-button.js +0 -25
- package/lib/checkout-button/paypal/paypal-checkout-button.js.map +0 -1
- package/lib/checkout-button/paypal/paypal.runner.js +0 -14
- package/lib/checkout-button/paypal/paypal.runner.js.map +0 -1
- package/lib/checkout-button/runner/base.runner.js +0 -13
- package/lib/checkout-button/runner/base.runner.js.map +0 -1
- package/lib/checkout-button/runner/contextual.runner.js +0 -40
- package/lib/checkout-button/runner/contextual.runner.js.map +0 -1
- package/lib/checkout-button/runner/index.js +0 -11
- package/lib/checkout-button/runner/index.js.map +0 -1
- package/lib/checkout-button/runner/popup.runner.js +0 -68
- package/lib/checkout-button/runner/popup.runner.js.map +0 -1
- package/lib/checkout-button/runner/redirect.runner.js +0 -15
- package/lib/checkout-button/runner/redirect.runner.js.map +0 -1
- package/lib/checkout-button/zipmoney/zipmoney-checkout-button.js +0 -64
- package/lib/checkout-button/zipmoney/zipmoney-checkout-button.js.map +0 -1
- package/lib/checkout-button/zipmoney/zipmoney-contextual.runner.js +0 -78
- package/lib/checkout-button/zipmoney/zipmoney-contextual.runner.js.map +0 -1
- package/lib/checkout-button/zipmoney/zipmoney-redirect.runner.js +0 -49
- package/lib/checkout-button/zipmoney/zipmoney-redirect.runner.js.map +0 -1
- package/lib/checkout-button/zipmoney/zipmoney.config.js +0 -4
- package/lib/checkout-button/zipmoney/zipmoney.config.js.map +0 -1
- package/lib/checkout-button/zipmoney/zipmoney.runner.js +0 -23
- package/lib/checkout-button/zipmoney/zipmoney.runner.js.map +0 -1
- package/lib/checkout-button/zipmoney/zipmoney.types.js +0 -1
- package/lib/checkout-button/zipmoney/zipmoney.types.js.map +0 -1
- package/lib/components/ability-guard.js +0 -44
- package/lib/components/ability-guard.js.map +0 -1
- package/lib/components/background.js +0 -193
- package/lib/components/background.js.map +0 -1
- package/lib/components/container.js +0 -63
- package/lib/components/container.js.map +0 -1
- package/lib/components/dispatcher.js +0 -39
- package/lib/components/dispatcher.js.map +0 -1
- package/lib/components/element-style.js +0 -52
- package/lib/components/element-style.js.map +0 -1
- package/lib/components/flypay-iframe-event.js +0 -28
- package/lib/components/flypay-iframe-event.js.map +0 -1
- package/lib/components/form-Interceptor.js +0 -38
- package/lib/components/form-Interceptor.js.map +0 -1
- package/lib/components/http-core.js +0 -57
- package/lib/components/http-core.js.map +0 -1
- package/lib/components/iframe-event.js +0 -75
- package/lib/components/iframe-event.js.map +0 -1
- package/lib/components/iframe.js +0 -62
- package/lib/components/iframe.js.map +0 -1
- package/lib/components/link.js +0 -59
- package/lib/components/link.js.map +0 -1
- package/lib/components/loader.js +0 -234
- package/lib/components/loader.js.map +0 -1
- package/lib/components/param.js +0 -147
- package/lib/components/param.js.map +0 -1
- package/lib/components/popup.js +0 -104
- package/lib/components/popup.js.map +0 -1
- package/lib/components/storage-dispatcher.js +0 -75
- package/lib/components/storage-dispatcher.js.map +0 -1
- package/lib/components/trigger.js +0 -49
- package/lib/components/trigger.js.map +0 -1
- package/lib/components/vault-display-iframe-event.js +0 -27
- package/lib/components/vault-display-iframe-event.js.map +0 -1
- package/lib/components/wallet-background.js +0 -63
- package/lib/components/wallet-background.js.map +0 -1
- package/lib/components/wallet-trigger.js +0 -27
- package/lib/components/wallet-trigger.js.map +0 -1
- package/lib/configs/env/env.js +0 -117
- package/lib/configs/env/env.js.map +0 -1
- package/lib/configs/sdk.js +0 -16
- package/lib/configs/sdk.js.map +0 -1
- package/lib/constants/validators.js +0 -42
- package/lib/constants/validators.js.map +0 -1
- package/lib/external-checkout/builder.js +0 -45
- package/lib/external-checkout/builder.js.map +0 -1
- package/lib/external-checkout/checker.js +0 -22
- package/lib/external-checkout/checker.js.map +0 -1
- package/lib/external-checkout/index.d.ts +0 -2
- package/lib/external-checkout/index.js +0 -3
- package/lib/external-checkout/index.js.map +0 -1
- package/lib/helper/access-token.js +0 -44
- package/lib/helper/access-token.js.map +0 -1
- package/lib/helper/browser.js +0 -79
- package/lib/helper/browser.js.map +0 -1
- package/lib/helper/event-emitter.js +0 -23
- package/lib/helper/event-emitter.js.map +0 -1
- package/lib/helper/event.js +0 -23
- package/lib/helper/event.js.map +0 -1
- package/lib/helper/ms.js +0 -32
- package/lib/helper/ms.js.map +0 -1
- package/lib/helper/object.js +0 -6
- package/lib/helper/object.js.map +0 -1
- package/lib/helper/url.js +0 -11
- package/lib/helper/url.js.map +0 -1
- package/lib/helper/uuid.js +0 -26
- package/lib/helper/uuid.js.map +0 -1
- package/lib/index.d.ts +0 -15
- package/lib/index.js +0 -15
- package/lib/index.js.map +0 -1
- package/lib/payment-source/builder.js +0 -49
- package/lib/payment-source/builder.js.map +0 -1
- package/lib/payment-source/index.js +0 -2
- package/lib/payment-source/index.js.map +0 -1
- package/lib/payment-source-widget/html-payment-source-widget.js +0 -172
- package/lib/payment-source-widget/html-payment-source-widget.js.map +0 -1
- package/lib/payment-source-widget/index.js +0 -35
- package/lib/payment-source-widget/index.js.map +0 -1
- package/lib/payment-source-widget/interfaces.js +0 -2
- package/lib/payment-source-widget/interfaces.js.map +0 -1
- package/lib/payment-source-widget/payment-source-widget.js +0 -142
- package/lib/payment-source-widget/payment-source-widget.js.map +0 -1
- package/lib/secure-remote-commerce/index.d.ts +0 -1
- package/lib/secure-remote-commerce/index.js +0 -2
- package/lib/secure-remote-commerce/index.js.map +0 -1
- package/lib/secure-remote-commerce/interfaces.d.ts +0 -71
- package/lib/secure-remote-commerce/interfaces.js +0 -28
- package/lib/secure-remote-commerce/interfaces.js.map +0 -1
- package/lib/secure-remote-commerce/providers/src-provider.js +0 -1
- package/lib/secure-remote-commerce/providers/src-provider.js.map +0 -1
- package/lib/secure-remote-commerce/providers/visa-src/helper.d.ts +0 -7
- package/lib/secure-remote-commerce/providers/visa-src/helper.js +0 -36
- package/lib/secure-remote-commerce/providers/visa-src/helper.js.map +0 -1
- package/lib/secure-remote-commerce/providers/visa-src/index.d.ts +0 -1
- package/lib/secure-remote-commerce/providers/visa-src/index.js +0 -2
- package/lib/secure-remote-commerce/providers/visa-src/index.js.map +0 -1
- package/lib/secure-remote-commerce/providers/visa-src/visa-src.js +0 -113
- package/lib/secure-remote-commerce/providers/visa-src/visa-src.js.map +0 -1
- package/lib/secure-remote-commerce/providers/visa-src/visa-src.styles.d.ts +0 -8
- package/lib/secure-remote-commerce/providers/visa-src/visa-src.styles.js +0 -10
- package/lib/secure-remote-commerce/providers/visa-src/visa-src.styles.js.map +0 -1
- package/lib/secure-remote-commerce/secure-remote-commerce.d.ts +0 -163
- package/lib/secure-remote-commerce/secure-remote-commerce.js +0 -239
- package/lib/secure-remote-commerce/secure-remote-commerce.js.map +0 -1
- package/lib/vault-display-widget/index.js +0 -14
- package/lib/vault-display-widget/index.js.map +0 -1
- package/lib/vault-display-widget/vault-display-widget.js +0 -99
- package/lib/vault-display-widget/vault-display-widget.js.map +0 -1
- package/lib/wallet-buttons/afterpay.wallet-service.js +0 -152
- package/lib/wallet-buttons/afterpay.wallet-service.js.map +0 -1
- package/lib/wallet-buttons/apple.wallet-service.js +0 -324
- package/lib/wallet-buttons/apple.wallet-service.js.map +0 -1
- package/lib/wallet-buttons/flypay-v2.wallet-service.js +0 -165
- package/lib/wallet-buttons/flypay-v2.wallet-service.js.map +0 -1
- package/lib/wallet-buttons/flypay.wallet-service.js +0 -117
- package/lib/wallet-buttons/flypay.wallet-service.js.map +0 -1
- package/lib/wallet-buttons/google.wallet-service.js +0 -301
- package/lib/wallet-buttons/google.wallet-service.js.map +0 -1
- package/lib/wallet-buttons/helpers/flypay-v2.helper.d.ts +0 -3
- package/lib/wallet-buttons/helpers/flypay-v2.helper.js +0 -151
- package/lib/wallet-buttons/helpers/flypay-v2.helper.js.map +0 -1
- package/lib/wallet-buttons/index.js +0 -128
- package/lib/wallet-buttons/index.js.map +0 -1
- package/lib/wallet-buttons/interfaces.js +0 -1
- package/lib/wallet-buttons/interfaces.js.map +0 -1
- package/lib/wallet-buttons/mastercard.wallet-service.js +0 -27
- package/lib/wallet-buttons/mastercard.wallet-service.js.map +0 -1
- package/lib/wallet-buttons/paypal.wallet-service.js +0 -144
- package/lib/wallet-buttons/paypal.wallet-service.js.map +0 -1
- package/lib/wallet-buttons/stripe.wallet-service.js +0 -100
- package/lib/wallet-buttons/stripe.wallet-service.js.map +0 -1
- package/lib/wallet-buttons/wallet-buttons.js +0 -479
- package/lib/wallet-buttons/wallet-buttons.js.map +0 -1
- package/lib/wallet-buttons/wallet-service.js +0 -60
- package/lib/wallet-buttons/wallet-service.js.map +0 -1
- package/lib/widget/configuration.js +0 -260
- package/lib/widget/configuration.js.map +0 -1
- package/lib/widget/html-multi-widget.js +0 -422
- package/lib/widget/html-multi-widget.js.map +0 -1
- package/lib/widget/html-widget.js +0 -127
- package/lib/widget/html-widget.js.map +0 -1
- package/lib/widget/index.js +0 -132
- package/lib/widget/index.js.map +0 -1
- package/lib/widget/meta.js +0 -8
- package/lib/widget/meta.js.map +0 -1
- package/lib/widget/multi-widget.js +0 -437
- package/lib/widget/multi-widget.js.map +0 -1
- package/lib/widget/style.js +0 -204
- package/lib/widget/style.js.map +0 -1
- package/payment-source-widget.d.ts +0 -1
- package/payment-source-widget.js +0 -1
- package/tslint.json +0 -129
- package/typings/globals/@auspayplus/open-payments-checkout/index.d.ts +0 -43
- package/typings/globals/jasmine/index.d.ts +0 -576
- package/typings/globals/jasmine-ajax/index.d.ts +0 -83
- package/typings/globals/jquery/index.d.ts +0 -3759
- package/typings/index.d.ts +0 -4
- package/vault-display-widget.d.ts +0 -1
- package/vault-display-widget.js +0 -1
- package/vendors/zipmoney.d.ts +0 -18
- package/vendors/zipmoney.js +0 -2
- package/widget.d.ts +0 -1
- package/widget.js +0 -1
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import type { Container } from '../components/container';
|
|
2
|
+
export interface PaypalOathTokenResponse {
|
|
3
|
+
id_token: string;
|
|
4
|
+
access_token: string;
|
|
5
|
+
}
|
|
6
|
+
export interface PaypalOAuthTokenBody {
|
|
7
|
+
gateway_id: string;
|
|
8
|
+
}
|
|
9
|
+
export interface PaypalSetupTokenBody {
|
|
10
|
+
gateway_id: string;
|
|
11
|
+
token: string;
|
|
12
|
+
}
|
|
13
|
+
export interface PaypalSetupTokenResponse {
|
|
14
|
+
setup_token: string;
|
|
15
|
+
}
|
|
16
|
+
export interface PaypalOttBody {
|
|
17
|
+
gateway_id: string;
|
|
18
|
+
}
|
|
19
|
+
export interface PaypalOttResponse {
|
|
20
|
+
token: string;
|
|
21
|
+
email: string;
|
|
22
|
+
}
|
|
23
|
+
export interface PayPalStyleConfig {
|
|
24
|
+
layout?: 'vertical' | 'horizontal';
|
|
25
|
+
color?: 'blue' | 'gold' | 'silver' | 'black' | 'white';
|
|
26
|
+
shape?: 'rect' | 'sharp' | 'pill';
|
|
27
|
+
label?: 'paypal' | 'checkout' | 'buynow' | 'pay';
|
|
28
|
+
disableMaxWidth?: boolean;
|
|
29
|
+
disableMaxHeight?: boolean;
|
|
30
|
+
height?: number;
|
|
31
|
+
borderRadius?: number;
|
|
32
|
+
tagline?: boolean;
|
|
33
|
+
}
|
|
34
|
+
export interface PayPalMessageConfig {
|
|
35
|
+
amount?: number;
|
|
36
|
+
align?: 'center' | 'left' | 'right';
|
|
37
|
+
color?: 'black' | 'white';
|
|
38
|
+
position?: 'top' | 'bottom';
|
|
39
|
+
}
|
|
40
|
+
export interface PayPalSavePaymentSourceWidgetConfig {
|
|
41
|
+
style?: PayPalStyleConfig;
|
|
42
|
+
message?: PayPalMessageConfig;
|
|
43
|
+
}
|
|
44
|
+
export declare const PAYPAL_SAVE_PAYMENT_EVENTS: {
|
|
45
|
+
ON_SUCCESS: string;
|
|
46
|
+
ON_ERROR: string;
|
|
47
|
+
ON_CANCEL: string;
|
|
48
|
+
};
|
|
49
|
+
export interface IPayPalSavePaymentSourceWidget {
|
|
50
|
+
load(container: Container): void;
|
|
51
|
+
setEnv(env: string, alias?: string): void;
|
|
52
|
+
}
|
|
53
|
+
export declare enum ErrorCodes {
|
|
54
|
+
UNAVAILABLE = "unavailable",
|
|
55
|
+
ON_PAYPAL_VAULT_SETUP_TOKEN_ERROR = "onPaypalVaultSetupTokenError",
|
|
56
|
+
ON_GET_ID_TOKEN_ERROR = "onGetIdTokenError",
|
|
57
|
+
ON_GET_WALLET_CONFIG_ERROR = "onGetWalletConfigError",
|
|
58
|
+
ON_GET_SETUP_TOKEN_ERROR = "onGetSetupTokenError",
|
|
59
|
+
ON_ONE_TIME_TOKEN_ERROR = "onOneTimeTokenError"
|
|
60
|
+
}
|
|
61
|
+
export declare enum EVENTS {
|
|
62
|
+
ON_SUCCESS = "ON_SUCCESS",
|
|
63
|
+
ON_ERROR = "ON_ERROR",
|
|
64
|
+
ON_CANCEL = "ON_CANCEL"
|
|
65
|
+
}
|
|
66
|
+
export interface IOnSuccessEventData {
|
|
67
|
+
event: EVENTS.ON_SUCCESS;
|
|
68
|
+
data: {
|
|
69
|
+
token: string;
|
|
70
|
+
email: string;
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
export interface IOnErrorEventData {
|
|
74
|
+
event: EVENTS.ON_ERROR;
|
|
75
|
+
data: {
|
|
76
|
+
error_code: ErrorCodes;
|
|
77
|
+
details?: string;
|
|
78
|
+
message?: string;
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
export interface IOnCancelEventData {
|
|
82
|
+
event: EVENTS.ON_CANCEL;
|
|
83
|
+
}
|
|
84
|
+
//# sourceMappingURL=paypal-save-payment-source.interfaces.d.ts.map
|
package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.interfaces.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paypal-save-payment-source.interfaces.d.ts","sourceRoot":"","sources":["../../src/paypal-save-payment-source/paypal-save-payment-source.interfaces.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEzD,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;CACtB;AACD,MAAM,WAAW,oBAAoB;IACnC,UAAU,EAAE,MAAM,CAAC;CACpB;AACD,MAAM,WAAW,oBAAoB;IACnC,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;CACf;AACD,MAAM,WAAW,wBAAwB;IACvC,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,aAAa;IAC5B,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,iBAAiB;IAChC,MAAM,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC;IACnC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,OAAO,CAAC;IACvD,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;IAClC,KAAK,CAAC,EAAE,QAAQ,GAAG,UAAU,GAAG,QAAQ,GAAG,KAAK,CAAC;IACjD,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AACD,MAAM,WAAW,mBAAmB;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;IACpC,KAAK,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IAC1B,QAAQ,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;CAC7B;AAED,MAAM,WAAW,mCAAmC;IAClD,KAAK,CAAC,EAAE,iBAAiB,CAAC;IAC1B,OAAO,CAAC,EAAE,mBAAmB,CAAC;CAC/B;AAED,eAAO,MAAM,0BAA0B;;;;CAItC,CAAC;AAEF,MAAM,WAAW,8BAA8B;IAC7C,IAAI,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI,CAAC;IACjC,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3C;AAED,oBAAY,UAAU;IACpB,WAAW,gBAAgB;IAC3B,iCAAiC,iCAAiC;IAClE,qBAAqB,sBAAsB;IAC3C,0BAA0B,2BAA2B;IACrD,wBAAwB,yBAAyB;IACjD,uBAAuB,wBAAwB;CAChD;AAED,oBAAY,MAAM;IAChB,UAAU,eAAe;IACzB,QAAQ,aAAa;IACrB,SAAS,cAAc;CACxB;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC,UAAU,CAAC;IACzB,IAAI,EAAE;QACJ,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;CACH;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC;IACvB,IAAI,EAAE;QACJ,UAAU,EAAE,UAAU,CAAC;QACvB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;CACH;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC,SAAS,CAAC;CACzB"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { GetWalletConfigResponse } from '../api/api-gateway-internal';
|
|
2
|
+
import { ApiInternal } from '../api/api-internal';
|
|
3
|
+
import type { Container } from '../components/container';
|
|
4
|
+
import type { EventEmitter } from '../helper/event-emitter';
|
|
5
|
+
import { type IPayPalSavePaymentSourceWidget, type PayPalSavePaymentSourceWidgetConfig } from './paypal-save-payment-source.interfaces';
|
|
6
|
+
declare global {
|
|
7
|
+
interface Window {
|
|
8
|
+
paypal: any;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export declare class PayPalSavePaymentSourceService implements IPayPalSavePaymentSourceWidget {
|
|
12
|
+
protected publicKey: string;
|
|
13
|
+
protected gatewayId: string;
|
|
14
|
+
protected eventEmitter: EventEmitter;
|
|
15
|
+
protected config?: PayPalSavePaymentSourceWidgetConfig;
|
|
16
|
+
protected paypal: any;
|
|
17
|
+
protected api: ApiInternal;
|
|
18
|
+
protected walletConfig: GetWalletConfigResponse;
|
|
19
|
+
protected idToken: string;
|
|
20
|
+
protected accessToken: string;
|
|
21
|
+
private widgetActionLogger;
|
|
22
|
+
constructor(publicKey: string, gatewayId: string, eventEmitter: EventEmitter, config?: PayPalSavePaymentSourceWidgetConfig);
|
|
23
|
+
static fromConfig(publicKey: string, gatewayId: string, eventEmitter: EventEmitter, config?: PayPalSavePaymentSourceWidgetConfig): PayPalSavePaymentSourceService;
|
|
24
|
+
private getApiAuthType;
|
|
25
|
+
setEnv(env: string, alias?: string): void;
|
|
26
|
+
load(container: Container): void;
|
|
27
|
+
private renderPaypalSavePaymentSourceComponent;
|
|
28
|
+
private getClientAuthFromWalletConfig;
|
|
29
|
+
private getSetupToken;
|
|
30
|
+
protected onObtainedVaultSetupToken(vaultSetupToken: string): Promise<void>;
|
|
31
|
+
protected onErrorVaultSetupToken(error: any): void;
|
|
32
|
+
protected onCancelVaultSetupToken(): void;
|
|
33
|
+
private getIdToken;
|
|
34
|
+
private getWalletConfig;
|
|
35
|
+
private extractErrorDetails;
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=paypal-save-payment-source.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paypal-save-payment-source.service.d.ts","sourceRoot":"","sources":["../../src/paypal-save-payment-source/paypal-save-payment-source.service.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAC3E,OAAO,EAAiB,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAEL,KAAK,8BAA8B,EAEnC,KAAK,mCAAmC,EAOzC,MAAM,yCAAyC,CAAC;AAGjD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,MAAM,EAAE,GAAG,CAAC;KACb;CACF;AAWD,qBAAa,8BAA+B,YAAW,8BAA8B;IASjF,SAAS,CAAC,SAAS,EAAE,MAAM;IAC3B,SAAS,CAAC,SAAS,EAAE,MAAM;IAC3B,SAAS,CAAC,YAAY,EAAE,YAAY;IACpC,SAAS,CAAC,MAAM,CAAC,EAAE,mCAAmC;IAXxD,SAAS,CAAC,MAAM,EAAE,GAAG,CAAC;IACtB,SAAS,CAAC,GAAG,EAAE,WAAW,CAAC;IAC3B,SAAS,CAAC,YAAY,EAAE,uBAAuB,CAAC;IAChD,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC;IAC1B,SAAS,CAAC,WAAW,EAAE,MAAM,CAAC;IAC9B,OAAO,CAAC,kBAAkB,CAAqB;gBAGnC,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,YAAY,EAC1B,MAAM,CAAC,EAAE,mCAAmC;IAQxD,MAAM,CAAC,UAAU,CACf,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,YAAY,EAC1B,MAAM,CAAC,EAAE,mCAAmC;IAU9C,OAAO,CAAC,cAAc;IAOf,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI;IAIzC,IAAI,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI;IAsBvC,OAAO,CAAC,sCAAsC;IAgD9C,OAAO,CAAC,6BAA6B;IAIrC,OAAO,CAAC,aAAa;IAyBrB,SAAS,CAAC,yBAAyB,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IA0B3E,SAAS,CAAC,sBAAsB,CAAC,KAAK,KAAA,GAAG,IAAI;IAQ7C,SAAS,CAAC,uBAAuB,IAAI,IAAI;IAKzC,OAAO,CAAC,UAAU;IAqBlB,OAAO,CAAC,eAAe;IAmBvB,OAAO,CAAC,mBAAmB;CAQ5B"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { IClickToPayMeta } from './interfaces';
|
|
2
|
+
import { SRC } from './secure-remote-commerce';
|
|
3
|
+
/**
|
|
4
|
+
* Class ClickToPay include methods for interacting with the ClickToPay checkout and Manual Card option
|
|
5
|
+
*
|
|
6
|
+
* @extends SRC
|
|
7
|
+
*
|
|
8
|
+
* @constructor
|
|
9
|
+
*
|
|
10
|
+
* @param {string} iframe_selector - Selector of html element. Container for Click To Pay checkout iFrame.
|
|
11
|
+
* @param {string} service_id - Card Scheme Service ID
|
|
12
|
+
* @param {string} public_key_or_access_token - Paydock public key or Access Token
|
|
13
|
+
* @param {IClickToPayMeta} meta - Data that configures the Click To Pay checkout
|
|
14
|
+
* @example
|
|
15
|
+
* var mastercardSRC = new ClickToPay('#checkoutIframe', 'service_id', 'public_key', {});
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
18
|
+
declare class ClickToPay extends SRC {
|
|
19
|
+
protected iframe_selector: string;
|
|
20
|
+
protected service_id: string;
|
|
21
|
+
protected public_key_or_access_token: string;
|
|
22
|
+
protected meta: IClickToPayMeta;
|
|
23
|
+
/** @constructs */ constructor(iframe_selector: string, service_id: string, public_key_or_access_token: string, meta: IClickToPayMeta);
|
|
24
|
+
/**
|
|
25
|
+
* The final method after configuring the SRC to start the load process of Click To Pay checkout
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
load(): void;
|
|
29
|
+
}
|
|
30
|
+
export { ClickToPay };
|
|
31
|
+
//# sourceMappingURL=click-to-pay-secure-remote-commerce.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"click-to-pay-secure-remote-commerce.d.ts","sourceRoot":"","sources":["../../src/secure-remote-commerce/click-to-pay-secure-remote-commerce.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAE/C;;;;;;;;;;;;;;GAcG;AACH,cAAM,UAAW,SAAQ,GAAG;IAEZ,SAAS,CAAC,eAAe,EAAE,MAAM;IAAE,SAAS,CAAC,UAAU,EAAE,MAAM;IAAE,SAAS,CAAC,0BAA0B,EAAE,MAAM;IAAE,SAAS,CAAC,IAAI,EAAE,eAAe;IAD1J,kBAAkB,aACI,eAAe,EAAE,MAAM,EAAY,UAAU,EAAE,MAAM,EAAY,0BAA0B,EAAE,MAAM,EAAY,IAAI,EAAE,eAAe;IAI1J;;;OAGG;IACI,IAAI,IAAI,IAAI;CAmBtB;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
export { ClickToPay } from './click-to-pay-secure-remote-commerce';
|
|
2
|
+
/**
|
|
3
|
+
* Interface of data used for the Mastercard Checkout. For further information refer to [the documentation](https://developer.mastercard.com/unified-checkout-solutions/documentation/sdk-reference/init).
|
|
4
|
+
* @interface IMastercardSRCMeta
|
|
5
|
+
*
|
|
6
|
+
* @type {object}
|
|
7
|
+
* @param {boolean} [disable_summary_screen] Boolean flag that controls if a final summary screen is presented in the checkout flow.
|
|
8
|
+
* @param {object} [dpa_data] Object where the DPA creation data is stored.
|
|
9
|
+
* @param {string} [dpa_data.dpa_presentation_name] Name in which the DPA is presented.
|
|
10
|
+
* @param {string} [dpa_data.dpa_uri] Used for indicating the DPA URI.
|
|
11
|
+
* @param {string} [dpa_data.dpa_address] Address associated with the DPA.
|
|
12
|
+
* @param {string} [dpa_data.dpa_email_address] Email address for DPA communication.
|
|
13
|
+
* @param {object} [dpa_data.dpa_phone_number] Phone number structure for DPA communication.
|
|
14
|
+
* @param {string} [dpa_data.dpa_phone_number.country_code] The country code of the phone number.
|
|
15
|
+
* @param {string} [dpa_data.dpa_phone_number.phone_number] The phone number part of the phone number.
|
|
16
|
+
* @param {string} [dpa_data.dpa_logo_uri] URI for the DPA logo.
|
|
17
|
+
* @param {string} [dpa_data.dpa_supported_email_address] Supported email address for DPA support.
|
|
18
|
+
* @param {object} [dpa_data.dpa_supported_phone_number] Supported phone number for DPA support.
|
|
19
|
+
* @param {string} [dpa_data.dpa_supported_phone_number.country_code] The country code of the phone number.
|
|
20
|
+
* @param {string} [dpa_data.dpa_supported_phone_number.phone_number] The phone number part of the phone number.
|
|
21
|
+
* @param {string} [dpa_data.dpa_support_uri] URI for DPA support.
|
|
22
|
+
* @param {string} [dpa_data.application_type] Application type, either 'WEB_BROWSER' or 'MOBILE_APP'.
|
|
23
|
+
* @param {string[]} [co_brand_names] List of co-brand names associated with the Click to Pay experience.
|
|
24
|
+
* @param {string} [checkout_experience] Checkout experience type, either 'WITHIN_CHECKOUT' or 'PAYMENT_SETTINGS'.
|
|
25
|
+
* @param {string} [services] Services offered, such as 'INLINE_CHECKOUT' or 'INLINE_INSTALLMENTS'.
|
|
26
|
+
* @param {object} [dpa_transaction_options] Object that stores options for creating a transaction with DPA.
|
|
27
|
+
* @param {string} [dpa_transaction_options.dpa_locale] DPA’s preferred locale, example en_US.
|
|
28
|
+
* @param {string[]} [dpa_transaction_options.dpa_accepted_billing_countries] List of accepted billing countries for DPA in ISO 3166-1 alpha-2 format.
|
|
29
|
+
* @param {string} [dpa_transaction_options.dpa_billing_preference] Billing preferences for DPA, options are 'FULL', 'POSTAL_COUNTRY', 'NONE'.
|
|
30
|
+
* @param {object[]} [dpa_transaction_options.payment_options] Payment options included in the transaction.
|
|
31
|
+
* @param {string} [dpa_transaction_options.payment_options.dynamic_data_type] Dynamic data types.
|
|
32
|
+
* @param {string} [dpa_transaction_options.order_type] Type of the order, options are 'SPLIT_SHIPMENT', 'PREFERRED_CARD'.
|
|
33
|
+
* @param {string} [dpa_transaction_options.three_ds_preference] Preference for 3DS usage in the transaction.
|
|
34
|
+
* @param {boolean} [dpa_transaction_options.confirm_payment] Indicates if payment confirmation is required.
|
|
35
|
+
* @param {boolean} [dpa_transaction_options.consumer_name_requested] Indicates if consumer name is requested.
|
|
36
|
+
* @param {boolean} [dpa_transaction_options.consumer_email_address_requested] Indicates if consumer email address is requested.
|
|
37
|
+
* @param {boolean} [dpa_transaction_options.consumer_phone_number_requested] Indicates if consumer phone number is requested.
|
|
38
|
+
* @param {object} [dpa_transaction_options.transaction_amount] Details of the transaction amount.
|
|
39
|
+
* @param {number} [dpa_transaction_options.transaction_amount.transaction_amount] Amount of the transaction.
|
|
40
|
+
* @param {string} [dpa_transaction_options.transaction_amount.transaction_currency_code] Currency code of the transaction in 3 letter ISO code format.
|
|
41
|
+
* @param {string} [dpa_transaction_options.merchant_order_id] Merchant's order ID.
|
|
42
|
+
* @param {string} [dpa_transaction_options.merchant_category_code] Merchant's category code.
|
|
43
|
+
* @param {string} [dpa_transaction_options.merchant_country_code] Merchant's country code in ISO 3166-1 alpha-2 format.
|
|
44
|
+
* @param {object} [customer] Object where the customer data is stored to prefill in the checkout.
|
|
45
|
+
* @param {string} [customer.email] Customer email.
|
|
46
|
+
* @param {string} [customer.first_name] Customer first name.
|
|
47
|
+
* @param {string} [customer.last_name] Customer last name.
|
|
48
|
+
* @param {object} [customer.phone] Object where the customer phone is stored.
|
|
49
|
+
* @param {string} [customer.phone.country_code] Customer phone country code (example "1" for US).
|
|
50
|
+
* @param {string} [customer.phone.phone] Customer phone number.
|
|
51
|
+
* @param {string} [unaccepted_card_type] Used to block a specific card type. Options are 'CREDIT', 'DEBIT'.
|
|
52
|
+
* @param {string} [recognition_token] Used for Click to Pay to load user information and preferences.
|
|
53
|
+
*/
|
|
54
|
+
/**
|
|
55
|
+
* Interface for data returned in callbacks
|
|
56
|
+
* @interface EventData
|
|
57
|
+
*
|
|
58
|
+
* @type {object}
|
|
59
|
+
* @param {EVENT_DATA_TYPE} type Event type of type [EVENT_DATA_TYPE]{@link EVENT_DATA_TYPE}
|
|
60
|
+
* @param {string | EventDataCheckoutCompletedData} data optional data returning a string for checkoutError event or [EventDataCheckoutCompletedData]{@link EventDataCheckoutCompletedData} for checkoutCompleted
|
|
61
|
+
*/
|
|
62
|
+
/**
|
|
63
|
+
* Event data returned for checkoutCompleted callback, holding the One Time Token and the flow type completed.
|
|
64
|
+
* When the flow type is src, masked checkoutData available is also returned
|
|
65
|
+
*
|
|
66
|
+
* @interface EventDataCheckoutCompletedData
|
|
67
|
+
*
|
|
68
|
+
* @type {object}
|
|
69
|
+
* @param {string} type type of the checkout, can be `src` or `manual`.
|
|
70
|
+
* @param {string} token one time token value.
|
|
71
|
+
* @param {object} [checkoutData] Optional checkout data related to the checkout information. Only available on src flow.
|
|
72
|
+
* @param {string} [checkoutData.card_number_bin] The BIN of the card used for the transaction.
|
|
73
|
+
* @param {string} [checkoutData.card_number_last4] The last four digits of the card number.
|
|
74
|
+
* @param {string} [checkoutData.card_scheme] The card scheme. Values: visa, mastercard, amex, diners, discover.
|
|
75
|
+
* @param {string} [checkoutData.card_type] The type of card. Values: credit, debit, prepaid, combo, flex.
|
|
76
|
+
* @param {string} [checkoutData.address_line1] Address line 1 for billing address.
|
|
77
|
+
* @param {string} [checkoutData.address_line2] Address line 2 for billing address.
|
|
78
|
+
* @param {string} [checkoutData.address_line3] Address line 3 for billing address.
|
|
79
|
+
* @param {string} [checkoutData.address_city] City for billing address.
|
|
80
|
+
* @param {string} [checkoutData.address_postcode] Postal code for billing address.
|
|
81
|
+
* @param {string} [checkoutData.address_state] State or province for billing address.
|
|
82
|
+
* @param {string} [checkoutData.address_country] Country for billing address.
|
|
83
|
+
* @param {object} [checkoutData.shipping] Optional shipping information.
|
|
84
|
+
* @param {string} [checkoutData.shipping.address_line1] Address line 1 for shipping address.
|
|
85
|
+
* @param {string} [checkoutData.shipping.address_line2] Address line 2 for shipping address.
|
|
86
|
+
* @param {string} [checkoutData.shipping.address_line3] Address line 3 for shipping address.
|
|
87
|
+
* @param {string} [checkoutData.shipping.address_city] City for shipping address.
|
|
88
|
+
* @param {string} [checkoutData.shipping.address_postcode] Postal code for shipping address.
|
|
89
|
+
* @param {string} [checkoutData.shipping.address_state] State or province for shipping address.
|
|
90
|
+
* @param {string} [checkoutData.shipping.address_country] Country for shipping address.
|
|
91
|
+
*/
|
|
92
|
+
/**
|
|
93
|
+
* Interface for style configs inyected to the Click to Pay checkout
|
|
94
|
+
* @interface IStyles
|
|
95
|
+
*
|
|
96
|
+
* @type {object}
|
|
97
|
+
* @param {string} [primary_button_color] Color Code for primary button.
|
|
98
|
+
* @param {string} [primary_button_text_color] Color Code for primary button text.
|
|
99
|
+
* @param {string} [secondary_button_color] Color Code for secondary button.
|
|
100
|
+
* @param {string} [secondary_button_text_color] Color Code for secondary button text.
|
|
101
|
+
* @param {string} [font_family] Font family to be used.
|
|
102
|
+
* @param {boolean} [enable_src_popup] Boolean flag to make the Click to Pay checkout show in a popup window instead of embedded in iframe.
|
|
103
|
+
*/
|
|
104
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/secure-remote-commerce/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AAEnE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AAEH;;;;;;;GAOG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH;;;;;;;;;;;GAWG"}
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* List of available event's name in the Click To Pay checkout lifecycle
|
|
3
|
+
* @enum EVENT
|
|
4
|
+
*
|
|
5
|
+
* @type {object}
|
|
6
|
+
* @param {string} IFRAME_LOADED=iframeLoaded Initial event sent when IFrame is initially loaded.
|
|
7
|
+
* @param {string} CHECKOUT_READY=checkoutReady Event sent when checkout is loaded and ready to be used by customer. Leverage alongside [showCheckout](#SRC+showCheckout) and [hideCheckout](#SRC+hideCheckout).
|
|
8
|
+
* @param {string} CHECKOUT_POPUP_OPEN=checkoutPopupOpen Event sent when Click To Pay checkout flow is started, regardless of embedded or windowed mode.
|
|
9
|
+
* @param {string} CHECKOUT_POPUP_CLOSE=checkoutPopupClose Event sent when Click To Pay checkout flow is closed, regardless of embedded or windowed mode.
|
|
10
|
+
* @param {string} CHECKOUT_COMPLETED=checkoutCompleted Event sent on successful checkout by customer. Check [data](#EventDataCheckoutCompletedData) for more information.
|
|
11
|
+
* @param {string} CHECKOUT_ERROR=checkoutError Event sent on error checkout by customer. Check [data](#EventData) for more information.
|
|
12
|
+
* @param {string} RECOGNITION_TOKEN_REQUESTED=recognitionTokenRequested Event sent when a recognition token was found on the mastercard SDK response.
|
|
13
|
+
* @param {string} RECOGNITION_TOKEN_DROPPED=recognitionTokenDropped Event sent when a recognition token needs to be dropped for user be no longer remembered.
|
|
14
|
+
*/
|
|
15
|
+
export declare enum EVENT {
|
|
16
|
+
IFRAME_LOADED = "iframeLoaded",
|
|
17
|
+
CHECKOUT_READY = "checkoutReady",
|
|
18
|
+
CHECKOUT_COMPLETED = "checkoutCompleted",
|
|
19
|
+
CHECKOUT_ERROR = "checkoutError",
|
|
20
|
+
CHECKOUT_POPUP_OPEN = "checkoutPopupOpen",
|
|
21
|
+
CHECKOUT_POPUP_CLOSE = "checkoutPopupClose",
|
|
22
|
+
RECOGNITION_TOKEN_REQUESTED = "recognitionTokenRequested",
|
|
23
|
+
RECOGNITION_TOKEN_DROPPED = "recognitionTokenDropped"
|
|
24
|
+
}
|
|
25
|
+
export interface EventData {
|
|
26
|
+
type: EVENT_DATA_TYPE;
|
|
27
|
+
data?: string | EventDataCheckoutCompletedData | EventDataRecognitionTokenRequested;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* List of available event data types
|
|
31
|
+
* @enum EVENT_DATA_TYPE
|
|
32
|
+
*
|
|
33
|
+
* @type {object}
|
|
34
|
+
* @param {string} CRITICAL_ERROR=CriticalError in this error scenario the checkout is understood to be in a non-recoverable state and should be closed by the merchant and give alternate payment options to the user
|
|
35
|
+
* @param {string} USER_ERROR=UserError in this error scenario the error in likely a user input error and the checkout is in a recoverable state, so the user will be kept within the checkout and can retry the flow
|
|
36
|
+
* @param {string} SUCCESS=Success
|
|
37
|
+
*/
|
|
38
|
+
export declare enum EVENT_DATA_TYPE {
|
|
39
|
+
CRITICAL_ERROR = "CriticalError",
|
|
40
|
+
USER_ERROR = "UserError",
|
|
41
|
+
SUCCESS = "Success"
|
|
42
|
+
}
|
|
43
|
+
interface EventDataRecognitionTokenRequested {
|
|
44
|
+
data: {
|
|
45
|
+
recognitionToken: string;
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
interface EventDataCheckoutCompletedData {
|
|
49
|
+
type: 'src' | 'manual';
|
|
50
|
+
token: string;
|
|
51
|
+
checkoutData?: {
|
|
52
|
+
card_number_bin?: string;
|
|
53
|
+
card_number_last4?: string;
|
|
54
|
+
card_scheme?: 'visa' | 'mastercard' | 'amex' | 'diners' | 'discover';
|
|
55
|
+
card_type?: 'credit' | 'debit' | 'prepaid' | 'combo' | 'flex';
|
|
56
|
+
address_line1?: string;
|
|
57
|
+
address_line2?: string;
|
|
58
|
+
address_line3?: string;
|
|
59
|
+
address_city?: string;
|
|
60
|
+
address_postcode?: string;
|
|
61
|
+
address_state?: string;
|
|
62
|
+
address_country?: string;
|
|
63
|
+
shipping?: {
|
|
64
|
+
address_line1?: string;
|
|
65
|
+
address_line2?: string;
|
|
66
|
+
address_line3?: string;
|
|
67
|
+
address_city?: string;
|
|
68
|
+
address_postcode?: string;
|
|
69
|
+
address_state?: string;
|
|
70
|
+
address_country?: string;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
interface IBaseSRCMeta {
|
|
75
|
+
customizations?: IStyles;
|
|
76
|
+
dpa_data?: {
|
|
77
|
+
dpa_presentation_name?: string;
|
|
78
|
+
dpa_uri?: string;
|
|
79
|
+
};
|
|
80
|
+
dpa_transaction_options?: {
|
|
81
|
+
dpa_locale?: string;
|
|
82
|
+
dpa_accepted_billing_countries?: string[];
|
|
83
|
+
consumer_name_requested?: boolean;
|
|
84
|
+
consumer_email_address_requested?: boolean;
|
|
85
|
+
consumer_phone_number_requested?: boolean;
|
|
86
|
+
transaction_amount?: {
|
|
87
|
+
transaction_amount?: number;
|
|
88
|
+
transaction_currency_code?: string;
|
|
89
|
+
};
|
|
90
|
+
merchant_order_id?: string;
|
|
91
|
+
merchant_category_code?: string;
|
|
92
|
+
merchant_country_code?: string;
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
interface PhoneNumber {
|
|
96
|
+
country_code: string;
|
|
97
|
+
phone_number: string;
|
|
98
|
+
}
|
|
99
|
+
interface Customer {
|
|
100
|
+
email?: string;
|
|
101
|
+
phone?: {
|
|
102
|
+
country_code?: string;
|
|
103
|
+
phone?: string;
|
|
104
|
+
};
|
|
105
|
+
first_name?: string;
|
|
106
|
+
last_name?: string;
|
|
107
|
+
}
|
|
108
|
+
export interface IClickToPayMeta extends IBaseSRCMeta {
|
|
109
|
+
dpa_data?: IBaseSRCMeta['dpa_data'] & {
|
|
110
|
+
dpa_address?: string;
|
|
111
|
+
dpa_email_address?: string;
|
|
112
|
+
dpa_phone_number?: PhoneNumber;
|
|
113
|
+
dpa_logo_uri?: string;
|
|
114
|
+
dpa_supported_email_address?: string;
|
|
115
|
+
dpa_supported_phone_number?: PhoneNumber;
|
|
116
|
+
dpa_uri?: string;
|
|
117
|
+
dpa_support_uri?: string;
|
|
118
|
+
application_type?: 'WEB_BROWSER' | 'MOBILE_APP';
|
|
119
|
+
};
|
|
120
|
+
disable_summary_screen?: boolean;
|
|
121
|
+
co_brand_names?: string[];
|
|
122
|
+
checkout_experience?: 'WITHIN_CHECKOUT' | 'PAYMENT_SETTINGS';
|
|
123
|
+
services?: 'INLINE_CHECKOUT' | 'INLINE_INSTALLMENTS';
|
|
124
|
+
dpa_transaction_options?: IBaseSRCMeta['dpa_transaction_options'] & {
|
|
125
|
+
dpa_billing_preference?: MASTERCARD_DPA_SHIPPING_BILLING_PREFERENCE;
|
|
126
|
+
payment_options?: Array<{
|
|
127
|
+
dynamic_data_type?: string;
|
|
128
|
+
}>;
|
|
129
|
+
order_type?: MASTERCARD_ORDER_TYPE;
|
|
130
|
+
three_ds_preference?: string;
|
|
131
|
+
confirm_payment?: boolean;
|
|
132
|
+
};
|
|
133
|
+
customer?: Customer;
|
|
134
|
+
unaccepted_card_type?: 'CREDIT' | 'DEBIT';
|
|
135
|
+
recognition_token?: string;
|
|
136
|
+
}
|
|
137
|
+
export type MASTERCARD_DPA_SHIPPING_BILLING_PREFERENCE = 'FULL' | 'POSTAL_COUNTRY' | 'NONE';
|
|
138
|
+
export type DPA_DYNAMIC_DATA_TYPE = 'TAVV' | 'DTVV';
|
|
139
|
+
export type REVIEW_ACTION = 'pay' | 'continue';
|
|
140
|
+
export type TRANSACTION_TYPE = 'PURCHASE' | 'BILL_PAYMENT' | 'MONEY_TRANSFER';
|
|
141
|
+
export type MASTERCARD_ORDER_TYPE = 'SPLIT_SHIPMENT' | 'PREFERRED_CARD';
|
|
142
|
+
export interface IStyles {
|
|
143
|
+
primary_button_color?: string;
|
|
144
|
+
secondary_button_color?: string;
|
|
145
|
+
primary_button_text_color?: string;
|
|
146
|
+
secondary_button_text_color?: string;
|
|
147
|
+
font_family?: string;
|
|
148
|
+
enable_src_popup?: boolean;
|
|
149
|
+
}
|
|
150
|
+
export declare const STYLE: {
|
|
151
|
+
PRIMARY_BUTTON_COLOR: string;
|
|
152
|
+
SECONDARY_BUTTON_COLOR: string;
|
|
153
|
+
PRIMARY_BUTTON_TEXT_COLOR: string;
|
|
154
|
+
SECONDARY_BUTTON_TEXT_COLOR: string;
|
|
155
|
+
FONT_FAMILY: string;
|
|
156
|
+
ENABLE_SRC_POPUP: string;
|
|
157
|
+
};
|
|
158
|
+
export {};
|
|
159
|
+
//# sourceMappingURL=interfaces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../src/secure-remote-commerce/interfaces.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/secure-remote-commerce/providers/mastercard-src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -4,24 +4,22 @@ import { IFrame } from '../../../components/iframe';
|
|
|
4
4
|
import { IFrameEvent } from '../../../components/iframe-event';
|
|
5
5
|
import { EventEmitter } from "../../../helper/event-emitter";
|
|
6
6
|
import { SRCProvider } from '../src-provider';
|
|
7
|
-
import {
|
|
8
|
-
export declare class
|
|
9
|
-
protected meta:
|
|
7
|
+
import { IClickToPayMeta } from '../../interfaces';
|
|
8
|
+
export declare class ClickToPaySRC implements SRCProvider {
|
|
9
|
+
protected meta: IClickToPayMeta;
|
|
10
10
|
protected eventEmitter: EventEmitter;
|
|
11
11
|
protected autoResize: any;
|
|
12
12
|
protected link: Link;
|
|
13
13
|
protected iFrameContainer: Container;
|
|
14
|
-
protected buttonContainer: Container;
|
|
15
14
|
protected iFrame: IFrame;
|
|
16
15
|
protected iFrameEvent: IFrameEvent;
|
|
17
|
-
constructor(
|
|
16
|
+
constructor(iframe_selector: string, service_id: string, public_key: string, meta: IClickToPayMeta, eventEmitter: EventEmitter, autoResize: any, env: string, alias?: string);
|
|
18
17
|
private setupIFrameEvents;
|
|
19
18
|
load(): void;
|
|
20
19
|
getEnv(): string;
|
|
21
|
-
hideButton(_saveSize: boolean): void;
|
|
22
|
-
showButton(): void;
|
|
23
20
|
hideCheckout(saveSize: boolean): void;
|
|
24
21
|
showCheckout(): void;
|
|
25
22
|
reload(): void;
|
|
26
23
|
useAutoResize(force?: boolean): void;
|
|
27
24
|
}
|
|
25
|
+
//# sourceMappingURL=mastercard-src.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mastercard-src.d.ts","sourceRoot":"","sources":["../../../../src/secure-remote-commerce/providers/mastercard-src/mastercard-src.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAkB,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAc,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAS,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAG1D,qBAAa,aAAc,YAAW,WAAW;IAMgC,SAAS,CAAC,IAAI,EAAE,eAAe;IAAE,SAAS,CAAC,YAAY,EAAE,YAAY;IAAE,SAAS,CAAC,UAAU;IALxK,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC;IACrB,SAAS,CAAC,eAAe,EAAE,SAAS,CAAC;IACrC,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,WAAW,EAAE,WAAW,CAAC;gBAEvB,eAAe,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAY,IAAI,EAAE,eAAe,EAAY,YAAY,EAAE,YAAY,EAAY,UAAU,KAAA,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM;IAsBrM,OAAO,CAAC,iBAAiB;IAqClB,IAAI,IAAI,IAAI;IAUZ,MAAM,IAAI,MAAM;IAIhB,YAAY,CAAC,QAAQ,EAAE,OAAO;IAK9B,YAAY;IAKZ,MAAM;IAKN,aAAa,CAAC,KAAK,CAAC,EAAE,OAAO,GAAG,IAAI;CAkB9C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"src-provider.d.ts","sourceRoot":"","sources":["../../../src/secure-remote-commerce/providers/src-provider.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IACxB,IAAI,IAAI,IAAI,CAAC;IACb,MAAM,IAAI,MAAM,CAAC;IACjB,UAAU,CAAC,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI,CAAC;IACrC,UAAU,CAAC,IAAI,IAAI,CAAC;IACpB,YAAY,CAAC,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI,CAAC;IACvC,YAAY,CAAC,IAAI,IAAI,CAAC;IACtB,MAAM,IAAI,IAAI,CAAC;IACf,aAAa,CAAC,IAAI,IAAI,CAAC;CAC1B"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { EventEmitter } from '../helper/event-emitter';
|
|
2
|
+
import { ApiInternal } from '../api/api-internal';
|
|
3
|
+
import { SRCProvider } from './providers/src-provider';
|
|
4
|
+
import { IStyles, IClickToPayMeta } from './interfaces';
|
|
5
|
+
declare abstract class SRC {
|
|
6
|
+
protected iframe_selector: string;
|
|
7
|
+
protected service_id: string;
|
|
8
|
+
protected public_key_or_access_token: string;
|
|
9
|
+
protected meta: IClickToPayMeta;
|
|
10
|
+
protected eventEmitter: EventEmitter;
|
|
11
|
+
protected env: string;
|
|
12
|
+
protected alias?: string;
|
|
13
|
+
protected api: ApiInternal;
|
|
14
|
+
protected provider: SRCProvider;
|
|
15
|
+
protected autoResize: boolean;
|
|
16
|
+
protected style: IStyles;
|
|
17
|
+
constructor(iframe_selector: string, service_id: string, public_key_or_access_token: string, meta: IClickToPayMeta);
|
|
18
|
+
/**
|
|
19
|
+
* Object contain styles for widget - call before `.load()`.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* widget.setStyles({
|
|
23
|
+
* enable_src_popup: true
|
|
24
|
+
* primary_button_color: 'red',
|
|
25
|
+
* secondary_button_color: 'blue',
|
|
26
|
+
* primary_button_text_color: 'white',
|
|
27
|
+
* secondary_button_text_color: 'white',
|
|
28
|
+
* font_family: 'Arial',
|
|
29
|
+
* });
|
|
30
|
+
* @param {IStyles} fields - name of styles which can be shown in widget [STYLE]{@link STYLE}
|
|
31
|
+
*/
|
|
32
|
+
setStyles(styles: IStyles): void;
|
|
33
|
+
private setStyle;
|
|
34
|
+
load(): void;
|
|
35
|
+
/**
|
|
36
|
+
* Current method can change environment. By default environment = sandbox.
|
|
37
|
+
* Also we can change domain alias for this environment. By default domain_alias = paydock.com
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* SRC.setEnv('production');
|
|
41
|
+
* @param {string} env - sandbox, production
|
|
42
|
+
* @param {string} [alias] - Own domain alias
|
|
43
|
+
*/
|
|
44
|
+
setEnv(env: string, alias?: string): void;
|
|
45
|
+
/**
|
|
46
|
+
* Method to read the current environment
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* SRC.getEnv();
|
|
50
|
+
*/
|
|
51
|
+
getEnv(): string;
|
|
52
|
+
on(eventName: string): Promise<any>;
|
|
53
|
+
on(eventName: string, cb: (data: any) => void): any;
|
|
54
|
+
/**
|
|
55
|
+
* Using this method you can hide checkout after load and button click
|
|
56
|
+
* @param {boolean} [saveSize=false] - using this param you can save iframe's size (if applicable)
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* SRC.hideCheckout();
|
|
60
|
+
*/
|
|
61
|
+
hideCheckout(saveSize: boolean): void;
|
|
62
|
+
/**
|
|
63
|
+
* Using this method you can show checkout after using hideCheckout method
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* SRC.showCheckout()
|
|
67
|
+
*/
|
|
68
|
+
showCheckout(): void;
|
|
69
|
+
/**
|
|
70
|
+
* Using this method you can reload the whole checkout
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
* SRC.reload()
|
|
74
|
+
*/
|
|
75
|
+
reload(): void;
|
|
76
|
+
/**
|
|
77
|
+
* Use this method for resize checkout iFrame according to content height, if applicable
|
|
78
|
+
*
|
|
79
|
+
* @example
|
|
80
|
+
* SRC.useAutoResize();
|
|
81
|
+
*
|
|
82
|
+
*/
|
|
83
|
+
useAutoResize(): void;
|
|
84
|
+
}
|
|
85
|
+
export { SRC };
|
|
86
|
+
//# sourceMappingURL=secure-remote-commerce.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"secure-remote-commerce.d.ts","sourceRoot":"","sources":["../../src/secure-remote-commerce/secure-remote-commerce.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,OAAO,EAAS,eAAe,EAAa,MAAM,cAAc,CAAC;AAG1E,uBAAe,GAAG;IAYF,SAAS,CAAC,eAAe,EAAE,MAAM;IAAE,SAAS,CAAC,UAAU,EAAE,MAAM;IAAE,SAAS,CAAC,0BAA0B,EAAE,MAAM;IAAE,SAAS,CAAC,IAAI,EAAE,eAAe;IAX1J,SAAS,CAAC,YAAY,EAAE,YAAY,CAAC;IAErC,SAAS,CAAC,GAAG,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAEzB,SAAS,CAAC,GAAG,EAAE,WAAW,CAAC;IAC3B,SAAS,CAAC,QAAQ,EAAE,WAAW,CAAC;IAEhC,SAAS,CAAC,UAAU,UAAS;IAC7B,SAAS,CAAC,KAAK,EAAE,OAAO,CAAiB;gBAEnB,eAAe,EAAE,MAAM,EAAY,UAAU,EAAE,MAAM,EAAY,0BAA0B,EAAE,MAAM,EAAY,IAAI,EAAE,eAAe;IAKzJ;;;;;;;;;;;;;MAaE;IACI,SAAS,CAAC,MAAM,EAAE,OAAO;IAOhC,OAAO,CAAC,QAAQ;IAOT,IAAI,IAAI,IAAI;IA0BnB;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI;IAShD;;;;;OAKG;IACI,MAAM,IAAI,MAAM;IAOhB,EAAE,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;IACnC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI;IAyBpD;;;;;;OAMG;IACI,YAAY,CAAC,QAAQ,EAAE,OAAO;IAKrC;;;;;OAKG;IACI,YAAY;IAKnB;;;;;OAKG;IACI,MAAM;IAKb;;;;;;OAMG;IACI,aAAa;CAKvB;AAED,OAAO,EAAE,GAAG,EAAE,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type HttpRequestMethod = 'DELETE' | 'GET' | 'OPTIONS' | 'POST' | 'PUT';
|
|
2
|
+
export type HttpRequestUrl = string | URL;
|
|
3
|
+
export declare class HttpRequest {
|
|
4
|
+
private request;
|
|
5
|
+
private constructor();
|
|
6
|
+
static create(method: HttpRequestMethod, url: string | HttpRequestUrl): HttpRequest;
|
|
7
|
+
inner(): XMLHttpRequest;
|
|
8
|
+
setHeader(name: string, value: string): this;
|
|
9
|
+
setAccessToken(value: string): this;
|
|
10
|
+
setPublicKey(value: string): this;
|
|
11
|
+
setContentTypeJson(): this;
|
|
12
|
+
setSdkVersion(): this;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=http-request.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-request.d.ts","sourceRoot":"","sources":["../../../src/shared/http/http-request.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,KAAK,GAAG,SAAS,GAAG,MAAM,GAAG,KAAK,CAAA;AAC7E,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,GAAG,CAAA;AAEzC,qBAAa,WAAW;IACtB,OAAO,CAAC,OAAO,CAAgB;IAE/B,OAAO;WAIO,MAAM,CAAC,MAAM,EAAE,iBAAiB,EAAE,GAAG,EAAE,MAAM,GAAG,cAAc;IAQrE,KAAK;IAIL,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;IAMrC,cAAc,CAAC,KAAK,EAAE,MAAM;IAI5B,YAAY,CAAC,KAAK,EAAE,MAAM;IAI1B,kBAAkB;IAIlB,aAAa;CAQrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shared/http/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { MicroAgent } from '@newrelic/browser-agent/loaders/micro-agent';
|
|
2
|
+
type AgentPrototype = Pick<(typeof MicroAgent)['prototype'], 'addPageAction' | 'noticeError'>;
|
|
3
|
+
type AgentMethodNames = keyof AgentPrototype;
|
|
4
|
+
type AgentMethodParameters<T extends AgentMethodNames> = Parameters<AgentPrototype[T]>;
|
|
5
|
+
declare class InstrumentationAgent extends MicroAgent {
|
|
6
|
+
private static agent;
|
|
7
|
+
private static available;
|
|
8
|
+
private static initialized;
|
|
9
|
+
private constructor();
|
|
10
|
+
static get instance(): InstrumentationAgent;
|
|
11
|
+
isAvailable(): boolean;
|
|
12
|
+
call: <T extends "addPageAction" | "noticeError">(method: T, ...args: AgentMethodParameters<T>) => void;
|
|
13
|
+
}
|
|
14
|
+
export { InstrumentationAgent };
|
|
15
|
+
//# sourceMappingURL=instrumentation.agent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instrumentation.agent.d.ts","sourceRoot":"","sources":["../../../../src/shared/services/instrumentation/instrumentation.agent.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,6CAA6C,CAAC;AAMzE,KAAK,cAAc,GAAG,IAAI,CAAC,CAAC,OAAO,UAAU,CAAC,CAAC,WAAW,CAAC,EAAE,eAAe,GAAG,aAAa,CAAC,CAAC;AAC9F,KAAK,gBAAgB,GAAG,MAAM,cAAc,CAAC;AAC7C,KAAK,qBAAqB,CAAC,CAAC,SAAS,gBAAgB,IAAI,UAAU,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;AAEvF,cAAM,oBAAqB,SAAQ,UAAU;IACzC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAuB;IAC3C,OAAO,CAAC,MAAM,CAAC,SAAS,CAAU;IAClC,OAAO,CAAC,MAAM,CAAC,WAAW,CAAU;IAEpC,OAAO;IAIP,WAAkB,QAAQ,yBAmBzB;IAEM,WAAW;IAIX,IAAI,sDAAwC,CAAC,WAAW,sBAAsB,CAAC,CAAC,UAIrF;CACL;AAED,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
|