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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gotrip-fx-transaction-form",
3
- "version": "1.0.29",
3
+ "version": "1.0.31",
4
4
  "description": "FX Transaction Form ES6 module",
5
5
  "main": "index.js",
6
6
  "types": "types/index.d.ts",
@@ -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;
@@ -0,0 +1,7 @@
1
+ type ViewLogResponseModalProps = {
2
+ open: boolean;
3
+ onClose?: () => void;
4
+ log: any;
5
+ };
6
+ export declare const ViewLogResponseModal: ({ open, onClose, log }: ViewLogResponseModalProps) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -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;
@@ -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 = "canceled",
10
+ CANCELED = "cancelled",
11
11
  SUCCESS = "success",
12
12
  FAILED = "failed"
13
13
  }
@@ -62,6 +62,8 @@ export type ITransaction = {
62
62
  totalSubTransaction?: number;
63
63
  groupPublicId?: string;
64
64
  documents: any[];
65
+ cancelReason?: string;
66
+ bankResponseLog?: Record<string, any>;
65
67
  };
66
68
  export type IBank = {
67
69
  shortName: string;