68 lines
1.3 KiB
TypeScript
68 lines
1.3 KiB
TypeScript
export interface IHealthData {
|
|
success?: boolean;
|
|
message?: string;
|
|
total?: number;
|
|
successful?: number;
|
|
acceptance_rate?: number;
|
|
amount?: number;
|
|
atv?: number;
|
|
stats?: Array<{
|
|
label: string;
|
|
value: string | number;
|
|
change: string;
|
|
}>;
|
|
}
|
|
|
|
export interface IFetchHealthDataParams {
|
|
dateStart?: string;
|
|
dateEnd?: string;
|
|
}
|
|
|
|
export interface ITransactionsOverviewData {
|
|
success?: boolean;
|
|
message?: string;
|
|
successful_count?: number;
|
|
waiting_count?: number;
|
|
failed_count?: number;
|
|
cancelled_count?: number;
|
|
successful_ratio?: number;
|
|
waiting_ratio?: number;
|
|
failed_ratio?: number;
|
|
cancelled_ratio?: number;
|
|
data?: Array<{
|
|
state: string;
|
|
count: number;
|
|
percentage: string;
|
|
color?: string;
|
|
}>;
|
|
total?: number;
|
|
}
|
|
|
|
export interface IDashboardData {
|
|
healthData: IHealthData;
|
|
overviewData: ITransactionsOverviewData;
|
|
reviewTransactions: IReviewTransactionsData;
|
|
}
|
|
|
|
export interface IReviewTransaction {
|
|
id: number;
|
|
customer?: string;
|
|
external_id?: string;
|
|
type?: string;
|
|
currency?: string;
|
|
amount?: number;
|
|
status?: string;
|
|
created?: string;
|
|
modified?: string;
|
|
merchant_id?: string;
|
|
psp_id?: string;
|
|
method_id?: string;
|
|
}
|
|
|
|
export interface IReviewTransactionsData {
|
|
success?: boolean;
|
|
message?: string;
|
|
transactions?: IReviewTransaction[];
|
|
total?: number;
|
|
}
|