@fractalpay/fractalpay-next-dev 0.0.92 → 0.0.93

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