@fractalpay/fractalpay-next-dev 0.0.113 → 0.0.114

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/index.d.mts CHANGED
@@ -1,7 +1,6 @@
1
- import * as React from 'react';
2
- import React__default from 'react';
1
+ import React from 'react';
3
2
 
4
- interface Props$6 {
3
+ interface Props$7 {
5
4
  merchantPublicKey: string;
6
5
  customerId?: string;
7
6
  orderID?: string;
@@ -17,9 +16,9 @@ interface Props$6 {
17
16
  require_3ds?: boolean;
18
17
  pass_fee?: boolean;
19
18
  }
20
- declare function RequestPayment(props: Props$6): React__default.JSX.Element;
19
+ declare function RequestPayment(props: Props$7): React.JSX.Element;
21
20
 
22
- interface Props$5 {
21
+ interface Props$6 {
23
22
  merchantPublicKey: string;
24
23
  customerId?: string;
25
24
  orderID?: string;
@@ -34,9 +33,9 @@ interface Props$5 {
34
33
  surcharge?: string;
35
34
  require_3ds?: boolean;
36
35
  }
37
- declare function RequestPreAuthPayment(props: Props$5): React__default.JSX.Element;
36
+ declare function RequestPreAuthPayment(props: Props$6): React.JSX.Element;
38
37
 
39
- type Props$4 = {
38
+ type Props$5 = {
40
39
  merchantPublicKey: string;
41
40
  customerId?: string;
42
41
  orderID?: string;
@@ -47,9 +46,9 @@ type Props$4 = {
47
46
  surcharge?: string;
48
47
  pass_fee?: boolean;
49
48
  };
50
- declare function GetPaymentPage(props: Props$4): React__default.JSX.Element;
49
+ declare function GetPaymentPage(props: Props$5): React.JSX.Element;
51
50
 
52
- type Props$3 = {
51
+ type Props$4 = {
53
52
  merchantPublicKey: string;
54
53
  customerId?: string;
55
54
  orderID?: string;
@@ -60,15 +59,15 @@ type Props$3 = {
60
59
  surcharge?: string;
61
60
  pass_fee?: boolean;
62
61
  };
63
- declare function PreAuthPayment(props: Props$3): React__default.JSX.Element;
62
+ declare function PreAuthPayment(props: Props$4): React.JSX.Element;
64
63
 
65
- type Props$2 = {
64
+ type Props$3 = {
66
65
  merchantPublicKey: string;
67
66
  customerId?: string;
68
67
  };
69
- declare function AddCardEasyPay(props: Props$2): React__default.JSX.Element;
68
+ declare function AddCardEasyPay(props: Props$3): React.JSX.Element;
70
69
 
71
- type Props$1 = {
70
+ type Props$2 = {
72
71
  session_token: string;
73
72
  callback: (resp: any) => void;
74
73
  isloading: boolean;
@@ -78,8 +77,30 @@ type Props$1 = {
78
77
  signCheckbox: boolean;
79
78
  checkedSignCheckbox: boolean;
80
79
  onCheckSign: (val: boolean) => void;
80
+ cancelbtnClass: string;
81
+ savebtnClass: string;
82
+ inputClass: string;
81
83
  };
82
- declare function CardOnFile({ session_token, callback, isloading, onCancel, showChecks, merchantName, signCheckbox, checkedSignCheckbox, onCheckSign }: Props$1): React__default.JSX.Element;
84
+ declare function CardOnFile({ session_token, callback, isloading, onCancel, showChecks, merchantName, signCheckbox, checkedSignCheckbox, onCheckSign, cancelbtnClass, savebtnClass, inputClass }: Props$2): React.JSX.Element;
85
+
86
+ type Props$1 = {
87
+ session_token: string;
88
+ surcharge: string;
89
+ amount: string;
90
+ submitBtnText?: string;
91
+ submitBtnClass?: string;
92
+ customerId?: string;
93
+ callback: (resp: any) => void;
94
+ merchantName: string;
95
+ isPreAuth: boolean;
96
+ submitBtnIcon?: any;
97
+ isRequest?: boolean;
98
+ pass_fee?: boolean;
99
+ pass_fee_amount?: number | string;
100
+ bankAmount: string;
101
+ bankSurcharge?: string;
102
+ };
103
+ declare const PaymentWidget: ({ amount, bankAmount, submitBtnText, session_token, customerId, callback, merchantName, isPreAuth, surcharge, submitBtnClass, submitBtnIcon, isRequest, pass_fee, pass_fee_amount }: Props$1) => React.JSX.Element;
83
104
 
84
105
  type Props = {
85
106
  merchantPublicKey: string;
@@ -96,8 +117,6 @@ type Props = {
96
117
  allowPartial: boolean;
97
118
  cashDiscount?: string;
98
119
  };
99
- declare function PartialPayment(props: Props): React__default.JSX.Element;
100
-
101
- declare const PaymentWidget: React.ComponentType<any>;
120
+ declare function PartialPayment(props: Props): React.JSX.Element;
102
121
 
103
122
  export { AddCardEasyPay as AddCard, CardOnFile, GetPaymentPage, PartialPayment, PaymentWidget, PreAuthPayment, RequestPayment, RequestPreAuthPayment };
package/dist/index.d.ts CHANGED
@@ -1,7 +1,6 @@
1
- import * as React from 'react';
2
- import React__default from 'react';
1
+ import React from 'react';
3
2
 
4
- interface Props$6 {
3
+ interface Props$7 {
5
4
  merchantPublicKey: string;
6
5
  customerId?: string;
7
6
  orderID?: string;
@@ -17,9 +16,9 @@ interface Props$6 {
17
16
  require_3ds?: boolean;
18
17
  pass_fee?: boolean;
19
18
  }
20
- declare function RequestPayment(props: Props$6): React__default.JSX.Element;
19
+ declare function RequestPayment(props: Props$7): React.JSX.Element;
21
20
 
22
- interface Props$5 {
21
+ interface Props$6 {
23
22
  merchantPublicKey: string;
24
23
  customerId?: string;
25
24
  orderID?: string;
@@ -34,9 +33,9 @@ interface Props$5 {
34
33
  surcharge?: string;
35
34
  require_3ds?: boolean;
36
35
  }
37
- declare function RequestPreAuthPayment(props: Props$5): React__default.JSX.Element;
36
+ declare function RequestPreAuthPayment(props: Props$6): React.JSX.Element;
38
37
 
39
- type Props$4 = {
38
+ type Props$5 = {
40
39
  merchantPublicKey: string;
41
40
  customerId?: string;
42
41
  orderID?: string;
@@ -47,9 +46,9 @@ type Props$4 = {
47
46
  surcharge?: string;
48
47
  pass_fee?: boolean;
49
48
  };
50
- declare function GetPaymentPage(props: Props$4): React__default.JSX.Element;
49
+ declare function GetPaymentPage(props: Props$5): React.JSX.Element;
51
50
 
52
- type Props$3 = {
51
+ type Props$4 = {
53
52
  merchantPublicKey: string;
54
53
  customerId?: string;
55
54
  orderID?: string;
@@ -60,15 +59,15 @@ type Props$3 = {
60
59
  surcharge?: string;
61
60
  pass_fee?: boolean;
62
61
  };
63
- declare function PreAuthPayment(props: Props$3): React__default.JSX.Element;
62
+ declare function PreAuthPayment(props: Props$4): React.JSX.Element;
64
63
 
65
- type Props$2 = {
64
+ type Props$3 = {
66
65
  merchantPublicKey: string;
67
66
  customerId?: string;
68
67
  };
69
- declare function AddCardEasyPay(props: Props$2): React__default.JSX.Element;
68
+ declare function AddCardEasyPay(props: Props$3): React.JSX.Element;
70
69
 
71
- type Props$1 = {
70
+ type Props$2 = {
72
71
  session_token: string;
73
72
  callback: (resp: any) => void;
74
73
  isloading: boolean;
@@ -78,8 +77,30 @@ type Props$1 = {
78
77
  signCheckbox: boolean;
79
78
  checkedSignCheckbox: boolean;
80
79
  onCheckSign: (val: boolean) => void;
80
+ cancelbtnClass: string;
81
+ savebtnClass: string;
82
+ inputClass: string;
81
83
  };
82
- declare function CardOnFile({ session_token, callback, isloading, onCancel, showChecks, merchantName, signCheckbox, checkedSignCheckbox, onCheckSign }: Props$1): React__default.JSX.Element;
84
+ declare function CardOnFile({ session_token, callback, isloading, onCancel, showChecks, merchantName, signCheckbox, checkedSignCheckbox, onCheckSign, cancelbtnClass, savebtnClass, inputClass }: Props$2): React.JSX.Element;
85
+
86
+ type Props$1 = {
87
+ session_token: string;
88
+ surcharge: string;
89
+ amount: string;
90
+ submitBtnText?: string;
91
+ submitBtnClass?: string;
92
+ customerId?: string;
93
+ callback: (resp: any) => void;
94
+ merchantName: string;
95
+ isPreAuth: boolean;
96
+ submitBtnIcon?: any;
97
+ isRequest?: boolean;
98
+ pass_fee?: boolean;
99
+ pass_fee_amount?: number | string;
100
+ bankAmount: string;
101
+ bankSurcharge?: string;
102
+ };
103
+ declare const PaymentWidget: ({ amount, bankAmount, submitBtnText, session_token, customerId, callback, merchantName, isPreAuth, surcharge, submitBtnClass, submitBtnIcon, isRequest, pass_fee, pass_fee_amount }: Props$1) => React.JSX.Element;
83
104
 
84
105
  type Props = {
85
106
  merchantPublicKey: string;
@@ -96,8 +117,6 @@ type Props = {
96
117
  allowPartial: boolean;
97
118
  cashDiscount?: string;
98
119
  };
99
- declare function PartialPayment(props: Props): React__default.JSX.Element;
100
-
101
- declare const PaymentWidget: React.ComponentType<any>;
120
+ declare function PartialPayment(props: Props): React.JSX.Element;
102
121
 
103
122
  export { AddCardEasyPay as AddCard, CardOnFile, GetPaymentPage, PartialPayment, PaymentWidget, PreAuthPayment, RequestPayment, RequestPreAuthPayment };