namespace DocumentService.Client.Models.Requests;
///
/// Request DTO for Base64-encoded PDF attachment check
///
public record CheckPdfAttachmentsRequest
{
///
/// PDF document encoded as Base64 string
///
/// JVBERi0xLjQKJeLjz9MKMSAwIG9iago8PC9UeXBlL0NhdGFsb2c...
public required string Base64Pdf { get; init; }
}
///
/// Request DTO for Base64-encoded PDF attachment extraction
///
public record ExtractPdfAttachmentsRequest
{
///
/// PDF document encoded as Base64 string
///
/// JVBERi0xLjQKJeLjz9MKMSAwIG9iago8PC9UeXBlL0NhdGFsb2c...
public required string Base64Pdf { get; init; }
}
///
/// Request DTO for Base64-encoded PDF with attachments to add
///
public record AddAttachmentsRequest
{
///
/// PDF document encoded as Base64 string
///
/// JVBERi0xLjQKJeLjz9MKMSAwIG9iago8PC9UeXBlL0NhdGFsb2c...
public required string Base64Pdf { get; init; }
///
/// List of attachments to embed
///
public required List Attachments { get; init; }
}
///
/// DTO for attachment file in request
///
public record AttachmentRequestDto
{
///
/// File name (e.g., "invoice.xml", "document.pdf")
///
/// factur-x.xml
public required string FileName { get; init; }
///
/// File content encoded as Base64 string
///
/// PD94bWwgdmVyc2lvbj0iMS4wIj8+...
public required string Base64Content { get; init; }
///
/// MIME type (optional, e.g., "application/xml")
///
/// application/xml
public string? MimeType { get; init; }
}