@paydock/client-sdk 1.104.9-beta → 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 +1984 -396
- package/bundles/index.cjs +33513 -8908
- package/bundles/index.cjs.d.ts +867 -52
- package/bundles/index.mjs +33507 -8908
- package/bundles/index.mjs.d.ts +867 -52
- package/bundles/types/api/api-base.d.ts +19 -6
- package/bundles/types/api/api-base.d.ts.map +1 -1
- package/bundles/types/api/api-charge-internal.d.ts +1 -0
- package/bundles/types/api/api-charge-internal.d.ts.map +1 -1
- 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/bundles/types/api/api-internal.d.ts +4 -0
- package/bundles/types/api/api-internal.d.ts.map +1 -1
- package/bundles/types/canvas-3ds/services/gpayments-service.d.ts +3 -3
- package/bundles/types/canvas-3ds/services/gpayments-service.d.ts.map +1 -1
- 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/bundles/types/checkout-button/afterpay/afterpay.runner.d.ts +2 -0
- package/bundles/types/checkout-button/afterpay/afterpay.runner.d.ts.map +1 -1
- package/bundles/types/checkout-button/checkout-contextual-handler.d.ts +4 -0
- package/bundles/types/checkout-button/checkout-contextual-handler.d.ts.map +1 -1
- package/bundles/types/checkout-button/runner/contextual.runner.d.ts +2 -1
- package/bundles/types/checkout-button/runner/contextual.runner.d.ts.map +1 -1
- package/bundles/types/checkout-button/runner/popup.runner.d.ts +3 -3
- package/bundles/types/checkout-button/runner/popup.runner.d.ts.map +1 -1
- package/bundles/types/components/http-core.d.ts.map +1 -1
- package/bundles/types/components/iframe-event.d.ts +2 -0
- package/bundles/types/components/iframe-event.d.ts.map +1 -1
- package/bundles/types/components/iframe.d.ts +2 -0
- package/bundles/types/components/iframe.d.ts.map +1 -1
- package/bundles/types/components/link.d.ts +1 -0
- package/bundles/types/components/link.d.ts.map +1 -1
- package/bundles/types/components/param.d.ts +6 -0
- package/bundles/types/components/param.d.ts.map +1 -1
- package/bundles/types/configs/env/environment.cba.d.ts +1 -1
- package/bundles/types/configs/env/environment.cba.d.ts.map +1 -1
- package/bundles/types/configs/env/environment.paydock.d.ts +1 -1
- package/bundles/types/configs/env/environment.paydock.d.ts.map +1 -1
- package/bundles/types/helper/access-token.d.ts +1 -0
- package/bundles/types/helper/access-token.d.ts.map +1 -1
- package/bundles/types/helper/event-emitter.d.ts +1 -0
- package/bundles/types/helper/event-emitter.d.ts.map +1 -1
- 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/widget-logger.d.ts +9 -0
- package/bundles/types/helper/widget-logger.d.ts.map +1 -0
- package/bundles/types/index-cba.d.ts +4 -0
- package/bundles/types/index-cba.d.ts.map +1 -1
- package/bundles/types/index.d.ts +4 -0
- package/bundles/types/index.d.ts.map +1 -1
- 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/index.d.ts +2 -1
- package/bundles/types/secure-remote-commerce/index.d.ts.map +1 -1
- package/bundles/types/secure-remote-commerce/interfaces.d.ts +12 -2
- package/bundles/types/secure-remote-commerce/interfaces.d.ts.map +1 -1
- package/bundles/types/secure-remote-commerce/providers/mastercard-src/mastercard-src.d.ts.map +1 -1
- 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/bundles/types/wallet-buttons/index.d.ts +4 -0
- package/bundles/types/wallet-buttons/index.d.ts.map +1 -1
- package/bundles/types/wallet-buttons/wallet-buttons.d.ts +4 -4
- package/bundles/types/wallet-buttons/wallet-buttons.d.ts.map +1 -1
- package/bundles/types/wallet-buttons/wallet-cba-buttons.d.ts +4 -4
- package/bundles/types/wallet-buttons/wallet-cba-buttons.d.ts.map +1 -1
- package/bundles/types/wallet-buttons/{afterpay.wallet-service.d.ts → wallet-services/afterpay.wallet-service.d.ts} +1 -1
- package/bundles/types/wallet-buttons/wallet-services/afterpay.wallet-service.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/{apple.wallet-service.d.ts → wallet-services/apple.wallet-service.d.ts} +3 -3
- package/bundles/types/wallet-buttons/wallet-services/apple.wallet-service.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/{flypay-v2.wallet-service.d.ts → wallet-services/flypay-v2.wallet-service.d.ts} +3 -3
- package/bundles/types/wallet-buttons/wallet-services/flypay-v2.wallet-service.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/{flypay.wallet-service.d.ts → wallet-services/flypay.wallet-service.d.ts} +6 -6
- package/bundles/types/wallet-buttons/wallet-services/flypay.wallet-service.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/{google.wallet-service.d.ts → wallet-services/google.wallet-service.d.ts} +4 -4
- 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.map +1 -0
- package/bundles/types/wallet-buttons/{paypal.wallet-service.d.ts → wallet-services/paypal.wallet-service.d.ts} +1 -1
- package/bundles/types/wallet-buttons/wallet-services/paypal.wallet-service.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/{stripe.wallet-service.d.ts → wallet-services/stripe.wallet-service.d.ts} +1 -1
- package/bundles/types/wallet-buttons/wallet-services/stripe.wallet-service.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/{wallet-service.d.ts → wallet-services/wallet-service.d.ts} +4 -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/bundles/types/widget/configuration.d.ts.map +1 -1
- package/bundles/types/widget/html-multi-widget.d.ts +4 -3
- package/bundles/types/widget/html-multi-widget.d.ts.map +1 -1
- package/bundles/widget.umd.js +33513 -8908
- package/bundles/widget.umd.js.d.ts +867 -52
- package/bundles/widget.umd.js.min.d.ts +867 -52
- package/bundles/widget.umd.min.js +61 -2
- package/docs/click-to-pay-examples.md +36 -0
- package/docs/click-to-pay.md +4 -1
- package/docs/html/layout.html +1 -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/wallet-buttons-examples.md +29 -2
- package/docs/wallet-buttons-express-examples.md +201 -0
- package/docs/wallet-buttons-express.md +786 -0
- package/docs/wallet-buttons.md +3 -0
- package/examples/multi-html-widget/simple.html +2 -1
- package/package.json +98 -92
- package/slate.md +65 -2
- package/bundles/index.cjs.map +0 -1
- package/bundles/index.mjs.map +0 -1
- package/bundles/types/wallet-buttons/afterpay.wallet-service.d.ts.map +0 -1
- package/bundles/types/wallet-buttons/apple.wallet-service.d.ts.map +0 -1
- package/bundles/types/wallet-buttons/flypay-v2.wallet-service.d.ts.map +0 -1
- package/bundles/types/wallet-buttons/flypay.wallet-service.d.ts.map +0 -1
- package/bundles/types/wallet-buttons/google.wallet-service.d.ts.map +0 -1
- package/bundles/types/wallet-buttons/mastercard.wallet-service.d.ts.map +0 -1
- package/bundles/types/wallet-buttons/paypal.wallet-service.d.ts.map +0 -1
- package/bundles/types/wallet-buttons/stripe.wallet-service.d.ts.map +0 -1
- package/bundles/types/wallet-buttons/wallet-service.d.ts.map +0 -1
- package/bundles/widget.umd.js.map +0 -1
- package/bundles/widget.umd.min.js.map +0 -1
- /package/bundles/types/wallet-buttons/{mastercard.wallet-service.d.ts → wallet-services/mastercard.wallet-service.d.ts} +0 -0
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { Env } from '../configs/env';
|
|
2
|
+
import { Observable, Subscriber } from 'rxjs';
|
|
3
|
+
import { type HttpRequestMethod } from '../shared/http';
|
|
4
|
+
import { type ReportErrorFn, type ReportEventFn } from '../shared/services/instrumentation/repositories';
|
|
2
5
|
export declare enum API_AUTH_TYPE {
|
|
3
6
|
PUBLIC_KEY = 0,
|
|
4
7
|
TOKEN = 1
|
|
5
8
|
}
|
|
6
|
-
declare class ApiBase {
|
|
9
|
+
export declare class ApiBase {
|
|
7
10
|
protected env: Env;
|
|
8
11
|
auth: string;
|
|
9
12
|
authType: API_AUTH_TYPE;
|
|
13
|
+
private stoppedPooling;
|
|
10
14
|
constructor(auth: string, authType?: API_AUTH_TYPE);
|
|
11
15
|
/**
|
|
12
16
|
* Current method can change environment. By default environment = sandbox.
|
|
@@ -18,12 +22,15 @@ declare class ApiBase {
|
|
|
18
22
|
* @param {string} [alias] - Own domain alias
|
|
19
23
|
*/
|
|
20
24
|
setEnv(env: string, alias?: string): ApiBase;
|
|
25
|
+
longPollingObservable<Req extends object, Res>(method: 'GET' | 'POST', url: string, requestBody: Req, sessionId: string, reconnectInterval?: number): Observable<Res>;
|
|
26
|
+
longPull(subscriber: Subscriber<any>, method: any, link: any, auth: any, requestBody: any, sessionId: any, reconnectInterval: any): void;
|
|
27
|
+
destroyLongPolling(): void;
|
|
21
28
|
setAuthType(): API_AUTH_TYPE;
|
|
22
|
-
getClient(method: 'GET' | 'POST'
|
|
29
|
+
getClient(method: Extract<HttpRequestMethod, 'GET' | 'POST'>, link: string): {
|
|
23
30
|
config: XMLHttpRequest;
|
|
24
|
-
send: (body: any, cb?: (data
|
|
31
|
+
send: (body: any, cb?: (data) => void, errorCb?: (data: any) => any) => void;
|
|
25
32
|
};
|
|
26
|
-
getClientPromise<Req extends object, Res>(method: 'GET' | 'POST'
|
|
33
|
+
getClientPromise<Req extends object, Res>(method: Extract<HttpRequestMethod, 'GET' | 'POST'>, link: string): {
|
|
27
34
|
config: XMLHttpRequest;
|
|
28
35
|
send: (body: Req) => Promise<Res>;
|
|
29
36
|
};
|
|
@@ -35,7 +42,13 @@ declare class ApiBase {
|
|
|
35
42
|
text: string;
|
|
36
43
|
status: number;
|
|
37
44
|
}): Promise<Res>;
|
|
38
|
-
|
|
45
|
+
reportEvent: ReportEventFn;
|
|
46
|
+
reportError: ReportErrorFn;
|
|
47
|
+
protected newApiRequest(method: Extract<HttpRequestMethod, 'GET' | 'POST'>, link: string): XMLHttpRequest;
|
|
48
|
+
protected get ctx(): {
|
|
49
|
+
sdkVersion: string;
|
|
50
|
+
className: string;
|
|
51
|
+
environment: string;
|
|
52
|
+
};
|
|
39
53
|
}
|
|
40
|
-
export { ApiBase };
|
|
41
54
|
//# sourceMappingURL=api-base.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-base.d.ts","sourceRoot":"","sources":["../../src/api/api-base.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"api-base.d.ts","sourceRoot":"","sources":["../../src/api/api-base.ts"],"names":[],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;KACxB,CAAC;CACL"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { ApiInternal } from './api-internal';
|
|
2
|
+
import { Observable } from "rxjs";
|
|
3
|
+
export declare class ApiCheckoutInternal {
|
|
4
|
+
protected api: ApiInternal;
|
|
5
|
+
constructor(api: ApiInternal);
|
|
6
|
+
instructions(session_id: string): Observable<object>;
|
|
7
|
+
callback(payload: Object): Promise<Object>;
|
|
8
|
+
status(id: string): Promise<Object>;
|
|
9
|
+
}
|
|
10
|
+
export interface HandleResponseInterface {
|
|
11
|
+
status: string;
|
|
12
|
+
error: string;
|
|
13
|
+
result: {
|
|
14
|
+
reference: string;
|
|
15
|
+
reference_2: string;
|
|
16
|
+
identifier: string;
|
|
17
|
+
identifier_2: string;
|
|
18
|
+
identifier_3: string;
|
|
19
|
+
identifier_4: string;
|
|
20
|
+
identifier_5: string;
|
|
21
|
+
type: string;
|
|
22
|
+
status: string;
|
|
23
|
+
status_2: string;
|
|
24
|
+
status_code: string;
|
|
25
|
+
ref_token: string;
|
|
26
|
+
cancellation: string;
|
|
27
|
+
count: string;
|
|
28
|
+
version: string;
|
|
29
|
+
whitelist: {
|
|
30
|
+
status: string;
|
|
31
|
+
source: string;
|
|
32
|
+
};
|
|
33
|
+
result: string;
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export interface ProcessAuthenticationResponse {
|
|
37
|
+
status: string;
|
|
38
|
+
error?: string;
|
|
39
|
+
result?: {
|
|
40
|
+
challenge: string;
|
|
41
|
+
challenge_url: string;
|
|
42
|
+
decoupled_challenge: boolean;
|
|
43
|
+
frictionless: boolean;
|
|
44
|
+
identifier: string;
|
|
45
|
+
identifier_3: string;
|
|
46
|
+
identifier_4: string;
|
|
47
|
+
reference: string;
|
|
48
|
+
reference_2: string;
|
|
49
|
+
secondary_url: string;
|
|
50
|
+
skipped: boolean;
|
|
51
|
+
status: string;
|
|
52
|
+
type: string;
|
|
53
|
+
version: string;
|
|
54
|
+
description?: string;
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=api-checkout-internal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-checkout-internal.d.ts","sourceRoot":"","sources":["../../src/api/api-checkout-internal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAC,UAAU,EAAC,MAAM,MAAM,CAAC;AAMhC,qBAAa,mBAAmB;IAChB,SAAS,CAAC,GAAG,EAAE,WAAW;gBAAhB,GAAG,EAAE,WAAW;IAG/B,YAAY,CAAC,UAAU,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAWpD,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAM1C,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAK7C;AA+CD,MAAM,WAAW,uBAAuB;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAC;QACH,SAAS,EAAE,MAAM,CAAC;QAClB,WAAW,EAAE,MAAM,CAAC;QACpB,UAAU,EAAE,MAAM,CAAC;QACnB,YAAY,EAAC,MAAM,CAAC;QACpB,YAAY,EAAE,MAAM,CAAC;QACrB,YAAY,EAAE,MAAM,CAAC;QACrB,YAAY,EAAE,MAAM,CAAC;QACrB,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAC,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;QACjB,WAAW,EAAE,MAAM,CAAC;QACpB,SAAS,EAAE,MAAM,CAAC;QAClB,YAAY,EAAE,MAAM,CAAC;QACrB,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAC,MAAM,CAAC;QACf,SAAS,EAAE;YACP,MAAM,EAAE,MAAM,CAAC;YACf,MAAM,EAAE,MAAM,CAAC;SAClB,CAAC;QACF,MAAM,EAAE,MAAM,CAAC;KAClB,CAAA;CACJ;AAED,MAAM,WAAW,6BAA6B;IAC1C,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE;QACL,SAAS,EAAE,MAAM,CAAC;QAClB,aAAa,EAAE,MAAM,CAAC;QACtB,mBAAmB,EAAE,OAAO,CAAC;QAC7B,YAAY,EAAE,OAAO,CAAC;QACtB,UAAU,EAAE,MAAM,CAAC;QACnB,YAAY,EAAE,MAAM,CAAC;QACrB,YAAY,EAAE,MAAM,CAAC;QACrB,SAAS,EAAE,MAAM,CAAC;QAClB,WAAW,EAAE,MAAM,CAAC;QACpB,aAAa,EAAE,MAAM,CAAC;QACtB,OAAO,EAAE,OAAO,CAAC;QACjB,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;QAChB,WAAW,CAAC,EAAE,MAAM,CAAC;KACxB,CAAC;CACL"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ApiInternal } from './api-internal';
|
|
2
|
+
export declare class ApiGatewayInternal {
|
|
3
|
+
protected api: ApiInternal;
|
|
4
|
+
constructor(api: ApiInternal);
|
|
5
|
+
getWalletConfig(gateway_id: string): Promise<GetWalletConfigResponse>;
|
|
6
|
+
}
|
|
7
|
+
export interface GetWalletConfigResponse {
|
|
8
|
+
type: string;
|
|
9
|
+
mode: string;
|
|
10
|
+
credentials?: object;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=api-gateway-internal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-gateway-internal.d.ts","sourceRoot":"","sources":["../../src/api/api-gateway-internal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAI7C,qBAAa,kBAAkB;IACf,SAAS,CAAC,GAAG,EAAE,WAAW;gBAAhB,GAAG,EAAE,WAAW;IAGtC,eAAe,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,uBAAuB,CAAC;CAOxE;AAED,MAAM,WAAW,uBAAuB;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB"}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { ApiBase } from './api-base';
|
|
2
2
|
import { ApiChargeInternal } from './api-charge-internal';
|
|
3
|
+
import { ApiGatewayInternal } from './api-gateway-internal';
|
|
3
4
|
import { ApiServiceInternal } from './api-service-internal';
|
|
5
|
+
import { ApiCheckoutInternal } from "./api-checkout-internal";
|
|
4
6
|
export { API_AUTH_TYPE } from './api-base';
|
|
5
7
|
export declare class ApiInternal extends ApiBase {
|
|
6
8
|
charge(): ApiChargeInternal;
|
|
7
9
|
service(): ApiServiceInternal;
|
|
10
|
+
checkout(): ApiCheckoutInternal;
|
|
11
|
+
gateway(): ApiGatewayInternal;
|
|
8
12
|
}
|
|
9
13
|
//# sourceMappingURL=api-internal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-internal.d.ts","sourceRoot":"","sources":["../../src/api/api-internal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,qBAAa,WAAY,SAAQ,OAAO;IACpC,MAAM;IAIN,OAAO;CAGV"}
|
|
1
|
+
{"version":3,"file":"api-internal.d.ts","sourceRoot":"","sources":["../../src/api/api-internal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAC,mBAAmB,EAAC,MAAM,yBAAyB,CAAC;AAE5D,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,qBAAa,WAAY,SAAQ,OAAO;IACpC,MAAM;IAIN,OAAO;IAIP,QAAQ;IAIR,OAAO;CAGV"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ApiInternal } from "../../api/api-internal";
|
|
1
|
+
import type { ApiInternal } from "../../api/api-internal";
|
|
2
2
|
import { Container } from "../../components/container";
|
|
3
3
|
import { IFrame } from "../../components/iframe";
|
|
4
4
|
import { IFrameEvent } from "../../components/iframe-event";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import type { EventEmitter } from "../../helper/event-emitter";
|
|
6
|
+
import type { ITokenStandalone3DS } from "./standalone3ds-service";
|
|
7
7
|
export declare enum PROCESS_STANDALONE_3DS_STATUS {
|
|
8
8
|
SUCCESS = "success",
|
|
9
9
|
ERROR = "error",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gpayments-service.d.ts","sourceRoot":"","sources":["../../../src/canvas-3ds/services/gpayments-service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"gpayments-service.d.ts","sourceRoot":"","sources":["../../../src/canvas-3ds/services/gpayments-service.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAS,WAAW,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AASnE,oBAAY,6BAA6B;IACrC,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,OAAO,YAAY;CACtB;AA6BD,eAAO,MAAM,eAAe;;;;;;;CAO3B,CAAA;AAMD,qBAAa,gBAAgB;IAQb,SAAS,CAAC,SAAS,EAAE,SAAS;IAAE,SAAS,CAAC,GAAG,EAAE,WAAW;IAAE,SAAS,CAAC,YAAY,EAAE,YAAY;IAP5G,SAAS,CAAC,4BAA4B,EAAE,SAAS,CAAC;IAClD,SAAS,CAAC,mBAAmB,EAAE,MAAM,CAAC;IACtC,SAAS,CAAC,mBAAmB,EAAE,SAAS,CAAC;IACzC,SAAS,CAAC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IACtC,SAAS,CAAC,WAAW,EAAE,WAAW,CAAC;IACnC,SAAS,CAAC,UAAU,UAAS;gBAEP,SAAS,EAAE,SAAS,EAAY,GAAG,EAAE,WAAW,EAAY,YAAY,EAAE,YAAY;IAIrG,IAAI,CACP,EAAE,kBAAkB,EAAE,aAAa,EAAE,aAAa,EAAE,EAAE,mBAAmB,EACzE,KAAK,EAAE,MAAM;IAUjB,OAAO,CAAC,iBAAiB;IA0BzB,OAAO,CAAC,WAAW;IAUnB,OAAO,CAAC,iBAAiB;IAezB,OAAO,CAAC,eAAe;IAOvB,OAAO,CAAC,mBAAmB;IAU3B,OAAO,CAAC,UAAU;IAIlB,OAAO,CAAC,aAAa;IAiBrB,OAAO,CAAC,WAAW;IAiBnB,OAAO,CAAC,SAAS;IAajB,OAAO,CAAC,qBAAqB;CAuBhC"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { Container } from '../components/container';
|
|
2
|
+
import { EventEmitter } from '../helper/event-emitter';
|
|
3
|
+
import { InstructionModule } from "./helpers/instruction-module";
|
|
4
|
+
import { ApiInternal } from "../api/api-internal";
|
|
5
|
+
import { InstructionDestroyable, InstructionHandleable } from "./helpers/instruction-handler";
|
|
6
|
+
import { IEventData } from '../components/iframe-event';
|
|
7
|
+
export declare const EVENT: {
|
|
8
|
+
PAYMENT_SUCCESSFUL: string;
|
|
9
|
+
PAYMENT_FAILURE: string;
|
|
10
|
+
PAYMENT_EXPIRED: string;
|
|
11
|
+
};
|
|
12
|
+
interface IntentTokenPayload {
|
|
13
|
+
env: string;
|
|
14
|
+
intent_id: string;
|
|
15
|
+
version: number;
|
|
16
|
+
env_alias: string;
|
|
17
|
+
}
|
|
18
|
+
export declare const SELECTORS: {
|
|
19
|
+
LIST: string;
|
|
20
|
+
WIDGETS: string;
|
|
21
|
+
};
|
|
22
|
+
export declare class InstructionDebugger {
|
|
23
|
+
constructor(selector: string, formSelector: string, version: number, instructionName: string, context: object, token?: string);
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Class CheckoutButton transform usual button into checkout
|
|
27
|
+
*
|
|
28
|
+
* @constructor
|
|
29
|
+
*
|
|
30
|
+
* @param {string} selector - Selector of html element.
|
|
31
|
+
* @param {string} intentToken - PayDock intent token
|
|
32
|
+
* @example
|
|
33
|
+
* var widget = new Checkout('#widget', 'intent_token');
|
|
34
|
+
**/
|
|
35
|
+
export declare class Checkout {
|
|
36
|
+
protected formSelector: string;
|
|
37
|
+
protected intentToken: string;
|
|
38
|
+
protected debug: boolean;
|
|
39
|
+
protected window: Window;
|
|
40
|
+
protected eventEmitter: EventEmitter;
|
|
41
|
+
protected container: Container;
|
|
42
|
+
protected intentTokenPayload: IntentTokenPayload;
|
|
43
|
+
protected api: ApiInternal;
|
|
44
|
+
protected instructions: InstructionModule;
|
|
45
|
+
protected currentInstruction: InstructionDestroyable & InstructionHandleable;
|
|
46
|
+
constructor(formSelector: string, intentToken: string, debug?: boolean);
|
|
47
|
+
private extractIntentTokenPayload;
|
|
48
|
+
private ready;
|
|
49
|
+
private initContractVersion;
|
|
50
|
+
private listenInstructions;
|
|
51
|
+
private setEnv;
|
|
52
|
+
private createWidgetStructure;
|
|
53
|
+
/**
|
|
54
|
+
* If the payment was successful, the function passed as parameter will be called.
|
|
55
|
+
* Important: Do not perform thread blocking operations in callback such as window.alert() calls.
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* widget.onPaymentSuccessful((data) => {
|
|
59
|
+
* console.log('Payment successful!');
|
|
60
|
+
* });
|
|
61
|
+
*/
|
|
62
|
+
onPaymentSuccessful(handler: (data: IEventData) => void): () => void;
|
|
63
|
+
/**
|
|
64
|
+
* If the payment was not successful, the function passed as parameter will be called.
|
|
65
|
+
* Important: Do not perform thread blocking operations in callback such as window.alert() calls.
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* widget.onPaymentError((err) => {
|
|
69
|
+
* console.log('Payment not successful');
|
|
70
|
+
* });
|
|
71
|
+
*/
|
|
72
|
+
onPaymentFailure(handler: (data: IEventData) => void): () => void;
|
|
73
|
+
/**
|
|
74
|
+
* If the payment was expired, the function passed as parameter will be called.
|
|
75
|
+
* Important: Do not perform thread blocking operations in callback such as window.alert() calls.
|
|
76
|
+
*
|
|
77
|
+
* @example
|
|
78
|
+
* widget.onPaymentInReview((data) => {
|
|
79
|
+
* console.log('Payment in fraud review');
|
|
80
|
+
* });
|
|
81
|
+
*/
|
|
82
|
+
onPaymentExpired(handler: (data: IEventData) => void): () => void;
|
|
83
|
+
private setStyles;
|
|
84
|
+
}
|
|
85
|
+
export {};
|
|
86
|
+
//# sourceMappingURL=checkout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkout.d.ts","sourceRoot":"","sources":["../../src/checkout/checkout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAiB,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAGjE,OAAO,EAAE,sBA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G;IACI,mBAAmB,CAAC,OAAO,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI;IAI9D;;;;;;;;OAQG;IACI,gBAAgB,CAAC,OAAO,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI;IAI3D;;;;;;;;OAQG;IACI,gBAAgB,CAAC,OAAO,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI;IAI3D,OAAO,CAAC,SAAS;CAOpB"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ApiInternal } from "../../api/api-internal";
|
|
2
|
+
import { EventEmitter } from "../../helper/event-emitter";
|
|
3
|
+
export type Instruction = new (selector: string, formSelector: string, api: ApiInternal) => InstructionHandler & InstructionDestroyable & InstructionDecorated;
|
|
4
|
+
export interface InstructionHandleable {
|
|
5
|
+
handle(payload: object, eventEmitter: EventEmitter): void;
|
|
6
|
+
}
|
|
7
|
+
export interface InstructionDecorated {
|
|
8
|
+
instruction: string;
|
|
9
|
+
}
|
|
10
|
+
export interface InstructionDestroyable {
|
|
11
|
+
destroy(): void;
|
|
12
|
+
}
|
|
13
|
+
export declare abstract class InstructionHandler implements InstructionHandleable, InstructionDestroyable, InstructionDecorated {
|
|
14
|
+
selector: string;
|
|
15
|
+
formSelector: string;
|
|
16
|
+
api: ApiInternal;
|
|
17
|
+
constructor(selector: string, formSelector: string, api: ApiInternal);
|
|
18
|
+
instruction: string;
|
|
19
|
+
abstract handle(context: object, eventEmitter?: any): void;
|
|
20
|
+
abstract destroy(): void;
|
|
21
|
+
getEnv(instruction_token: string): string;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=instruction-handler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instruction-handler.d.ts","sourceRoot":"","sources":["../../../src/checkout/helpers/instruction-handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAErD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,MAAM,MAAM,WAAW,GAAG,KAAK,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,GAAG,EAAE,WAAW,KAAK,kBAAkB,GAAG,sBAAsB,GAAG,oBAAoB,CAAA;AAE9J,MAAM,WAAW,qBAAqB;IAClC,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,YAAY,GAAG,IAAI,CAAC;CAC7D;AAED,MAAM,WAAW,oBAAoB;IACjC,WAAW,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,sBAAsB;IACnC,OAAO,IAAI,IAAI,CAAC;CACnB;AAED,8BAAsB,kBAAmB,YAAW,qBAAqB,EAAE,sBAAsB,EAAE,oBAAoB;IAChG,QAAQ,EAAE,MAAM;IAAS,YAAY,EAAE,MAAM;IAAS,GAAG,EAAE,WAAW;gBAAtE,QAAQ,EAAE,MAAM,EAAS,YAAY,EAAE,MAAM,EAAS,GAAG,EAAE,WAAW;IAEzF,WAAW,EAAE,MAAM,CAAC;aACJ,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,YAAY,CAAC,KAAA,GAAG,IAAI;aAC5C,OAAO,IAAI,IAAI;IAExB,MAAM,CAAC,iBAAiB,EAAE,MAAM,GAAG,MAAM;CAQnD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instruction-module.d.ts","sourceRoot":"","sources":["../../../src/checkout/helpers/instruction-module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,uBAAuB,CAAC;AAElD,qBAAa,iBAAiB;IAC1B,YAAY,EAAE,GAAG,EAAE,CAAM;IAElB,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,WAAW,GAAG,IAAI;CAKxD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instruction-module.decorator.d.ts","sourceRoot":"","sources":["../../../src/checkout/helpers/instruction-module.decorator.ts"],"names":[],"mappings":"AAAA,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,GAAG,EAAE,4BACX,GAAG,EAAE,KAAK,EAAE,eAAe,CAAC;kBAA5B,GAAG,EAAE;;;MAKxC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instruction.decorator.d.ts","sourceRoot":"","sources":["../../../src/checkout/helpers/instruction.decorator.ts"],"names":[],"mappings":"AAAA,wBAAgB,WAAW,CAAC,WAAW,EAAE,MAAM,4BACX,GAAG,EAAE,KAAK,EAAE,eAAe,CAAC;kBAA5B,GAAG,EAAE;;MAKxC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resource-helper.d.ts","sourceRoot":"","sources":["../../../src/checkout/helpers/resource-helper.ts"],"names":[],"mappings":";;;AAAA,wBAqBC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session-helper.d.ts","sourceRoot":"","sources":["../../../src/checkout/helpers/session-helper.ts"],"names":[],"mappings":"AAAA,qBAAa,aAAa;IACtB,MAAM,KAAK,SAAS,IAAI,MAAM,CAE7B;IAED,MAAM,KAAK,SAAS,CAAC,KAAK,EAAE,MAAM,EAEjC;CACJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/checkout/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/checkout/instructions/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,iBAAiB,EAAC,MAAM,+BAA+B,CAAC;AAEhE,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,GAAG,iBAAiB,GAAG,IAAI,CAOhF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/checkout/instructions/v1/index.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,iBAAiB,IAAI,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAM/E,qBAgBa,mBAAoB,SAAQ,MAAM;CAAG"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { InstructionHandler } from '../../helpers/instruction-handler';
|
|
2
|
+
import { AfterpayCheckoutButton } from '../../../checkout-button/afterpay/afterpay-checkout-button';
|
|
3
|
+
export declare class InstructionAfterpayCheckoutFormShow extends InstructionHandler {
|
|
4
|
+
protected widget: AfterpayCheckoutButton;
|
|
5
|
+
handle(context: {
|
|
6
|
+
public_key: string;
|
|
7
|
+
gateway_id: string;
|
|
8
|
+
payload: {
|
|
9
|
+
gateway_id: string;
|
|
10
|
+
meta: any;
|
|
11
|
+
};
|
|
12
|
+
instruction_token: string;
|
|
13
|
+
customisation?: {
|
|
14
|
+
base?: object;
|
|
15
|
+
};
|
|
16
|
+
}): void;
|
|
17
|
+
destroy(): void;
|
|
18
|
+
private createWidgetStructure;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=instruction.afterpay_checkout_form.show.d.ts.map
|
package/bundles/types/checkout/instructions/v1/instruction.afterpay_checkout_form.show.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instruction.afterpay_checkout_form.show.d.ts","sourceRoot":"","sources":["../../../../src/checkout/instructions/v1/instruction.afterpay_checkout_form.show.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAIvE,OAAO,EAAE,sBAAsB,EAAE,MAAM,4DAA4D,CAAC;AAcpG,qBACa,mCAAoC,SAAQ,kBAAkB;IACzE,SAAS,CAAC,MAAM,EAAE,sBAAsB,CAAC;IAElC,MAAM,CAAC,OAAO,EAAE;QACrB,UAAU,EAAE,MAAM,CAAC;QACnB,UAAU,EAAE,MAAM,CAAC;QACnB,OAAO,EAAE;YAAE,UAAU,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,GAAG,CAAA;SAAE,CAAC;QAC3C,iBAAiB,EAAE,MAAM,CAAC;QAC1B,aAAa,CAAC,EAAE;YAAE,IAAI,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;KACnC,GAAG,IAAI;IA2DD,OAAO;IAId,OAAO,CAAC,qBAAqB;CA8B9B"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { InstructionHandler } from '../../helpers/instruction-handler';
|
|
2
|
+
export declare class InstructionAfterpayWalletFormShow extends InstructionHandler {
|
|
3
|
+
protected widget: any;
|
|
4
|
+
handle(context: {
|
|
5
|
+
payload: {
|
|
6
|
+
charge_token: string;
|
|
7
|
+
meta?: any;
|
|
8
|
+
};
|
|
9
|
+
instruction_token: string;
|
|
10
|
+
}): void;
|
|
11
|
+
destroy(): void;
|
|
12
|
+
private setStyles;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=instruction.afterpay_wallet_form.show.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instruction.afterpay_wallet_form.show.d.ts","sourceRoot":"","sources":["../../../../src/checkout/instructions/v1/instruction.afterpay_wallet_form.show.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAQvE,qBACa,iCAAkC,SAAQ,kBAAkB;IACrE,SAAS,CAAC,MAAM,EAAE,GAAG,CAAC;IAEf,MAAM,CAAC,OAAO,EAAE;QAAE,OAAO,EAAE;YAAE,YAAY,EAAE,MAAM,CAAC;YAAC,IAAI,CAAC,EAAE,GAAG,CAAA;SAAE,CAAC;QAAC,iBAAiB,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI;IAQnG,OAAO;IAId,OAAO,CAAC,SAAS;CAYpB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { InstructionHandler } from '../../helpers/instruction-handler';
|
|
2
|
+
export declare class InstructionApplePayFormShow extends InstructionHandler {
|
|
3
|
+
protected widget: any;
|
|
4
|
+
handle(context: {
|
|
5
|
+
payload: {
|
|
6
|
+
gateway_id: string;
|
|
7
|
+
meta: any;
|
|
8
|
+
charge_token: string;
|
|
9
|
+
};
|
|
10
|
+
instruction_token: string;
|
|
11
|
+
customisation?: {
|
|
12
|
+
base?: object;
|
|
13
|
+
};
|
|
14
|
+
}): void;
|
|
15
|
+
destroy(): void;
|
|
16
|
+
private setStyles;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=instruction.apple_pay_form.show.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instruction.apple_pay_form.show.d.ts","sourceRoot":"","sources":["../../../../src/checkout/instructions/v1/instruction.apple_pay_form.show.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAUvE,qBACa,2BAA4B,SAAQ,kBAAkB;IACjE,SAAS,CAAC,MAAM,EAAE,GAAG,CAAC;IAEf,MAAM,CAAC,OAAO,EAAE;QACrB,OAAO,EAAE;YAAE,UAAU,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,GAAG,CAAC;YAAC,YAAY,EAAE,MAAM,CAAA;SAAE,CAAC;QACjE,iBAAiB,EAAE,MAAM,CAAC;QAC1B,aAAa,CAAC,EAAE;YAAE,IAAI,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;KACnC,GAAG,IAAI;IA6DD,OAAO;IAId,OAAO,CAAC,SAAS;CAWlB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { InstructionHandler } from "../../helpers/instruction-handler";
|
|
2
|
+
import { HtmlWidget } from "../../../widget";
|
|
3
|
+
export declare class InstructionBankAccountFormShow extends InstructionHandler {
|
|
4
|
+
protected widget: HtmlWidget;
|
|
5
|
+
handle(context: {
|
|
6
|
+
instruction_token: string;
|
|
7
|
+
payload: {
|
|
8
|
+
customisation?: {
|
|
9
|
+
base?: object;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
}): void;
|
|
13
|
+
destroy(): void;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=instruction.bank_account_form.show.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instruction.bank_account_form.show.d.ts","sourceRoot":"","sources":["../../../../src/checkout/instructions/v1/instruction.bank_account_form.show.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAEvE,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAI7C,qBACa,8BAA+B,SAAQ,kBAAkB;IAElE,SAAS,CAAC,MAAM,EAAE,UAAU,CAAC;IAEtB,MAAM,CAAC,OAAO,EAAE;QAAE,iBAAiB,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE;YAAE,aAAa,CAAC,EAAE;gBAAE,IAAI,CAAC,EAAE,MAAM,CAAA;aAAE,CAAA;SAAE,CAAA;KAAE,GAAG,IAAI;IAqCpG,OAAO;CAGjB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { InstructionHandler } from '../../helpers/instruction-handler';
|
|
2
|
+
export declare class InstructionCanvas3dsShow extends InstructionHandler {
|
|
3
|
+
handle(context: {
|
|
4
|
+
instruction_token: string;
|
|
5
|
+
payload: {
|
|
6
|
+
_3ds_token: string;
|
|
7
|
+
};
|
|
8
|
+
}): void;
|
|
9
|
+
destroy(): void;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=instruction.canvas_3ds.show.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instruction.canvas_3ds.show.d.ts","sourceRoot":"","sources":["../../../../src/checkout/instructions/v1/instruction.canvas_3ds.show.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAKvE,qBACa,wBAAyB,SAAQ,kBAAkB;IACvD,MAAM,CAAC,OAAO,EAAE;QACrB,iBAAiB,EAAE,MAAM,CAAC;QAC1B,OAAO,EAAE;YACP,UAAU,EAAE,MAAM,CAAC;SACpB,CAAC;KACH,GAAG,IAAI;IA8DD,OAAO;CAGf"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { InstructionHandler } from '../../helpers/instruction-handler';
|
|
2
|
+
import { HtmlWidget } from '../../../widget';
|
|
3
|
+
export declare class InstructionCardFormShow extends InstructionHandler {
|
|
4
|
+
protected widget: HtmlWidget;
|
|
5
|
+
private timeoutId;
|
|
6
|
+
handle(context: {
|
|
7
|
+
instruction_token: string;
|
|
8
|
+
payload: {
|
|
9
|
+
customisation?: {
|
|
10
|
+
base?: object;
|
|
11
|
+
};
|
|
12
|
+
form_fields: {
|
|
13
|
+
[key: string]: undefined | 'enable' | 'required';
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
}): void;
|
|
17
|
+
destroy(): void;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=instruction.card_form.show.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instruction.card_form.show.d.ts","sourceRoot":"","sources":["../../../../src/checkout/instructions/v1/instruction.card_form.show.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAEvE,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAO7C,qBACa,uBAAwB,SAAQ,kBAAkB;IAC7D,SAAS,CAAC,MAAM,EAAE,UAAU,CAAC;IAC7B,OAAO,CAAC,SAAS,CAAM;IAEhB,MAAM,CAAC,OAAO,EAAE;QACrB,iBAAiB,EAAE,MAAM,CAAC;QAC1B,OAAO,EAAE;YACP,aAAa,CAAC,EAAE;gBAAE,IAAI,CAAC,EAAE,MAAM,CAAA;aAAE,CAAC;YAClC,WAAW,EAAE;gBAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,UAAU,CAAA;aAAE,CAAC;SACnE,CAAC;KACH,GAAG,IAAI;IAkFD,OAAO;CAIf"}
|
package/bundles/types/checkout/instructions/v1/instruction.disable_payment_method_event.emit.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { EventEmitter } from "../../../helper/event-emitter";
|
|
2
|
+
import { InstructionHandler } from "../../helpers/instruction-handler";
|
|
3
|
+
interface InterfaceContext {
|
|
4
|
+
instruction_token: string;
|
|
5
|
+
payload: IntentPayload;
|
|
6
|
+
}
|
|
7
|
+
interface IntentPayload {
|
|
8
|
+
status: string;
|
|
9
|
+
intent_id: string;
|
|
10
|
+
charge_id?: string;
|
|
11
|
+
message: string;
|
|
12
|
+
title: string;
|
|
13
|
+
}
|
|
14
|
+
export declare class instructionDisablePaymentMethod extends InstructionHandler {
|
|
15
|
+
handle(context: InterfaceContext, eventEmitter: EventEmitter): void;
|
|
16
|
+
destroy(): void;
|
|
17
|
+
}
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=instruction.disable_payment_method_event.emit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instruction.disable_payment_method_event.emit.d.ts","sourceRoot":"","sources":["../../../../src/checkout/instructions/v1/instruction.disable_payment_method_event.emit.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAIvE,UAAU,gBAAgB;IACxB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,OAAO,EAAE,aAAa,CAAC;CACxB;AAED,UAAU,aAAa;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,qBACa,+BAAgC,SAAQ,kBAAkB;IAErE,MAAM,CAAC,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,YAAY,GAAG,IAAI;IAW5D,OAAO;CACf"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { InstructionHandler } from "../../helpers/instruction-handler";
|
|
2
|
+
interface InterfaceContext {
|
|
3
|
+
instruction_token: string;
|
|
4
|
+
payload: IntentPayload;
|
|
5
|
+
}
|
|
6
|
+
interface IntentPayload {
|
|
7
|
+
title: string;
|
|
8
|
+
intent_id: string;
|
|
9
|
+
charge_id: string;
|
|
10
|
+
message: string;
|
|
11
|
+
type: 'success' | 'error' | 'in_review';
|
|
12
|
+
customisation?: {
|
|
13
|
+
base: {
|
|
14
|
+
text_color: string;
|
|
15
|
+
font_size: string;
|
|
16
|
+
font_family: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export declare class InstructionGenericShowMessage extends InstructionHandler {
|
|
21
|
+
private timeoutId;
|
|
22
|
+
handle(context: InterfaceContext): void;
|
|
23
|
+
destroy(): void;
|
|
24
|
+
}
|
|
25
|
+
export {};
|
|
26
|
+
//# sourceMappingURL=instruction.generic.show_message.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instruction.generic.show_message.d.ts","sourceRoot":"","sources":["../../../../src/checkout/instructions/v1/instruction.generic.show_message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAOvE,UAAU,gBAAgB;IACtB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,OAAO,EAAE,aAAa,CAAA;CACzB;AAED,UAAU,aAAa;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,SAAS,GAAG,OAAO,GAAG,WAAW,CAAC;IACxC,aAAa,CAAC,EAAE;QAAE,IAAI,EAAE;YAAE,UAAU,EAAE,MAAM,CAAC;YAAC,SAAS,EAAE,MAAM,CAAC;YAAC,WAAW,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,CAAA;CAC3F;AAED,qBACa,6BAA8B,SAAQ,kBAAkB;IACjE,OAAO,CAAC,SAAS,CAAM;IAEvB,MAAM,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI;IAwBhC,OAAO;CAMjB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { InstructionHandler } from '../../helpers/instruction-handler';
|
|
2
|
+
export declare class InstructionGooglePayFormShow extends InstructionHandler {
|
|
3
|
+
protected widget: any;
|
|
4
|
+
handle(context: {
|
|
5
|
+
payload: {
|
|
6
|
+
gateway_id: string;
|
|
7
|
+
meta: any;
|
|
8
|
+
charge_token: string;
|
|
9
|
+
};
|
|
10
|
+
instruction_token: string;
|
|
11
|
+
customisation?: {
|
|
12
|
+
base?: object;
|
|
13
|
+
};
|
|
14
|
+
}): void;
|
|
15
|
+
destroy(): void;
|
|
16
|
+
private setStyles;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=instruction.google_pay_form.show.d.ts.map
|