Skip to content

Commit

Permalink
Merge pull request #139 from basmus/master
Browse files Browse the repository at this point in the history
parsing for UCD
  • Loading branch information
asvyazin authored Mar 24, 2017
2 parents 7207cc1 + a4f8d16 commit 4bb6591
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/DiadocApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,16 @@ public UniversalTransferDocumentBuyerTitleInfo ParseUniversalTransferDocumentBuy
{
return diadocHttpApi.ParseUniversalTransferDocumentBuyerTitleXml(xmlContent);
}

public UniversalCorrectionDocumentSellerTitleInfo ParseUniversalCorrectionDocumentSellerTitleXml(byte[] xmlContent)
{
return diadocHttpApi.ParseUniversalCorrectionDocumentSellerTitleXml(xmlContent);
}

public UniversalTransferDocumentBuyerTitleInfo ParseUniversalCorrectionDocumentBuyerTitleXml(byte[] xmlContent)
{
return diadocHttpApi.ParseUniversalCorrectionDocumentBuyerTitleXml(xmlContent);
}

public OrganizationUsersList GetOrganizationUsers(string authToken, string orgId)
{
Expand Down
10 changes: 10 additions & 0 deletions src/DiadocHttpApi.UniversalTransferDocument.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,15 @@ public UniversalTransferDocumentBuyerTitleInfo ParseUniversalTransferDocumentBuy
{
return PerformHttpRequest<UniversalTransferDocumentBuyerTitleInfo>(null, "POST", "/ParseUniversalTransferDocumentBuyerTitleXml", xmlContent);
}

public UniversalCorrectionDocumentSellerTitleInfo ParseUniversalCorrectionDocumentSellerTitleXml(byte[] xmlContent)
{
return PerformHttpRequest<UniversalCorrectionDocumentSellerTitleInfo>(null, "POST", "/ParseUniversalCorrectionDocumentSellerTitleXml", xmlContent);
}

public UniversalTransferDocumentBuyerTitleInfo ParseUniversalCorrectionDocumentBuyerTitleXml(byte[] xmlContent)
{
return PerformHttpRequest<UniversalTransferDocumentBuyerTitleInfo>(null, "POST", "/ParseUniversalCorrectionDocumentBuyerTitleXml", xmlContent);
}
}
}
2 changes: 2 additions & 0 deletions src/IDiadocApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ public interface IDiadocApi
AcceptanceCertificateSellerTitleInfo ParseAcceptanceCertificateSellerTitleXml(byte[] xmlContent);
UniversalTransferDocumentSellerTitleInfo ParseUniversalTransferDocumentSellerTitleXml(byte[] xmlContent);
UniversalTransferDocumentBuyerTitleInfo ParseUniversalTransferDocumentBuyerTitleXml(byte[] xmlContent);
UniversalCorrectionDocumentSellerTitleInfo ParseUniversalCorrectionDocumentSellerTitleXml(byte[] xmlContent);
UniversalTransferDocumentBuyerTitleInfo ParseUniversalCorrectionDocumentBuyerTitleXml(byte[] xmlContent);
OrganizationUsersList GetOrganizationUsers(string authToken, string orgId);
List<Organization> GetOrganizationsByInnList(GetOrganizationsByInnListRequest innList);
List<OrganizationWithCounteragentStatus> GetOrganizationsByInnList(string authToken, string myOrgId, GetOrganizationsByInnListRequest innList);
Expand Down

0 comments on commit 4bb6591

Please sign in to comment.