Add account data import

This commit is contained in:
2025-08-29 17:26:02 +09:00
parent be8f42f970
commit 46237ab0cd
6 changed files with 268 additions and 1 deletions

View File

@ -48,6 +48,8 @@ namespace Hcs.TestApp
//houseManagementScenario.ExportSupplyResourceContractObjectAddressData();
//houseManagementScenario.ImportAccountData();
//houseManagementScenario.ImportNotificationData();
//houseManagementScenario.ImportSupplyResourceContractData();

View File

@ -3,7 +3,6 @@ using Hcs.Client.Api.Payload.HouseManagement;
using Hcs.Client.Api.Registry;
using Hcs.Service.Async.HouseManagement;
using System;
using System.Collections.Generic;
namespace Hcs.TestApp.Scenario
{
@ -155,5 +154,51 @@ namespace Hcs.TestApp.Scenario
var result = client.HouseManagement.ImportNotificationDataAsync(payload).Result;
Console.WriteLine("Scenario execution " + (result ? "succeeded" : "failed"));
}
internal void ImportAccountData()
{
var payload = new ImportAccountDataPayload()
{
accountNumber = "385635479641",
accountReasons = new AccountReasonsImportType()
{
SupplyResourceContract =
[
new()
{
Items = ["0aca4ebc-8d5c-4a39-801c-e25f0867adc6"],
ItemsElementName = [ItemsChoiceType17.ContractGUID]
}
]
},
accountType = ImportAccountDataPayload.AccountType.RC,
livingPersonsNumber = 1,
totalSquare = 29.3m,
residentialSquare = 29.3m,
heatedArea = 29.3m,
accomodations =
[
new()
{
Item = "db041c58-4a14-45ce-8ecc-d99727e9683f",
ItemElementName = ItemChoiceType9.FIASHouseGuid
}
],
payerInfo = new AccountTypePayerInfo()
{
IsRenter = true,
IsRenterSpecified = true,
Item = new AccountIndType()
{
Item = "62392021264",
FirstName = "Имя",
Surname = "Фамилия",
Patronymic = "Отчество"
}
}
};
var result = client.HouseManagement.ImportAccountDataAsync(payload).Result;
Console.WriteLine("Scenario execution " + (result ? "succeeded" : "failed"));
}
}
}