Added consentIssueAuthority attribute

This commit is contained in:
Mikhail Trofimov 2025-07-08 16:23:17 +03:00
parent 1a6b13680c
commit 9a1ead682d
3 changed files with 5 additions and 0 deletions

View file

@ -25,6 +25,7 @@ public class PersonFactoryBuilder {
private final static String CONSENT_DIV_CODE = "000-000";
private final static String INQ_PURPOSE = "16";
private final static String ODT = "Иной документ";
private final static String CONSENT_ISSUE_AUTHORITY = "Кем выдан";
private PersonService.PersonData personData;
@ -84,6 +85,7 @@ public class PersonFactoryBuilder {
person.setConsentPd(person.getPd());
person.setConsentDivCode(CONSENT_DIV_CODE);
person.setConsentDt(person.getDt());
person.setConsentIssueAuthority(CONSENT_ISSUE_AUTHORITY);
person.setInqPurpose(INQ_PURPOSE);
return person;
}

View file

@ -77,6 +77,8 @@ public class Person {
protected String consentDt;
@XmlAttribute(name = "consentOdt")
protected String consentOdt;
@XmlAttribute(name = "consentIssueAuthority")
protected String consentIssueAuthority;
@XmlAttribute(name = "inqPurpose")
protected String inqPurpose;

View file

@ -104,6 +104,7 @@ public class SignalsStaxXmlWriter extends StaxXmlWriter<Signals>{
writerWrapper.addAttribute("consentDivCode", person.getConsentDivCode());
writerWrapper.addAttribute("consentDt", person.getConsentDt());
writerWrapper.addAttribute("consentOdt", person.getConsentOdt());
writerWrapper.addAttribute("consentIssueAuthority", person.getConsentIssueAuthority());
writerWrapper.addAttribute("inqPurpose", person.getInqPurpose());
writerWrapper.addEndElement(name);
}