@fractalpay/fractalpay-next-dev 0.0.139 → 0.0.140

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;
@@ -47,9 +48,9 @@ type Props$5 = {
47
48
  pass_fee?: boolean;
48
49
  isReader?: boolean;
49
50
  };
50
- declare function GetPaymentPage(props: Props$5): React.JSX.Element;
51
+ declare function GetPaymentPage(props: Props$4): React__default.JSX.Element;
51
52
 
52
- type Props$4 = {
53
+ type Props$3 = {
53
54
  merchantPublicKey: string;
54
55
  customerId?: string;
55
56
  orderID?: string;
@@ -59,16 +60,17 @@ type Props$4 = {
59
60
  tax?: string;
60
61
  surcharge?: string;
61
62
  pass_fee?: boolean;
63
+ isReader?: boolean;
62
64
  };
63
- declare function PreAuthPayment(props: Props$4): React.JSX.Element;
65
+ declare function PreAuthPayment(props: Props$3): React__default.JSX.Element;
64
66
 
65
- type Props$3 = {
67
+ type Props$2 = {
66
68
  merchantPublicKey: string;
67
69
  customerId?: string;
68
70
  };
69
- declare function AddCardEasyPay(props: Props$3): React.JSX.Element;
71
+ declare function AddCardEasyPay(props: Props$2): React__default.JSX.Element;
70
72
 
71
- type Props$2 = {
73
+ type Props$1 = {
72
74
  session_token: string;
73
75
  callback: (resp: any) => void;
74
76
  isloading: boolean;
@@ -82,9 +84,9 @@ type Props$2 = {
82
84
  savebtnClass: string;
83
85
  inputClass: string;
84
86
  };
85
- declare function CardOnFile({ session_token, callback, isloading, onCancel, showChecks, merchantName, signCheckbox, checkedSignCheckbox, onCheckSign, cancelbtnClass, savebtnClass, inputClass }: Props$2): React.JSX.Element;
87
+ declare function CardOnFile({ session_token, callback, isloading, onCancel, showChecks, merchantName, signCheckbox, checkedSignCheckbox, onCheckSign, cancelbtnClass, savebtnClass, inputClass }: Props$1): React__default.JSX.Element;
86
88
 
87
- type Props$1 = {
89
+ type Props = {
88
90
  merchantPublicKey: string;
89
91
  customerId?: string;
90
92
  orderID?: string;
@@ -99,29 +101,8 @@ type Props$1 = {
99
101
  allowPartial: boolean;
100
102
  cashDiscount?: string;
101
103
  };
102
- declare function PartialPayment(props: Props$1): React.JSX.Element;
104
+ declare function PartialPayment(props: Props): React__default.JSX.Element;
103
105
 
104
- type Props = {
105
- session_token: string;
106
- surcharge: string;
107
- amount: string;
108
- submitBtnText?: string;
109
- submitBtnClass?: string;
110
- customerId?: string;
111
- callback: (resp: any) => void;
112
- merchantName: string;
113
- isPreAuth: boolean;
114
- submitBtnIcon?: any;
115
- isRequest?: boolean;
116
- pass_fee?: boolean;
117
- pass_fee_amount?: number | string;
118
- bankAmount: string;
119
- bankSurcharge?: string;
120
- require3ds: boolean;
121
- autoTrigger: boolean;
122
- isPartial?: boolean;
123
- partialRef?: string;
124
- };
125
- declare const PaymentWidget: ({ amount, bankAmount, submitBtnText, session_token, customerId, callback, merchantName, isPreAuth, surcharge, submitBtnClass, submitBtnIcon, isRequest, pass_fee, pass_fee_amount, require3ds, autoTrigger, isPartial, bankSurcharge, partialRef }: Props) => React.JSX.Element;
106
+ declare const PaymentWidget: React.ComponentType<any>;
126
107
 
127
108
  export { AddCardEasyPay as AddCard, CardOnFile, GetPaymentPage, PartialPayment, PaymentWidget, PreAuthPayment, RequestPayment, RequestPreAuthPayment };