Skip to content

Commit

Permalink
Merge pull request #17 from skbkontur/GlnPaymentInfo
Browse files Browse the repository at this point in the history
add GlnStatus and GlnExpirationDate to Party and Organization
  • Loading branch information
RGleb authored Aug 22, 2024
2 parents e4ade90 + b2e71de commit 780eec2
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 2 deletions.
15 changes: 15 additions & 0 deletions EdiApi.Client/Types/Common/GlnStatus.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
namespace SkbKontur.EdiApi.Client.Types.Common
{
/// <summary>Статус GLN</summary>
public enum GlnStatus
{
/// <summary>Действующий</summary>
Valid,

/// <summary>Срок действия истек</summary>
Invalid,

/// <summary>Этот GLN выдан другой организации</summary>
GlnIssuedForAnotherInn,
}
}
12 changes: 11 additions & 1 deletion EdiApi.Client/Types/Organization/PartyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
namespace SkbKontur.EdiApi.Client.Types.Organization
using System;

using SkbKontur.EdiApi.Client.Types.Common;

namespace SkbKontur.EdiApi.Client.Types.Organization
{
/// <summary>Реквизиты и адрес организации или точки доставки/отгрузки</summary>
public class PartyInfo
Expand Down Expand Up @@ -47,5 +51,11 @@ public class PartyInfo

/// <summary>Применяется ли УСН</summary>
public bool UsesSimplifiedTaxSystem { get; set; }

/// <summary>Статус GLN</summary>
public GlnStatus? GlnStatus { get; set; }

/// <summary>Дата окончания оплаченного срока действия GLN</summary>
public DateTime? GlnExpirationDate { get; set; }
}
}
8 changes: 8 additions & 0 deletions EdiApi.Client/Types/Parties/PartyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
using System;

using SkbKontur.EdiApi.Client.Types.Common;

namespace SkbKontur.EdiApi.Client.Types.Parties
{
/// <summary>Реквизиты организации</summary>
Expand Down Expand Up @@ -38,6 +40,12 @@ public class PartyInfo
/// <summary>Стратегия маршрутизации сообщений поставщика</summary>
public SupplierBoxSelectionStrategy SupplierBoxSelectionStrategy { get; set; }

/// <summary>Статус GLN</summary>
public GlnStatus? GlnStatus { get; set; }

/// <summary>Дата окончания оплаченного срока действия GLN</summary>
public DateTime? GlnExpirationDate { get; set; }

/// <summary>
/// Список платных услуг. В API эта информация доступна только сотрудникам организации, для остальных список будет пустой
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://raw.githubusercontent.com/AArnott/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
"version": "2.4",
"version": "2.5",
"assemblyVersion": {
"precision": "build"
},
Expand Down

0 comments on commit 780eec2

Please sign in to comment.