Rename
This commit is contained in:
@ -11,11 +11,11 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace Hcs.Client.Api.Request.Bills
|
||||
{
|
||||
internal class ImportPaymentDocumentRequest(ClientBase client) : BillsRequestBase(client)
|
||||
internal class ImportPaymentDocumentDataRequest(ClientBase client) : BillsRequestBase(client)
|
||||
{
|
||||
protected override bool CanBeRestarted => false;
|
||||
|
||||
internal async Task<bool> ExecuteAsync(ImportPaymentDocumentPayload payload, CancellationToken token)
|
||||
internal async Task<bool> ExecuteAsync(ImportPaymentDocumentDataPayload payload, CancellationToken token)
|
||||
{
|
||||
// TODO: Добавить проверку пейлоада
|
||||
|
||||
@ -42,7 +42,7 @@ namespace Hcs.Client.Api.Request.Bills
|
||||
return true;
|
||||
}
|
||||
|
||||
private importPaymentDocumentRequest GetRequestFromPayload(ImportPaymentDocumentPayload payload)
|
||||
private importPaymentDocumentRequest GetRequestFromPayload(ImportPaymentDocumentDataPayload payload)
|
||||
{
|
||||
var items = new List<object>();
|
||||
if (payload.confirmAmountsCorrect)
|
||||
@ -52,7 +52,7 @@ namespace Hcs.Client.Api.Request.Bills
|
||||
items.Add(payload.month);
|
||||
items.Add(payload.year);
|
||||
|
||||
var paymentInformations = new Dictionary<ImportPaymentDocumentPayload.PaymentInformation, importPaymentDocumentRequestPaymentInformation>();
|
||||
var paymentInformations = new Dictionary<ImportPaymentDocumentDataPayload.PaymentInformation, importPaymentDocumentRequestPaymentInformation>();
|
||||
foreach (var entry in payload.paymentInformation)
|
||||
{
|
||||
var paymentInformation = new importPaymentDocumentRequestPaymentInformation()
|
||||
@ -71,7 +71,7 @@ namespace Hcs.Client.Api.Request.Bills
|
||||
var chargeInfo = new List<object>();
|
||||
foreach (var subEntry in entry.chargeInfo)
|
||||
{
|
||||
if (subEntry is ImportPaymentDocumentPayload.MunicipalService municipalService)
|
||||
if (subEntry is ImportPaymentDocumentDataPayload.MunicipalService municipalService)
|
||||
{
|
||||
var item = new PDServiceChargeTypeMunicipalService()
|
||||
{
|
||||
@ -9,7 +9,7 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace Hcs.Client.Api.Request.DeviceMetering
|
||||
{
|
||||
internal class ExportMeteringDeviceHistory(ClientBase client) : DeviceMeteringRequestBase(client)
|
||||
internal class ExportMeteringDeviceHistoryRequest(ClientBase client) : DeviceMeteringRequestBase(client)
|
||||
{
|
||||
protected override bool EnableMinimalResponseWaitDelay => false;
|
||||
|
||||
Reference in New Issue
Block a user