Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 | 5x | import { Dispatch, SetStateAction } from "react";
import {
TBusinessOwner,
TBusinessProfileInfo,
TMerchantHeader,
TPrimaryAccountHolder,
TOFACLastCheckType,
} from "@components/Merchants/MerchantPreview/data.types";
import { OFACCheckStatusType, OFACCheckType } from "./useOFAC";
import { TPEPOwner } from "@components/Merchants/MerchantPreview/PEP/types";
export enum OFACTabType {
BUSINESS_PROFILE = "Business Profile",
BUSINESS_OWNER = "Business Owner",
PRIMARY_ACCOUNT_HOLDER = "Primary Account Holder",
}
export const MATCHES = ["confirmed_match", "possible_match"];
export type TabStatuses = {
[key in OFACTabType]: OFACCheckStatusType;
};
export type BusinessOwnerOrder = {
[resourceID: string]: number;
};
export interface OFACCheckModalProps {
headerData: TMerchantHeader;
merchantId: number;
profileData: TBusinessProfileInfo;
PAH: TPrimaryAccountHolder;
businessOwners?: TBusinessOwner[];
isEnterprisePanel?: boolean;
initialActiveTab?: OFACTabType;
}
export type OFACPanelProps = {
toggleSecondModal: () => void;
merchantId: number;
headerData: {
name: string;
imageURL: string;
};
isAcquirer: boolean;
checksListHeight?: string;
isModal?: boolean;
initialActiveTab?: OFACTabType;
PAH: TPrimaryAccountHolder;
businessOwners?: TBusinessOwner[];
businessProfile: {
legalEntityId: number;
lastCheck: TOFACLastCheckType;
name?: string;
};
isEnterprisePanel?: boolean;
};
export type UseOFACScreeningProps = {
merchantId: number;
legalEntityId: number;
legalName: string;
lastCheckBP?: TOFACLastCheckType;
openDetails: (checkId?: number) => void;
isLoading: boolean;
check?: OFACCheckType[];
isRunOfacAllowed: boolean;
isEditOfacAllowed: boolean;
isEnterprise: boolean;
activeTab: OFACTabType;
setActiveTab: (tab: OFACTabType) => void;
setCurrentBusinessOwnerIndex: Dispatch<SetStateAction<number>>;
currentBusinessOwnerIndex: number;
PAH: TPrimaryAccountHolder;
businessOwners?: TBusinessOwner[];
tabStatuses?: TabStatuses;
};
export interface PEPHistoryModalProps {
selectedOwner: TPEPOwner;
merchantId: number;
legalEntityID: number;
}
export type TabConfig = {
key: OFACTabType;
label?: string;
isEnabled: boolean;
info: string;
};
|