Add required fields
This commit is contained in:
@ -102,7 +102,45 @@ namespace Hcs.TestApp.Scenario
|
||||
signingDate = signingDate,
|
||||
effectiveDate = effectiveDate,
|
||||
planDateComptetion = planComptetionDate,
|
||||
contractBase = Registry58.Element8
|
||||
contractBase = Registry58.Element8,
|
||||
dateDetailsType = new DateDetailsType()
|
||||
{
|
||||
PeriodMetering = new DateDetailsTypePeriodMetering()
|
||||
{
|
||||
StartDate = new DeviceMeteringsDaySelectionType()
|
||||
{
|
||||
Item = 20,
|
||||
IsNextMonth = true
|
||||
},
|
||||
EndDate = new DeviceMeteringsDaySelectionType()
|
||||
{
|
||||
Item = 25,
|
||||
IsNextMonth = true
|
||||
}
|
||||
},
|
||||
PaymentDocumentInterval = new DateDetailsTypePaymentDocumentInterval()
|
||||
{
|
||||
Item = true,
|
||||
Item1 = true,
|
||||
Item1ElementName = Item1ChoiceType4.NextMounth
|
||||
},
|
||||
PaymentInterval = new DateDetailsTypePaymentInterval()
|
||||
{
|
||||
Item = true,
|
||||
Item1 = true,
|
||||
Item1ElementName = Item1ChoiceType5.NextMounth
|
||||
}
|
||||
},
|
||||
contractAttachment = [new ContractTypeAgreementAttachment()
|
||||
{
|
||||
Name = "Наименование вложения",
|
||||
Description = "Описание вложения",
|
||||
Attachment = new Attachment()
|
||||
{
|
||||
AttachmentGUID = Guid.NewGuid().ToString()
|
||||
},
|
||||
AttachmentHASH = ""
|
||||
}]
|
||||
};
|
||||
var result = client.HouseManagement.ImportContractDataAsync(payload).Result;
|
||||
Console.WriteLine("Scenario execution " + (result != null ? "succeeded" : "failed"));
|
||||
|
||||
Reference in New Issue
Block a user