Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

665 B
Raw Blame
use utoipa::ToSchema;

#[derive(Debug, serde::Serialize, ToSchema)]
pub struct CreateFileResponse {
    /// ID of the file created
    pub file_id: String,
}

#[derive(Debug, serde::Serialize, ToSchema, Clone)]
pub struct FileMetadataResponse {
    /// ID of the file created
    pub file_id: String,
    /// Name of the file
    pub file_name: Option<String>,
    /// Size of the file
    pub file_size: i32,
    /// Type of the file
    pub file_type: String,
    /// File availability
    pub available: bool,
}

#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
pub struct FileRetrieveQuery {
    ///Dispute Id
    pub dispute_id: Option<String>,
}