@paydock/client-sdk 1.110.2 → 1.111.0-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.
Files changed (86) hide show
  1. package/bundles/index.cjs +2165 -189
  2. package/bundles/index.cjs.d.ts +113 -1
  3. package/bundles/index.mjs +2163 -189
  4. package/bundles/index.mjs.d.ts +113 -1
  5. package/bundles/types/api/api-base.d.ts +5 -0
  6. package/bundles/types/api/api-base.d.ts.map +1 -1
  7. package/bundles/types/api/api-checkout-internal.d.ts +56 -0
  8. package/bundles/types/api/api-checkout-internal.d.ts.map +1 -0
  9. package/bundles/types/api/api-internal.d.ts +2 -0
  10. package/bundles/types/api/api-internal.d.ts.map +1 -1
  11. package/bundles/types/checkout/checkout.d.ts +86 -0
  12. package/bundles/types/checkout/checkout.d.ts.map +1 -0
  13. package/bundles/types/checkout/helpers/instruction-handler.d.ts +23 -0
  14. package/bundles/types/checkout/helpers/instruction-handler.d.ts.map +1 -0
  15. package/bundles/types/checkout/helpers/instruction-module.d.ts +6 -0
  16. package/bundles/types/checkout/helpers/instruction-module.d.ts.map +1 -0
  17. package/bundles/types/checkout/helpers/instruction-module.decorator.d.ts +6 -0
  18. package/bundles/types/checkout/helpers/instruction-module.decorator.d.ts.map +1 -0
  19. package/bundles/types/checkout/helpers/instruction.decorator.d.ts +5 -0
  20. package/bundles/types/checkout/helpers/instruction.decorator.d.ts.map +1 -0
  21. package/bundles/types/checkout/helpers/resource-helper.d.ts +5 -0
  22. package/bundles/types/checkout/helpers/resource-helper.d.ts.map +1 -0
  23. package/bundles/types/checkout/index.d.ts +2 -0
  24. package/bundles/types/checkout/index.d.ts.map +1 -0
  25. package/bundles/types/checkout/instructions/index.d.ts +3 -0
  26. package/bundles/types/checkout/instructions/index.d.ts.map +1 -0
  27. package/bundles/types/checkout/instructions/v1/index.d.ts +4 -0
  28. package/bundles/types/checkout/instructions/v1/index.d.ts.map +1 -0
  29. package/bundles/types/checkout/instructions/v1/instruction.afterpay_checkout_form.show.d.ts +20 -0
  30. package/bundles/types/checkout/instructions/v1/instruction.afterpay_checkout_form.show.d.ts.map +1 -0
  31. package/bundles/types/checkout/instructions/v1/instruction.afterpay_wallet_form.show.d.ts +14 -0
  32. package/bundles/types/checkout/instructions/v1/instruction.afterpay_wallet_form.show.d.ts.map +1 -0
  33. package/bundles/types/checkout/instructions/v1/instruction.apple_pay_form.show.d.ts +18 -0
  34. package/bundles/types/checkout/instructions/v1/instruction.apple_pay_form.show.d.ts.map +1 -0
  35. package/bundles/types/checkout/instructions/v1/instruction.bank_account_form.show.d.ts +15 -0
  36. package/bundles/types/checkout/instructions/v1/instruction.bank_account_form.show.d.ts.map +1 -0
  37. package/bundles/types/checkout/instructions/v1/instruction.canvas_3ds.show.d.ts +11 -0
  38. package/bundles/types/checkout/instructions/v1/instruction.canvas_3ds.show.d.ts.map +1 -0
  39. package/bundles/types/checkout/instructions/v1/instruction.card_form.show.d.ts +19 -0
  40. package/bundles/types/checkout/instructions/v1/instruction.card_form.show.d.ts.map +1 -0
  41. package/bundles/types/checkout/instructions/v1/instruction.disable_payment_method_event.emit.d.ts +19 -0
  42. package/bundles/types/checkout/instructions/v1/instruction.disable_payment_method_event.emit.d.ts.map +1 -0
  43. package/bundles/types/checkout/instructions/v1/instruction.generic.show_message.d.ts +26 -0
  44. package/bundles/types/checkout/instructions/v1/instruction.generic.show_message.d.ts.map +1 -0
  45. package/bundles/types/checkout/instructions/v1/instruction.google_pay_form.show.d.ts +18 -0
  46. package/bundles/types/checkout/instructions/v1/instruction.google_pay_form.show.d.ts.map +1 -0
  47. package/bundles/types/checkout/instructions/v1/instruction.merchant_event.emit.d.ts +18 -0
  48. package/bundles/types/checkout/instructions/v1/instruction.merchant_event.emit.d.ts.map +1 -0
  49. package/bundles/types/checkout/instructions/v1/instruction.payment_methods.show.d.ts +18 -0
  50. package/bundles/types/checkout/instructions/v1/instruction.payment_methods.show.d.ts.map +1 -0
  51. package/bundles/types/checkout/instructions/v1/instruction.paypal_form.show.d.ts +21 -0
  52. package/bundles/types/checkout/instructions/v1/instruction.paypal_form.show.d.ts.map +1 -0
  53. package/bundles/types/checkout/instructions/v1/instruction.zip_checkout_form.show.d.ts +19 -0
  54. package/bundles/types/checkout/instructions/v1/instruction.zip_checkout_form.show.d.ts.map +1 -0
  55. package/bundles/types/checkout/layout-widgets/additionals.d.ts +3 -0
  56. package/bundles/types/checkout/layout-widgets/additionals.d.ts.map +1 -0
  57. package/bundles/types/checkout/layout-widgets/default-variables.enum.d.ts +9 -0
  58. package/bundles/types/checkout/layout-widgets/default-variables.enum.d.ts.map +1 -0
  59. package/bundles/types/checkout/layout-widgets/message.d.ts +34 -0
  60. package/bundles/types/checkout/layout-widgets/message.d.ts.map +1 -0
  61. package/bundles/types/checkout/layout-widgets/payment-methods-template.d.ts +10 -0
  62. package/bundles/types/checkout/layout-widgets/payment-methods-template.d.ts.map +1 -0
  63. package/bundles/types/checkout/layout-widgets/payment-methods.d.ts +52 -0
  64. package/bundles/types/checkout/layout-widgets/payment-methods.d.ts.map +1 -0
  65. package/bundles/types/checkout/layout-widgets/payment-template.d.ts +3 -0
  66. package/bundles/types/checkout/layout-widgets/payment-template.d.ts.map +1 -0
  67. package/bundles/types/components/iframe.d.ts +2 -0
  68. package/bundles/types/components/iframe.d.ts.map +1 -1
  69. package/bundles/types/components/link.d.ts +1 -0
  70. package/bundles/types/components/link.d.ts.map +1 -1
  71. package/bundles/types/components/param.d.ts +5 -0
  72. package/bundles/types/components/param.d.ts.map +1 -1
  73. package/bundles/types/helper/access-token.d.ts +1 -0
  74. package/bundles/types/helper/access-token.d.ts.map +1 -1
  75. package/bundles/types/helper/spiner.util.d.ts +6 -0
  76. package/bundles/types/helper/spiner.util.d.ts.map +1 -0
  77. package/bundles/types/index.d.ts +1 -0
  78. package/bundles/types/index.d.ts.map +1 -1
  79. package/bundles/types/wallet-buttons/wallet-services/flypay-v2.wallet-service.d.ts.map +1 -1
  80. package/bundles/types/widget/html-multi-widget.d.ts +1 -0
  81. package/bundles/types/widget/html-multi-widget.d.ts.map +1 -1
  82. package/bundles/widget.umd.js +2165 -189
  83. package/bundles/widget.umd.js.d.ts +113 -1
  84. package/bundles/widget.umd.js.min.d.ts +113 -1
  85. package/bundles/widget.umd.min.js +7 -7
  86. package/package.json +2 -1
