@medipass/checkout-sdk 3.2.0 → 3.3.0-beta.7

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/.eslintrc CHANGED
@@ -16,7 +16,7 @@
16
16
  "ecmaVersion": 9,
17
17
  "sourceType": "module"
18
18
  },
19
- "ignorePatterns": ["**/dist"],
19
+ "ignorePatterns": ["**/dist", "scripts/**"],
20
20
  "rules": {
21
21
  "indent": ["error", 2],
22
22
  "linebreak-style": ["error", "unix"],
@@ -16,6 +16,7 @@ export declare const EVENTS: {
16
16
  readonly SUCCESS: "success";
17
17
  readonly fAILURE: "failure";
18
18
  readonly CANCEL: "cancel";
19
+ readonly EXPIRED: "expired";
19
20
  };
20
21
  export declare const ERROR_MESSAGES: {
21
22
  readonly NO_API_KEY_OR_NO_TOKEN: "apiKey or token is not provided";
@@ -15,6 +15,9 @@ interface CheckoutSdk {
15
15
  onCancel: ((args: {
16
16
  transactionId: string;
17
17
  }) => void) | null;
18
+ onExpired: ((args: {
19
+ transactionId: string;
20
+ }) => void) | null;
18
21
  onClose: (() => void) | null;
19
22
  init: (args: {
20
23
  env: typeof ENVS[keyof typeof ENVS];
@@ -27,6 +30,9 @@ interface CheckoutSdk {
27
30
  onCancel: (args: {
28
31
  transactionId: string;
29
32
  }) => void;
33
+ onExpired: (args: {
34
+ transactionId: string;
35
+ }) => void;
30
36
  onClose: () => void;
31
37
  }) => void;
32
38
  createCheckout: (args: {