@fractalpay/fractalpay-next-dev 0.0.115 → 0.0.116

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;
@@ -81,26 +82,7 @@ type Props$2 = {
81
82
  savebtnClass: string;
82
83
  inputClass: string;
83
84
  };
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;
85
+ declare function CardOnFile({ session_token, callback, isloading, onCancel, showChecks, merchantName, signCheckbox, checkedSignCheckbox, onCheckSign, cancelbtnClass, savebtnClass, inputClass }: Props$1): React__default.JSX.Element;
104
86
 
105
87
  type Props = {
106
88
  merchantPublicKey: string;
@@ -117,6 +99,8 @@ type Props = {
117
99
  allowPartial: boolean;
118
100
  cashDiscount?: string;
119
101
  };
120
- declare function PartialPayment(props: Props): React.JSX.Element;
102
+ declare function PartialPayment(props: Props): React__default.JSX.Element;
103
+
104
+ declare const PaymentWidget: React.ComponentType<any>;
121
105
 
122
106
  export { AddCardEasyPay as AddCard, CardOnFile, GetPaymentPage, PartialPayment, PaymentWidget, PreAuthPayment, RequestPayment, RequestPreAuthPayment };