@tender-cash/agent-sdk-react 0.1.1 → 0.1.2
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/tender-cash-agent-sdk-react.cjs.js +3 -3
- package/dist/tender-cash-agent-sdk-react.cjs.js.map +1 -1
- package/dist/tender-cash-agent-sdk-react.es.js +30 -24
- package/dist/tender-cash-agent-sdk-react.es.js.map +1 -1
- package/dist/types/module/lib/utils/index.d.ts +1 -1
- package/dist/types/module/screens/details.d.ts +1 -1
- package/dist/types/module/types.d.ts +5 -1
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import { ClassValue } from 'clsx';
|
|
|
2
2
|
import { IGetRequestSignatureParam, IGetRequestSignature, ITheme } from '../../types';
|
|
3
3
|
declare function cn(...inputs: ClassValue[]): string;
|
|
4
4
|
declare enum TENDER_URLS {
|
|
5
|
-
test = "
|
|
5
|
+
test = "http://localhost:9090",
|
|
6
6
|
live = "https://secureapi.tender.cash"
|
|
7
7
|
}
|
|
8
8
|
declare const URL_PATHS: {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { paymentResponseProps, paymentDetailsProps } from '../types';
|
|
2
|
-
declare const PaymentDetails: ({ address, amount, amountPaid, coin, loading, status, balance, cancelPayment, confirmPayment, }: paymentResponseProps & paymentDetailsProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const PaymentDetails: ({ address, amount, amountPaid, coin, loading, status, balance, excess, cancelPayment, confirmPayment, }: paymentResponseProps & paymentDetailsProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default PaymentDetails;
|
|
@@ -57,6 +57,7 @@ interface IPaymentData {
|
|
|
57
57
|
address?: string;
|
|
58
58
|
amountPaid?: string;
|
|
59
59
|
balance?: string;
|
|
60
|
+
excess?: string;
|
|
60
61
|
status?: PaymentStatusProps;
|
|
61
62
|
}
|
|
62
63
|
interface paymentResponseProps {
|
|
@@ -67,6 +68,7 @@ interface paymentResponseProps {
|
|
|
67
68
|
loading: boolean;
|
|
68
69
|
status?: PaymentStatusProps;
|
|
69
70
|
balance?: string;
|
|
71
|
+
excess?: string;
|
|
70
72
|
}
|
|
71
73
|
declare enum PAYMENT_RESPONSES {
|
|
72
74
|
partial = "Please complete the remaining payment to finalize this transaction. If the full amount is not received within 24 hours, the transaction will be canceled. For a refund, please contact the Merchant.",
|
|
@@ -126,7 +128,9 @@ interface newPaymentResponse {
|
|
|
126
128
|
};
|
|
127
129
|
coinAmount: string;
|
|
128
130
|
contractAddress: string;
|
|
129
|
-
currency:
|
|
131
|
+
currency: {
|
|
132
|
+
name: string;
|
|
133
|
+
};
|
|
130
134
|
fee: number;
|
|
131
135
|
feeSent: boolean;
|
|
132
136
|
feeUSD: number;
|