fix: handle Pydantic validation errors in notify + nullify empty optional fields

- getApiErrorMessage now formats Pydantic [{loc, msg}] arrays as readable strings
- LandingPaymentMethod description/icon_url nullable
- Send null instead of empty string for optional payment method fields
This commit is contained in:
Fringg
2026-03-06 18:03:27 +03:00
parent 6755c1dc45
commit 9bd58cb914
3 changed files with 19 additions and 4 deletions

View File

@@ -30,8 +30,8 @@ export interface LandingTariff {
export interface LandingPaymentMethod {
method_id: string;
display_name: string;
description: string;
icon_url: string;
description: string | null;
icon_url: string | null;
sort_order: number;
}