<commit_before>﻿using System;
using System.Runtime.InteropServices;
using Diadoc.Api.Com;
using Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument;

namespace Diadoc.Api.Proto.Documents
{
	[ComVisible(true)]
	[Guid("77DE3BB1-3646-4219-98D7-7D2510AE3C46")]
	public interface IDocument
	{
		string MessageId { get; }
		string EntityId { get; }
		string CounteragentBoxId { get; }
		string FileName { get; }
		string DocumentNumber { get; }
		string DocumentDate { get; }
		Com.DocumentType Type { get; }
		string IndexKey { get; }
		DateTime CreationTimestamp { get; }

		ReadonlyList InitialDocumentIdsList { get; }
		ReadonlyList SubordinateDocumentIdsList { get; }

		Content Content { get; }
		NonformalizedDocument.NonformalizedDocumentMetadata NonformalizedDocumentMetadata { get; }
		InvoiceDocument.InvoiceMetadata InvoiceMetadata { get; }
		BilateralDocument.TrustConnectionRequestMetadata TrustConnectionRequestMetadata { get; }
		BilateralDocument.BasicDocumentMetadata Torg12Metadata { get; }
		InvoiceDocument.InvoiceRevisionMetadata InvoiceRevisionMetadata { get; }
		InvoiceDocument.InvoiceCorrectionMetadata InvoiceCorrectionMetadata { get; }
		InvoiceDocument.InvoiceCorrectionRevisionMetadata InvoiceCorrectionRevisionMetadata { get; }
		AcceptanceCertificateMetadata AcceptanceCertificateMetadata { get; }
		UnilateralDocument.ProformaInvoiceMetadata ProformaInvoiceMetadata { get; }
		BilateralDocument.BasicDocumentMetadata XmlTorg12Metadata { get; }
		BilateralDocument.BasicDocumentMetadata XmlAcceptanceCertificateMetadata { get; }
		BilateralDocument.PriceListMetadata PriceListMetadata { get; }
		NonformalizedDocument.NonformalizedDocumentMetadata PriceListAgreementMetadata { get; }
		NonformalizedDocument.NonformalizedDocumentMetadata CertificateRegistryMetadata { get; }
		BilateralDocument.BilateralDocumentMetadata ReconciliationActMetadata { get; }
		BilateralDocument.ContractMetadata ContractMetadata { get; }
		BilateralDocument.BasicDocumentMetadata Torg13Metadata { get; }
		UnilateralDocument.ServiceDetailsMetadata ServiceDetailsMetadata { get; }
		UniversalTransferDocument.UniversalTransferDocumentMetadata UniversalTransferDocumentMetadata { get; }
		UniversalTransferDocument.UniversalTransferDocumentRevisionMetadata UniversalTransferDocumentRevisionMetadata { get; }
		UniversalTransferDocument.UniversalCorrectionDocumentMetadata UniversalCorrectionDocumentMetadata { get; }
		UniversalTransferDocument.UniversalCorrectionDocumentRevisionMetadata UniversalCorrectionDocumentRevisionMetadata { get; }
		bool IsDeleted { get; }
		bool IsTest { get; }
		string DepartmentId { get; }
		string CustomDocumentId { get; }
		string FromDepartmentId { get; }
		string ToDepartmentId { get; }
		ResolutionStatus ResolutionStatus { get; }

		Com.RevocationStatus DocumentRevocationStatus { get; }

		DateTime SendTimestamp { get; }
		DateTime DeliveryTimestamp { get; }
	}

	[ComVisible(true)]
	[Guid("410FA2BA-94EC-4A60-B9A7-1B430AF4BF14")]
	public interface IResolutionStatus<commit_msg>added AttachmentVersion to IDocument<commit_after>﻿using System;
using System.Runtime.InteropServices;
using Diadoc.Api.Com;
using Diadoc.Api.Proto.Documents.AcceptanceCertificateDocument;

namespace Diadoc.Api.Proto.Documents
{
	[ComVisible(true)]
	[Guid("77DE3BB1-3646-4219-98D7-7D2510AE3C46")]
	public interface IDocument
	{
		string MessageId { get; }
		string EntityId { get; }
		string CounteragentBoxId { get; }
		string FileName { get; }
		string DocumentNumber { get; }
		string DocumentDate { get; }
		Com.DocumentType Type { get; }
		string IndexKey { get; }
		DateTime CreationTimestamp { get; }

		ReadonlyList InitialDocumentIdsList { get; }
		ReadonlyList SubordinateDocumentIdsList { get; }

		Content Content { get; }
		NonformalizedDocument.NonformalizedDocumentMetadata NonformalizedDocumentMetadata { get; }
		InvoiceDocument.InvoiceMetadata InvoiceMetadata { get; }
		BilateralDocument.TrustConnectionRequestMetadata TrustConnectionRequestMetadata { get; }
		BilateralDocument.BasicDocumentMetadata Torg12Metadata { get; }
		InvoiceDocument.InvoiceRevisionMetadata InvoiceRevisionMetadata { get; }
		InvoiceDocument.InvoiceCorrectionMetadata InvoiceCorrectionMetadata { get; }
		InvoiceDocument.InvoiceCorrectionRevisionMetadata InvoiceCorrectionRevisionMetadata { get; }
		AcceptanceCertificateMetadata AcceptanceCertificateMetadata { get; }
		UnilateralDocument.ProformaInvoiceMetadata ProformaInvoiceMetadata { get; }
		BilateralDocument.BasicDocumentMetadata XmlTorg12Metadata { get; }
		BilateralDocument.BasicDocumentMetadata XmlAcceptanceCertificateMetadata { get; }
		BilateralDocument.PriceListMetadata PriceListMetadata { get; }
		NonformalizedDocument.NonformalizedDocumentMetadata PriceListAgreementMetadata { get; }
		NonformalizedDocument.NonformalizedDocumentMetadata CertificateRegistryMetadata { get; }
		BilateralDocument.BilateralDocumentMetadata ReconciliationActMetadata { get; }
		BilateralDocument.ContractMetadata ContractMetadata { get; }
		BilateralDocument.BasicDocumentMetadata Torg13Metadata { get; }
		UnilateralDocument.ServiceDetailsMetadata ServiceDetailsMetadata { get; }
		UniversalTransferDocument.UniversalTransferDocumentMetadata UniversalTransferDocumentMetadata { get; }
		UniversalTransferDocument.UniversalTransferDocumentRevisionMetadata UniversalTransferDocumentRevisionMetadata { get; }
		UniversalTransferDocument.UniversalCorrectionDocumentMetadata UniversalCorrectionDocumentMetadata { get; }
		UniversalTransferDocument.UniversalCorrectionDocumentRevisionMetadata UniversalCorrectionDocumentRevisionMetadata { get; }
		bool IsDeleted { get; }
		bool IsTest { get; }
		string DepartmentId { get; }
		string CustomDocumentId { get; }
		string FromDepartmentId { get; }
		string ToDepartmentId { get; }
		ResolutionStatus ResolutionStatus { get; }

		Com.RevocationStatus DocumentRevocationStatus { get; }

		DateTime SendTimestamp { get; }
		DateTime DeliveryTimestamp { get; }
		string AttachmentVersion { get; set; }
	}

	[ComVisible(true)]
	[Guid("410FA2BA-94EC-4A60-B9A7-1B430AF4BF14")]
	public interface IResolutionStatus
{'fraction_non_alphanumeric': 0.06760287393860222, 'fraction_numerical': 0.01534944480731548, 'mean_word_length': 6.8125, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2952850', 'n_tokens_mistral': 1824, 'n_tokens_neox': 1578, 'n_words': 310}