change section for REPORT_KS_VALUE request

This commit is contained in:
etreschenkov 2024-12-04 11:05:40 +03:00
parent 8d0985d547
commit a7b3ac478e

View file

@ -236,7 +236,7 @@ public class GatewayService extends QueueConsumer implements InitializingBean {
Map<String, Object> content = new HashMap<>();
reportRequest.getReports().forEach(reportPart -> makeContentByReportRequest(content, reportPart));
OutboundRequest outboundRequest = OutboundRequestBuilder.builder()
.section(Section.FOND.getKey())
.section(reportType == ReportType.REPORT_KS_VALUE ? Section.CURR.getKey() : Section.FOND.getKey())
.type(reportType.getKey())
.clearingSystem(clearingSystemValue)
.content(content).build();