export type PaymentCode = "OM" | "FLOOZ" | "MTN" | "WAVE" | "CB";

export interface IpaymentType {
	id: number;
	code: PaymentCode;
	etat: boolean;
}

export interface IpaginatedResponse<T> {
	count: number;
	next: string | null;
	previous: string | null;
	results: T;
}

export interface ImerchandInformations {
	// biome-ignore lint/style/useNamingConvention: <Api response>
	marchand_id: string;
	nom: string;
	code: string;
	adresse: string;
	// biome-ignore lint/style/useNamingConvention: <Api response>
	url_succes: string;
	// biome-ignore lint/style/useNamingConvention: <Api response>
	url_echec: string;
	entreprise: number;
	user: number;
}

export interface IuserInformations {
	username: string;
	email: string;
	// biome-ignore lint/style/useNamingConvention: <Api response>
	first_name: string;
	// biome-ignore lint/style/useNamingConvention: <Api response>
	last_name: string;
	marchand: ImerchandInformations;
}
