All files / src/components/Merchants/MerchantPreview/PEP types.ts

0% Statements 0/0
0% Branches 0/0
0% Functions 0/0
0% Lines 0/0

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                                                                                                                                   
export type PEPStatusType =
  | "pending"
  | "possible_match"
  | "clear"
  | "clear_manually"
  | "manually_cleared"
  | "confirmed_match";
 
export type LabelValue = {
  label: string;
  value: string;
};
 
export type TCheckDetails = {
  properties: LabelValueArray[][];
  pepStatus?: PEPStatusType;
  manualPEPStatus?: PEPStatusType;
  createdAt?: number;
};
 
export type THistoryCheck = {
  date: number;
  status: PEPStatusType;
  checkID: number;
  manualPepStatus: PEPStatusType;
  manualStatusAt?: number;
};
 
export type UpdtateStatusOptions = Extract<
  PEPStatusType,
  "clear" | "confirmed_match"
>;
 
export type UpdateStatusPayload = {
  pepStatus: UpdtateStatusOptions;
};
export interface UpdateStatusArgs extends PEPResourcesIDs {
  data: UpdateStatusPayload;
}
 
export type TPEPOwner = {
  id: string | number;
  name: string;
  pepStatusName: PEPStatusType;
  pepStatusSetByUnderwriter?: boolean;
  createdAt?: number;
  firstName?: string;
  lastName?: string;
  isUSResident?: boolean;
  isUSCitizen?: boolean;
  countryOfResidence?: string;
  citizenship?: string;
} | null;
 
export type PEPResourcesIDs = {
  merchantId: number;
  selectedOwner: TPEPOwner;
  legalEntityID?: number;
  checkId?: number;
};
 
export interface LabelValueArray {
  label: string;
  value: string;
}