Fix bad request

This commit is contained in:
2025-09-13 10:51:23 +09:00
parent 71217acea5
commit b318d73d78
3 changed files with 9 additions and 1 deletions

View File

@ -173,6 +173,11 @@ namespace Hcs.Client.Api.Payload.Bills
/// </summary>
public List<IChargeInfo> chargeInfo;
/// <summary>
/// Если true, то выставлен на оплату, иначе - отозван
/// </summary>
public bool exposeNotWithdraw;
/// <summary>
/// Необязательное. Задолженность за предыдущие периоды, руб.
/// </summary>

View File

@ -220,7 +220,9 @@ namespace Hcs.Client.Api.Request.Bills
Items1 = [paymentInformations[entry.paymentInformation].TransportGUID],
AccountGuid = entry.accountGuid,
PaymentDocumentNumber = entry.paymentDocumentNumber,
Items = [.. chargeInfo]
Items = [.. chargeInfo],
Item = true,
ItemElementName = entry.exposeNotWithdraw ? ItemChoiceType5.Expose : ItemChoiceType5.Withdraw
};
if (entry.debtPreviousPeriods.HasValue)