use serde::Deserialize;
use super::{Check, Invoice, Transfer};
#[derive(Debug, Deserialize)]
pub struct ApiResponse<T> {
pub ok: bool,
pub result: Option<T>,
pub error: Option<String>,
pub error_code: Option<i32>,
}
#[derive(Debug, Deserialize)]
pub struct GetMeResponse {
pub app_id: i64,
pub name: String,
pub payment_processing_bot_username: String,
#[serde(skip_serializing_if = "Option::is_none")]
pub webhook_endpoint: Option<String>,
}
#[derive(Debug, Deserialize)]
pub struct GetInvoicesResponse {
pub items: Vec<Invoice>,
}
#[derive(Debug, Deserialize)]
pub struct GetTransfersResponse {
pub items: Vec<Transfer>,
}
#[derive(Debug, Deserialize)]
pub struct GetChecksResponse {
pub items: Vec<Check>,
}