@@ -1,3 +1,4 @@
1
+ import { Observable, Subscriber } from 'rxjs';
1
2
  import { MicroAgent } from '@newrelic/browser-agent/loaders/micro-agent';
2
3
 
3
4
  declare class ApiCharge {
@@ -115,6 +116,7 @@ declare class ApiBase {
115
116
  protected env: Env;
116
117
  auth: string;
117
118
  authType: API_AUTH_TYPE;
119
+ private stoppedPooling;
118
120
  constructor(auth: string, authType?: API_AUTH_TYPE);
119
121
  /**
120
122
  * Current method can change environment. By default environment = sandbox.
@@ -126,6 +128,9 @@ declare class ApiBase {
126
128
  * @param {string} [alias] - Own domain alias
127
129
  */
128
130
  setEnv(env: string, alias?: string): ApiBase;
131
+ longPollingObservable<Req extends object, Res>(method: 'GET' | 'POST', url: string, requestBody: Req, reconnectInterval?: number): Observable<Res>;
132
+ longPull(subscriber: Subscriber<any>, method: any, link: any, auth: any, requestBody: any, reconnectInterval: any): void;
133
+ destroyLongPolling(): void;
129
134
  setAuthType(): API_AUTH_TYPE;
130
135
  getClient(method: Extract<HttpRequestMethod, 'GET' | 'POST'>, link: string): {
131
136
  config: XMLHttpRequest;
@@ -666,6 +671,8 @@ declare class IFrame {
666
671
  isExist(): boolean;
667
672
  getElement(): HTMLIFrameElement;
668
673
  setStyle(property: string, value: string): void;
674
+ setIframeHeight(iframeElement: HTMLIFrameElement, iFrameDocument: Document, selector: string): void;
675
+ private setStyles;
669
676
  }
670
677
 
671
678
  /**
@@ -1903,9 +1910,17 @@ interface GetConfigResponse {
1903
1910
  certificate_passphrase: string;
1904
1911
  }
1905
1912
 
1913
+ declare class ApiCheckoutInternal {
1914
+ protected api: ApiInternal;
1915
+ constructor(api: ApiInternal);
1916
+ instructions(): Observable<object>;
1917
+ callback(payload: Object): Promise<Object>;
1918
+ }
1919
+
1906
1920
  declare class ApiInternal extends ApiBase {
1907
1921
  charge(): ApiChargeInternal;
1908
1922
  service(): ApiServiceInternal;
1923
+ checkout(): ApiCheckoutInternal;
1909
1924
  gateway(): ApiGatewayInternal;
1910
1925
  }
1911
1926
 
@@ -2863,6 +2878,7 @@ interface IEventMetaData extends IEventData$1 {
2863
2878
  }
2864
2879
  interface IEventFinishData extends IEventData$1 {
2865
2880
  payment_source: string;
2881
+ payment_source_token?: string;
2866
2882
  }
2867
2883
  /**
2868
2884
  * Interface of data from validation event.
@@ -3282,6 +3298,102 @@ declare class HtmlWidget extends HtmlMultiWidget {
3282
3298
  setGiftCardScheme(giftCardScheme: any, processingNetwork: any): void;
3283
3299
  }
3284
3300
 
3301
+ type Instruction = new (selector: string, formSelector: string, api: ApiInternal) => InstructionHandler & InstructionDestroyable & InstructionDecorated;
3302
+ interface InstructionHandleable {
3303
+ handle(payload: object, eventEmitter: EventEmitter): void;
3304
+ }
3305
+ interface InstructionDecorated {
3306
+ instruction: string;
3307
+ }
3308
+ interface InstructionDestroyable {
3309
+ destroy(): void;
3310
+ }
3311
+ declare abstract class InstructionHandler implements InstructionHandleable, InstructionDestroyable, InstructionDecorated {
3312
+ selector: string;
3313
+ formSelector: string;
3314
+ api: ApiInternal;
3315
+ constructor(selector: string, formSelector: string, api: ApiInternal);
3316
+ instruction: string;
3317
+ abstract handle(context: object, eventEmitter?: any): void;
3318
+ abstract destroy(): void;
3319
+ getEnv(instruction_token: string): string;
3320
+ }
3321
+
3322
+ declare class InstructionModule {
3323
+ instructions: any[];
3324
+ getInstruction(id: string): Instruction | null;
3325
+ }
3326
+
3327
+ interface IntentTokenPayload {
3328
+ env: string;
3329
+ intent_id: string;
3330
+ version: number;
3331
+ env_alias: string;
3332
+ }
3333
+ declare class InstructionDebugger {
3334
+ constructor(selector: string, formSelector: string, version: number, instructionName: string, context: object, token?: string);
3335
+ }
3336
+ /**
3337
+ * Class CheckoutButton transform usual button into checkout
3338
+ *
3339
+ * @constructor
3340
+ *
3341
+ * @param {string} selector - Selector of html element.
3342
+ * @param {string} intentToken - PayDock intent token
3343
+ * @example
3344
+ * var widget = new Checkout('#widget', 'intent_token');
3345
+ **/
3346
+ declare class Checkout {
3347
+ protected formSelector: string;
3348
+ protected intentToken: string;
3349
+ protected debug: boolean;
3350
+ protected window: Window;
3351
+ protected eventEmitter: EventEmitter;
3352
+ protected container: Container;
3353
+ protected intentTokenPayload: IntentTokenPayload;
3354
+ protected api: ApiInternal;
3355
+ protected instructions: InstructionModule;
3356
+ protected currentInstruction: InstructionDestroyable & InstructionHandleable;
3357
+ constructor(formSelector: string, intentToken: string, debug?: boolean);
3358
+ private extractIntentTokenPayload;
3359
+ private ready;
3360
+ private initContractVersion;
3361
+ private listenInstructions;
3362
+ private setEnv;
3363
+ private createWidgetStructure;
3364
+ /**
3365
+ * If the payment was successful, the function passed as parameter will be called.
3366
+ * Important: Do not perform thread blocking operations in callback such as window.alert() calls.
3367
+ *
3368
+ * @example
3369
+ * widget.onPaymentSuccessful((data) => {
3370
+ * console.log('Payment successful!');
3371
+ * });
3372
+ */
3373
+ onPaymentSuccessful(handler: (data: IEventData$1) => void): () => void;
3374
+ /**
3375
+ * If the payment was not successful, the function passed as parameter will be called.
3376
+ * Important: Do not perform thread blocking operations in callback such as window.alert() calls.
3377
+ *
3378
+ * @example
3379
+ * widget.onPaymentError((err) => {
3380
+ * console.log('Payment not successful');
3381
+ * });
3382
+ */
3383
+ onPaymentFailure(handler: (data: IEventData$1) => void): () => void;
3384
+ /**
3385
+ * If the payment was expired, the function passed as parameter will be called.
3386
+ * Important: Do not perform thread blocking operations in callback such as window.alert() calls.
3387
+ *
3388
+ * @example
3389
+ * widget.onPaymentInReview((data) => {
3390
+ * console.log('Payment in fraud review');
3391
+ * });
3392
+ */
3393
+ onPaymentExpired(handler: (data: IEventData$1) => void): () => void;
3394
+ private setStyles;
3395
+ }
3396
+
3285
3397
  declare enum EVENT {
3286
3398
  UNAVAILABLE = "unavailable",
3287
3399
  ERROR = "error",
@@ -3687,4 +3799,4 @@ declare class PaypalWalletButtonExpress extends BaseWalletButton<PaypalWalletMet
3687
3799
  private paypalSharedProps;
3688
3800
  }
3689
3801
 
3690
- export { AfterpayCheckoutButton, Api, ApplePayWalletButtonExpress, CHECKOUT_BUTTON_EVENT, Canvas3ds, ClickToPay, Configuration, ELEMENT, EVENT$1 as EVENT, Builder$1 as ExternalCheckoutBuilder, Checker as ExternalCheckoutChecker, FORM_FIELD, HtmlMultiWidget, HtmlPaymentSourceWidget, HtmlWidget, type ICheckout, type IDetails, type IElementStyleInput, type IEventCheckoutFinishData, type IPayPalMeta, type IStyles$1 as IStyles, type ITexts, MultiWidget, PAYMENT_TYPE, PURPOSE, Builder as PaymentSourceBuilder, PaymentSourceWidget, PaypalCheckoutButton, PaypalWalletButtonExpress, STYLABLE_ELEMENT, STYLABLE_ELEMENT_STATE, STYLE, SUPPORTED_CARD_TYPES, TEXT, TRIGGER, TYPE, VAULT_DISPLAY_STYLE, type VaultDisplayStyle, VaultDisplayWidget, WalletButtons, ZipmoneyCheckoutButton };
3802
+ export { AfterpayCheckoutButton, Api, ApplePayWalletButtonExpress, CHECKOUT_BUTTON_EVENT, Canvas3ds, Checkout, ClickToPay, Configuration, ELEMENT, EVENT$1 as EVENT, Builder$1 as ExternalCheckoutBuilder, Checker as ExternalCheckoutChecker, FORM_FIELD, HtmlMultiWidget, HtmlPaymentSourceWidget, HtmlWidget, type ICheckout, type IDetails, type IElementStyleInput, type IEventCheckoutFinishData, type IPayPalMeta, type IStyles$1 as IStyles, type ITexts, InstructionDebugger, MultiWidget, PAYMENT_TYPE, PURPOSE, Builder as PaymentSourceBuilder, PaymentSourceWidget, PaypalCheckoutButton, PaypalWalletButtonExpress, STYLABLE_ELEMENT, STYLABLE_ELEMENT_STATE, STYLE, SUPPORTED_CARD_TYPES, TEXT, TRIGGER, TYPE, VAULT_DISPLAY_STYLE, type VaultDisplayStyle, VaultDisplayWidget, WalletButtons, ZipmoneyCheckoutButton };
@@ -1,4 +1,5 @@
1
1
  import { Env } from '../configs/env';
2
+ import { Observable, Subscriber } from 'rxjs';
2
3
  import { type HttpRequestMethod } from '../shared/http';
3
4
  import { type ReportErrorFn, type ReportEventFn } from '../shared/services/instrumentation/repositories';
4
5
  export declare enum API_AUTH_TYPE {
@@ -9,6 +10,7 @@ export declare class ApiBase {
9
10
  protected env: Env;
10
11
  auth: string;
11
12
  authType: API_AUTH_TYPE;
13
+ private stoppedPooling;
12
14
  constructor(auth: string, authType?: API_AUTH_TYPE);
13
15
  /**
14
16
  * Current method can change environment. By default environment = sandbox.
@@ -20,6 +22,9 @@ export declare class ApiBase {
20
22
  * @param {string} [alias] - Own domain alias
21
23
  */
22
24
  setEnv(env: string, alias?: string): ApiBase;
25
+ longPollingObservable<Req extends object, Res>(method: 'GET' | 'POST', url: string, requestBody: Req, reconnectInterval?: number): Observable<Res>;
26
+ longPull(subscriber: Subscriber<any>, method: any, link: any, auth: any, requestBody: any, reconnectInterval: any): void;
27
+ destroyLongPolling(): void;
23
28
  setAuthType(): API_AUTH_TYPE;
24
29
  getClient(method: Extract<HttpRequestMethod, 'GET' | 'POST'>, link: string): {
25
30
  config: XMLHttpRequest;
@@ -1 +1 @@
1
- {"version":3,"file":"api-base.d.ts","sourceRoot":"","sources":["../../src/api/api-base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,GAAG,EAAE,MAAM,gBAAgB,CAAC;AAG9C,OAAO,EAAe,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACrE,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,aAAa,EAAmB,MAAM,iDAAiD,CAAC;AAE1H,oBAAY,aAAa;IACrB,UAAU,IAAI;IACd,KAAK,IAAI;CACZ;AAED,qBAAa,OAAO;IAChB,SAAS,CAAC,GAAG,EAAE,GAAG,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,aAAa,CAAC;gBAEZ,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,aAAa;IAMlD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO;IAMnD,WAAW;IAMX,SAAS,CAAC,MAAM,EAAE,OAAO,CAAC,iBAAiB,EAAE,KAAK,GAAG,MAAM,CAAC,EAAE,IAAI,EAAE,MAAM;;+BAKhD,CAAC,IAAI,KAAK,IAAI,mBAAmB,GAAG;;IAuB9D,gBAAgB,CAAC,GAAG,SAAS,MAAM,EAAE,GAAG,EACpC,MAAM,EAAE,OAAO,CAAC,iBAAiB,EAAE,KAAK,GAAG,MAAM,CAAC,EAAE,IAAI,EAAE,MAAM,GACjE;QACC,MAAM,EAAE,cAAc,CAAC;QACvB,IAAI,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;KACrC;IA6BD,MAAM,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,EAAE,EAAE,KAAA,EAAE,OAAO,KAAA;IAkBtE,aAAa,CAAC,GAAG,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,GAAG,CAAC;IAkBpF,WAAW,EAAE,aAAa,CAExB;IAEF,WAAW,EAAE,aAAa,CAExB;IAEF,SAAS,CAAC,aAAa,CAAC,MAAM,EAAE,OAAO,CAAC,iBAAiB,EAAE,KAAK,GAAG,MAAM,CAAC,EAAE,IAAI,EAAE,MAAM;IAmBxF,SAAS,KAAK,GAAG;;;;MAMhB;CACJ"}
1
+ {"version":3,"file":"api-base.d.ts","sourceRoot":"","sources":["../../src/api/api-base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,GAAG,EAAE,MAAM,gBAAgB,CAAC;AAG9C,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAE9C,OAAO,EAAe,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACrE,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,aAAa,EAAmB,MAAM,iDAAiD,CAAC;AAE1H,oBAAY,aAAa;IACrB,UAAU,IAAI;IACd,KAAK,IAAI;CACZ;AAED,qBAAa,OAAO;IAChB,SAAS,CAAC,GAAG,EAAE,GAAG,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,aAAa,CAAC;IAExB,OAAO,CAAC,cAAc,CAAS;gBAEnB,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,aAAa;IAMlD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO;IAM5C,qBAAqB,CAAC,GAAG,SAAS,MAAM,EAAE,GAAG,EAChD,MAAM,EAAE,KAAK,GAAG,MAAM,EACtB,GAAG,EAAE,MAAM,EACX,WAAW,EAAE,GAAG,EAChB,iBAAiB,GAAE,MAAa,GACjC,UAAU,CAAC,GAAG,CAAC;IAMlB,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC,GAAG,CAAC,EAAE,MAAM,KAAA,EAAE,IAAI,KAAA,EAAE,IAAI,KAAA,EAAE,WAAW,KAAA,EAAE,iBAAiB,KAAA;IA8BxF,kBAAkB;IAIlB,WAAW;IAMX,SAAS,CAAC,MAAM,EAAE,OAAO,CAAC,iBAAiB,EAAE,KAAK,GAAG,MAAM,CAAC,EAAE,IAAI,EAAE,MAAM;;+BAKhD,CAAC,IAAI,KAAK,IAAI,mBAAmB,GAAG;;IAuB9D,gBAAgB,CAAC,GAAG,SAAS,MAAM,EAAE,GAAG,EACpC,MAAM,EAAE,OAAO,CAAC,iBAAiB,EAAE,KAAK,GAAG,MAAM,CAAC,EAAE,IAAI,EAAE,MAAM,GACjE;QACC,MAAM,EAAE,cAAc,CAAC;QACvB,IAAI,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;KACrC;IA6BD,MAAM,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,EAAE,EAAE,KAAA,EAAE,OAAO,KAAA;IAkBtE,aAAa,CAAC,GAAG,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,GAAG,CAAC;IAkBpF,WAAW,EAAE,aAAa,CAExB;IAEF,WAAW,EAAE,aAAa,CAExB;IAEF,SAAS,CAAC,aAAa,CAAC,MAAM,EAAE,OAAO,CAAC,iBAAiB,EAAE,KAAK,GAAG,MAAM,CAAC,EAAE,IAAI,EAAE,MAAM;IAmBxF,SAAS,KAAK,GAAG;;;;MAMhB;CACJ"}
@@ -0,0 +1,56 @@
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(): Observable<object>;
7
+ callback(payload: Object): Promise<Object>;
8
+ }
9
+ export interface HandleResponseInterface {
10
+ status: string;
11
+ error: string;
12
+ result: {
13
+ reference: string;
14
+ reference_2: string;
15
+ identifier: string;
16
+ identifier_2: string;
17
+ identifier_3: string;
18
+ identifier_4: string;
19
+ identifier_5: string;
20
+ type: string;
21
+ status: string;
22
+ status_2: string;
23
+ status_code: string;
24
+ ref_token: string;
25
+ cancellation: string;
26
+ count: string;
27
+ version: string;
28
+ whitelist: {
29
+ status: string;
30
+ source: string;
31
+ };
32
+ result: string;
33
+ };
34
+ }
35
+ export interface ProcessAuthenticationResponse {
36
+ status: string;
37
+ error?: string;
38
+ result?: {
39
+ challenge: string;
40
+ challenge_url: string;
41
+ decoupled_challenge: boolean;
42
+ frictionless: boolean;
43
+ identifier: string;
44
+ identifier_3: string;
45
+ identifier_4: string;
46
+ reference: string;
47
+ reference_2: string;
48
+ secondary_url: string;
49
+ skipped: boolean;
50
+ status: string;
51
+ type: string;
52
+ version: string;
53
+ description?: string;
54
+ };
55
+ }
56
+ //# 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;AAKhC,qBAAa,mBAAmB;IAChB,SAAS,CAAC,GAAG,EAAE,WAAW;gBAAhB,GAAG,EAAE,WAAW;IAG/B,YAAY,IAAI,UAAU,CAAC,MAAM,CAAC;IASlC,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAMpD;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"}
@@ -2,10 +2,12 @@ import { ApiBase } from './api-base';
2
2
  import { ApiChargeInternal } from './api-charge-internal';
3
3
  import { ApiGatewayInternal } from './api-gateway-internal';
4
4
  import { ApiServiceInternal } from './api-service-internal';
5
+ import { ApiCheckoutInternal } from "./api-checkout-internal";
5
6
  export { API_AUTH_TYPE } from './api-base';
6
7
  export declare class ApiInternal extends ApiBase {
7
8
  charge(): ApiChargeInternal;
8
9
  service(): ApiServiceInternal;
10
+ checkout(): ApiCheckoutInternal;
9
11
  gateway(): ApiGatewayInternal;
10
12
  }
11
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;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,qBAAa,WAAY,SAAQ,OAAO;IACpC,MAAM;IAIN,OAAO;IAIP,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"}
@@ -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,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAC9F,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAIxD,eAAO,MAAM,KAAK;;;;CAIjB,CAAC;AACF,UAAU,kBAAkB;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAA;CACpB;AAED,eAAO,MAAM,SAAS;;;CAGrB,CAAA;AAWD,qBAAa,mBAAmB;gBAChB,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,GAAE,MAAe;CASxI;AAED;;;;;;;;;IASI;AACJ,qBAAa,QAAQ;IAWb,SAAS,CAAC,YAAY,EAAE,MAAM;IAC9B,SAAS,CAAC,WAAW,EAAE,MAAM;IAC7B,SAAS,CAAC,KAAK,EAAE,OAAO;IAX5B,SAAS,CAAC,MAAM,EAAE,MAAM,CAAU;IAClC,SAAS,CAAC,YAAY,EAAE,YAAY,CAAC;IACrC,SAAS,CAAC,SAAS,EAAE,SAAS,CAAC;IAC/B,SAAS,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;IACjD,SAAS,CAAC,GAAG,EAAE,WAAW,CAAC;IAC3B,SAAS,CAAC,YAAY,EAAE,iBAAiB,CAAC;IAC1C,SAAS,CAAC,kBAAkB,EAAE,sBAAsB,GAAG,qBAAqB,CAAC;gBAG/D,YAAY,EAAE,MAAM,EACpB,WAAW,EAAE,MAAM,EACnB,KAAK,GAAE,OAAe;IAoBpC,OAAO,CAAC,yBAAyB;IAYjC,OAAO,CAAC,KAAK;IAYb,OAAO,CAAC,mBAAmB;IAQ3B,OAAO,CAAC,kBAAkB;IAyB1B,OAAO,CAAC,MAAM;IAId,OAAO,CAAC,qBAAqB;IAoB7B;;;;;;;;OAQG;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,6 @@
1
+ import { Instruction } from "./instruction-handler";
2
+ export declare class InstructionModule {
3
+ instructions: any[];
4
+ getInstruction(id: string): Instruction | null;
5
+ }
6
+ //# sourceMappingURL=instruction-module.d.ts.map
@@ -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,6 @@
1
+ export declare function InstructionModule(config: any[]): <T extends new (...args: any[]) => {}>(constructor: T) => {
2
+ new (...args: any[]): {
3
+ instructions: any[];
4
+ };
5
+ } & T;
6
+ //# sourceMappingURL=instruction-module.decorator.d.ts.map
@@ -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,5 @@
1
+ export declare function Instruction(instruction: string): <T extends new (...args: any[]) => {}>(constructor: T) => {
2
+ new (...args: any[]): {};
3
+ instruction: string;
4
+ } & T;
5
+ //# sourceMappingURL=instruction.decorator.d.ts.map
@@ -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,5 @@
1
+ declare const _default: {
2
+ zipmoney: string;
3
+ };
4
+ export default _default;
5
+ //# sourceMappingURL=resource-helper.d.ts.map
@@ -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,2 @@
1
+ export { Checkout, InstructionDebugger } from './checkout';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -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,3 @@
1
+ import { InstructionModule } from "../helpers/instruction-module";
2
+ export declare function getVersionInstructions(version: number): InstructionModule | null;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -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,4 @@
1
+ import { InstructionModule as Module } from '../../helpers/instruction-module';
2
+ export declare class InstructionModuleV1 extends Module {
3
+ }
4
+ //# sourceMappingURL=index.d.ts.map
@@ -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
@@ -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;AASvE,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;IA4DD,OAAO;IAId,OAAO,CAAC,SAAS;CAYlB"}
@@ -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;IA0DD,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"}
@@ -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"}