GenerateInvoiceReceipt() public method

Генерирует уведомление о получении документа (регламент ЭСФ)
public GenerateInvoiceReceipt ( string boxId, string documentId ) : NamedContent
boxId string ящик
documentId string идентификатор документа
return NamedContent
コード例 #1
0
        /// <summary>
        /// Создать сообщение с СД ИОП (регламент ЭСФ).
        /// </summary>
        /// <param name="message">Сообщение.</param>
        /// <param name="document">Документ.</param>
        /// <param name="signatureFactory">Фабрика подписи.</param>
        /// <returns>Сообщение.</returns>
        public Message CreateInvoiceReceipt(
            Message message,
            Document document,
            Func <Document, ISignature> signatureFactory)
        {
            var generatedNotice = _client.GenerateInvoiceReceipt(_currentBox, document.Id);

            return(CreateServiceDocumentMessage(message, document,
                                                DocumentType.ServiceInvoiceReceipt,
                                                generatedNotice, signatureFactory));
        }
コード例 #2
0
        /// <summary>
        /// Создать сообщение с СД ИОП (регламент ЭСФ)
        /// </summary>
        /// <returns></returns>
        public Message CreateInvoiceReceipt(Message message, Document document, X509Certificate2 certificate2)
        {
            if (message == null)
            {
                throw new ArgumentNullException("message");
            }
            if (document == null)
            {
                throw new ArgumentNullException("document");
            }
            if (certificate2 == null)
            {
                throw new ArgumentNullException("certificate2");
            }
            var generatedNotice = client.GenerateInvoiceReceipt(CurrentBox, document.Id);

            return(CreateServiceDocumentMessage(message, document, certificate2, DocumentType.ServiceInvoiceReceipt, generatedNotice));
        }