fix: align RecentPaymentItem types with backend schema

- telegram_id: number → number | null (email-only users)
- Add email field
- Fix username, payment_method, description nullability
This commit is contained in:
Fringg
2026-03-02 02:42:14 +03:00
parent 11343f4f12
commit 3f050396b8

View File

@@ -289,15 +289,16 @@ export interface TopCampaignsResponse {
export interface RecentPaymentItem {
id: number;
user_id: number;
telegram_id: number;
username?: string;
telegram_id: number | null;
email?: string | null;
username?: string | null;
display_name: string;
amount_kopeks: number;
amount_rubles: number;
type: string;
type_display: string;
payment_method?: string;
description?: string;
payment_method?: string | null;
description?: string | null;
created_at: string;
is_completed: boolean;
}