< Summary

Information
Class: Services.ApiServices.ArmtekApi.Models.Response.ArmtekGetInvoiceResponse
Assembly: Services
File(s): /home/runner/work/Studio2Prod/Studio2Prod/AppRepository/ApiServices/ArmtekApi/Models/Response/ArmtekGetInvoiceResponse.cs
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
Total lines: 22
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Header()100%11100%
get_Items()100%11100%
get_Cash()100%11100%
get_AugruOutput()100%11100%

File(s)

/home/runner/work/Studio2Prod/Studio2Prod/AppRepository/ApiServices/ArmtekApi/Models/Response/ArmtekGetInvoiceResponse.cs

#LineLine coverage
 1using Newtonsoft.Json;
 2using Services.ApiServices.ArmtekApi.Converters;
 3
 4namespace Services.ApiServices.ArmtekApi.Models.Response;
 5
 6/// <summary>
 7/// getInvoice — RESP. CASH/AUGRU_OUTPUT приходят пустой строкой "" вместо [] когда REFLAG
 8/// не установлен (проверено вживую) — конвертер трактует "" как пустой список.
 9/// </summary>
 10public class ArmtekGetInvoiceResponse
 11{
 5112    [JsonProperty("HEADER")] public ArmtekInvoiceHeader Header { get; set; } = new();
 6313    [JsonProperty("ITEMS")] public List<ArmtekInvoiceItem> Items { get; set; } = new();
 14
 15    [JsonProperty("CASH")]
 16    [JsonConverter(typeof(ArmtekEmptyStringAsListConverter<ArmtekInvoiceCash>))]
 5617    public List<ArmtekInvoiceCash> Cash { get; set; } = new();
 18
 19    [JsonProperty("AUGRU_OUTPUT")]
 20    [JsonConverter(typeof(ArmtekEmptyStringAsListConverter<ArmtekInvoiceAugruOutput>))]
 5621    public List<ArmtekInvoiceAugruOutput> AugruOutput { get; set; } = new();
 22}