got saved a RdvQuery
This commit is contained in:
parent
9cae5b1f55
commit
9a77209304
17 changed files with 616 additions and 288 deletions
|
|
@ -164,6 +164,7 @@ public sealed class BillingApiClient
|
|||
? null
|
||||
: new BillingLocationDto
|
||||
{
|
||||
Id = dto.Location.Id > 0 ? dto.Location.Id : null,
|
||||
Address = dto.Location.Address ?? string.Empty,
|
||||
Latitude = dto.Location.Latitude,
|
||||
Longitude = dto.Location.Longitude,
|
||||
|
|
@ -191,6 +192,7 @@ public sealed class BillingApiClient
|
|||
? null
|
||||
: new BillingLocationDto
|
||||
{
|
||||
Id = dto.Location.Id > 0 ? dto.Location.Id : null,
|
||||
Address = dto.Location.Address ?? string.Empty,
|
||||
Latitude = dto.Location.Latitude,
|
||||
Longitude = dto.Location.Longitude,
|
||||
|
|
@ -220,6 +222,7 @@ public sealed class BillingApiClient
|
|||
? null
|
||||
: new BillingLocationDto
|
||||
{
|
||||
Id = dto.Location.Id > 0 ? dto.Location.Id : null,
|
||||
Address = dto.Location.Address ?? string.Empty,
|
||||
Latitude = dto.Location.Latitude,
|
||||
Longitude = dto.Location.Longitude,
|
||||
|
|
@ -313,6 +316,11 @@ public sealed class BillingApiClient
|
|||
["Address"] = location.Address,
|
||||
};
|
||||
|
||||
if (location.Id.HasValue && location.Id.Value > 0)
|
||||
{
|
||||
payload["Id"] = location.Id.Value;
|
||||
}
|
||||
|
||||
if (location.Latitude.HasValue)
|
||||
{
|
||||
payload["Latitude"] = location.Latitude.Value;
|
||||
|
|
@ -328,6 +336,7 @@ public sealed class BillingApiClient
|
|||
|
||||
private sealed class BillingLocationResponse
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public string? Address { get; set; }
|
||||
public double Latitude { get; set; }
|
||||
public double Longitude { get; set; }
|
||||
|
|
|
|||
|
|
@ -1,10 +1,5 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
using System.Net.Http.Headers;
|
||||
using System.Text.Json;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Yavsc.Blogspot;
|
||||
|
||||
namespace Yavsc.Api.Client;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text.Json.Serialization;
|
||||
using Yavsc;
|
||||
|
||||
namespace Yavsc.Api.Client;
|
||||
|
|
@ -29,7 +30,14 @@ public sealed class BillingQueryDetailsDto
|
|||
|
||||
public sealed class BillingLocationDto
|
||||
{
|
||||
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
||||
public long? Id { get; set; }
|
||||
|
||||
public string Address { get; set; } = string.Empty;
|
||||
|
||||
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
||||
public double? Latitude { get; set; }
|
||||
|
||||
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
||||
public double? Longitude { get; set; }
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue