yavsc/src/Yavsc.Api.Client/Dtos/BillingQueryDetailsDto.cs

43 lines
1.5 KiB
C#
Raw Normal View History

2026-08-31 04:27:39 +01:00
using System;
using System.Collections.Generic;
2026-09-13 03:09:12 +01:00
using System.Text.Json.Serialization;
2026-08-31 04:27:39 +01:00
using Yavsc;
namespace Yavsc.Api.Client;
/// <summary>
/// Normalized billing-query shape used by PostIt when opening an existing
/// command from history.
/// </summary>
public sealed class BillingQueryDetailsDto
{
public long Id { get; set; }
public string BillingCode { get; set; } = string.Empty;
public string ActivityCode { get; set; } = string.Empty;
public string PerformerId { get; set; } = string.Empty;
public string ClientId { get; set; } = string.Empty;
public string Description { get; set; } = string.Empty;
public bool Consent { get; set; } = true;
public DateTime? EventDate { get; set; }
public QueryStatus Status { get; set; } = QueryStatus.Inserted;
public string Reason { get; set; } = string.Empty;
public string AdditionalInfo { get; set; } = string.Empty;
public decimal? Provisional { get; set; }
public BillingLocationDto? Location { get; set; }
public long? PrestationId { get; set; }
public List<long> PrestationIds { get; set; } = new();
}
public sealed class BillingLocationDto
{
2026-09-13 03:09:12 +01:00
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public long? Id { get; set; }
2026-08-31 04:27:39 +01:00
public string Address { get; set; } = string.Empty;
2026-09-13 03:09:12 +01:00
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
2026-09-02 14:41:05 +01:00
public double? Latitude { get; set; }
2026-09-13 03:09:12 +01:00
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
2026-09-02 14:41:05 +01:00
public double? Longitude { get; set; }
}