< Summary

Information
Class: Services.ApiServices.OzonApi.Filters.SellerReturnsReportCreateRequest
Assembly: Services
File(s): /home/runner/work/Studio2Prod/Studio2Prod/AppRepository/ApiServices/OzonApi/Filters/SellerReturnsReportCreateRequest.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 2
Coverable lines: 2
Total lines: 32
Line coverage: 0%
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_Filter()100%210%
get_Language()100%210%

File(s)

/home/runner/work/Studio2Prod/Studio2Prod/AppRepository/ApiServices/OzonApi/Filters/SellerReturnsReportCreateRequest.cs

#LineLine coverage
 1using Newtonsoft.Json;
 2using Services.ApiServices;
 3
 4namespace Services.ApiServices.OzonApi.Filters;
 5
 6/// <summary>
 7/// Тело POST /v2/report/returns/create (Ozon Seller API).
 8/// </summary>
 9public class SellerReturnsReportCreateRequest : IRequestModel
 10{
 11    [JsonProperty("filter")]
 012    public SellerReturnsReportFilter Filter { get; set; } = new();
 13
 14    [JsonProperty("language")]
 015    public string? Language { get; set; } = "DEFAULT";
 16}
 17
 18public class SellerReturnsReportFilter
 19{
 20    [JsonProperty("delivery_schema")]
 21    public string? DeliverySchema { get; set; } = "fbs";
 22
 23    [JsonProperty("date_from")]
 24    public DateTime DateFrom { get; set; }
 25
 26    [JsonProperty("date_to")]
 27    public DateTime DateTo { get; set; }
 28
 29    /// <summary>Статус возврата в отчёте, например ReceivedBySeller.</summary>
 30    [JsonProperty("status")]
 31    public string? Status { get; set; } = "ReceivedBySeller";
 32}

Methods/Properties

get_Filter()
get_Language()