@fractalpay/fractalpay-next-dev 0.0.106 → 0.0.107

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