@monei-js/components 1.4.0 → 1.5.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.
package/dist/config.d.ts CHANGED
@@ -12,6 +12,9 @@ declare type Config = {
12
12
  cofidisUrl: string;
13
13
  cofidisButtonUrl: string;
14
14
  cofidisWidgetUrl: string;
15
+ cofidisLoanUrl: string;
16
+ cofidisLoanButtonUrl: string;
17
+ cofidisLoanWidgetUrl: string;
15
18
  paypalUrl: string;
16
19
  apiUrl: string;
17
20
  googlePayUrl: string;
package/dist/index.d.ts CHANGED
@@ -5,6 +5,7 @@ export * from './paymentModal';
5
5
  export * from './paypal';
6
6
  export * from './bizum';
7
7
  export * from './cofidis';
8
+ export * from './cofidisLoan';
8
9
  export * from './googlePay';
9
10
  export * from './paymentRequest';
10
11
  export * from './config';
@@ -11,7 +11,7 @@ export interface PaymentRequestProps {
11
11
  token?: string;
12
12
  error?: string;
13
13
  }) => void;
14
- onBeforeSubmit: () => void;
14
+ onBeforeSubmit?: () => void;
15
15
  onLoad?: (isSupported: boolean) => void;
16
16
  style?: {
17
17
  height?: number;
package/dist/types.d.ts CHANGED
@@ -135,6 +135,7 @@ export declare type CreateApplePaySessionRequest = {
135
135
  export declare type CalculateFinancingRequest = {
136
136
  amount: number;
137
137
  accountId: string;
138
+ paymentMethod?: string;
138
139
  };
139
140
  export declare type CalculateFinancingResponse = {
140
141
  financingAmount: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monei-js/components",
3
- "version": "1.4.0",
3
+ "version": "1.5.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",