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 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 | export type CardListItemProps = {
cardBrand: string;
last4: string;
charged: number;
isDebit: boolean;
};
export type UserListItemProps = {
imageURL: string;
userName: string;
email: string;
};
export type TGeoMap = {
latitude?: number;
longitude?: number;
timezone?: string;
};
export type APITransactionsGroup = {
groupCount: number;
groupPeriod: Date;
transactions: any[];
};
export type FormattedListItem = {
label: string;
list: ParsedTransaction[][];
};
export type TRiskProfileGeneralInfo = {
countryCodeISO2: string;
countryName: string;
ipAddress: string;
hasIPProbeData: boolean;
updatedAt: number;
isVPN: boolean;
};
export type TDetailsPanel = {
cardsList: CardListItemProps[];
usersList: UserListItemProps[];
stats: TRiskProfileStats;
};
type StatType = {
label: string;
value: number | string;
isLink?: boolean;
};
export type TRiskProfileStats = {
transactions: StatType[];
merchants: StatType[];
emails: StatType[];
};
type TCard = { cardBrand: string; last4: string; cardHolder: string };
type TEmail = { isValid: boolean; email: string };
export type TRiskEscalation = {
createdAt: number;
triggerPoints: number;
triggerReason: string;
riskLevel: number;
trigger: string;
triggerType: string;
};
export type TRiskProfileTransaction = {
id: string;
charged: number;
status: string;
card: TCard;
email: TEmail;
date: number;
escalation: TRiskEscalation;
};
export type TAdditionalDetails = StatType[];
export type ParsedTransaction = {
id: string;
merchantId: number;
merchantName: string;
parentMerchantName?: string;
charged: number;
status: string;
quarantinedReason: string;
displayStatus: string;
processingStateName: string;
reversalState: string;
card: {
cardBrand: string;
last4: string;
cardHolder: string;
};
email: {
isValid: boolean;
email: string;
status: string;
};
date: number;
escalation: {
createdAt: number;
triggerPoints: number;
triggerReason: string;
riskLevel: number;
trigger: string;
triggerType: string;
};
rawData: any;
};
export interface IParsedData {
level: number;
general: TRiskProfileGeneralInfo;
geomap: TGeoMap;
detailsPanel: TDetailsPanel;
additionalDetails: TAdditionalDetails;
transactions: FormattedListItem[];
nextDeescalationAt: number | null | undefined;
}
export type TTransactionStatus =
| "blocked"
| "quarantined"
| "voided"
| "false_positive"
| "approved"
| "authorized"
| "pending"
| "declined"
| "failed"
| "settled"
| "captured";
export type TTransactionStatusData = {
status: TTransactionStatus;
displayStatus: string;
parentName?: string;
quarantinedReason: string;
};
|