Add account data import
This commit is contained in:
@ -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"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user