forked from Husfel/diadocsdk
-
Notifications
You must be signed in to change notification settings - Fork 0
DocumentInfo
Aleksey Fedotov edited this page Dec 12, 2014
·
12 revisions
message DocumentInfo
{
optional DocumentType DocumentType = 1 [default = UnknownDocumentType];
optional DocumentDirection DocumentDirection = 2
[default = UnknownDocumentDirection];
optional bool IsTest = 3;
optional string CustomDocumentId = 4;
optional string FromDepartmentId = 5;
optional string ToDepartmentId = 6;
optional string CounteragentBoxId = 7;
optional DocumentDateAndNumber DocumentDateAndNumber = 8;
optional BasicDocumentInfo BasicDocumentInfo = 9;
optional InvoiceDocumentInfo InvoiceInfo = 10;
optional InvoiceCorrectionDocumentInfo InvoiceCorrectionInfo = 11;
optional PriceListDocumentInfo PriceListInfo = 12;
optional ContractDocumentInfo ContractInfo = 13;
}
Структура представляет данные документа, которые не меняются в течение его жизненного цикла (метаданные). Как часть структуры DocumentWithDocflow, возвращается методами GetDocflows, GetDocflowsByPacketId, SearchDocflows.
- DocumentType - типа документа.
- DocumentDirection - направление документа относительно данного ящика (например, исходящий).
- IsTest - признак того, что документ тестовый.
- CustomDocumentId - произвольный идентификатор документа, присвоенный ему во время отправки интеграционным решением.
- FromDepartmentId - идентификатор подразделения-отправителя документа.
- ToDepartmentId - идентификатор подразделения-получателя документа.
- CounteragentBoxId - идентификатор ящика контрагента.
- DocumentDateAndNumber - дата и номер документа.
- Поля, содержащие метаданные документа. В зависимости от типа документа заполняется только одно из полей:
- BasicDocumentInfo - для документов XmlTorg12, XmlAcceptanceCertificate, Torg12, AcceptanceCertificate, ProformaInvoice, Torg13.
- InvoiceInfo - для документов Invoice или InvoiceRevision.
- InvoiceCorrectionInfo - для документов InvoiceCorrection или InvoiceCorrectionRevision.
- PriceListInfo - для документов PriceList.
- ContractInfo - для документов Contract.
Все возникающие вопросы, связанные с интеграцией вашей системы с Диадоком, можно задавать на форуме либо в почту [email protected].
История изменений Diadoc API Обзор возможностей API
- Порядок работы клиента API при организации документооборота
- Модель данных
- Управление списком активных контрагентов
- Неформализованный документооборот
- Документооборот электронных счетов-фактур
- Дополнительные функции API
- Возможности для интеграции
- Авторизация
- Docflow API
- Облачная подпись
-
Поддерживаемые операции
- AcquireCounteragent
- Authenticate
- BreakWithCounteragent
- CanSendInvoice
- Delete
- ForwardDocument
- GenerateAcceptanceCertificateXmlForBuyer
- GenerateAcceptanceCertificateXmlForSeller
- GenerateDocumentProtocol
- GenerateDocumentZip
- GenerateForwardedDocumentProtocol
- GenerateInvoiceXml
- GenerateInvoiceCorrectionRequestXml
- GenerateInvoiceDocumentReceiptXml
- GeneratePrintForm
- GenerateTorg12XmlForSeller
- GenerateTorg12XmlForBuyer
- GenerateRevocationRequestXml
- GenerateSignatureRejectionXml
- GetBox
- GetCounteragent
- GetCounteragents
- GetDocument
- GetDocuments
- GetEntityContent
- GetEvent
- GetExternalServiceAuthInfo
- GetForwardedDocuments
- GetForwardedDocumentEvents
- GetForwardedEntityContent
- GetInvoiceCorrectionRequestInfo
- GetMessage
- GetMyOrganizations
- GetMyPermissions
- GetMyUser
- GetNewEvents
- GetOrganization
- GetOrganizationUsers
- GetOrganizationsByInnKpp
- GetRecognized
- MoveDocuments
- ParseAcceptanceCertificateSellerTitleXml
- ParseRevocationRequestXml
- ParseSignatureRejectionXml
- ParseInvoiceXml
- ParseTorg12SellerTitleXml
- ParseRussianAddress
- PostMessage
- PostMessagePatch
- PrepareDocumentsToSign
- Recognize
- RecycleDraft
- Restore
- SendDraft
- ShelfUpload
- ShelfDownload
-
Структуры данных
- AcceptanceCertificateAttachment
- AcceptanceCertificateInfo
- Address
- AsyncMethodResult
- BasicDocumentAttachment
- BilateralDocumentMetadata
- BoxEvent
- BoxEventList
- Content
- Content_v2
- ContractAttachment
- Counteragent
- CustomDataItem
- CustomDataPatch
- Department
- Document
- DocumentId
- DocumentList
- DocumentProtocol
- DocumentSignature
- DocumentSenderSignature
- DocumentsMoveOperation
- DocumentType
- DocumentZipGenerationResult
- DraftToSend
- [Entity](Entity message)
- ExternalServiceAuthInfo
- ForwardDocumentEvent
- ForwardedDocument
- InvoiceCorrectionInfo
- InvoiceCorrectionRequestInfo
- InvoiceDocumentMetadata
- InvoiceInfo
- Message
- MessagePatch
- MessagePatchToPost
- MessageToPost
- NonformalizedAttachment
- NonformalizedDocumentMetadata
- Official
- Organization
- OrganizationInfo
- OrganizationUser
- OrganizationUserPermissions
- PrepareDocumentsToSignRequest
- PrepareDocumentsToSignResponse
- PriceListAttachment
- Recognized
- ReconciliationActAttachment
- Resolution
- ResolutionRequest
- ResolutionRequestDenial
- ResolutionStatus
- RevocationRequestInfo
- RoamingNotification
- ServiceDetailsAttachment
- SignatureRejectionInfo
- SignatureVerificationResult
- SignedContent
- Signer
- StructuredDataAttachment
- TimeBasedFilter
- Timestamp
- Torg12Info
- Torg13Attachment
- TrustConnectionRequestAttachment
- UnilateralDocumentMetadata
- User
- XmlDocumentAttachment
- .NET/COM-библиотека