@monei-js/components 1.3.0 → 1.5.1
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/dist/api.d.ts +5 -1
- package/dist/cofidis/container.d.ts +4 -0
- package/dist/cofidis/index.d.ts +6 -0
- package/dist/cofidis/modal.d.ts +3 -0
- package/dist/cofidis/types.d.ts +44 -0
- package/dist/cofidis/widget.d.ts +3 -0
- package/dist/cofidisLoan/container.d.ts +4 -0
- package/dist/cofidisLoan/index.d.ts +7 -0
- package/dist/cofidisLoan/modal.d.ts +4 -0
- package/dist/cofidisLoan/types.d.ts +44 -0
- package/dist/cofidisLoan/widget.d.ts +4 -0
- package/dist/components.cjs.development.js +715 -35
- package/dist/components.cjs.development.js.map +1 -1
- package/dist/components.cjs.production.min.js +1 -1
- package/dist/components.cjs.production.min.js.map +1 -1
- package/dist/components.esm.js +707 -36
- package/dist/components.esm.js.map +1 -1
- package/dist/config.d.ts +6 -0
- package/dist/index.d.ts +2 -0
- package/dist/paymentModal/container.d.ts +4 -0
- package/dist/paymentRequest/types.d.ts +1 -1
- package/dist/types.d.ts +28 -6
- package/package.json +1 -1
package/dist/config.d.ts
CHANGED
|
@@ -9,6 +9,12 @@ declare type Config = {
|
|
|
9
9
|
paymentModalUrl: string;
|
|
10
10
|
bizumUrl: string;
|
|
11
11
|
bizumButtonUrl: string;
|
|
12
|
+
cofidisUrl: string;
|
|
13
|
+
cofidisButtonUrl: string;
|
|
14
|
+
cofidisWidgetUrl: string;
|
|
15
|
+
cofidisLoanUrl: string;
|
|
16
|
+
cofidisLoanButtonUrl: string;
|
|
17
|
+
cofidisLoanWidgetUrl: string;
|
|
12
18
|
paypalUrl: string;
|
|
13
19
|
apiUrl: string;
|
|
14
20
|
googlePayUrl: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ export * from './cardInput';
|
|
|
4
4
|
export * from './paymentModal';
|
|
5
5
|
export * from './paypal';
|
|
6
6
|
export * from './bizum';
|
|
7
|
+
export * from './cofidis';
|
|
8
|
+
export * from './cofidisLoan';
|
|
7
9
|
export * from './googlePay';
|
|
8
10
|
export * from './paymentRequest';
|
|
9
11
|
export * from './config';
|
package/dist/types.d.ts
CHANGED
|
@@ -52,6 +52,11 @@ export declare type GetPaymentMethodsRequest = {
|
|
|
52
52
|
export declare type GetPaymentMethodsResponse = {
|
|
53
53
|
paymentMethods: string[];
|
|
54
54
|
livemode: boolean;
|
|
55
|
+
accountId: string;
|
|
56
|
+
amount?: number;
|
|
57
|
+
currency?: string;
|
|
58
|
+
merchantName?: string;
|
|
59
|
+
countryCode?: string;
|
|
55
60
|
metadata: {
|
|
56
61
|
paypal?: {
|
|
57
62
|
clientId: string;
|
|
@@ -59,18 +64,12 @@ export declare type GetPaymentMethodsResponse = {
|
|
|
59
64
|
};
|
|
60
65
|
googlePay?: {
|
|
61
66
|
merchantId: string;
|
|
62
|
-
merchantName: string;
|
|
63
|
-
countryCode: string;
|
|
64
67
|
cvcRequired?: boolean;
|
|
65
68
|
};
|
|
66
69
|
applePay?: {
|
|
67
70
|
merchantId: string;
|
|
68
|
-
merchantName: string;
|
|
69
|
-
countryCode: string;
|
|
70
71
|
};
|
|
71
72
|
clickToPay?: {
|
|
72
|
-
merchantName: string;
|
|
73
|
-
countryCode: string;
|
|
74
73
|
cvcRequired?: boolean;
|
|
75
74
|
srciDpaId: string;
|
|
76
75
|
srcInitiatorId: string;
|
|
@@ -91,6 +90,7 @@ export declare type CreateTokenRequest = {
|
|
|
91
90
|
cvc: string;
|
|
92
91
|
};
|
|
93
92
|
paypal?: {};
|
|
93
|
+
cofidis?: {};
|
|
94
94
|
googlePay?: {
|
|
95
95
|
token: string;
|
|
96
96
|
};
|
|
@@ -132,3 +132,25 @@ export declare type CreateApplePaySessionRequest = {
|
|
|
132
132
|
domainName: string;
|
|
133
133
|
displayName: string;
|
|
134
134
|
};
|
|
135
|
+
export declare type CalculateFinancingRequest = {
|
|
136
|
+
amount: number;
|
|
137
|
+
accountId: string;
|
|
138
|
+
paymentMethod?: string;
|
|
139
|
+
};
|
|
140
|
+
export declare type CalculateFinancingResponse = Array<{
|
|
141
|
+
financingAmount: number;
|
|
142
|
+
tin: number;
|
|
143
|
+
interestAmount: number;
|
|
144
|
+
tae: number;
|
|
145
|
+
quote: number;
|
|
146
|
+
installments: number;
|
|
147
|
+
totalAmount: number;
|
|
148
|
+
legalPhrase: string;
|
|
149
|
+
capEuros: number;
|
|
150
|
+
capPercent: number;
|
|
151
|
+
}>;
|
|
152
|
+
export declare type ValidateBizumPhoneRequest = {
|
|
153
|
+
accountId?: string;
|
|
154
|
+
paymentId?: string;
|
|
155
|
+
phoneNumber: string;
|
|
156
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@monei-js/components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.1",
|
|
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",
|