gotrip-fx-transaction-form 1.0.29 → 1.0.31
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/index.js +978 -966
- package/package.json +1 -1
- package/types/components/Modal/CancelTransactionModal.d.ts +14 -0
- package/types/components/Modal/EditTransactionModal.d.ts +9 -0
- package/types/components/TransactionStatusBadge/TransactionStatusBadge.d.ts +3 -1
- package/types/components/ViewLogResponseModal/ViewLogResponseModal.d.ts +7 -0
- package/types/constants/api-urls.d.ts +3 -0
- package/types/types/enum.d.ts +1 -1
- package/types/types/response.dto.d.ts +2 -0
package/package.json
CHANGED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ITransaction } from '../../types/response.dto';
|
|
2
|
+
type Props = {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
transaction: ITransaction;
|
|
6
|
+
onSuccess?: () => void;
|
|
7
|
+
};
|
|
8
|
+
export declare enum CancelReason {
|
|
9
|
+
CUSTOMER_CANCEL = "CUSTOMER_CANCEL",
|
|
10
|
+
BAD_DATA = "BAD_DATA",
|
|
11
|
+
OTHER = "OTHER"
|
|
12
|
+
}
|
|
13
|
+
export declare const CancelTransactionModal: ({ isOpen, onClose, transaction, onSuccess }: Props) => import("react/jsx-runtime").JSX.Element | null;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ITransaction } from '../../types/response.dto';
|
|
2
|
+
type Props = {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
transaction: ITransaction;
|
|
6
|
+
onSuccess?: () => void;
|
|
7
|
+
};
|
|
8
|
+
export declare const EditTransactionModal: ({ isOpen, onClose, transaction, onSuccess }: Props) => import("react/jsx-runtime").JSX.Element | null;
|
|
9
|
+
export {};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { TransactionStatus } from '../../types/enum';
|
|
2
|
-
export declare const TransactionStatusBadge: ({ status }: {
|
|
2
|
+
export declare const TransactionStatusBadge: ({ status, bankStatus, onClick, }: {
|
|
3
3
|
status: TransactionStatus;
|
|
4
|
+
bankStatus: string;
|
|
5
|
+
onClick?: () => void;
|
|
4
6
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -18,6 +18,9 @@ export declare const ApiUrls: {
|
|
|
18
18
|
guestCreateEducationTransaction: string;
|
|
19
19
|
updateGroupTransactionStatus: string;
|
|
20
20
|
checkInfoSuccess: string;
|
|
21
|
+
cancelTransaction: string;
|
|
22
|
+
updateCustomerInfo: string;
|
|
23
|
+
updateTicketInfo: string;
|
|
21
24
|
};
|
|
22
25
|
currency: {
|
|
23
26
|
list: string;
|
package/types/types/enum.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export declare enum TransactionStatus {
|
|
|
7
7
|
SENT_TO_BANK = "sent_to_bank",
|
|
8
8
|
SENT_CONFIRMATION = "sent_confirmation_to_customer",
|
|
9
9
|
CONFIRMED = "confirmed",// customer confirmed transaction request via zns
|
|
10
|
-
CANCELED = "
|
|
10
|
+
CANCELED = "cancelled",
|
|
11
11
|
SUCCESS = "success",
|
|
12
12
|
FAILED = "failed"
|
|
13
13
|
}
|