| | | 1 | | using Newtonsoft.Json; |
| | | 2 | | |
| | | 3 | | namespace Services.ApiServices.OzonApi.Filters |
| | | 4 | | { |
| | | 5 | | /// <summary> |
| | | 6 | | /// Ответ API /v3/finance/transaction/list — список транзакций (начислений). |
| | | 7 | | /// </summary> |
| | | 8 | | public class FinanceTransactionListResponse |
| | | 9 | | { |
| | | 10 | | [JsonProperty("result")] |
| | | 11 | | public FinanceTransactionListResult? Result { get; set; } |
| | | 12 | | } |
| | | 13 | | |
| | | 14 | | public class FinanceTransactionListResult |
| | | 15 | | { |
| | | 16 | | [JsonProperty("operations")] |
| | | 17 | | public List<FinanceTransactionOperation>? Operations { get; set; } = new(); |
| | | 18 | | |
| | | 19 | | [JsonProperty("page_count")] |
| | | 20 | | public long PageCount { get; set; } |
| | | 21 | | |
| | | 22 | | [JsonProperty("row_count")] |
| | | 23 | | public long RowCount { get; set; } |
| | | 24 | | } |
| | | 25 | | |
| | | 26 | | public class FinanceTransactionOperation |
| | | 27 | | { |
| | | 28 | | [JsonProperty("operation_id")] |
| | 0 | 29 | | public long OperationId { get; set; } |
| | | 30 | | |
| | | 31 | | [JsonProperty("operation_type")] |
| | 2 | 32 | | public string? OperationType { get; set; } |
| | | 33 | | |
| | | 34 | | [JsonProperty("operation_date")] |
| | 2 | 35 | | public string? OperationDate { get; set; } |
| | | 36 | | |
| | | 37 | | [JsonProperty("operation_type_name")] |
| | 2 | 38 | | public string? OperationTypeName { get; set; } |
| | | 39 | | |
| | | 40 | | [JsonProperty("delivery_charge")] |
| | 0 | 41 | | public double DeliveryCharge { get; set; } |
| | | 42 | | |
| | | 43 | | [JsonProperty("return_delivery_charge")] |
| | 0 | 44 | | public double ReturnDeliveryCharge { get; set; } |
| | | 45 | | |
| | | 46 | | [JsonProperty("accruals_for_sale")] |
| | 0 | 47 | | public double AccrualsForSale { get; set; } |
| | | 48 | | |
| | | 49 | | [JsonProperty("sale_commission")] |
| | 0 | 50 | | public double SaleCommission { get; set; } |
| | | 51 | | |
| | | 52 | | [JsonProperty("amount")] |
| | 4 | 53 | | public double Amount { get; set; } |
| | | 54 | | |
| | | 55 | | [JsonProperty("type")] |
| | 0 | 56 | | public string? Type { get; set; } |
| | | 57 | | |
| | | 58 | | [JsonProperty("posting")] |
| | 3 | 59 | | public FinanceTransactionPosting? Posting { get; set; } |
| | | 60 | | |
| | | 61 | | [JsonProperty("items")] |
| | 5 | 62 | | public List<FinanceTransactionItem>? Items { get; set; } = new(); |
| | | 63 | | |
| | | 64 | | [JsonProperty("services")] |
| | 2 | 65 | | public List<FinanceTransactionService>? Services { get; set; } = new(); |
| | | 66 | | } |
| | | 67 | | |
| | | 68 | | public class FinanceTransactionPosting |
| | | 69 | | { |
| | | 70 | | [JsonProperty("delivery_schema")] |
| | | 71 | | public string? DeliverySchema { get; set; } |
| | | 72 | | |
| | | 73 | | [JsonProperty("order_date")] |
| | | 74 | | public string? OrderDate { get; set; } |
| | | 75 | | |
| | | 76 | | [JsonProperty("posting_number")] |
| | | 77 | | public string? PostingNumber { get; set; } |
| | | 78 | | |
| | | 79 | | [JsonProperty("warehouse_id")] |
| | | 80 | | public string? WarehouseId { get; set; } |
| | | 81 | | } |
| | | 82 | | |
| | | 83 | | public class FinanceTransactionItem |
| | | 84 | | { |
| | | 85 | | [JsonProperty("name")] |
| | | 86 | | public string? Name { get; set; } |
| | | 87 | | |
| | | 88 | | [JsonProperty("sku")] |
| | | 89 | | public long Sku { get; set; } |
| | | 90 | | } |
| | | 91 | | |
| | | 92 | | public class FinanceTransactionService |
| | | 93 | | { |
| | | 94 | | [JsonProperty("name")] |
| | | 95 | | public string? Name { get; set; } |
| | | 96 | | |
| | | 97 | | [JsonProperty("price")] |
| | | 98 | | public double Price { get; set; } |
| | | 99 | | } |
| | | 100 | | } |