@monei-js/components 1.6.2 → 1.7.0

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.
@@ -1,3 +1,4 @@
1
+ import { TransactionType } from '../types';
1
2
  export interface PayPalProps {
2
3
  accountId?: string;
3
4
  sessionId?: string;
@@ -5,7 +6,7 @@ export interface PayPalProps {
5
6
  amount?: number;
6
7
  currency?: string;
7
8
  language?: string;
8
- transactionType?: string;
9
+ transactionType?: TransactionType;
9
10
  cspNonce?: string;
10
11
  onError?: (error: any) => void;
11
12
  onProps?: (cb: (props: PayPalProps) => void) => void;
package/dist/types.d.ts CHANGED
@@ -17,6 +17,12 @@ export declare enum CardBrand {
17
17
  Elo = "elo",
18
18
  Hipercard = "hipercard"
19
19
  }
20
+ export declare enum TransactionType {
21
+ AUTH = "AUTH",
22
+ SALE = "SALE",
23
+ PAYOUT = "PAYOUT",
24
+ VERIF = "VERIF"
25
+ }
20
26
  export interface PaymentResult {
21
27
  id: string;
22
28
  status: string;
@@ -89,6 +95,7 @@ export declare type GetPaymentMethodsResponse = {
89
95
  };
90
96
  clickToPay?: {
91
97
  tokenSupport: boolean;
98
+ preselected: boolean;
92
99
  visa: {
93
100
  srciDpaId: string;
94
101
  srcInitiatorId: string;
@@ -97,6 +104,10 @@ export declare type GetPaymentMethodsResponse = {
97
104
  srciDpaId: string;
98
105
  srcInitiatorId: string;
99
106
  };
107
+ discover: {
108
+ srciDpaId: string;
109
+ srcInitiatorId: string;
110
+ };
100
111
  };
101
112
  };
102
113
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monei-js/components",
3
- "version": "1.6.2",
3
+ "version": "1.7.0",
4
4
  "author": "MONEI <support@monei.com> (https://monei.com)",
5
5
  "description": "MONEI UI Components enable you to collect sensitive payment information using customizable UI components.",
6
6
  "homepage": "https://monei.com",
@@ -96,6 +96,6 @@
96
96
  "csstype": "^3.0.5",
97
97
  "htm": "^3.0.4",
98
98
  "post-robot": "^10.0.42",
99
- "zoid": "^9.0.63"
99
+ "@krakenjs/zoid": "^10.3.1"
100
100
  }
101
101
  }