Commit 9a5dc91e by gechengyang

更新swiftMx、swiftCore模块

parent 1be7b5b4
......@@ -5,13 +5,23 @@ import com.brilliance.swift.mx2element.camt029001.Mx2ElementCamt029001Creator;
import com.brilliance.swift.mx2element.camt052001.Mx2ElementCamt052001Creator;
import com.brilliance.swift.mx2element.camt053001.Mx2ElementCamt053001Creator;
import com.brilliance.swift.mx2element.camt054001.Mx2ElementCamt054001Creator;
import com.brilliance.swift.mx2element.camt055001.Mx2ElementCamt055001Creator;
import com.brilliance.swift.mx2element.camt056001.Mx2ElementCamt056001Creator;
import com.brilliance.swift.mx2element.camt057001.Mx2ElementCamt057001Creator;
import com.brilliance.swift.mx2element.camt060001.Mx2ElementCamt060001Creator;
import com.brilliance.swift.mx2element.camt105001.Mx2ElementCamt105001Creator;
import com.brilliance.swift.mx2element.camt106001.Mx2ElementCamt106001Creator;
import com.brilliance.swift.mx2element.camt107001.Mx2ElementCamt107001Creator;
import com.brilliance.swift.mx2element.camt108001.Mx2ElementCamt108001Creator;
import com.brilliance.swift.mx2element.camt109001.Mx2ElementCamt109001Creator;
import com.brilliance.swift.mx2element.camt110001.Mx2ElementCamt110001Creator;
import com.brilliance.swift.mx2element.camt111001.Mx2ElementCamt111001Creator;
import com.brilliance.swift.mx2element.pacs002001.Mx2ElementPacs002001Creator;
import com.brilliance.swift.mx2element.pacs003001.Mx2ElementPacs003001Creator;
import com.brilliance.swift.mx2element.pacs004001.Mx2ElementPacs004001Creator;
import com.brilliance.swift.mx2element.pacs008001.Mx2ElementPacs008001Creator;
import com.brilliance.swift.mx2element.pacs009001.Mx2ElementPacs009001Creator;
import com.brilliance.swift.mx2element.pain008001.Mx2ElementPain008001Creator;
import com.brilliance.swift.mx2element.xsys011001.Mx2ElementXsys011001Creator;
import com.brilliance.swift.mx2element.xsys01200101.Mx2ElementXsys012001Creator;
import com.brilliance.swift.util.SwiftTransferUtil;
......@@ -74,7 +84,9 @@ public class Mx2ElementCreatorManager {
return new Mx2ElementCamt053001Creator();
} else if (messageType.matches("camt029001[0-9]{2}")) {
return new Mx2ElementCamt029001Creator();
} else if (messageType.matches("camt056001[0-9]{2}")) {
} else if (messageType.matches("camt055001[0-9]{2}")) {
return new Mx2ElementCamt055001Creator();
}else if (messageType.matches("camt056001[0-9]{2}")) {
return new Mx2ElementCamt056001Creator();
} else if (messageType.matches("pacs002001[0-9]{2}")) {
return new Mx2ElementPacs002001Creator();
......@@ -86,6 +98,24 @@ public class Mx2ElementCreatorManager {
return new Mx2ElementCamt060001Creator();
} else if (messageType.matches("camt052001[0-9]{2}")) {
return new Mx2ElementCamt052001Creator();
} else if (messageType.matches("camt105001[0-9]{2}")) {
return new Mx2ElementCamt105001Creator();
} else if (messageType.matches("camt106001[0-9]{2}")) {
return new Mx2ElementCamt106001Creator();
} else if (messageType.matches("camt107001[0-9]{2}")) {
return new Mx2ElementCamt107001Creator();
} else if (messageType.matches("camt108001[0-9]{2}")) {
return new Mx2ElementCamt108001Creator();
} else if (messageType.matches("camt109001[0-9]{2}")) {
return new Mx2ElementCamt109001Creator();
}else if (messageType.matches("camt110001[0-9]{2}")) {
return new Mx2ElementCamt110001Creator();
} else if (messageType.matches("camt111001[0-9]{2}")) {
return new Mx2ElementCamt111001Creator();
}else if (messageType.matches("pain008001[0-9]{2}")) {
return new Mx2ElementPain008001Creator();
} else if (messageType.matches("pacs003001[0-9]{2}")) {
return new Mx2ElementPacs003001Creator();
} else if (messageType.matches("xsys011001[0-9]{2}")) {
return new Mx2ElementXsys011001Creator();
} else if (messageType.matches("xsys012001[0-9]{2}")) {
......
package com.brilliance.swift.mx2element.camt055001;
import com.brilliance.swift.mx2element.AbstractMx2ElementCreator;
import java.util.Map;
public class Mx2ElementCamt055001Creator extends AbstractMx2ElementCreator {
@Override
public Map<String, Object> buildElement() {
return super.buildElement();
}
}
package com.brilliance.swift.mx2element.camt105001;
import com.brilliance.swift.mx2element.AbstractMx2ElementCreator;
import java.util.Map;
public class Mx2ElementCamt105001Creator extends AbstractMx2ElementCreator {
@Override
public Map<String, Object> buildElement() {
return super.buildElement();
}
}
package com.brilliance.swift.mx2element.camt106001;
import com.brilliance.swift.mx2element.AbstractMx2ElementCreator;
import java.util.Map;
public class Mx2ElementCamt106001Creator extends AbstractMx2ElementCreator {
@Override
public Map<String, Object> buildElement() {
return super.buildElement();
}
}
package com.brilliance.swift.mx2element.camt107001;
import com.brilliance.swift.mx2element.AbstractMx2ElementCreator;
import java.util.Map;
public class Mx2ElementCamt107001Creator extends AbstractMx2ElementCreator {
@Override
public Map<String, Object> buildElement() {
return super.buildElement();
}
// public Object buildAccountInfo() {
// try {
// Document document = DocumentHelper.parseText(xmlStr);
// Map<String, String> parentElementMaps = XmlUtil.getParentElementMaps(document);
// String bodyParentPath = parentElementMaps.get("RptgReq");
// int count = XmlUtil.getChildrenCount(document, bodyParentPath, null);
// for (int i = 0; i < count; i++) {
// String msgNameId = XmlUtil.getXmlNodeValue(document, bodyParentPath+"("+i+").ReqdMsgNmId");
// String acctId = XmlUtil.getXmlNodeValue(document, bodyParentPath+"("+i+").Acct.Id.IBAN");
// String account = XmlUtil.getXmlNodeValue(document, bodyParentPath+"("+i+").Acct.Id.Othr.Id");
// int floorLimtCount = XmlUtil.getChildrenCount(document, bodyParentPath+"("+i+").ReqdTxTp.FlrLmt", null);
// if (msgNameId.indexOf("camt.053") > -1) {
// maps.put("name_camt053",msgNameId);
// maps.put("acctId_camt053",acctId);
// maps.put("account_camt053",account);
// } else if (msgNameId.indexOf("camt.052") > -1) {
// maps.put("name_camt052",msgNameId);
// maps.put("acctId_camt052",acctId);
// maps.put("account_camt052",account);
// } else if (msgNameId.contains(Mx2MtConstants.MT_TYPE_941)) {
// maps.put("name_941",msgNameId);
// maps.put("acctId_941",acctId);
// maps.put("account_941",account);
// } else if (msgNameId.contains(Mx2MtConstants.MT_TYPE_942)) {
// maps.put("name_942",msgNameId);
// maps.put("acctId_942",acctId);
// maps.put("account_942",account);
// } else if (msgNameId.contains(Mx2MtConstants.MT_TYPE_940)) {
// maps.put("name_940",msgNameId);
// maps.put("acctId_940",acctId);
// maps.put("account_940",account);
// } else if (msgNameId.contains(Mx2MtConstants.MT_TYPE_950)) {
// maps.put("name_950",msgNameId);
// maps.put("acctId_950",acctId);
// maps.put("account_950",account);
// }
// }
// return null;
// } catch (DocumentException e) {
// throw new SwiftException(e.getMessage());
// }
// }
}
package com.brilliance.swift.mx2element.camt108001;
import com.brilliance.swift.mx2element.AbstractMx2ElementCreator;
import java.util.Map;
public class Mx2ElementCamt108001Creator extends AbstractMx2ElementCreator {
@Override
public Map<String, Object> buildElement() {
return super.buildElement();
}
// public Object buildAccountInfo() {
// try {
// Document document = DocumentHelper.parseText(xmlStr);
// Map<String, String> parentElementMaps = XmlUtil.getParentElementMaps(document);
// String bodyParentPath = parentElementMaps.get("RptgReq");
// int count = XmlUtil.getChildrenCount(document, bodyParentPath, null);
// for (int i = 0; i < count; i++) {
// String msgNameId = XmlUtil.getXmlNodeValue(document, bodyParentPath+"("+i+").ReqdMsgNmId");
// String acctId = XmlUtil.getXmlNodeValue(document, bodyParentPath+"("+i+").Acct.Id.IBAN");
// String account = XmlUtil.getXmlNodeValue(document, bodyParentPath+"("+i+").Acct.Id.Othr.Id");
// int floorLimtCount = XmlUtil.getChildrenCount(document, bodyParentPath+"("+i+").ReqdTxTp.FlrLmt", null);
// if (msgNameId.indexOf("camt.053") > -1) {
// maps.put("name_camt053",msgNameId);
// maps.put("acctId_camt053",acctId);
// maps.put("account_camt053",account);
// } else if (msgNameId.indexOf("camt.052") > -1) {
// maps.put("name_camt052",msgNameId);
// maps.put("acctId_camt052",acctId);
// maps.put("account_camt052",account);
// } else if (msgNameId.contains(Mx2MtConstants.MT_TYPE_941)) {
// maps.put("name_941",msgNameId);
// maps.put("acctId_941",acctId);
// maps.put("account_941",account);
// } else if (msgNameId.contains(Mx2MtConstants.MT_TYPE_942)) {
// maps.put("name_942",msgNameId);
// maps.put("acctId_942",acctId);
// maps.put("account_942",account);
// } else if (msgNameId.contains(Mx2MtConstants.MT_TYPE_940)) {
// maps.put("name_940",msgNameId);
// maps.put("acctId_940",acctId);
// maps.put("account_940",account);
// } else if (msgNameId.contains(Mx2MtConstants.MT_TYPE_950)) {
// maps.put("name_950",msgNameId);
// maps.put("acctId_950",acctId);
// maps.put("account_950",account);
// }
// }
// return null;
// } catch (DocumentException e) {
// throw new SwiftException(e.getMessage());
// }
// }
}
package com.brilliance.swift.mx2element.camt109001;
import com.brilliance.swift.mx2element.AbstractMx2ElementCreator;
import java.util.Map;
public class Mx2ElementCamt109001Creator extends AbstractMx2ElementCreator {
@Override
public Map<String, Object> buildElement() {
return super.buildElement();
}
// public Object buildAccountInfo() {
// try {
// Document document = DocumentHelper.parseText(xmlStr);
// Map<String, String> parentElementMaps = XmlUtil.getParentElementMaps(document);
// String bodyParentPath = parentElementMaps.get("RptgReq");
// int count = XmlUtil.getChildrenCount(document, bodyParentPath, null);
// for (int i = 0; i < count; i++) {
// String msgNameId = XmlUtil.getXmlNodeValue(document, bodyParentPath+"("+i+").ReqdMsgNmId");
// String acctId = XmlUtil.getXmlNodeValue(document, bodyParentPath+"("+i+").Acct.Id.IBAN");
// String account = XmlUtil.getXmlNodeValue(document, bodyParentPath+"("+i+").Acct.Id.Othr.Id");
// int floorLimtCount = XmlUtil.getChildrenCount(document, bodyParentPath+"("+i+").ReqdTxTp.FlrLmt", null);
// if (msgNameId.indexOf("camt.053") > -1) {
// maps.put("name_camt053",msgNameId);
// maps.put("acctId_camt053",acctId);
// maps.put("account_camt053",account);
// } else if (msgNameId.indexOf("camt.052") > -1) {
// maps.put("name_camt052",msgNameId);
// maps.put("acctId_camt052",acctId);
// maps.put("account_camt052",account);
// } else if (msgNameId.contains(Mx2MtConstants.MT_TYPE_941)) {
// maps.put("name_941",msgNameId);
// maps.put("acctId_941",acctId);
// maps.put("account_941",account);
// } else if (msgNameId.contains(Mx2MtConstants.MT_TYPE_942)) {
// maps.put("name_942",msgNameId);
// maps.put("acctId_942",acctId);
// maps.put("account_942",account);
// } else if (msgNameId.contains(Mx2MtConstants.MT_TYPE_940)) {
// maps.put("name_940",msgNameId);
// maps.put("acctId_940",acctId);
// maps.put("account_940",account);
// } else if (msgNameId.contains(Mx2MtConstants.MT_TYPE_950)) {
// maps.put("name_950",msgNameId);
// maps.put("acctId_950",acctId);
// maps.put("account_950",account);
// }
// }
// return null;
// } catch (DocumentException e) {
// throw new SwiftException(e.getMessage());
// }
// }
}
package com.brilliance.swift.mx2element.camt110001;
import com.brilliance.swift.mx2element.AbstractMx2ElementCreator;
import java.util.Map;
public class Mx2ElementCamt110001Creator extends AbstractMx2ElementCreator {
@Override
public Map<String, Object> buildElement() {
return super.buildElement();
}
}
package com.brilliance.swift.mx2element.camt111001;
import com.brilliance.swift.mx2element.AbstractMx2ElementCreator;
import java.util.Map;
public class Mx2ElementCamt111001Creator extends AbstractMx2ElementCreator {
@Override
public Map<String, Object> buildElement() {
return super.buildElement();
}
}
package com.brilliance.swift.mx2element.pacs003001;
import com.brilliance.swift.mx2element.AbstractMx2ElementCreator;
import java.util.Map;
public class Mx2ElementPacs003001Creator extends AbstractMx2ElementCreator {
@Override
public Map<String, Object> buildElement() {
return super.buildElement();
}
}
package com.brilliance.swift.mx2element.pain008001;
import com.brilliance.swift.mx2element.AbstractMx2ElementCreator;
import java.util.Map;
public class Mx2ElementPain008001Creator extends AbstractMx2ElementCreator {
@Override
public Map<String, Object> buildElement() {
return super.buildElement();
}
}
<?xml version="1.0" encoding="UTF-8" ?>
<RequestPayload>
<AppHdr xmlns="urn:iso:std:iso:20022:tech:xsd:head.001.001.02">
<Fr>
<FIId>
<FinInstnId>
<BICFI>RBOSGB2LXXX</BICFI>
</FinInstnId>
</FIId>
</Fr>
<To>
<FIId>
<FinInstnId>
<BICFI>NDEAFIHHXXX</BICFI>
</FinInstnId>
</FIId>
</To>
<BizMsgIdr>CSE-001</BizMsgIdr>
<MsgDefIdr>camt.055.001.08</MsgDefIdr>
<BizSvc>swift.cbprplus.02</BizSvc>
<CreDt>2022-07-22T10:19:54.195+08:00</CreDt>
<PssblDplct>false</PssblDplct>
<Prty>NORM</Prty>
</AppHdr>
<Document xmlns="urn:iso:std:iso:20022:tech:xsd:camt.055.001.08">
<CstmrPmtCxlReq>
<Assgnmt>
<Id>CSE-001</Id>
<Assgnr>
<Agt>
<FinInstnId>
<BICFI>RBOSGB2LXXX</BICFI>
</FinInstnId>
</Agt>
</Assgnr>
<Assgne>
<Agt>
<FinInstnId>
<BICFI>NDEAFIHHXXX</BICFI>
</FinInstnId>
</Agt>
</Assgne>
<CreDtTm>2022-07-22T10:19:54.195+08:00</CreDtTm>
</Assgnmt>
<Undrlyg>
<OrgnlPmtInfAndCxl>
<OrgnlPmtInfId>MsgId0000001</OrgnlPmtInfId>
<OrgnlGrpInf>
<OrgnlMsgId>pacs8bizmsgidr01</OrgnlMsgId>
<OrgnlMsgNmId>pacs.008</OrgnlMsgNmId>
<OrgnlCreDtTm>2021-02-17T00:00:00Z</OrgnlCreDtTm>
</OrgnlGrpInf>
<TxInf>
<CxlId>CxlId000001</CxlId>
<Case>
<Id>CSE-001</Id>
<Cretr>
<!--Pty和 Agt互斥-->
<Pty>
<Nm>zhangsan</Nm>
<PstlAdr>
<Dept>PstlAdr001</Dept>
<SubDept>PstlAdr002</SubDept>
<StrtNm>PstlAdr003</StrtNm>
<BldgNb>PstlAdr004</BldgNb>
<BldgNm>PstlAdr005</BldgNm>
<Flr>PstlAdr006</Flr>
<PstBx>PstlAdr007</PstBx>
<Room>PstlAdr008</Room>
<PstCd>PstlAdr009</PstCd>
<TwnNm>PstlAdr010</TwnNm>
<TwnLctnNm>PstlAdr011</TwnLctnNm>
<DstrctNm>PstlAdr012</DstrctNm>
<CtrySubDvsn>PstlAdr013</CtrySubDvsn>
<Ctry>BE</Ctry>
<AdrLine>PstlAdr014</AdrLine>
</PstlAdr>
<Id>
<!--OrgId和 PrvtId互斥-->
<OrgId>
<AnyBIC>PSBCCNBJXXX</AnyBIC>
<LEI>12345678912345678988</LEI>
<Othr>
<Id>Id000001</Id>
<SchmeNm>
<!-- <Prtry>prtry0001</Prtry>-->
<Cd>CUST</Cd>
</SchmeNm>
<Issr>Issr00001</Issr>
</Othr>
</OrgId>
<!-- <PrvtId>
<DtAndPlcOfBirth>
<BirthDt>2023-09-28</BirthDt>
<CityOfBirth>WuHan</CityOfBirth>
<CtryOfBirth>CH/CtryOfBirth>
</DtAndPlcOfBirth>
<Othr>
<Id>Id00002</Id>
<SchmeNm>
&lt;!&ndash; <Prtry>prtry0001</Prtry>&ndash;&gt;
<Cd>CUST</Cd>
</SchmeNm>
<Issr>Issr00001</Issr>
</Othr>
</PrvtId>-->
</Id>
<CtryOfRes>US</CtryOfRes>
</Pty>
<!-- <Agt>
<FinInstnId>
<Nm>NOTPROVIDED</Nm>
<PstlAdr>
<AdrLine>NOTPROVIDED</AdrLine>
</PstlAdr>
</FinInstnId>
</Agt>-->
</Cretr>
</Case>
<OrgnlInstrId>pacs8bizmsgidr01</OrgnlInstrId>
<OrgnlEndToEndId>NOTPROVIDED</OrgnlEndToEndId>
<OrgnlUETR>8a562c67-ca16-48ba-b074-65581be6f001</OrgnlUETR>
<OrgnlInstdAmt Ccy="EUR">1500000</OrgnlInstdAmt>
<OrgnlReqdExctnDt>
<Dt>2023-09-28</Dt>
</OrgnlReqdExctnDt>
<OrgnlReqdColltnDt>2023-09-28</OrgnlReqdColltnDt>
<CxlRsnInf>
<Orgtr>
<Nm>zhangsan</Nm>
<PstlAdr>
<Dept>PstlAdr001</Dept>
<SubDept>PstlAdr002</SubDept>
<StrtNm>PstlAdr003</StrtNm>
<BldgNb>PstlAdr004</BldgNb>
<BldgNm>PstlAdr005</BldgNm>
<Flr>PstlAdr006</Flr>
<PstBx>PstlAdr007</PstBx>
<Room>PstlAdr008</Room>
<PstCd>PstlAdr009</PstCd>
<TwnNm>PstlAdr010</TwnNm>
<TwnLctnNm>PstlAdr011</TwnLctnNm>
<DstrctNm>PstlAdr012</DstrctNm>
<CtrySubDvsn>PstlAdr013</CtrySubDvsn>
<Ctry>BE</Ctry>
<AdrLine>PstlAdr014</AdrLine>
</PstlAdr>
<Id>
<!--OrgId和 PrvtId互斥-->
<OrgId>
<AnyBIC>PSBCCNBJXXX</AnyBIC>
<LEI>12345678912345678988</LEI>
<Othr>
<Id>Id000001</Id>
<SchmeNm>
<!-- <Prtry>prtry0001</Prtry>-->
<Cd>CUST</Cd>
</SchmeNm>
<Issr>Issr00001</Issr>
</Othr>
</OrgId>
<!-- <PrvtId>
<DtAndPlcOfBirth>
<BirthDt>2023-09-28</BirthDt>
<CityOfBirth>WuHan</CityOfBirth>
<CtryOfBirth>CH/CtryOfBirth>
</DtAndPlcOfBirth>
<Othr>
<Id>Id00002</Id>
<SchmeNm>
&lt;!&ndash; <Prtry>prtry0001</Prtry>&ndash;&gt;
<Cd>CUST</Cd>
</SchmeNm>
<Issr>Issr00001</Issr>
</Othr>
</PrvtId>-->
</Id>
<CtryOfRes>US</CtryOfRes>
</Orgtr>
<Rsn>
<Cd>AM09</Cd>
</Rsn>
<AddtlInf>Addtl123</AddtlInf>
<AddtlInf>Addtl567</AddtlInf>
</CxlRsnInf>
</TxInf>
</OrgnlPmtInfAndCxl>
</Undrlyg>
</CstmrPmtCxlReq>
</Document>
</RequestPayload>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<RequestPayload>
<AppHdr xmlns="urn:iso:std:iso:20022:tech:xsd:head.001.001.02">
<Fr>
<FIId>
<FinInstnId>
<BICFI>PSBCCNBJXXX</BICFI>
</FinInstnId>
</FIId>
</Fr>
<To>
<FIId>
<FinInstnId>
<BICFI>NYCNCNSHXXX</BICFI>
</FinInstnId>
</FIId>
</To>
<BizMsgIdr>CNCL-ID002</BizMsgIdr>
<MsgDefIdr>camt.110.001.01</MsgDefIdr>
<BizSvc>swift.cbprplus.02</BizSvc>
<CreDt>2022-07-22T10:17:51.619+08:00</CreDt>
<PssblDplct>false</PssblDplct>
<Prty>NORM</Prty>
</AppHdr>
<Document xmlns="urn:iso:std:iso:20022:tech:xsd:camt.110.001.01">
<InvstgtnReq>
<InvstgtnReq>
<MsgId>camt11000001</MsgId>
<InvstgtnTp>
<Cd>CCNR</Cd>
</InvstgtnTp>
<UndrlygInstrm>
<Cd>XBCT</Cd>
</UndrlygInstrm>
<Undrlyg>
<IntrBk>
<OrgnlGrpInf>
<OrgnlMsgId>pacs0080010001</OrgnlMsgId>
<OrgnlMsgNmId>pacs0080010002</OrgnlMsgNmId>
<OrgnlCreDtTm>2022-07-29T10:47:51.619+08:00</OrgnlCreDtTm>
<OrgnlMsgDlvryChanl>OrgnlMsgDlvryChanl111</OrgnlMsgDlvryChanl>
</OrgnlGrpInf>
</IntrBk>
</Undrlyg>
<Rqstr>
<Agt>
<FinInstnId>
<BICFI>PSBCCNBJXXX</BICFI>
</FinInstnId>
</Agt>
</Rqstr>
<Rspndr>
<Agt>
<FinInstnId>
<BICFI>NYCBCNSHXXX</BICFI>
</FinInstnId>
</Agt>
</Rspndr>
</InvstgtnReq>
<InvstgtnData>
<Rsn>
<Cd>CCNR</Cd>
</Rsn>
</InvstgtnData>
</InvstgtnReq>
</Document>
</RequestPayload>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<RequestPayload>
<AppHdr xmlns="urn:iso:std:iso:20022:tech:xsd:head.001.001.02">
<Fr>
<FIId>
<FinInstnId>
<BICFI>PSBCCNBJXXX</BICFI>
</FinInstnId>
</FIId>
</Fr>
<To>
<FIId>
<FinInstnId>
<BICFI>NYCNCNSHXXX</BICFI>
</FinInstnId>
</FIId>
</To>
<BizMsgIdr>CNCL-ID003</BizMsgIdr>
<MsgDefIdr>camt.111.001.01</MsgDefIdr>
<BizSvc>swift.cbprplus.02</BizSvc>
<CreDt>2022-07-22T10:17:51.619+08:00</CreDt>
<PssblDplct>false</PssblDplct>
<Prty>NORM</Prty>
</AppHdr>
<Document xmlns="urn:iso:std:iso:20022:tech:xsd:camt.111.001.01">
<InvstgtnRspn>
<InvstgtnRspn>
<MsgId>camt11100101001</MsgId>
<InvstgtnSts>
<Sts>CAPR</Sts>
</InvstgtnSts>
</InvstgtnRspn>
<OrgnlInvstgtnReq>
<MsgId>pacs00900108001</MsgId>
<EIR>ABCD-EFGH-HIJK-LMNQ</EIR>
<InvstgtnTp>
<Cd>CONR</Cd>
</InvstgtnTp>
<UndrlygInstrm>
<Cd>CONR</Cd>
</UndrlygInstrm>
<Rqstr>
<Agt>
<FinInstnId>
<BICFI>PSBCCNBJXXX</BICFI>
</FinInstnId>
</Agt>
</Rqstr>
<Rspndr>
<Agt>
<FinInstnId>
<BICFI>NYCBCNSHXXX</BICFI>
</FinInstnId>
</Agt>
</Rspndr>
</OrgnlInvstgtnReq>
</InvstgtnRspn>
</Document>
</RequestPayload>
\ No newline at end of file
#APPLICATION HEADER
frBic=appHdr.fr.fiId.finInstnId.bicfi
toBic=appHdr.to.fiId.finInstnId.bicfi
bizMsgIdr=cstmrPmtCxlReq.assgnmt.id?appHdr.bizMsgIdr
msgDefIdr=appHdr.msgDefIdr
bizSvc=appHdr.bizSvc
creDt=cstmrPmtCxlReq.assgnmt.creDtTm?appHdr.creDt
priority=appHdr.prty
#BODY
assgnrBicfi=cstmrPmtCxlReq.assgnmt.assgnr.agt.finInstnId.bicfi
assgnrClrSysId=cstmrPmtCxlReq.assgnmt.assgnr.agt.finInstnId.clrSysMmbId.mmbId
assgnrClrSysIdType=cstmrPmtCxlReq.assgnmt.assgnr.agt.finInstnId.clrSysMmbId.clrSysId.cd
assgnrLei=cstmrPmtCxlReq.assgnmt.assgnr.agt.finInstnId.lei
assgneBicfi=cstmrPmtCxlReq.assgnmt.assgne.agt.finInstnId.bicfi
assgneClrSysId=cstmrPmtCxlReq.assgnmt.assgne.agt.finInstnId.clrSysMmbId.mmbId
assgneClrSysIdType=cstmrPmtCxlReq.assgnmt.assgne.agt.finInstnId.clrSysMmbId.clrSysId.cd
assgneLei=cstmrPmtCxlReq.assgnmt.assgne.agt.finInstnId.lei
orgnlPmtInfId=cstmrPmtCxlReq.undrlyg.orgnlPmtInfAndCxl.orgnlPmtInfId
orgnlMsgId=cstmrPmtCxlReq.undrlyg.orgnlPmtInfAndCxl.orgnlGrpInf.orgnlMsgId
orgnlMsgNmId=cstmrPmtCxlReq.undrlyg.orgnlPmtInfAndCxl.orgnlGrpInf.orgnlMsgNmId
orgnlCreDtTm=cstmrPmtCxlReq.undrlyg.orgnlPmtInfAndCxl.orgnlGrpInf.orgnlCreDtTm
cxlId=cstmrPmtCxlReq.undrlyg.orgnlPmtInfAndCxl.txInf.cxlId
caseCretrPty=cstmrPmtCxlReq.undrlyg.orgnlPmtInfAndCxl.txInf._case.cretr.pty#party
caseCretrAgt=cstmrPmtCxlReq.undrlyg.orgnlPmtInfAndCxl.txInf._case.cretr.agt#agent
caseId=cstmrPmtCxlReq.undrlyg.orgnlPmtInfAndCxl.txInf._case.id
orgnlInstrId=cstmrPmtCxlReq.undrlyg.orgnlPmtInfAndCxl.txInf.orgnlInstrId
orgnlEndToEndId=cstmrPmtCxlReq.undrlyg.orgnlPmtInfAndCxl.txInf.orgnlEndToEndId
uetr=cstmrPmtCxlReq.undrlyg.orgnlPmtInfAndCxl.txInf.orgnlUETR
orgnlInstdAmt=cstmrPmtCxlReq.undrlyg.orgnlPmtInfAndCxl.txInf.orgnlInstdAmt.value&bigdecimal
orgnlInstdCcy=cstmrPmtCxlReq.undrlyg.orgnlPmtInfAndCxl.txInf.orgnlInstdAmt.ccy
orgnlReqdExctnDt=cstmrPmtCxlReq.undrlyg.orgnlPmtInfAndCxl.txInf.orgnlReqdExctnDt.dt
orgnlReqdExctnDtTm=cstmrPmtCxlReq.undrlyg.orgnlPmtInfAndCxl.txInf.orgnlReqdExctnDt.dtTm
orgnlReqdColltnDt=cstmrPmtCxlReq.undrlyg.orgnlPmtInfAndCxl.txInf.orgnlReqdColltnDt
orgtrNm=cstmrPmtCxlReq.undrlyg.orgnlPmtInfAndCxl.txInf.cxlRsnInf.orgtr.nm
orgtrPstlAdrCtry=cstmrPmtCxlReq.undrlyg.orgnlPmtInfAndCxl.txInf.cxlRsnInf.orgtr.pstlAdr.ctry
orgtrPstlAdrDept=cstmrPmtCxlReq.undrlyg.orgnlPmtInfAndCxl.txInf.cxlRsnInf.orgtr.pstlAdr.dept
orgtrPstlAdrSubDept=cstmrPmtCxlReq.undrlyg.orgnlPmtInfAndCxl.txInf.cxlRsnInf.orgtr.pstlAdr.subDept
orgtrPstlAdrStrtNm=cstmrPmtCxlReq.undrlyg.orgnlPmtInfAndCxl.txInf.cxlRsnInf.orgtr.pstlAdr.strtNm
orgtrPstlAdrBldgNb=cstmrPmtCxlReq.undrlyg.orgnlPmtInfAndCxl.txInf.cxlRsnInf.orgtr.pstlAdr.bldgNb
orgtrPstlAdrBldgNm=cstmrPmtCxlReq.undrlyg.orgnlPmtInfAndCxl.txInf.cxlRsnInf.orgtr.pstlAdr.bldgNm
orgtrPstlAdrFlr=cstmrPmtCxlReq.undrlyg.orgnlPmtInfAndCxl.txInf.cxlRsnInf.orgtr.pstlAdr.flr
orgtrPstlAdrRoom=cstmrPmtCxlReq.undrlyg.orgnlPmtInfAndCxl.txInf.cxlRsnInf.orgtr.pstlAdr.room
orgtrPstlAdrTwnNm=cstmrPmtCxlReq.undrlyg.orgnlPmtInfAndCxl.txInf.cxlRsnInf.orgtr.pstlAdr.twnNm
orgtrPstlAdrPstBx=cstmrPmtCxlReq.undrlyg.orgnlPmtInfAndCxl.txInf.cxlRsnInf.orgtr.pstlAdr.pstBx
orgtrPstlAdrPstCd=cstmrPmtCxlReq.undrlyg.orgnlPmtInfAndCxl.txInf.cxlRsnInf.orgtr.pstlAdr.pstCd
orgtrPstlAdrCtrySubDvsn=cstmrPmtCxlReq.undrlyg.orgnlPmtInfAndCxl.txInf.cxlRsnInf.orgtr.pstlAdr.ctrySubDvsn
orgtrPstlAdrDstrctNm=cstmrPmtCxlReq.undrlyg.orgnlPmtInfAndCxl.txInf.cxlRsnInf.orgtr.pstlAdr.dstrctNm
orgtrPstlAdrTwnLctnNm=cstmrPmtCxlReq.undrlyg.orgnlPmtInfAndCxl.txInf.cxlRsnInf.orgtr.pstlAdr.twnLctnNm
orgtrAdrLines=cstmrPmtCxlReq.undrlyg.orgnlPmtInfAndCxl.txInf.cxlRsnInf.orgtr.pstlAdr.adrLine
orgtrOrgAnyBIC=cstmrPmtCxlReq.undrlyg.orgnlPmtInfAndCxl.txInf.cxlRsnInf.orgtr.id.orgId.anyBIC
orgtrOrgLei=cstmrPmtCxlReq.undrlyg.orgnlPmtInfAndCxl.txInf.cxlRsnInf.orgtr.id.orgId.lei
orgtrOrgOthrId=cstmrPmtCxlReq.undrlyg.orgnlPmtInfAndCxl.txInf.cxlRsnInf.orgtr.id.orgId.othr.id
orgtrOrgOthrIdType=cstmrPmtCxlReq.undrlyg.orgnlPmtInfAndCxl.txInf.cxlRsnInf.orgtr.id.orgId.othr.schmeNm.cd
orgtrOrgOthrIssr=cstmrPmtCxlReq.undrlyg.orgnlPmtInfAndCxl.txInf.cxlRsnInf.orgtr.id.orgId.othr.issr
orgtrPrvtBirthDt=cstmrPmtCxlReq.undrlyg.orgnlPmtInfAndCxl.txInf.cxlRsnInf.orgtr.id.prvtId.dtAndPlcOfBirth.birthDt
orgtrPrvtPrvcOfBirth=cstmrPmtCxlReq.undrlyg.orgnlPmtInfAndCxl.txInf.cxlRsnInf.orgtr.id.prvtId.dtAndPlcOfBirth.prvcOfBirth
orgtrPrvtCityOfBirth=cstmrPmtCxlReq.undrlyg.orgnlPmtInfAndCxl.txInf.cxlRsnInf.orgtr.id.prvtId.dtAndPlcOfBirth.cityOfBirth
orgtrPrvtCtryOfBirth=cstmrPmtCxlReq.undrlyg.orgnlPmtInfAndCxl.txInf.cxlRsnInf.orgtr.id.prvtId.dtAndPlcOfBirth.cityOfBirth
orgtrPrvtId=cstmrPmtCxlReq.undrlyg.orgnlPmtInfAndCxl.txInf.cxlRsnInf.orgtr.id.prvtId.othr.id
orgtrPrvtIdType=cstmrPmtCxlReq.undrlyg.orgnlPmtInfAndCxl.txInf.cxlRsnInf.orgtr.id.prvtId.othr.schmeNm.cd
orgtrPrvtIssr=cstmrPmtCxlReq.undrlyg.orgnlPmtInfAndCxl.txInf.cxlRsnInf.orgtr.id.prvtId.othr.issr
orgtrCtryOfRes=cstmrPmtCxlReq.undrlyg.orgnlPmtInfAndCxl.txInf.cxlRsnInf.orgtr.ctryOfRes
rsnCd=cstmrPmtCxlReq.undrlyg.orgnlPmtInfAndCxl.txInf.cxlRsnInf.rsn.cd
addtlInf=cstmrPmtCxlReq.undrlyg.orgnlPmtInfAndCxl.txInf.cxlRsnInf.addtlInf
#APPLICATION HEADER
frBic=appHdr.fr.fiId.finInstnId.bicfi
toBic=appHdr.to.fiId.finInstnId.bicfi
bizMsgIdr=chqPresntmntNtfctn.grpHdr.msgId?appHdr.bizMsgIdr
msgDefIdr=appHdr.msgDefIdr
bizSvc=appHdr.bizSvc
creDt=chqPresntmntNtfctn.grpHdr.creDtTm?appHdr.creDt
pssblDplct=appHdr.pssblDplct&boolean
prty=appHdr.prty
nbOfChqs=chqPresntmntNtfctn.grpHdr.nbOfChqs
chqNb=chqPresntmntNtfctn.chq.chqNb
instrId=chqPresntmntNtfctn.chq.instrId
isseDt=chqPresntmntNtfctn.chq.isseDt
amt=chqPresntmntNtfctn.chq.amt.value&bigdecimal
amtCcy=chqPresntmntNtfctn.chq.amt.ccy
dt=chqPresntmntNtfctn.chq.valDt.dt
pyerNm=chqPresntmntNtfctn.chq.pyer.nm
pyerAnyBic=chqPresntmntNtfctn.chq.pyer.id.orgId.anyBIC
birthDt=chqPresntmntNtfctn.chq.pyer.id.prvtId.dtAndPlcOfBirth.birthDt
prvcOfBirth=chqPresntmntNtfctn.chq.pyer.id.prvtId.dtAndPlcOfBirth.prvcOfBirth
cityOfBirth=chqPresntmntNtfctn.chq.pyer.id.prvtId.dtAndPlcOfBirth.cityOfBirth
ctryOfBirth=chqPresntmntNtfctn.chq.pyer.id.prvtId.dtAndPlcOfBirth.ctryOfBirth
othr=chqPresntmntNtfctn.chq.pyer.id.prvtId.othr
ctryOfRes=chqPresntmntNtfctn.chq.pyer.ctryOfRes
pyerPstlAdrCtry=chqPresntmntNtfctn.chq.pyer.pstlAdr.ctry
pyerPstlAdrDept=chqPresntmntNtfctn.chq.pyer.pstlAdr.dept
pyerPstlAdrSubDept=chqPresntmntNtfctn.chq.pyer.pstlAdr.subDept
pyerPstlAdrStrtNm=chqPresntmntNtfctn.chq.pyer.pstlAdr.strtNm
pyerPstlAdrBldgNb=chqPresntmntNtfctn.chq.pyer.pstlAdr.bldgNb
pyerPstlAdrBldgNm=chqPresntmntNtfctn.chq.pyer.pstlAdr.bldgNm
pyerPstlAdrFlr=chqPresntmntNtfctn.chq.pyer.pstlAdr.flr
pyerPstlAdrRoom=chqPresntmntNtfctn.chq.pyer.pstlAdr.room
pyerPstlAdrTwnNm=chqPresntmntNtfctn.chq.pyer.pstlAdr.twnNm
pyerPstlAdrPstBx=chqPresntmntNtfctn.chq.pyer.pstlAdr.pstBx
pyerPstlAdrPstCd=chqPresntmntNtfctn.chq.pyer.pstlAdr.pstCd
pyerPstlAdrCtrySubDvsn=chqPresntmntNtfctn.chq.pyer.pstlAdr.ctrySubDvsn
pyerPstlAdrDstrctNm=chqPresntmntNtfctn.chq.pyer.pstlAdr.dstrctNm
pyerPstlAdrTwnLctnNm=chqPresntmntNtfctn.chq.pyer.pstlAdr.twnLctnNm
pyerAdrLines=chqPresntmntNtfctn.chq.pyer.pstlAdr.adrLine
pyerAcctIban=chqPresntmntNtfctn.chq.pyerAcct.id.iban
pyerAcctOthrId=chqPresntmntNtfctn.chq.pyerAcct.id.othr.id
pyerAcctSchmeNmPrtry=chqPresntmntNtfctn.chq.pyerAcct.id.othr.schmeNm.prtry
pyerAcctSchmeNmCd=chqPresntmntNtfctn.chq.pyerAcct.id.othr.schmeNm.cd
pyerAcctIssr=chqPresntmntNtfctn.chq.pyerAcct.id.othr.issr
pyerAcctTpCd=chqPresntmntNtfctn.chq.pyerAcct.tp.cd
pyerAcctTpPrtry=chqPresntmntNtfctn.chq.pyerAcct.tp.prtry
pyerAcctCcy=chqPresntmntNtfctn.chq.pyerAcct.ccy
pyerAcctNm=chqPresntmntNtfctn.chq.pyerAcct.nm
pyerAcctPrxyId=chqPresntmntNtfctn.chq.pyerAcct.prxy.id
pyerAcctPrxyCd=chqPresntmntNtfctn.chq.pyerAcct.prxy.tp.cd
pyerAcctPrxyPrxy=chqPresntmntNtfctn.chq.pyerAcct.prxy.tp.prtry
drwrAgtFinInstnIdBicfi=chqPresntmntNtfctn.chq.drwrAgt.finInstnId.bicfi
drwrAgtFinInstnIdCd=chqPresntmntNtfctn.chq.drwrAgt.finInstnId.clrSysMmbId.clrSysId.cd
drwrAgtFinInstnIdMmbId=chqPresntmntNtfctn.chq.drwrAgt.finInstnId.clrSysMmbId.mmbId
drwrAgtFinInstnIdLei=chqPresntmntNtfctn.chq.drwrAgt.finInstnId.lei
drwrAgtFinInstnIdNm=chqPresntmntNtfctn.chq.drwrAgt.finInstnId.nm
drwrAgtFinInstnIdPstlAdrDept=chqPresntmntNtfctn.chq.drwrAgt.finInstnId.pstlAdr.dept
drwrAgtFinInstnIdPstlAdrSubDept=chqPresntmntNtfctn.chq.drwrAgt.finInstnId.pstlAdr.subDept
drwrAgtFinInstnIdPstlAdrStrtNm=chqPresntmntNtfctn.chq.drwrAgt.finInstnId.pstlAdr.strtNm
drwrAgtFinInstnIdPstlAdrBldgNb=chqPresntmntNtfctn.chq.drwrAgt.finInstnId.pstlAdr.bldgNb
drwrAgtFinInstnIdPstlAdrBldgNm=chqPresntmntNtfctn.chq.drwrAgt.finInstnId.pstlAdr.bldgNm
drwrAgtFinInstnIdPstlAdrFlr=chqPresntmntNtfctn.chq.drwrAgt.finInstnId.pstlAdr.flr
drwrAgtFinInstnIdPstlAdrPstBx=chqPresntmntNtfctn.chq.drwrAgt.finInstnId.pstlAdr.pstBx
drwrAgtFinInstnIdPstlAdrRoom=chqPresntmntNtfctn.chq.drwrAgt.finInstnId.pstlAdr.room
drwrAgtFinInstnIdPstlAdrPstCd=chqPresntmntNtfctn.chq.drwrAgt.finInstnId.pstlAdr.pstCd
drwrAgtFinInstnIdPstlAdrTwnNm=chqPresntmntNtfctn.chq.drwrAgt.finInstnId.pstlAdr.twnNm
drwrAgtFinInstnIdPstlAdrTwnLctnNm=chqPresntmntNtfctn.chq.drwrAgt.finInstnId.pstlAdr.twnLctnNm
drwrAgtFinInstnIdPstlAdrDstrctNm=chqPresntmntNtfctn.chq.drwrAgt.finInstnId.pstlAdr.dstrctNm
drwrAgtFinInstnIdPstlAdrCtrySubDvsn=chqPresntmntNtfctn.chq.drwrAgt.finInstnId.pstlAdr.ctrySubDvsn
drwrAgtFinInstnIdPstlAdrCtry=chqPresntmntNtfctn.chq.drwrAgt.finInstnId.pstlAdr.ctry
drwrAgtFinInstnIdPstlAdrLines=chqPresntmntNtfctn.chq.drwrAgt.finInstnId.pstlAdr.adrLine
drwrAgtAcctIban=chqPresntmntNtfctn.chq.drwrAgtAcct.id.iban
drwrAgtAcctOthrId=chqPresntmntNtfctn.chq.drwrAgtAcct.id.othr.id
drwrAgtAcctOthrCd=chqPresntmntNtfctn.chq.drwrAgtAcct.id.othr.schmeNm.cd
drwrAgtAcctOthrPrtry=chqPresntmntNtfctn.chq.drwrAgtAcct.id.othr.schmeNm.prtry
drwrAgtAcctOthrIssr=chqPresntmntNtfctn.chq.drwrAgtAcct.id.othr.issr
drwrAgtAcctTpCd=chqPresntmntNtfctn.chq.drwrAgtAcct.tp.cd
drwrAgtAcctTpPrtry=chqPresntmntNtfctn.chq.drwrAgtAcct.tp.prtry
drwrAgtAcctCcy=chqPresntmntNtfctn.chq.drwrAgtAcct.ccy
drwrAgtAcctNm=chqPresntmntNtfctn.chq.drwrAgtAcct.nm
drwrAgtAcctPrxyId=chqPresntmntNtfctn.chq.drwrAgtAcct.prxy.id
drwrAgtAcctPrxyTpCd=chqPresntmntNtfctn.chq.drwrAgtAcct.prxy.tp.cd
pyeeNm=chqPresntmntNtfctn.chq.pyee.nm
pyeePstlAdrDept=chqPresntmntNtfctn.chq.pyee.pstlAdr.dept
pyeePstlAdrSubDept=chqPresntmntNtfctn.chq.pyee.pstlAdr.subDept
pyeePstlAdrStrtNm=chqPresntmntNtfctn.chq.pyee.pstlAdr.strtNm
pyeePstlAdrBldgNb=chqPresntmntNtfctn.chq.pyee.pstlAdr.bldgNb
pyeePstlAdrBldgNm=chqPresntmntNtfctn.chq.pyee.pstlAdr.bldgNm
pyeePstlAdrFlr=chqPresntmntNtfctn.chq.pyee.pstlAdr.flr
pyeePstlAdrPstBx=chqPresntmntNtfctn.chq.pyee.pstlAdr.pstBx
pyeePstlAdrRoom=chqPresntmntNtfctn.chq.pyee.pstlAdr.room
pyeePstlAdrPstCd=chqPresntmntNtfctn.chq.pyee.pstlAdr.pstCd
pyeePstlAdrTwnNm=chqPresntmntNtfctn.chq.pyee.pstlAdr.twnNm
pyeePstlAdrTwnLctnNm=chqPresntmntNtfctn.chq.pyee.pstlAdr.twnLctnNm
pyeePstlAdrDstrctNm=chqPresntmntNtfctn.chq.pyee.pstlAdr.dstrctNm
pyeePstlAdrCtrySubDvsn=chqPresntmntNtfctn.chq.pyee.pstlAdr.ctrySubDvsn
pyeePstlAdrCtry=chqPresntmntNtfctn.chq.pyee.pstlAdr.ctry
pyeePstlAdrLines=chqPresntmntNtfctn.chq.pyee.pstlAdr.adrLine
pyeeAnyBIC=chqPresntmntNtfctn.chq.pyee.id.orgId.anyBIC
pyeeLei=chqPresntmntNtfctn.chq.pyee.id.orgId.lei
pyeeOrgIdOthrId=chqPresntmntNtfctn.chq.pyee.id.orgId.othr.id
pyeeOrgIdOthrSchmeNmPrtry=chqPresntmntNtfctn.chq.pyee.id.orgId.othr.schmeNm.prtry
pyeeOrgIdOthrSchmeNmCd=chqPresntmntNtfctn.chq.pyee.id.orgId.othr.schmeNm.cd
pyeeOrgIdOthrIssr=chqPresntmntNtfctn.chq.pyee.id.orgId.othr.issr
pyeeBirthDt=chqPresntmntNtfctn.chq.pyee.id.prvtId.dtAndPlcOfBirth.birthDt
pyeePrvcOfBirth=chqPresntmntNtfctn.chq.pyee.id.prvtId.dtAndPlcOfBirth.prvcOfBirth
pyeeCityOfBirth=chqPresntmntNtfctn.chq.pyee.id.prvtId.dtAndPlcOfBirth.cityOfBirth
pyeeCtryOfBirth=chqPresntmntNtfctn.chq.pyee.id.prvtId.dtAndPlcOfBirth.ctryOfBirth
pyeePrvtIdOthrId=chqPresntmntNtfctn.chq.pyee.id.prvtId.othr.id
pyeePrvtIdSchmeNmPrtry=chqPresntmntNtfctn.chq.pyee.id.prvtId.othr.schmeNm.prtry
pyeePrvtIdSchmeNmCd=chqPresntmntNtfctn.chq.pyee.id.prvtId.othr.schmeNm.cd
pyeePrvtIdIssr=chqPresntmntNtfctn.chq.pyee.id.prvtId.othr.issr
pyeeCtryOfRes=chqPresntmntNtfctn.chq.pyee.ctryOfRes
\ No newline at end of file
#APPLICATION HEADER
frBic=appHdr.fr.fiId.finInstnId.bicfi
frClrSysIdCd=appHdr.fr.fiId.finInstnId.clrSysMmbId.clrSysId.cd
frMmbId=appHdr.fr.fiId.finInstnId.clrSysMmbId.mmbId
frFinInstnIdLei=appHdr.fr.fiId.finInstnId.lei
toBic=appHdr.to.fiId.finInstnId.bicfi
toClrSysIdCd=appHdr.fr.fiId.finInstnId.clrSysMmbId.clrSysId.cd
toMmbId=appHdr.fr.fiId.finInstnId.clrSysMmbId.mmbId
toFinInstnIdLei=appHdr.fr.fiId.finInstnId.lei
charSet=appHdr.charSet
regy=appHdr.mktPrctc.regy
mktPrctcId=appHdr.mktPrctc.id
bizMsgIdr=appHdr.bizMsgIdr
msgDefIdr=appHdr.msgDefIdr
bizSvc=appHdr.bizSvc
creDt=chqCxlOrStopReq.grpHdr.creDtTm?appHdr.creDt
cpyDplct=appHdr.cpyDplct
pssblDplct=appHdr.pssblDplct&boolean
prty=appHdr.prty
rltdFrBic=appHdr.rltd.fr.fiId.finInstnId.bicfi
rltdFrClrSysIdCd=appHdr.rltd.fr.fiId.finInstnId.clrSysMmbId.clrSysId.cd
rltdFrMmbId=appHdr.rltd.fr.fiId.finInstnId.clrSysMmbId.mmbId
rltdFrFinInstnIdLei=appHdr.rltd.fr.fiId.finInstnId.lei
rltdToBic=appHdr.rltd.to.fiId.finInstnId.bicfi
rltdToClrSysIdCd=appHdr.rltd.fr.fiId.finInstnId.clrSysMmbId.clrSysId.cd
rltdToMmbId=appHdr.rltd.fr.fiId.finInstnId.clrSysMmbId.mmbId
rltdToFinInstnIdLei=appHdr.rltd.fr.fiId.finInstnId.lei
rltdCharSet=appHdr.rltd.charSet
rltdBizMsgIdr=appHdr.rltd.bizMsgIdr
rltdMsgDefIdr=appHdr.rltd.msgDefIdr
rltdBizSvc=appHdr.rltd.bizSvc
rltdCreDt=appHdr.rltd.creDt
rltdCpyDplct=appHdr.rltd.cpyDplct
rltdPrty=appHdr.rltd.prty
grpMsgId=chqCxlOrStopReq.grpHdr.msgId
grpCreDtTm=chqCxlOrStopReq.grpHdr.creDtTm
nbOfTxs=chqCxlOrStopReq.grpHdr.nbOfChqs
chqInstrId=chqCxlOrStopReq.chq.instrId
chqOrgnlInstrId=chqCxlOrStopReq.chq.orgnlInstrId
chqChqNb=chqCxlOrStopReq.chq.chqNb
chqIsseDt=chqCxlOrStopReq.chq.isseDt
chqStlDt=chqCxlOrStopReq.chq.stlDt
chqAmt=chqCxlOrStopReq.chq.amt.value&bigdecimal
chqAmtCcy=chqCxlOrStopReq.chq.amt.ccy
chqDt=chqCxlOrStopReq.chq.FctvDt.dt
drwrAgtFinInstnIdBicfi=chqCxlOrStopReq.chq.drwrAgt.finInstnId.bicfi
drwrAgtFinInstnIdCd=chqCxlOrStopReq.chq.drwrAgt.finInstnId.clrSysMmbId.clrSysId.cd
drwrAgtFinInstnIdMmbId=chqCxlOrStopReq.chq.drwrAgt.finInstnId.clrSysMmbId.mmbId
drwrAgtFinInstnIdLei=chqCxlOrStopReq.chq.drwrAgt.finInstnId.lei
drwrAgtFinInstnIdNm=chqCxlOrStopReq.chq.drwrAgt.finInstnId.nm
drwrAgtFinInstnIdPstlAdrDept=chqCxlOrStopReq.chq.drwrAgt.finInstnId.pstlAdr.dept
drwrAgtFinInstnIdPstlAdrSubDept=chqCxlOrStopReq.chq.drwrAgt.finInstnId.pstlAdr.subDept
drwrAgtFinInstnIdPstlAdrStrtNm=chqCxlOrStopReq.chq.drwrAgt.finInstnId.pstlAdr.strtNm
drwrAgtFinInstnIdPstlAdrBldgNb=chqCxlOrStopReq.chq.drwrAgt.finInstnId.pstlAdr.bldgNb
drwrAgtFinInstnIdPstlAdrBldgNm=chqCxlOrStopReq.chq.drwrAgt.finInstnId.pstlAdr.bldgNm
drwrAgtFinInstnIdPstlAdrFlr=chqCxlOrStopReq.chq.drwrAgt.finInstnId.pstlAdr.flr
drwrAgtFinInstnIdPstlAdrPstBx=chqCxlOrStopReq.chq.drwrAgt.finInstnId.pstlAdr.pstBx
drwrAgtFinInstnIdPstlAdrRoom=chqCxlOrStopReq.chq.drwrAgt.finInstnId.pstlAdr.room
drwrAgtFinInstnIdPstlAdrPstCd=chqCxlOrStopReq.chq.drwrAgt.finInstnId.pstlAdr.pstCd
drwrAgtFinInstnIdPstlAdrTwnNm=chqCxlOrStopReq.chq.drwrAgt.finInstnId.pstlAdr.twnNm
drwrAgtFinInstnIdPstlAdrTwnLctnNm=chqCxlOrStopReq.chq.drwrAgt.finInstnId.pstlAdr.twnLctnNm
drwrAgtFinInstnIdPstlAdrDstrctNm=chqCxlOrStopReq.chq.drwrAgt.finInstnId.pstlAdr.dstrctNm
drwrAgtFinInstnIdPstlAdrCtrySubDvsn=chqCxlOrStopReq.chq.drwrAgt.finInstnId.pstlAdr.ctrySubDvsn
drwrAgtFinInstnIdPstlAdrCtry=chqCxlOrStopReq.chq.drwrAgt.finInstnId.pstlAdr.ctry
drwrAgtFinInstnIdPstlAdrLines=chqCxlOrStopReq.chq.drwrAgt.finInstnId.pstlAdr.adrLine
drwrAgtAcctIban=chqCxlOrStopReq.chq.drwrAgtAcct.id.iban
drwrAgtAcctOthrId=chqCxlOrStopReq.chq.drwrAgtAcct.id.othr.id
drwrAgtAcctOthrCd=chqCxlOrStopReq.chq.drwrAgtAcct.id.othr.schmeNm.cd
drwrAgtAcctOthrPrtry=chqCxlOrStopReq.chq.drwrAgtAcct.id.othr.schmeNm.prtry
drwrAgtAcctOthrIssr=chqCxlOrStopReq.chq.drwrAgtAcct.id.othr.issr
drwrAgtAcctTpCd=chqCxlOrStopReq.chq.drwrAgtAcct.tp.cd
drwrAgtAcctTpPrtry=chqCxlOrStopReq.chq.drwrAgtAcct.tp.prtry
drwrAgtAcctCcy=chqCxlOrStopReq.chq.drwrAgtAcct.ccy
drwrAgtAcctNm=chqCxlOrStopReq.chq.drwrAgtAcct.nm
drwrAgtAcctPrxyId=chqCxlOrStopReq.chq.drwrAgtAcct.prxy.id
drwrAgtAcctPrxyTpCd=chqCxlOrStopReq.chq.drwrAgtAcct.prxy.tp.cd
drwrAgtAcctPrxyTpPrtry=chqCxlOrStopReq.chq.drwrAgtAcct.prxy.tp.prtry
pyeeNm=chqCxlOrStopReq.chq.pyee.nm
pyeePstlAdrDept=chqCxlOrStopReq.chq.pyee.pstlAdr.dept
pyeePstlAdrSubDept=chqCxlOrStopReq.chq.pyee.pstlAdr.subDept
pyeePstlAdrStrtNm=chqCxlOrStopReq.chq.pyee.pstlAdr.strtNm
pyeePstlAdrBldgNb=chqCxlOrStopReq.chq.pyee.pstlAdr.bldgNb
pyeePstlAdrBldgNm=chqCxlOrStopReq.chq.pyee.pstlAdr.bldgNm
pyeePstlAdrFlr=chqCxlOrStopReq.chq.pyee.pstlAdr.flr
pyeePstlAdrPstBx=chqCxlOrStopReq.chq.pyee.pstlAdr.pstBx
pyeePstlAdrRoom=chqCxlOrStopReq.chq.pyee.pstlAdr.room
pyeePstlAdrPstCd=chqCxlOrStopReq.chq.pyee.pstlAdr.pstCd
pyeePstlAdrTwnNm=chqCxlOrStopReq.chq.pyee.pstlAdr.twnNm
pyeePstlAdrTwnLctnNm=chqCxlOrStopReq.chq.pyee.pstlAdr.twnLctnNm
pyeePstlAdrDstrctNm=chqCxlOrStopReq.chq.pyee.pstlAdr.dstrctNm
pyeePstlAdrCtrySubDvsn=chqCxlOrStopReq.chq.pyee.pstlAdr.ctrySubDvsn
pyeePstlAdrCtry=chqCxlOrStopReq.chq.pyee.pstlAdr.ctry
pyeePstlAdrLines=chqCxlOrStopReq.chq.pyee.pstlAdr.adrLine
pyeeAnyBIC=chqCxlOrStopReq.chq.pyee.id.orgId.anyBIC
pyeeLei=chqCxlOrStopReq.chq.pyee.id.orgId.lei
pyeeOrgIdOthrId=chqCxlOrStopReq.chq.pyee.id.orgId.othr.id
pyeeOrgIdOthrSchmeNmPrtry=chqCxlOrStopReq.chq.pyee.id.orgId.othr.schmeNm.prtry
pyeeOrgIdOthrSchmeNmCd=chqCxlOrStopReq.chq.pyee.id.orgId.othr.schmeNm.cd
pyeeOrgIdOthrIssr=chqCxlOrStopReq.chq.pyee.id.orgId.othr.issr
pyeeBirthDt=chqCxlOrStopReq.chq.pyee.id.prvtId.dtAndPlcOfBirth.birthDt
pyeePrvcOfBirth=chqCxlOrStopReq.chq.pyee.id.prvtId.dtAndPlcOfBirth.prvcOfBirth
pyeeCityOfBirth=chqCxlOrStopReq.chq.pyee.id.prvtId.dtAndPlcOfBirth.cityOfBirth
pyeeCtryOfBirth=chqCxlOrStopReq.chq.pyee.id.prvtId.dtAndPlcOfBirth.ctryOfBirth
pyeePrvtIdOthrId=chqCxlOrStopReq.chq.pyee.id.prvtId.othr.id
pyeePrvtIdSchmeNmPrtry=chqCxlOrStopReq.chq.pyee.id.prvtId.othr.schmeNm.prtry
pyeePrvtIdSchmeNmCd=chqCxlOrStopReq.chq.pyee.id.prvtId.othr.schmeNm.cd
pyeePrvtIdIssr=chqCxlOrStopReq.chq.pyee.id.prvtId.othr.issr
pyeeCtryOfRes=chqCxlOrStopReq.chq.pyee.ctryOfRes
chqcxlOrStopRsnOrgtr=chqCxlOrStopReq.chq.chqCxlOrStopRsn.orgtr
chqcxlOrStopRsnRsnCd=chqCxlOrStopReq.chq.chqCxlOrStopRsn.rsn.cd
chqcxlOrStopRsnAddtlInf=chqCxlOrStopReq.chq.chqCxlOrStopRsn.addtlInf
\ No newline at end of file
#APPLICATION HEADER
charSet = apphdr.charset
frBic=appHdr.fr.fiId.finInstnId.bicfi
appHdrFrFIIdFinInstnIdClrSysMmbIdClrSysIdCd = appHdr.fr.fiId.finInstnId.clrSysMmbId.clrSysId.cd
frMmbId = appHdr.fr.fiId.finInstnId.clrSysMmbId.mmbId
frLei = appHdr.fr.fiId.finInstnId.lei
toBic=appHdr.to.fiId.finInstnId.bicfi
appHdrToFIIdFinInstnIdClrSysMmbIdClrSysIdCd = appHdr.to.fiId.finInstnId.clrSysMmbId.clrSysId.cd
toMmbId = appHdr.to.fiId.finInstnId.clrSysMmbId.mmbId
toLei = appHdr.to.fiId.finInstnId.lei
bizMsgIdr=appHdr.bizMsgIdr
msgDefIdr=appHdr.msgDefIdr
bizSvc=appHdr.bizSvc
mktPrctcRegy=appHdr.mktPrctc.regy
mktPrctcId=appHdr.mktPrctc.id
# ??
creDt=appHdr.chqCxlOrStopRpt.grpHdr.creDtTm?appHdr.creDt
appHdrCpyDplct = appHdr.cpyDplct
appHdrPssblDplct = appHdr.pssblDplct&boolean
rltdPrty = appHdr.rltd.prty
rltdCharSet = appHdr.rltd.charSet
rltdFrFIIdFinInstnIdBICFI = appHdr.rltd.fr.fiId.finInstnId.bicfi
rltdFrFIIdFinInstnIdClrSysMmbIdClrSysIdCd = appHdr.rltd.fr.fiId.finInstnId.clrSysMmbId.clrSysId.cd
rltdFrFIIdFinInstnIdClrSysMmbIdMmbId = appHdr.rltd.fr.fiId.finInstnId.clrSysMmbId.clrSysId.mmbId
rltdFrFIIdFinInstnIdLEI = appHdr.rltd.fr.fiId.finInstnId.lei
rltdToFIIdFinInstnIdBICFI = appHdr.rltd.to.fiId.finInstnId.bicfi
rltdToFIIdFinInstnIdClrSysMmbIdClrSysIdCd = appHdr.rltd.to.fiId.finInstnId.clrSysMmbId.clrSysId.cd
rltdToFIIdFinInstnIdClrSysMmbIdMmbId = appHdr.rltd.to.fiId.finInstnId.clrSysMmbId.clrSysId.mmbId
rltdToFIIdFinInstnIdLEI = appHdr.rltd.to.fiId.finInstnId.lei
rltdBizMsgIdr = appHdr.rltd.bizMsgIdr
rltdMsgDefIdr = appHdr.rltd.msgDefIdr
rltdBizSvc = appHdr.rltd.bizSvc
rltdCredt = appHdr.rltd.creDt
rltdCpyDplct = appHdr.rltd.cpyDplct
chqCxlOrStopRptGrpHdrMsgId = chqCxlOrStopRpt.grpHdr.msgId
chqCxlOrStopRptGrpHdrCreDtTm = chqCxlOrStopRpt.grpHdr.creDtTm
chqCxlOrStopRptGrpHdrNbOfChqs = chqCxlOrStopRpt.grpHdr.nbOfChqs
chqCxlOrStopRptGrpHdrCtrlSum = chqCxlOrStopRpt.grpHdr.ctrlSum.value&bigdecimal
chqInstrId = chqCxlOrStopRpt.chq.instrId
chqOrgnlInstrId = chqCxlOrStopRpt.chq.orgnlInstrId
chqNb = chqCxlOrStopRpt.chq.chqNb
chqIsseDt = chqCxlOrStopRpt.chq.isseDt
chqStlDt = chqCxlOrStopRpt.chq.stlDt
chqAmt = chqCxlOrStopRpt.chq.amt.value&bigdecimal
chqAmtCcy = chqCxlOrStopRpt.chq.amt.ccy
chqFctvDtDt = chqCxlOrStopRpt.chq.fctvDt.dt
finInstnIdBICFI = chqCxlOrStopRpt.chq.drwrAgt.finInstnId.bicfi
finInstnIdClrSysMmbIdClrSysIdCd = chqCxlOrStopRpt.chq.drwrAgt.finInstnId.clrSysMmbId.clrSysId.cd
finInstnIdClrSysMmbIdMmbId = chqCxlOrStopRpt.chq.drwrAgt.finInstnId.clrSysMmbId.mmbId
finInstnIdLEI = chqCxlOrStopRpt.chq.drwrAgt.finInstnId.lei
finInstnIdName = chqCxlOrStopRpt.chq.drwrAgt.finInstnId.name
finInstnIdPstlAdrDept = chqCxlOrStopRpt.chq.drwrAgt.finInstnId.pstlAdr.dept
finInstnIdPstlAdrSubDept = chqCxlOrStopRpt.chq.drwrAgt.finInstnId.pstlAdr.subDept
finInstnIdPstlAdrStrtNm = chqCxlOrStopRpt.chq.drwrAgt.finInstnId.pstlAdr.strtNm
finInstnIdPstlAdrBldgNb = chqCxlOrStopRpt.chq.drwrAgt.finInstnId.pstlAdr.bldgNb
finInstnIdPstlAdrBldgNm = chqCxlOrStopRpt.chq.drwrAgt.finInstnId.pstlAdr.bldgNm
finInstnIdPstlAdrFlr = chqCxlOrStopRpt.chq.drwrAgt.finInstnId.pstlAdr.flr
finInstnIdPstlAdrPstBx = chqCxlOrStopRpt.chq.drwrAgt.finInstnId.pstlAdr.pstBx
finInstnIdPstlAdrRoom = chqCxlOrStopRpt.chq.drwrAgt.finInstnId.pstlAdr.room
finInstnIdPstlAdrPstCd = chqCxlOrStopRpt.chq.drwrAgt.finInstnId.pstlAdr.pstCd
finInstnIdPstlAdrTwnNm = chqCxlOrStopRpt.chq.drwrAgt.finInstnId.pstlAdr.twnNm
finInstnIdPstlAdrTwnLctnNm = chqCxlOrStopRpt.chq.drwrAgt.finInstnId.pstlAdr.twnLctnNm
finInstnIdPstlAdrDstrctNm = chqCxlOrStopRpt.chq.drwrAgt.finInstnId.pstlAdr.dstrctNm
finInstnIdPstlAdrCtrySubDvsn = chqCxlOrStopRpt.chq.drwrAgt.finInstnId.pstlAdr.ctrySubDvsn
finInstnIdPstlAdrCtry = chqCxlOrStopRpt.chq.drwrAgt.finInstnId.pstlAdr.ctry
finInstnIdPstlAdrAdrLine = chqCxlOrStopRpt.chq.drwrAgt.finInstnId.pstlAdr.adrLine
idIBAN = chqCxlOrStopRpt.chq.drwrAgtAcct.id.iban
otherId = chqCxlOrStopRpt.chq.drwrAgtAcct.id.othr.id
othrSchmeNmCd = chqCxlOrStopRpt.chq.drwrAgtAcct.id.othr.schmeNm.cd
othrSchmeNmPrtry = chqCxlOrStopRpt.chq.drwrAgtAcct.id.othr.schmeNm.prtry
othrIssr = chqCxlOrStopRpt.chq.drwrAgtAcct.id.othr.issr
tpCd = chqCxlOrStopRpt.chq.drwrAgtAcct.tp.cd
tpPrtry = chqCxlOrStopRpt.chq.drwrAgtAcct.tp.prtry
drwrAgtAcctCcy = chqCxlOrStopRpt.chq.drwrAgtAcct.ccy
drwrAgtAcctNm = chqCxlOrStopRpt.chq.drwrAgtAcct.nm
prxyTpCd = chqCxlOrStopRpt.chq.drwrAgtAcct.prxy.tp.cd
prxyTpPrtry = chqCxlOrStopRpt.chq.drwrAgtAcct.prxy.tp.prtry
prxyId = chqCxlOrStopRpt.chq.drwrAgtAcct.prxy.id
pyeeNm = chqCxlOrStopRpt.chq.pyee.pstlAdr.nm
pyeePstlAdrDept = chqCxlOrStopRpt.chq.pyee.pstlAdr.dept
pyeePstlAdrSubDept = chqCxlOrStopRpt.chq.pyee.pstlAdr.subDept
pyeePstlAdrStrtNm = chqCxlOrStopRpt.chq.pyee.pstlAdr.strtNm
pyeePstlAdrBldgNb = chqCxlOrStopRpt.chq.pyee.pstlAdr.bldgNb
pyeePstlAdrBldgNm = chqCxlOrStopRpt.chq.pyee.pstlAdr.bldgNm
pyeePstlAdrFlr = chqCxlOrStopRpt.chq.pyee.pstlAdr.flr
pyeePstlAdrPstBx = chqCxlOrStopRpt.chq.pyee.pstlAdr.pstBx
pyeePstlAdrRoom = chqCxlOrStopRpt.chq.pyee.pstlAdr.room
pyeePstlAdrPstCd = chqCxlOrStopRpt.chq.pyee.pstlAdr.pstCd
pyeePstlAdrTwnNm = chqCxlOrStopRpt.chq.pyee.pstlAdr.twnNm
pyeePstlAdrTwnLctnNm = chqCxlOrStopRpt.chq.pyee.pstlAdr.twnLctnNm
pyeePstlAdrDstrctNm = chqCxlOrStopRpt.chq.pyee.pstlAdr.dstrctNm
pyeePstlAdrCtrySubDvsn = chqCxlOrStopRpt.chq.pyee.pstlAdr.ctrySubDvsn
pyeePstlAdrCtry = chqCxlOrStopRpt.chq.pyee.pstlAdr.ctry
pyeePstlAdrAdrLine = chqCxlOrStopRpt.chq.pyee.pstlAdr.adrLine
pyeeorgIdAnyBIC = chqCxlOrStopRpt.chq.pyee.id.orgId.anyBIC
pyeeorgIdLEI = chqCxlOrStopRpt.chq.pyee.id.orgId.lei
pyeeorgothrId = chqCxlOrStopRpt.chq.pyee.id.orgId.othr.id
pyeeorgothrSchmeNmCd = chqCxlOrStopRpt.chq.pyee.id.orgId.othr.schmeNm.cd
pyeeorgothrSchmeNmPrtry = chqCxlOrStopRpt.chq.pyee.id.orgId.othr.schmeNm.prtry
pyeeorgothrIssr = chqCxlOrStopRpt.chq.pyee.id.orgId.othr.issr
pyeeIdPrvtIdDtAndPlcOfBirthBirthDt = chqCxlOrStopRpt.chq.pyee.id.prvtId.dtAndPlcOfBirth.birthDt
pyeeIdPrvtIdDtAndPlcOfBirthPrvcOfBirth = chqCxlOrStopRpt.chq.pyee.id.prvtId.dtAndPlcOfBirth.prvcOfBirth
pyeeIdPrvtIdDtAndPlcOfBirthCityOfBirth = chqCxlOrStopRpt.chq.pyee.id.prvtId.dtAndPlcOfBirth.cityOfBirth
pyeeIdPrvtIdDtAndPlcOfBirthCtryOfBirth = chqCxlOrStopRpt.chq.pyee.id.prvtId.dtAndPlcOfBirth.ctryOfBirth
pyeeIdPrvtothrId = chqCxlOrStopRpt.chq.pyee.id.prvtId.othr.id
pyeeIdPrvtothrSchmeNmCd = chqCxlOrStopRpt.chq.pyee.id.prvtId.othr.schmeNm.cd
pyeeIdPrvtothrSchmeNmPrtry = chqCxlOrStopRpt.chq.pyee.id.prvtId.othr.schmeNm.prtry
pyeeIdPrvtothrIssr = chqCxlOrStopRpt.chq.pyee.id.prvtId.othr.issr
pyeeCtryOfRes = chqCxlOrStopRpt.chq.pyee.ctryOfRes
chqchqCxlOrStopStsOrgtr = chqCxlOrStopRpt.chq.chqCxlOrStopSts.orgtr
chqchqCxlOrStopStsStsCd = chqCxlOrStopRpt.chq.chqCxlOrStopSts.sts.cd
chqchqCxlOrStopStsAddtlInf = chqCxlOrStopRpt.chq.chqCxlOrStopSts.addtlInf
\ No newline at end of file
#APPLICATION HEADER
charSet = apphdr.charset
frBic=appHdr.fr.fiId.finInstnId.bicfi
appHdrFrFIIdFinInstnIdClrSysMmbIdClrSysIdCd = appHdr.fr.fiId.finInstnId.clrSysMmbId.clrSysId.cd
frMmbId = appHdr.fr.fiId.finInstnId.clrSysMmbId.mmbId
frLei = appHdr.fr.fiId.finInstnId.lei
toBic=appHdr.to.fiId.finInstnId.bicfi
appHdrToFIIdFinInstnIdClrSysMmbIdClrSysIdCd = appHdr.to.fiId.finInstnId.clrSysMmbId.clrSysId.cd
toMmbId = appHdr.to.fiId.finInstnId.clrSysMmbId.mmbId
toLei = appHdr.to.fiId.finInstnId.lei
bizMsgIdr=appHdr.bizMsgIdr
msgDefIdr=appHdr.msgDefIdr
bizSvc=appHdr.bizSvc
mktPrctcRegy=appHdr.mktPrctc.regy
mktPrctcId=appHdr.mktPrctc.id
creDt=appHdr.creDt
undrlygInstrmCode=invstgtnReq.invstgtnReq.undrlygInstrm.cd
orgnlMsgDlvryChanl=invstgtnReq.invstgtnReq.undrlyg.intrBk.orgnlGrpInf.orgnlMsgDlvryChanl
orgnlMsgNmId=invstgtnReq.invstgtnReq.undrlyg.intrBk.orgnlGrpInf.orgnlMsgNmId
orgnlCreDtTm=invstgtnReq.invstgtnReq.undrlyg.intrBk.orgnlGrpInf.orgnlCreDtTm
msgId=invstgtnReq.invstgtnReq.msgId
invstgtnTpCode=invstgtnReq.invstgtnReq.invstgtnTp.cd
rqstrBic=invstgtnReq.invstgtnReq.rqstr.agt.finInstnId.bicfi
rspndrBic=invstgtnReq.invstgtnReq.rspndr.agt.finInstnId.bicfi
invstgtnDataCode=/invstgtnReq/invstgtnData/rsn/cd
\ No newline at end of file
#APPLICATION HEADER
charSet = apphdr.charset
frBic=appHdr.fr.fiId.finInstnId.bicfi
appHdrFrFIIdFinInstnIdClrSysMmbIdClrSysIdCd = appHdr.fr.fiId.finInstnId.clrSysMmbId.clrSysId.cd
frMmbId = appHdr.fr.fiId.finInstnId.clrSysMmbId.mmbId
frLei = appHdr.fr.fiId.finInstnId.lei
toBic=appHdr.to.fiId.finInstnId.bicfi
appHdrToFIIdFinInstnIdClrSysMmbIdClrSysIdCd = appHdr.to.fiId.finInstnId.clrSysMmbId.clrSysId.cd
toMmbId = appHdr.to.fiId.finInstnId.clrSysMmbId.mmbId
toLei = appHdr.to.fiId.finInstnId.lei
bizMsgIdr=appHdr.bizMsgIdr
msgDefIdr=appHdr.msgDefIdr
bizSvc=appHdr.bizSvc
mktPrctcRegy=appHdr.mktPrctc.regy
mktPrctcId=appHdr.mktPrctc.id
creDt=appHdr.creDt
invstgtnRspnMsgId=invstgtnRspn.invstgtnRspn.msgId
invstgtnRspnSts=invstgtnRspn.invstgtnRspn.invstgtnSts.sts
orgnlInvstgtnReqCode=invstgtnRspn.orgnlInvstgtnReq.undrlygInstrm.cd
rqstrBic=invstgtnRspn.orgnlInvstgtnReq.rqstr.agt.finInstnId.bicfi
rspndrBic.invstgtnRspn.orgnlInvstgtnReq.rspndr.agt.finInstnId.bicfi
eir=invstgtnRspn.orgnlInvstgtnReq.eir
\ No newline at end of file
......@@ -6,6 +6,7 @@ import org.junit.Test;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
public class Mx2ElementTest {
......@@ -29,4 +30,28 @@ public class Mx2ElementTest {
String elementStr = SwiftTransfer.showMxElement(xmlStr, "CN");
System.out.println(elementStr);
}
@Test
public void testCamt055001() throws Exception {
File file = new File(Mx2MessageTest.class.getResource("/swiftXml/camt05500108.xml").toURI().getPath());
String xml = new String(Files.readAllBytes(file.toPath()));
String elementStr = SwiftTransfer.mx2Element(xml);
System.out.println(elementStr);
}
@Test
public void testCamt110001() throws Exception {
File file = new File(Mx2MessageTest.class.getResource("/swiftXml/camt11000101.xml").toURI().getPath());
String xml = new String(Files.readAllBytes(file.toPath()));
String elementStr = SwiftTransfer.mx2Element(xml);
System.out.println(elementStr);
}
@Test
public void testCamt111001() throws Exception {
File file = new File(Mx2MessageTest.class.getResource("/swiftXml/camt11100101.xml").toURI().getPath());
String xml = new String(Files.readAllBytes(file.toPath()));
String elementStr = SwiftTransfer.mx2Element(xml);
System.out.println(elementStr);
}
}
......@@ -161,14 +161,16 @@ public class Mx2MtTest {
}
@Test
public void test112() { test("/swiftXml/camt10900101.xml",null);}
@Test
public void test111() {
test("/swiftXml/camt10800101.xml", null);
}
@Test
public void test112() { test("/swiftXml/camt10900101.xml",null);}
@Test
public void testXmlFilePath() {
SwiftTranslationReport str = SwiftTransfer.mx2MtPlus("d:/test/MxPacs00800108.xml", true, null, null);
System.out.println(str.getMessage());
......@@ -300,6 +302,7 @@ public class Mx2MtTest {
public void testMx2MtMap() throws IOException {
//File file = FileUtils.toFile(Mx2MtTest.class.getResource("/swiftXml/MxPacs00900108_COV.xml"));
File file = FileUtils.toFile(Mx2MtTest.class.getResource("/swiftXml/iso_ack.xml"));
// File file = FileUtils.toFile(Mx2MtTest.class.getResource("/swiftXml/camt10900101.xml"));
String xmlStr = FileUtils.readFileToString(file);
Map<String, String> maps = SwiftTransfer.mx2MtMap(xmlStr, null);
for (String key : maps.keySet()) {
......
File added
......@@ -22,6 +22,17 @@
<artifactId>swiftMt</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>com.brilliance.swift</groupId>
<artifactId>swiftMt-common</artifactId>
<version>2.0</version>
<scope>system</scope>
<systemPath>${pom.basedir}/lib/swiftMt-common-2.0.jar</systemPath>
</dependency>
</dependencies>
</project>
\ No newline at end of file
package com.prowidesoftware.swift.model;
import org.apache.commons.lang3.StringUtils;
/**
* Represents a Distinguished Name (DN) in the context of a directory service.
* The DN is constructed using the organization unit (ou), Bank Identifier Code (BIC8), and SWIFT code.
* This class provides a builder pattern for creating DistinguishedName instances.
*/
public class DistinguishedName {
/**
* The organization unit (ou) representing the branch in the Distinguished Name.
*/
private final String branch;
/**
* The Bank Identifier Code (BIC8) in lowercase format.
*/
private final String bic8;
/**
* The SWIFT code representing the organization.
*/
private final String swift;
/**
* Private constructor to create a DistinguishedName instance using the Builder.
*
* @param builder The builder containing the required parameters for the DistinguishedName.
*/
private DistinguishedName(Builder builder) {
this.branch = builder.branch;
this.bic8 = builder.bic8;
this.swift = builder.swift;
}
public String getBranch() {
return branch;
}
public String getBic8() {
return bic8;
}
public String getSwift() {
return swift;
}
@Override
public String toString() {
StringBuilder dn = new StringBuilder();
if (branch != null && !branch.isEmpty()) {
dn.append("ou=").append(branch).append(",");
}
dn.append("o=").append(bic8).append(",o=").append(swift);
return dn.toString();
}
public static String parseBIC(final String dn) {
if (StringUtils.isBlank(dn)) {
return null;
}
for (String s : StringUtils.split(dn, ",")) {
if (StringUtils.startsWith(s, "o=") && !StringUtils.equals(s, "o=swift")) {
return StringUtils.upperCase(StringUtils.substringAfter(s, "o="));
}
}
return null;
}
/**
* Builder class for constructing DistinguishedName instances.
*/
public static class Builder {
private String branch;
private final String bic8;
private final String swift;
public Builder(String bic8) {
this.bic8 = StringUtils.lowerCase(bic8);
this.swift = "swift";
}
public Builder withBranch(String ou) {
this.branch = StringUtils.lowerCase(ou);
return this;
}
public DistinguishedName build() {
return new DistinguishedName(this);
}
}
}
\ No newline at end of file
/*
* Copyright 2006-2021 Prowide
* Copyright 2006-2023 Prowide
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
......@@ -19,9 +19,9 @@ import org.apache.commons.lang3.StringUtils;
import org.w3c.dom.Element;
import org.w3c.dom.ls.DOMImplementationLS;
import org.w3c.dom.ls.LSSerializer;
import org.xml.sax.SAXException;
import javax.xml.transform.sax.SAXSource;
import java.util.Objects;
import java.util.Optional;
/**
......@@ -33,18 +33,37 @@ public class AppHdrParser {
* Detects the header version by reading the namespace in the AppHdr element and parses the header content to
* a specific header model: {@link LegacyAppHdr}, {@link BusinessAppHdrV01} or {@link BusinessAppHdrV02}
*
* @param xml and XML to parse, only the AppHdr element is parse, the rest of the XML content is silently ignored
* Default adapters are applied, for more options use {@link #parse(String, MxReadParams)}
*
* @param xml a not null XML to parse, only the AppHdr element is parse, the rest of the XML content is silently ignored
* @return parsed header
*/
public static Optional<AppHdr> parse(final String xml) {
Objects.requireNonNull(xml, "The xml to parse cannot be null");
return parse(xml, new MxReadParams());
}
/**
* Detects the header version by reading the namespace in the AppHdr element and parses the header content to
* a specific header model: {@link LegacyAppHdr}, {@link BusinessAppHdrV01} or {@link BusinessAppHdrV02}
*
* @param xml an not null XML to parse, only the AppHdr element is parse, the rest of the XML content is silently ignored
* @param params not null unmarshalling parameters
* @return parsed header
* @since 9.2.6
*/
public static Optional<AppHdr> parse(final String xml, MxReadParams params) {
Objects.requireNonNull(xml, "The xml to parse cannot be null");
Objects.requireNonNull(params, "The unmarshalling params cannot be null");
try {
Optional<String> namespace = NamespaceReader.findAppHdrNamespace(xml);
boolean headerIsPresent = namespace.isPresent() || NamespaceReader.elementExists(xml, AppHdr.HEADER_LOCALNAME);
boolean headerIsPresent =
namespace.isPresent() || NamespaceReader.elementExists(xml, AppHdr.HEADER_LOCALNAME);
if (headerIsPresent) {
AppHdr parsedHeader = parseHeaderFromSAXSource(xml, namespace.orElse(null));
AppHdr parsedHeader = parseHeaderFromSAXSource(xml, namespace.orElse(null), params);
return Optional.ofNullable(parsedHeader);
}
......@@ -55,21 +74,30 @@ public class AppHdrParser {
return Optional.empty();
}
private static AppHdr parseHeaderFromSAXSource(final String xml, final String namespace) throws SAXException {
SAXSource source = MxParseUtils.createFilteredSAXSource(xml, AppHdr.HEADER_LOCALNAME);
private static AppHdr parseHeaderFromSAXSource(
final String xml, final String namespace, final MxReadParams params) {
SAXSource source =
MxParseUtils.createFilteredSAXSource(MxParseUtils.makeXmlLenient(xml), AppHdr.HEADER_LOCALNAME);
if (StringUtils.equals(LegacyAppHdr.NAMESPACE, namespace)) {
// parse legacy AH
return (LegacyAppHdr) MxParseUtils.parseSAXSource(source, LegacyAppHdr.class, LegacyAppHdr._classes);
return (LegacyAppHdr)
MxParseUtils.parseSAXSource(source, LegacyAppHdr.class, LegacyAppHdr._classes, params);
} else if (StringUtils.equals(BusinessAppHdrV02.NAMESPACE, namespace)) {
// parse BAH version 2
return (BusinessAppHdrV02) MxParseUtils.parseSAXSource(source, BusinessAppHdrV02.class, BusinessAppHdrV02._classes);
return (BusinessAppHdrV02)
MxParseUtils.parseSAXSource(source, BusinessAppHdrV02.class, BusinessAppHdrV02._classes, params);
} else if (StringUtils.equals(BusinessAppHdrV03.NAMESPACE, namespace)) {
// parse BAH version 3
return (BusinessAppHdrV03)
MxParseUtils.parseSAXSource(source, BusinessAppHdrV03.class, BusinessAppHdrV03._classes, params);
} else {
// by default try to parse to BAH version 1
return (BusinessAppHdrV01) MxParseUtils.parseSAXSource(source, BusinessAppHdrV01.class, BusinessAppHdrV01._classes);
return (BusinessAppHdrV01)
MxParseUtils.parseSAXSource(source, BusinessAppHdrV01.class, BusinessAppHdrV01._classes, params);
}
}
......@@ -82,10 +110,10 @@ public class AppHdrParser {
}
private static String asXml(Element e) {
DOMImplementationLS lsImpl = (DOMImplementationLS) e.getOwnerDocument().getImplementation().getFeature("LS", "3.0");
DOMImplementationLS lsImpl =
(DOMImplementationLS) e.getOwnerDocument().getImplementation().getFeature("LS", "3.0");
LSSerializer serializer = lsImpl.createLSSerializer();
serializer.getDomConfig().setParameter("xml-declaration", false);
return serializer.writeToString(e);
}
}
......@@ -195,7 +195,8 @@ public class BusinessAppHdrV02 extends BusinessApplicationHeaderV02Impl implemen
marshaller.marshal(element, new XmlEventWriter(sw, prefix, includeXMLDeclaration, AppHdr.HEADER_LOCALNAME));
return sw.getBuffer().toString();
} catch (JAXBException e) {
} catch (Exception e) {
e.printStackTrace();
log.log(Level.SEVERE, "Error writing head.001.001.02 XML:" + e.getMessage());
}
return null;
......
package com.prowidesoftware.swift.model.mx;
import com.prowidesoftware.swift.model.mx.dic.Chrgs;
import com.prowidesoftware.swift.model.mx.dic.GroupHeader102;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* The ChargesPaymentNotification message is sent by the account servicing institution to the account owner to advise charges, interest or other adjustments to the owner's account. It provides details of charges which are previously unknown to the Receiver.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ChargesPaymentNotificationV01", propOrder = {
"grpHdr",
"chrgs"
})
public class ChargesPaymentNotificationV01 {
@XmlElement(name = "GrpHdr", required = true)
protected GroupHeader102 grpHdr;
@XmlElement(name = "Chrgs", required = true)
protected Chrgs chrgs;
/*@XmlElement(name = "SplmtryData")
protected List<SupplementaryData1> splmtryData;*/
/**
* Gets the value of the grpHdr property.
*
* @return
* possible object is
* {@link GroupHeader102 }
*
*/
public GroupHeader102 getGrpHdr() {
return grpHdr;
}
/**
* Sets the value of the grpHdr property.
*
* @param value
* allowed object is
* {@link GroupHeader102 }
*
*/
public ChargesPaymentNotificationV01 setGrpHdr(GroupHeader102 value) {
this.grpHdr = value;
return this;
}
public Chrgs getChrgs() {
return chrgs;
}
public ChargesPaymentNotificationV01 setChrgs(Chrgs chrgs) {
this.chrgs = chrgs;
return this;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
}
@Override
public boolean equals(Object that) {
return EqualsBuilder.reflectionEquals(this, that);
}
@Override
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}
}
/*
* Copyright 2006-2023 Prowide
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.prowidesoftware.swift.model.mx;
/**
* Escapes &amp;, &lt;, &gt;, quotes (in attribute) and everything above the US-ASCII code range.
* Similar to com.sun.xml.bind.marshaller.DumbEscapeHandler or apache.commons.text.StringEscapeUtils#escapeXml
*
* @since 9.1.7
*/
public class DefaultEscapeHandler implements EscapeHandler {
@Override
public String escape(char[] arr, boolean isAttribute) {
final StringBuilder sb = new StringBuilder(arr.length);
for (int i = 0; i < arr.length; i++) {
switch (arr[i]) {
case '&':
sb.append("&amp;");
break;
case '<':
sb.append("&lt;");
break;
case '>':
sb.append("&gt;");
break;
case '\"':
if (isAttribute) {
sb.append("&quot;");
} else {
sb.append('\"');
}
break;
default:
if (arr[i] > '\u007f') {
sb.append("&#");
sb.append(Integer.toString(arr[i]));
sb.append(';');
} else {
sb.append(arr[i]);
}
}
}
return sb.toString();
}
}
/*
* Copyright 2006-2023 Prowide
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.prowidesoftware.swift.model.mx;
/**
* Simple interface used by the XML event writer when serializing the XML element content
* @since 9.1.7
*/
public interface EscapeHandler {
/**
* @param arr the characters to escape
* @param isAttribute true if it is an attribute value
*/
String escape(char[] arr, boolean isAttribute);
}
package com.prowidesoftware.swift.model.mx;
import com.prowidesoftware.swift.model.mx.dic.DateAndDateTime2Choice;
import com.prowidesoftware.swift.model.mx.dic.DocumentFormat1Choice;
import com.prowidesoftware.swift.model.mx.dic.DocumentType1Choice;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* Provides information on a file that is being sent seperately to the message.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "FileData1", propOrder = {
"tp",
"id",
"isseDt",
"frmt",
"fileNm",
"ntwkRef",
"fileLctnElctrncAdr"
})
public class FileData1 {
@XmlElement(name = "Tp")
protected DocumentType1Choice tp;
@XmlElement(name = "Id", required = true)
protected String id;
@XmlElement(name = "IsseDt")
protected DateAndDateTime2Choice isseDt;
@XmlElement(name = "Frmt")
protected DocumentFormat1Choice frmt;
@XmlElement(name = "FileNm")
protected String fileNm;
@XmlElement(name = "NtwkRef")
protected String ntwkRef;
@XmlElement(name = "FileLctnElctrncAdr")
protected String fileLctnElctrncAdr;
/**
* Gets the value of the tp property.
*
* @return
* possible object is
* {@link DocumentType1Choice }
*
*/
public DocumentType1Choice getTp() {
return tp;
}
/**
* Sets the value of the tp property.
*
* @param value
* allowed object is
* {@link DocumentType1Choice }
*
*/
public FileData1 setTp(DocumentType1Choice value) {
this.tp = value;
return this;
}
/**
* Gets the value of the id property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getId() {
return id;
}
/**
* Sets the value of the id property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public FileData1 setId(String value) {
this.id = value;
return this;
}
/**
* Gets the value of the isseDt property.
*
* @return
* possible object is
* {@link DateAndDateTime2Choice }
*
*/
public DateAndDateTime2Choice getIsseDt() {
return isseDt;
}
/**
* Sets the value of the isseDt property.
*
* @param value
* allowed object is
* {@link DateAndDateTime2Choice }
*
*/
public FileData1 setIsseDt(DateAndDateTime2Choice value) {
this.isseDt = value;
return this;
}
/**
* Gets the value of the frmt property.
*
* @return
* possible object is
* {@link DocumentFormat1Choice }
*
*/
public DocumentFormat1Choice getFrmt() {
return frmt;
}
/**
* Sets the value of the frmt property.
*
* @param value
* allowed object is
* {@link DocumentFormat1Choice }
*
*/
public FileData1 setFrmt(DocumentFormat1Choice value) {
this.frmt = value;
return this;
}
/**
* Gets the value of the fileNm property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getFileNm() {
return fileNm;
}
/**
* Sets the value of the fileNm property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public FileData1 setFileNm(String value) {
this.fileNm = value;
return this;
}
/**
* Gets the value of the ntwkRef property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getNtwkRef() {
return ntwkRef;
}
/**
* Sets the value of the ntwkRef property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public FileData1 setNtwkRef(String value) {
this.ntwkRef = value;
return this;
}
/**
* Gets the value of the fileLctnElctrncAdr property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getFileLctnElctrncAdr() {
return fileLctnElctrncAdr;
}
/**
* Sets the value of the fileLctnElctrncAdr property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public FileData1 setFileLctnElctrncAdr(String value) {
this.fileLctnElctrncAdr = value;
return this;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
}
@Override
public boolean equals(Object that) {
return EqualsBuilder.reflectionEquals(this, that);
}
@Override
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}
}
package com.prowidesoftware.swift.model.mx;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import javax.xml.bind.annotation.*;
/**
* Specifies the type of an investigation.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "InvestigationType1Choice", propOrder = {
"cd",
"prtry"
})
public class InvestigationType1Choice {
@XmlElement(name = "Cd")
protected String cd;
@XmlElement(name = "Prtry")
protected String prtry;
/**
* Gets the value of the cd property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCd() {
return cd;
}
/**
* Sets the value of the cd property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public InvestigationType1Choice setCd(String value) {
this.cd = value;
return this;
}
/**
* Gets the value of the prtry property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPrtry() {
return prtry;
}
/**
* Sets the value of the prtry property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public InvestigationType1Choice setPrtry(String value) {
this.prtry = value;
return this;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
}
@Override
public boolean equals(Object that) {
return EqualsBuilder.reflectionEquals(this, that);
}
@Override
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}
}
package com.prowidesoftware.swift.model.mx;
import com.prowidesoftware.swift.model.MxSwiftMessage;
import com.prowidesoftware.swift.model.mx.dic.*;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import javax.xml.bind.annotation.*;
/**
* Class for camt.105.001.02 ISO 20022 message.
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Document", propOrder = {
"chrgsPmtNtfctn"
})
@XmlRootElement(name = "Document", namespace = "urn:iso:std:iso:20022:tech:xsd:camt.105.001.02")
public class MxCamt10500102
extends AbstractMX
{
@XmlElement(name = "ChrgsPmtNtfctn", required = true)
protected ChargesPaymentNotificationV02 chrgsPmtNtfctn;
public static final transient String BUSINESS_PROCESS = "camt";
public static final transient int FUNCTIONALITY = 105;
public static final transient int VARIANT = 1;
public static final transient int VERSION = 1;
@SuppressWarnings("rawtypes")
public static final transient Class[] _classes = new Class[] {AccountIdentification4Choice.class, AccountSchemeName1Choice.class, ActiveCurrencyAndAmount.class, AddressType2Code.class, AddressType3Choice.class, BranchAndFinancialInstitutionIdentification6 .class, BranchData3 .class, CashAccount40 .class, CashAccountType2Choice.class, ChargeType3Choice.class, ChargesPaymentNotificationV02 .class, ChargesRecord4 .class, ClearingSystemIdentification2Choice.class, ClearingSystemMemberIdentification2 .class, CreditDebitCode.class, DateAndDateTime2Choice.class, FinancialIdentificationSchemeName1Choice.class, FinancialInstitutionIdentification18 .class, GenericAccountIdentification1 .class, GenericFinancialIdentification1 .class, GenericIdentification3 .class, GenericIdentification30 .class, GroupHeader102 .class, InstructionForInstructedAgent1 .class, MxCamt10500102 .class, PostalAddress24 .class, ProprietaryReference1 .class, ProxyAccountIdentification1 .class, ProxyAccountType1Choice.class, SupplementaryData1 .class, SupplementaryDataEnvelope1 .class, TransactionReferences7 .class };
public static final transient String NAMESPACE = "urn:iso:std:iso:20022:tech:xsd:camt.105.001.02";
public MxCamt10500102() {
super();
}
/**
* Creates the MX object parsing the parameter String with the XML content
*
*/
public MxCamt10500102(final String xml) {
this();
MxCamt10500102 tmp = parse(xml);
chrgsPmtNtfctn = tmp.getChrgsPmtNtfctn();
}
/**
* Creates the MX object parsing the raw content from the parameter MxSwiftMessage
*
*/
public MxCamt10500102(final MxSwiftMessage mxSwiftMessage) {
this(mxSwiftMessage.message());
}
/**
* Gets the value of the chrgsPmtNtfctn property.
*
* @return
* possible object is
* {@link ChargesPaymentNotificationV02 }
*
*/
public ChargesPaymentNotificationV02 getChrgsPmtNtfctn() {
return chrgsPmtNtfctn;
}
/**
* Sets the value of the chrgsPmtNtfctn property.
*
* @param value
* allowed object is
* {@link ChargesPaymentNotificationV02 }
*
*/
public MxCamt10500102 setChrgsPmtNtfctn(ChargesPaymentNotificationV02 value) {
this.chrgsPmtNtfctn = value;
return this;
}
@Override
public String getBusinessProcess() {
return BUSINESS_PROCESS;
}
@Override
public int getFunctionality() {
return FUNCTIONALITY;
}
@Override
public int getVariant() {
return VARIANT;
}
@Override
public int getVersion() {
return VERSION;
}
/**
* Creates the MX object parsing the raw content from the parameter XML, using default unmarshalling options
*
*/
public static MxCamt10500102 parse(String xml) {
return ((MxCamt10500102) MxReadImpl.parse(MxCamt10500102.class, xml, _classes, new com.prowidesoftware.swift.model.mx.MxReadParams()));
}
/**MxReadParams.java
* Creates the MX object parsing the raw content from the parameter XML, using the provided unmarshalling options
* @since 9.2.6
*
*/
public static MxCamt10500102 parse(String xml, MxReadConfiguration conf) {
return ((MxCamt10500102) MxReadImpl.parse(MxCamt10500102.class, xml, _classes, new com.prowidesoftware.swift.model.mx.MxReadParams(conf)));
}
/**
* Creates the MX object parsing the raw content from the parameter XML with injected read implementation
* @since 9.0.1
*
* @param parserImpl an MX unmarshall implementation
*/
public static MxCamt10500102 parse(String xml, MxRead parserImpl) {
return ((MxCamt10500102) parserImpl.read(MxCamt10500102 .class, xml, _classes));
}
@Override
public String getNamespace() {
return NAMESPACE;
}
@Override
@SuppressWarnings("rawtypes")
public Class[] getClasses() {
return _classes;
}
/**
* Creates an MxCamt10500102 messages from its JSON representation.
* <p>
* For generic conversion of JSON into the corresponding MX instance
* see {@link AbstractMX#fromJson(String)}
*
* @since 7.10.2
*
* @param json a JSON representation of an MxCamt10500102 message
* @return
* a new instance of MxCamt10500102
*/
public static final MxCamt10500102 fromJson(String json) {
return AbstractMX.fromJson(json, MxCamt10500102 .class);
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
}
@Override
public boolean equals(Object that) {
return EqualsBuilder.reflectionEquals(this, that);
}
@Override
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}
}
package com.prowidesoftware.swift.model.mx;
import com.prowidesoftware.swift.model.MxSwiftMessage;
import com.prowidesoftware.swift.model.mx.dic.*;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import javax.xml.bind.annotation.*;
/**
* Class for camt.106.001.02 ISO 20022 message.
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Document", propOrder = {
"chrgsPmtReq"
})
@XmlRootElement(name = "Document", namespace = "urn:iso:std:iso:20022:tech:xsd:camt.106.001.02")
public class MxCamt10600102
extends com.prowidesoftware.swift.model.mx.AbstractMX
{
@XmlElement(name = "ChrgsPmtReq", required = true)
protected ChargesPaymentRequestV02 chrgsPmtReq;
public static final transient String BUSINESS_PROCESS = "camt";
public static final transient int FUNCTIONALITY = 106;
public static final transient int VARIANT = 1;
public static final transient int VERSION = 2;
@SuppressWarnings("rawtypes")
public static final transient Class[] _classes = new Class[] {AccountIdentification4Choice.class, AccountSchemeName1Choice.class, ActiveCurrencyAndAmount.class, AddressType2Code.class, AddressType3Choice.class, BranchAndFinancialInstitutionIdentification8 .class, BranchData5 .class, CashAccount40 .class, CashAccountType2Choice.class, ChargeType3Choice.class, Charges3Choice.class, ChargesBreakdown1 .class, ChargesPaymentRequestV02 .class, ChargesPerTransaction3 .class, ChargesPerTransactionRecord3 .class, ChargesPerType3 .class, ChargesPerTypeRecord3 .class, ChargesRecord9 .class, ClearingSystemIdentification2Choice.class, ClearingSystemMemberIdentification2 .class, CreditDebitCode.class, DateAndDateTime2Choice.class, FinancialIdentificationSchemeName1Choice.class, FinancialInstitutionIdentification23 .class, GenericAccountIdentification1 .class, GenericFinancialIdentification1 .class, GenericIdentification3 .class, GenericIdentification30 .class, GroupHeader115 .class, InstructionForInstructedAgent1 .class, MxCamt10600102 .class, PostalAddress27 .class, ProprietaryReference1 .class, ProxyAccountIdentification1 .class, ProxyAccountType1Choice.class, SupplementaryData1 .class, SupplementaryDataEnvelope1 .class, TotalCharges7 .class, TotalCharges8 .class, TransactionReferences7 .class };
public static final transient String NAMESPACE = "urn:iso:std:iso:20022:tech:xsd:camt.106.001.02";
public MxCamt10600102() {
super();
}
/**
* Creates the MX object parsing the parameter String with the XML content
*
*/
public MxCamt10600102(final String xml) {
this();
MxCamt10600102 tmp = parse(xml);
chrgsPmtReq = tmp.getChrgsPmtReq();
}
/**
* Creates the MX object parsing the raw content from the parameter MxSwiftMessage
*
*/
public MxCamt10600102(final MxSwiftMessage mxSwiftMessage) {
this(mxSwiftMessage.message());
}
/**
* Gets the value of the chrgsPmtReq property.
*
* @return
* possible object is
* {@link ChargesPaymentRequestV02 }
*
*/
public ChargesPaymentRequestV02 getChrgsPmtReq() {
return chrgsPmtReq;
}
/**
* Sets the value of the chrgsPmtReq property.
*
* @param value
* allowed object is
* {@link ChargesPaymentRequestV02 }
*
*/
public MxCamt10600102 setChrgsPmtReq(ChargesPaymentRequestV02 value) {
this.chrgsPmtReq = value;
return this;
}
@Override
public String getBusinessProcess() {
return BUSINESS_PROCESS;
}
@Override
public int getFunctionality() {
return FUNCTIONALITY;
}
@Override
public int getVariant() {
return VARIANT;
}
@Override
public int getVersion() {
return VERSION;
}
/**
* Creates the MX object parsing the raw content from the parameter XML, using default unmarshalling options
*
*/
public static MxCamt10600102 parse(String xml) {
return ((MxCamt10600102) com.prowidesoftware.swift.model.mx.MxReadImpl.parse(MxCamt10600102 .class, xml, _classes, new com.prowidesoftware.swift.model.mx.MxReadParams()));
}
/**
* Creates the MX object parsing the raw content from the parameter XML, using the provided unmarshalling options
* @since 9.2.6
*
*/
public static MxCamt10600102 parse(String xml, MxReadConfiguration conf) {
return ((MxCamt10600102) com.prowidesoftware.swift.model.mx.MxReadImpl.parse(MxCamt10600102 .class, xml, _classes, new com.prowidesoftware.swift.model.mx.MxReadParams(conf)));
}
/**
* Creates the MX object parsing the raw content from the parameter XML with injected read implementation
* @since 9.0.1
*
* @param parserImpl an MX unmarshall implementation
*/
public static MxCamt10600102 parse(String xml, MxRead parserImpl) {
return ((MxCamt10600102) parserImpl.read(MxCamt10600102 .class, xml, _classes));
}
@Override
public String getNamespace() {
return NAMESPACE;
}
@Override
@SuppressWarnings("rawtypes")
public Class[] getClasses() {
return _classes;
}
/**
* Creates an MxCamt10600102 messages from its JSON representation.
* <p>
* For generic conversion of JSON into the corresponding MX instance
* see {@link AbstractMX#fromJson(String)}
*
* @since 7.10.2
*
* @param json a JSON representation of an MxCamt10600102 message
* @return
* a new instance of MxCamt10600102
*/
public static final MxCamt10600102 fromJson(String json) {
return com.prowidesoftware.swift.model.mx.AbstractMX.fromJson(json, MxCamt10600102 .class);
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
}
@Override
public boolean equals(Object that) {
return EqualsBuilder.reflectionEquals(this, that);
}
@Override
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}
}
\ No newline at end of file
package com.prowidesoftware.swift.model.mx;
import com.prowidesoftware.swift.model.mx.dic.*;
import com.prowidesoftware.swift.model.MxSwiftMessage;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import javax.xml.bind.annotation.*;
/**
* Class for camt.107.001.01 ISO 20022 message.
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Document", propOrder = {
"chqPresntmntNtfctn"
})
@XmlRootElement(name = "Document", namespace = "urn:iso:std:iso:20022:tech:xsd:camt.107.001.01")
public class MxCamt10700101
extends AbstractMX
{
@XmlElement(name = "ChqPresntmntNtfctn", required = true)
protected ChequePresentmentNotificationV01 chqPresntmntNtfctn;
public static final transient String BUSINESS_PROCESS = "camt";
public static final transient int FUNCTIONALITY = 107;
public static final transient int VARIANT = 1;
public static final transient int VERSION = 1;
@SuppressWarnings("rawtypes")
public static final transient Class[] _classes = new Class[] {AccountIdentification4Choice.class, AccountSchemeName1Choice.class, ActiveCurrencyAndAmount.class, AddressType2Code.class, AddressType3Choice.class, BranchAndFinancialInstitutionIdentification6 .class, BranchData3 .class, CashAccount40 .class, CashAccountType2Choice.class, Cheque13 .class, ChequePresentmentNotificationV01 .class, ClearingSystemIdentification2Choice.class, ClearingSystemMemberIdentification2 .class, Contact4 .class, DateAndDateTime2Choice.class, DateAndPlaceOfBirth1 .class, FinancialIdentificationSchemeName1Choice.class, FinancialInstitutionIdentification18 .class, GenericAccountIdentification1 .class, GenericFinancialIdentification1 .class, GenericIdentification30 .class, GenericOrganisationIdentification1 .class, GenericPersonIdentification1 .class, GroupHeader103 .class, InstructionForChequeAgent1 .class, MxCamt10700101 .class, NamePrefix2Code.class, OrganisationIdentification29 .class, OrganisationIdentificationSchemeName1Choice.class, OtherContact1 .class, Party38Choice.class, PartyIdentification135 .class, PersonIdentification13 .class, PersonIdentificationSchemeName1Choice.class, PostalAddress24 .class, PreferredContactMethod1Code.class, ProxyAccountIdentification1 .class, ProxyAccountType1Choice.class, SupplementaryData1 .class, SupplementaryDataEnvelope1 .class };
public static final transient String NAMESPACE = "urn:iso:std:iso:20022:tech:xsd:camt.107.001.01";
public MxCamt10700101() {
super();
}
/**
* Creates the MX object parsing the parameter String with the XML content
*
*/
public MxCamt10700101(final String xml) {
this();
MxCamt10700101 tmp = parse(xml);
chqPresntmntNtfctn = tmp.getChqPresntmntNtfctn();
}
/**
* Creates the MX object parsing the raw content from the parameter MxSwiftMessage
*
*/
public MxCamt10700101(final MxSwiftMessage mxSwiftMessage) {
this(mxSwiftMessage.message());
}
/**
* Gets the value of the chqPresntmntNtfctn property.
*
* @return
* possible object is
* {@link ChequePresentmentNotificationV01 }
*
*/
public ChequePresentmentNotificationV01 getChqPresntmntNtfctn() {
return chqPresntmntNtfctn;
}
/**
* Sets the value of the chqPresntmntNtfctn property.
*
* @param value
* allowed object is
* {@link ChequePresentmentNotificationV01 }
*
*/
public MxCamt10700101 setChqPresntmntNtfctn(ChequePresentmentNotificationV01 value) {
this.chqPresntmntNtfctn = value;
return this;
}
@Override
public String getBusinessProcess() {
return BUSINESS_PROCESS;
}
@Override
public int getFunctionality() {
return FUNCTIONALITY;
}
@Override
public int getVariant() {
return VARIANT;
}
@Override
public int getVersion() {
return VERSION;
}
/**
* Creates the MX object parsing the raw content from the parameter XML, using default unmarshalling options
*
*/
public static MxCamt10700101 parse(String xml) {
return ((MxCamt10700101) MxReadImpl.parse(MxCamt10700101 .class, xml, _classes, new MxReadParams()));
}
/**
* Creates the MX object parsing the raw content from the parameter XML, using the provided unmarshalling options
* @since 9.2.6
*
*/
public static MxCamt10700101 parse(String xml, MxReadConfiguration conf) {
return ((MxCamt10700101) MxReadImpl.parse(MxCamt10700101 .class, xml, _classes, new MxReadParams(conf)));
}
/**
* Creates the MX object parsing the raw content from the parameter XML with injected read implementation
* @since 9.0.1
*
* @param parserImpl an MX unmarshall implementation
*/
public static MxCamt10700101 parse(String xml, MxRead parserImpl) {
return ((MxCamt10700101) parserImpl.read(MxCamt10700101 .class, xml, _classes));
}
@Override
public String getNamespace() {
return NAMESPACE;
}
@Override
@SuppressWarnings("rawtypes")
public Class[] getClasses() {
return _classes;
}
/**
* Creates an MxCamt10700101 messages from its JSON representation.
* <p>
* For generic conversion of JSON into the corresponding MX instance
* see {@link AbstractMX#fromJson(String)}
*
* @since 7.10.2
*
* @param json a JSON representation of an MxCamt10700101 message
* @return
* a new instance of MxCamt10700101
*/
public static final MxCamt10700101 fromJson(String json) {
return AbstractMX.fromJson(json, MxCamt10700101 .class);
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
}
@Override
public boolean equals(Object that) {
return EqualsBuilder.reflectionEquals(this, that);
}
@Override
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}
}
\ No newline at end of file
package com.prowidesoftware.swift.model.mx;
import com.prowidesoftware.swift.model.mx.dic.*;
import com.prowidesoftware.swift.model.MxSwiftMessage;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import javax.xml.bind.annotation.*;
/**
* Class for camt.108.001.01 ISO 20022 message.
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Document", propOrder = {
"chqCxlOrStopReq"
})
@XmlRootElement(name = "Document", namespace = "urn:iso:std:iso:20022:tech:xsd:camt.108.001.01")
public class MxCamt10800101
extends AbstractMX
{
@XmlElement(name = "ChqCxlOrStopReq", required = true)
protected ChequeCancellationOrStopRequestV01 chqCxlOrStopReq;
public static final transient String BUSINESS_PROCESS = "camt";
public static final transient int FUNCTIONALITY = 108;
public static final transient int VARIANT = 1;
public static final transient int VERSION = 1;
@SuppressWarnings("rawtypes")
public static final transient Class[] _classes = new Class[] {AccountIdentification4Choice.class, AccountSchemeName1Choice.class, ActiveCurrencyAndAmount.class, AddressType2Code.class, AddressType3Choice.class, BranchAndFinancialInstitutionIdentification6 .class, BranchData3 .class, CashAccount40 .class, CashAccountType2Choice.class, Cheque15 .class, ChequeCancellationOrStopRequestV01 .class, ChequeCancellationReason1 .class, ChequeCancellationReason1Choice.class, ChequePartyRole1Code.class, ClearingSystemIdentification2Choice.class, ClearingSystemMemberIdentification2 .class, Contact4 .class, DateAndDateTime2Choice.class, DateAndPlaceOfBirth1 .class, FinancialIdentificationSchemeName1Choice.class, FinancialInstitutionIdentification18 .class, GenericAccountIdentification1 .class, GenericFinancialIdentification1 .class, GenericIdentification30 .class, GenericOrganisationIdentification1 .class, GenericPersonIdentification1 .class, GroupHeader103 .class, MxCamt10800101 .class, NamePrefix2Code.class, OrganisationIdentification29 .class, OrganisationIdentificationSchemeName1Choice.class, OtherContact1 .class, Party38Choice.class, PartyIdentification135 .class, PersonIdentification13 .class, PersonIdentificationSchemeName1Choice.class, PostalAddress24 .class, PreferredContactMethod1Code.class, ProxyAccountIdentification1 .class, ProxyAccountType1Choice.class, SupplementaryData1 .class, SupplementaryDataEnvelope1 .class };
public static final transient String NAMESPACE = "urn:iso:std:iso:20022:tech:xsd:camt.108.001.01";
public MxCamt10800101() {
super();
}
/**
* Creates the MX object parsing the parameter String with the XML content
*
*/
public MxCamt10800101(final String xml) {
this();
MxCamt10800101 tmp = parse(xml);
chqCxlOrStopReq = tmp.getChqCxlOrStopReq();
}
/**
* Creates the MX object parsing the raw content from the parameter MxSwiftMessage
*
*/
public MxCamt10800101(final MxSwiftMessage mxSwiftMessage) {
this(mxSwiftMessage.message());
}
/**
* Gets the value of the chqCxlOrStopReq property.
*
* @return
* possible object is
* {@link ChequeCancellationOrStopRequestV01 }
*
*/
public ChequeCancellationOrStopRequestV01 getChqCxlOrStopReq() {
return chqCxlOrStopReq;
}
/**
* Sets the value of the chqCxlOrStopReq property.
*
* @param value
* allowed object is
* {@link ChequeCancellationOrStopRequestV01 }
*
*/
public MxCamt10800101 setChqCxlOrStopReq(ChequeCancellationOrStopRequestV01 value) {
this.chqCxlOrStopReq = value;
return this;
}
@Override
public String getBusinessProcess() {
return BUSINESS_PROCESS;
}
@Override
public int getFunctionality() {
return FUNCTIONALITY;
}
@Override
public int getVariant() {
return VARIANT;
}
@Override
public int getVersion() {
return VERSION;
}
/**
* Creates the MX object parsing the raw content from the parameter XML, using default unmarshalling options
*
*/
public static MxCamt10800101 parse(String xml) {
return ((MxCamt10800101) MxReadImpl.parse(MxCamt10800101 .class, xml, _classes, new MxReadParams()));
}
/**
* Creates the MX object parsing the raw content from the parameter XML, using the provided unmarshalling options
* @since 9.2.6
*
*/
public static MxCamt10800101 parse(String xml, MxReadConfiguration conf) {
return ((MxCamt10800101) MxReadImpl.parse(MxCamt10800101 .class, xml, _classes, new MxReadParams(conf)));
}
/**
* Creates the MX object parsing the raw content from the parameter XML with injected read implementation
* @since 9.0.1
*
* @param parserImpl an MX unmarshall implementation
*/
public static MxCamt10800101 parse(String xml, MxRead parserImpl) {
return ((MxCamt10800101) parserImpl.read(MxCamt10800101 .class, xml, _classes));
}
@Override
public String getNamespace() {
return NAMESPACE;
}
@Override
@SuppressWarnings("rawtypes")
public Class[] getClasses() {
return _classes;
}
/**
* Creates an MxCamt10800101 messages from its JSON representation.
* <p>
* For generic conversion of JSON into the corresponding MX instance
* see {@link AbstractMX#fromJson(String)}
*
* @since 7.10.2
*
* @param json a JSON representation of an MxCamt10800101 message
* @return
* a new instance of MxCamt10800101
*/
public static final MxCamt10800101 fromJson(String json) {
return AbstractMX.fromJson(json, MxCamt10800101 .class);
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
}
@Override
public boolean equals(Object that) {
return EqualsBuilder.reflectionEquals(this, that);
}
@Override
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}
}
\ No newline at end of file
package com.prowidesoftware.swift.model.mx;
import com.prowidesoftware.swift.model.mx.dic.*;
import com.prowidesoftware.swift.model.MxSwiftMessage;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import javax.xml.bind.annotation.*;
/**
* Class for camt.109.001.01 ISO 20022 message.
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Document", propOrder = {
"chqCxlOrStopRpt"
})
@XmlRootElement(name = "Document", namespace = "urn:iso:std:iso:20022:tech:xsd:camt.109.001.01")
public class MxCamt10900101
extends AbstractMX
{
@XmlElement(name = "ChqCxlOrStopRpt", required = true)
protected ChequeCancellationOrStopReportV01 chqCxlOrStopRpt;
public static final transient String BUSINESS_PROCESS = "camt";
public static final transient int FUNCTIONALITY = 109;
public static final transient int VARIANT = 1;
public static final transient int VERSION = 1;
@SuppressWarnings("rawtypes")
public static final transient Class[] _classes = new Class[] {AccountIdentification4Choice.class, AccountSchemeName1Choice.class, ActiveCurrencyAndAmount.class, AddressType2Code.class, AddressType3Choice.class, BranchAndFinancialInstitutionIdentification6 .class, BranchData3 .class, CashAccount40 .class, CashAccountType2Choice.class, Cheque14 .class, ChequeCancellationOrStopReportV01 .class, ChequeCancellationStatus1 .class, ChequeCancellationStatus1Choice.class, ChequePartyRole1Code.class, ClearingSystemIdentification2Choice.class, ClearingSystemMemberIdentification2 .class, Contact4 .class, DateAndDateTime2Choice.class, DateAndPlaceOfBirth1 .class, FinancialIdentificationSchemeName1Choice.class, FinancialInstitutionIdentification18 .class, GenericAccountIdentification1 .class, GenericFinancialIdentification1 .class, GenericIdentification30 .class, GenericOrganisationIdentification1 .class, GenericPersonIdentification1 .class, GroupHeader103 .class, MxCamt10900101 .class, NamePrefix2Code.class, OrganisationIdentification29 .class, OrganisationIdentificationSchemeName1Choice.class, OtherContact1 .class, Party38Choice.class, PartyIdentification135 .class, PersonIdentification13 .class, PersonIdentificationSchemeName1Choice.class, PostalAddress24 .class, PreferredContactMethod1Code.class, ProxyAccountIdentification1 .class, ProxyAccountType1Choice.class, SupplementaryData1 .class, SupplementaryDataEnvelope1 .class };
public static final transient String NAMESPACE = "urn:iso:std:iso:20022:tech:xsd:camt.109.001.01";
public MxCamt10900101() {
super();
}
/**
* Creates the MX object parsing the parameter String with the XML content
*
*/
public MxCamt10900101(final String xml) {
this();
MxCamt10900101 tmp = parse(xml);
chqCxlOrStopRpt = tmp.getChqCxlOrStopRpt();
}
/**
* Creates the MX object parsing the raw content from the parameter MxSwiftMessage
*
*/
public MxCamt10900101(final MxSwiftMessage mxSwiftMessage) {
this(mxSwiftMessage.message());
}
/**
* Gets the value of the chqCxlOrStopRpt property.
*
* @return
* possible object is
* {@link ChequeCancellationOrStopReportV01 }
*
*/
public ChequeCancellationOrStopReportV01 getChqCxlOrStopRpt() {
return chqCxlOrStopRpt;
}
/**
* Sets the value of the chqCxlOrStopRpt property.
*
* @param value
* allowed object is
* {@link ChequeCancellationOrStopReportV01 }
*
*/
public MxCamt10900101 setChqCxlOrStopRpt(ChequeCancellationOrStopReportV01 value) {
this.chqCxlOrStopRpt = value;
return this;
}
@Override
public String getBusinessProcess() {
return BUSINESS_PROCESS;
}
@Override
public int getFunctionality() {
return FUNCTIONALITY;
}
@Override
public int getVariant() {
return VARIANT;
}
@Override
public int getVersion() {
return VERSION;
}
/**
* Creates the MX object parsing the raw content from the parameter XML, using default unmarshalling options
*
*/
public static MxCamt10900101 parse(String xml) {
return ((MxCamt10900101) MxReadImpl.parse(MxCamt10900101 .class, xml, _classes, new MxReadParams()));
}
/**
* Creates the MX object parsing the raw content from the parameter XML, using the provided unmarshalling options
* @since 9.2.6
*
*/
public static MxCamt10900101 parse(String xml, MxReadConfiguration conf) {
return ((MxCamt10900101) MxReadImpl.parse(MxCamt10900101 .class, xml, _classes, new MxReadParams(conf)));
}
/**
* Creates the MX object parsing the raw content from the parameter XML with injected read implementation
* @since 9.0.1
*
* @param parserImpl an MX unmarshall implementation
*/
public static MxCamt10900101 parse(String xml, MxRead parserImpl) {
return ((MxCamt10900101) parserImpl.read(MxCamt10900101 .class, xml, _classes));
}
@Override
public String getNamespace() {
return NAMESPACE;
}
@Override
@SuppressWarnings("rawtypes")
public Class[] getClasses() {
return _classes;
}
/**
* Creates an MxCamt10900101 messages from its JSON representation.
* <p>
* For generic conversion of JSON into the corresponding MX instance
* see {@link AbstractMX#fromJson(String)}
*
* @since 7.10.2
*
* @param json a JSON representation of an MxCamt10900101 message
* @return
* a new instance of MxCamt10900101
*/
public static final MxCamt10900101 fromJson(String json) {
return AbstractMX.fromJson(json, MxCamt10900101 .class);
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
}
@Override
public boolean equals(Object that) {
return EqualsBuilder.reflectionEquals(this, that);
}
@Override
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}
}
\ No newline at end of file
package com.prowidesoftware.swift.model.mx;
import com.prowidesoftware.swift.model.MxSwiftMessage;
import com.prowidesoftware.swift.model.mx.dic.*;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import javax.xml.bind.annotation.*;
/**
* Class for camt.109.001.02 ISO 20022 message.
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Document", propOrder = {
"chqCxlOrStopRpt"
})
@XmlRootElement(name = "Document", namespace = "urn:iso:std:iso:20022:tech:xsd:camt.109.001.02")
public class MxCamt10900102
extends AbstractMX
{
@XmlElement(name = "ChqCxlOrStopRpt", required = true)
protected ChequeCancellationOrStopReportV02 chqCxlOrStopRpt;
public static final transient String BUSINESS_PROCESS = "camt";
public static final transient int FUNCTIONALITY = 109;
public static final transient int VARIANT = 1;
public static final transient int VERSION = 2;
@SuppressWarnings("rawtypes")
public static final transient Class[] _classes = new Class[] {AccountIdentification4Choice.class, AccountSchemeName1Choice.class, ActiveCurrencyAndAmount.class, AddressType2Code.class, AddressType3Choice.class, BranchAndFinancialInstitutionIdentification8 .class, BranchData5 .class, CashAccount40 .class, CashAccountType2Choice.class, Cheque18 .class, ChequeCancellationOrStopReportV02 .class, ChequeCancellationStatus1 .class, ChequeCancellationStatus1Choice.class, ChequePartyRole1Code.class, ClearingSystemIdentification2Choice.class, ClearingSystemMemberIdentification2 .class, Contact13 .class, DateAndDateTime2Choice.class, DateAndPlaceOfBirth1 .class, FinancialIdentificationSchemeName1Choice.class, FinancialInstitutionIdentification23 .class, GenericAccountIdentification1 .class, GenericFinancialIdentification1 .class, GenericIdentification30 .class, GenericOrganisationIdentification3 .class, GenericPersonIdentification2 .class, GroupHeader103 .class, MxCamt10900102 .class, NamePrefix2Code.class, OrganisationIdentification39 .class, OrganisationIdentificationSchemeName1Choice.class, OtherContact1 .class, Party52Choice.class, PartyIdentification272 .class, PersonIdentification18 .class, PersonIdentificationSchemeName1Choice.class, PostalAddress27 .class, PreferredContactMethod2Code.class, ProxyAccountIdentification1 .class, ProxyAccountType1Choice.class, SupplementaryData1 .class, SupplementaryDataEnvelope1 .class };
public static final transient String NAMESPACE = "urn:iso:std:iso:20022:tech:xsd:camt.109.001.02";
public MxCamt10900102() {
super();
}
/**
* Creates the MX object parsing the parameter String with the XML content
*
*/
public MxCamt10900102(final String xml) {
this();
MxCamt10900102 tmp = parse(xml);
chqCxlOrStopRpt = tmp.getChqCxlOrStopRpt();
}
/**
* Creates the MX object parsing the raw content from the parameter MxSwiftMessage
*
*/
public MxCamt10900102(final MxSwiftMessage mxSwiftMessage) {
this(mxSwiftMessage.message());
}
/**
* Gets the value of the chqCxlOrStopRpt property.
*
* @return
* possible object is
* {@link ChequeCancellationOrStopReportV02 }
*
*/
public ChequeCancellationOrStopReportV02 getChqCxlOrStopRpt() {
return chqCxlOrStopRpt;
}
/**
* Sets the value of the chqCxlOrStopRpt property.
*
* @param value
* allowed object is
* {@link ChequeCancellationOrStopReportV02 }
*
*/
public MxCamt10900102 setChqCxlOrStopRpt(ChequeCancellationOrStopReportV02 value) {
this.chqCxlOrStopRpt = value;
return this;
}
@Override
public String getBusinessProcess() {
return BUSINESS_PROCESS;
}
@Override
public int getFunctionality() {
return FUNCTIONALITY;
}
@Override
public int getVariant() {
return VARIANT;
}
@Override
public int getVersion() {
return VERSION;
}
/**
* Creates the MX object parsing the raw content from the parameter XML, using default unmarshalling options
*
*/
public static MxCamt10900102 parse(String xml) {
return ((MxCamt10900102) MxReadImpl.parse(MxCamt10900102 .class, xml, _classes, new MxReadParams()));
}
/**
* Creates the MX object parsing the raw content from the parameter XML, using the provided unmarshalling options
* @since 9.2.6
*
*/
public static MxCamt10900102 parse(String xml, MxReadConfiguration conf) {
return ((MxCamt10900102) MxReadImpl.parse(MxCamt10900102 .class, xml, _classes, new MxReadParams(conf)));
}
/**
* Creates the MX object parsing the raw content from the parameter XML with injected read implementation
* @since 9.0.1
*
* @param parserImpl an MX unmarshall implementation
*/
public static MxCamt10900102 parse(String xml, MxRead parserImpl) {
return ((MxCamt10900102) parserImpl.read(MxCamt10900102 .class, xml, _classes));
}
@Override
public String getNamespace() {
return NAMESPACE;
}
@Override
@SuppressWarnings("rawtypes")
public Class[] getClasses() {
return _classes;
}
/**
* Creates an MxCamt10900102 messages from its JSON representation.
* <p>
* For generic conversion of JSON into the corresponding MX instance
* see {@link AbstractMX#fromJson(String)}
*
* @since 7.10.2
*
* @param json a JSON representation of an MxCamt10900102 message
* @return
* a new instance of MxCamt10900102
*/
public static final MxCamt10900102 fromJson(String json) {
return AbstractMX.fromJson(json, MxCamt10900102 .class);
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
}
@Override
public boolean equals(Object that) {
return EqualsBuilder.reflectionEquals(this, that);
}
@Override
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}
}
package com.prowidesoftware.swift.model.mx;
import com.prowidesoftware.swift.model.MxSwiftMessage;
import com.prowidesoftware.swift.model.mx.dic.*;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import javax.xml.bind.annotation.*;
/**
* Class for camt.110.001.01 ISO 20022 message.
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Document", propOrder = {
"invstgtnReq"
})
@XmlRootElement(name = "Document", namespace = "urn:iso:std:iso:20022:tech:xsd:camt.110.001.01")
public class MxCamt11000101
extends AbstractMX
{
@XmlElement(name = "InvstgtnReq", required = true)
protected InvestigationRequestV01 invstgtnReq;
public static final transient String BUSINESS_PROCESS = "camt";
public static final transient int FUNCTIONALITY = 110;
public static final transient int VARIANT = 1;
public static final transient int VERSION = 1;
@SuppressWarnings("rawtypes")
public static final transient Class[] _classes = new Class[] {AccountIdentification4Choice.class, AccountSchemeName1Choice.class, ActiveCurrencyAndAmount.class, ActiveOrHistoricCurrencyAndAmount.class, AdditionalRequestData1Choice.class, AddressType2Code.class, AddressType3Choice.class, AdjustmentRequest1 .class, AmendmentInformationDetails14 .class, AmountType4Choice.class, BranchAndFinancialInstitutionIdentification6 .class, BranchData3 .class, CancellationReason33Choice.class, CashAccount40 .class, CashAccountType2Choice.class, CategoryPurpose1Choice.class, ClearingChannel2Code.class, ClearingSystemIdentification2Choice.class, ClearingSystemIdentification3Choice.class, ClearingSystemMemberIdentification2 .class, CompensationRequest1 .class, Contact4 .class, CreditDebitCode.class, CreditTransferMandateData1 .class, CreditorReferenceInformation2 .class, CreditorReferenceType1Choice.class, CreditorReferenceType2 .class, DateAndDateTime2Choice.class, DateAndPlaceOfBirth1 .class, DatePeriod2 .class, DatePeriod5 .class, DebitAuthorisation3 .class, DiscountAmountAndType1 .class, DiscountAmountType1Choice.class, Document12 .class, DocumentAdjustment1 .class, DocumentFormat1Choice.class, DocumentLineIdentification1 .class, DocumentLineInformation1 .class, DocumentLineType1 .class, DocumentLineType1Choice.class, DocumentType1Choice.class, DocumentType3Code.class, DocumentType6Code.class, EquivalentAmount2 .class, FileData1 .class, FinancialIdentificationSchemeName1Choice.class, FinancialInstitutionIdentification18 .class, Frequency36Choice.class, Frequency6Code.class, FrequencyAndMoment1 .class, FrequencyPeriod1 .class, Garnishment3 .class, GarnishmentType1 .class, GarnishmentType1Choice.class, GenericAccountIdentification1 .class, GenericFinancialIdentification1 .class, GenericIdentification1 .class, GenericIdentification30 .class, GenericOrganisationIdentification1 .class, GenericPersonIdentification1 .class, InvestigationActionReason1 .class, InvestigationActionReason1Choice.class, InvestigationLocationData1 .class, InvestigationLocationMethod1Code.class, InvestigationReason1Choice.class, InvestigationReason2 .class, InvestigationReasonSubType1Choice.class, InvestigationRequest2 .class, InvestigationRequestAction1 .class, InvestigationRequestAction1Choice.class, InvestigationRequestV01 .class, InvestigationServiceLevel1Choice.class, InvestigationSubType1Choice.class, InvestigationType1Choice.class, LocalInstrument2Choice.class, MandateClassification1Choice.class, MandateClassification1Code.class, MandateRelatedData2Choice.class, MandateRelatedInformation15 .class, MandateSetupReason1Choice.class, MandateTypeInformation2 .class, MxCamt11000101 .class, NameAndAddress16 .class, NamePrefix2Code.class, OrganisationIdentification29 .class, OrganisationIdentificationSchemeName1Choice.class, OriginalGroupInformation29 .class, OriginalTransactionReference35 .class, OtherContact1 .class, Party38Choice.class, Party40Choice.class, PartyAndSignature3 .class, PartyIdentification135 .class, PaymentMethod4Code.class, PaymentTypeInformation27 .class, PersonIdentification13 .class, PersonIdentificationSchemeName1Choice.class, PostalAddress24 .class, PreferredContactMethod1Code.class, Priority2Code.class, ProxyAccountIdentification1 .class, ProxyAccountType1Choice.class, Purpose2Choice.class, ReferredDocumentInformation7 .class, ReferredDocumentType3Choice.class, ReferredDocumentType4 .class, RelatedInvestigationData1 .class, RemittanceAmount2 .class, RemittanceAmount3 .class, RemittanceInformation21 .class, SequenceType3Code.class, ServiceLevel8Choice.class, SettlementInstruction11 .class, SettlementMethod1Code.class, SkipPayload.class, StructuredRemittanceInformation17 .class, SupplementaryData1 .class, SupplementaryDataEnvelope1 .class, TaxAmount3 .class, TaxAmountAndType1 .class, TaxAmountType1Choice.class, TaxAuthorisation1 .class, TaxData1 .class, TaxParty1 .class, TaxParty2 .class, TaxPeriod3 .class, TaxRecord3 .class, TaxRecordDetails3 .class, TaxRecordPeriod1Code.class, UnderlyingData2Choice.class, UnderlyingGroupInformation1 .class, UnderlyingInvestigationInstrument1Choice.class, UnderlyingPaymentInstruction8 .class, UnderlyingPaymentTransaction7 .class, UnderlyingStatementEntry5 .class };
public static final transient String NAMESPACE = "urn:iso:std:iso:20022:tech:xsd:camt.110.001.01";
public MxCamt11000101() {
super();
}
/**
* Creates the MX object parsing the parameter String with the XML content
*
*/
public MxCamt11000101(final String xml) {
this();
MxCamt11000101 tmp = parse(xml);
invstgtnReq = tmp.getInvstgtnReq();
}
/**
* Creates the MX object parsing the raw content from the parameter MxSwiftMessage
*
*/
public MxCamt11000101(final MxSwiftMessage mxSwiftMessage) {
this(mxSwiftMessage.message());
}
/**
* Gets the value of the invstgtnReq property.
*
* @return
* possible object is
* {@link InvestigationRequestV01 }
*
*/
public InvestigationRequestV01 getInvstgtnReq() {
return invstgtnReq;
}
/**
* Sets the value of the invstgtnReq property.
*
* @param value
* allowed object is
* {@link InvestigationRequestV01 }
*
*/
public MxCamt11000101 setInvstgtnReq(InvestigationRequestV01 value) {
this.invstgtnReq = value;
return this;
}
@Override
public String getBusinessProcess() {
return BUSINESS_PROCESS;
}
@Override
public int getFunctionality() {
return FUNCTIONALITY;
}
@Override
public int getVariant() {
return VARIANT;
}
@Override
public int getVersion() {
return VERSION;
}
/**
* Creates the MX object parsing the raw content from the parameter XML, using default unmarshalling options
*
*/
public static MxCamt11000101 parse(String xml) {
return ((MxCamt11000101) MxReadImpl.parse(MxCamt11000101 .class, xml, _classes, new MxReadParams()));
}
/**
* Creates the MX object parsing the raw content from the parameter XML, using the provided unmarshalling options
* @since 9.2.6
*
*/
public static MxCamt11000101 parse(String xml, MxReadConfiguration conf) {
return ((MxCamt11000101) MxReadImpl.parse(MxCamt11000101 .class, xml, _classes, new MxReadParams(conf)));
}
/**
* Creates the MX object parsing the raw content from the parameter XML with injected read implementation
* @since 9.0.1
*
* @param parserImpl an MX unmarshall implementation
*/
public static MxCamt11000101 parse(String xml, MxRead parserImpl) {
return ((MxCamt11000101) parserImpl.read(MxCamt11000101 .class, xml, _classes));
}
@Override
public String getNamespace() {
return NAMESPACE;
}
@Override
@SuppressWarnings("rawtypes")
public Class[] getClasses() {
return _classes;
}
/**
* Creates an MxCamt11000101 messages from its JSON representation.
* <p>
* For generic conversion of JSON into the corresponding MX instance
* see {@link AbstractMX#fromJson(String)}
*
* @since 7.10.2
*
* @param json a JSON representation of an MxCamt11000101 message
* @return
* a new instance of MxCamt11000101
*/
public static final MxCamt11000101 fromJson(String json) {
return AbstractMX.fromJson(json, MxCamt11000101 .class);
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
}
@Override
public boolean equals(Object that) {
return EqualsBuilder.reflectionEquals(this, that);
}
@Override
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}
}
package com.prowidesoftware.swift.model.mx;
import com.prowidesoftware.swift.model.MxSwiftMessage;
import com.prowidesoftware.swift.model.mx.dic.*;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import javax.xml.bind.annotation.*;
/**
* Class for camt.111.001.01 ISO 20022 message.
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Document", propOrder = {
"invstgtnRspn"
})
@XmlRootElement(name = "Document", namespace = "urn:iso:std:iso:20022:tech:xsd:camt.111.001.01")
public class MxCamt11100101
extends AbstractMX
{
@XmlElement(name = "InvstgtnRspn", required = true)
protected InvestigationResponseV01 invstgtnRspn;
public static final transient String BUSINESS_PROCESS = "camt";
public static final transient int FUNCTIONALITY = 111;
public static final transient int VARIANT = 1;
public static final transient int VERSION = 1;
@SuppressWarnings("rawtypes")
public static final transient Class[] _classes = new Class[] {AccountIdentification4Choice.class, AccountSchemeName1Choice.class, ActiveCurrencyAndAmount.class, ActiveOrHistoricCurrencyAndAmount.class, AddressType2Code.class, AddressType3Choice.class, AdjustmentCompensation1 .class, AmendmentInformationDetails14 .class, AmountType4Choice.class, BookingConfirmation1 .class, BranchAndFinancialInstitutionIdentification6 .class, BranchData3 .class, CashAccount40 .class, CashAccountType2Choice.class, CategoryPurpose1Choice.class, ChargeBearerType1Code.class, ChargeType3Choice.class, Charges6 .class, ChargesRecord3 .class, ClearingChannel2Code.class, ClearingSystemIdentification2Choice.class, ClearingSystemIdentification3Choice.class, ClearingSystemMemberIdentification2 .class, CompensationResponse1 .class, Contact4 .class, CreditDebitCode.class, CreditTransferMandateData1 .class, CreditorReferenceInformation2 .class, CreditorReferenceType1Choice.class, CreditorReferenceType2 .class, DateAndDateTime2Choice.class, DateAndPlaceOfBirth1 .class, DatePeriod2 .class, DatePeriod5 .class, DebitAuthorisationConfirmation3 .class, DiscountAmountAndType1 .class, DiscountAmountType1Choice.class, Document12 .class, DocumentAdjustment1 .class, DocumentFormat1Choice.class, DocumentLineIdentification1 .class, DocumentLineInformation1 .class, DocumentLineType1 .class, DocumentLineType1Choice.class, DocumentType1Choice.class, DocumentType3Code.class, DocumentType6Code.class, EquivalentAmount2 .class, FileData1 .class, FinancialIdentificationSchemeName1Choice.class, FinancialInstitutionIdentification18 .class, Frequency36Choice.class, Frequency6Code.class, FrequencyAndMoment1 .class, FrequencyPeriod1 .class, Garnishment3 .class, GarnishmentType1 .class, GarnishmentType1Choice.class, GenericAccountIdentification1 .class, GenericFinancialIdentification1 .class, GenericIdentification1 .class, GenericIdentification3 .class, GenericIdentification30 .class, GenericOrganisationIdentification1 .class, GenericPersonIdentification1 .class, InvestigationActionReason1 .class, InvestigationActionReason1Choice.class, InvestigationData2 .class, InvestigationDataRecord1Choice.class, InvestigationLocationData1 .class, InvestigationLocationMethod1Code.class, InvestigationReason1Choice.class, InvestigationReasonSubType1Choice.class, InvestigationRequest3 .class, InvestigationRequestAction1 .class, InvestigationRequestAction1Choice.class, InvestigationResponse3 .class, InvestigationResponseV01 .class, InvestigationServiceLevel1Choice.class, InvestigationStatus2 .class, InvestigationStatusReason1Choice.class, InvestigationSubType1Choice.class, InvestigationType1Choice.class, LocalInstrument2Choice.class, MandateClassification1Choice.class, MandateClassification1Code.class, MandateRelatedData2Choice.class, MandateRelatedInformation15 .class, MandateSetupReason1Choice.class, MandateTypeInformation2 .class, MxCamt11100101 .class, NameAndAddress16 .class, NamePrefix2Code.class, OrganisationIdentification29 .class, OrganisationIdentificationSchemeName1Choice.class, OriginalGroupInformation29 .class, OriginalTransactionReference35 .class, OtherContact1 .class, Party38Choice.class, Party40Choice.class, PartyAndSignature3 .class, PartyIdentification135 .class, PaymentMethod4Code.class, PaymentTransactionStatus1 .class, PaymentTypeInformation27 .class, PersonIdentification13 .class, PersonIdentificationSchemeName1Choice.class, PostalAddress24 .class, PreferredContactMethod1Code.class, Priority2Code.class, ProprietaryReference1 .class, ProxyAccountIdentification1 .class, ProxyAccountType1Choice.class, Purpose2Choice.class, ReferredDocumentInformation7 .class, ReferredDocumentType3Choice.class, ReferredDocumentType4 .class, RelatedInvestigationData1 .class, Remittance1 .class, RemittanceAmount2 .class, RemittanceAmount3 .class, RemittanceInformation21 .class, RemittanceLocation7 .class, RemittanceLocationData1 .class, RemittanceLocationMethod2Code.class, SequenceType3Code.class, ServiceLevel8Choice.class, SettlementInstruction11 .class, SettlementMethod1Code.class, SkipPayload.class, StatusReason6Choice.class, StatusReasonInformation12 .class, StructuredRemittanceInformation16 .class, StructuredRemittanceInformation17 .class, SupplementaryData1 .class, SupplementaryDataEnvelope1 .class, TaxAmount2 .class, TaxAmount3 .class, TaxAmountAndType1 .class, TaxAmountType1Choice.class, TaxAuthorisation1 .class, TaxCharges2 .class, TaxData1 .class, TaxInformation7 .class, TaxParty1 .class, TaxParty2 .class, TaxPeriod2 .class, TaxPeriod3 .class, TaxRecord2 .class, TaxRecord3 .class, TaxRecordDetails2 .class, TaxRecordDetails3 .class, TaxRecordPeriod1Code.class, TransactionAmendment1 .class, TransactionAmendment1Choice.class, TransactionReferences6 .class, TransactionStatus1Choice.class, UnderlyingData2Choice.class, UnderlyingGroupInformation1 .class, UnderlyingInvestigationInstrument1Choice.class, UnderlyingPaymentInstruction8 .class, UnderlyingPaymentTransaction7 .class, UnderlyingStatementEntry5 .class };
public static final transient String NAMESPACE = "urn:iso:std:iso:20022:tech:xsd:camt.111.001.01";
public MxCamt11100101() {
super();
}
/**
* Creates the MX object parsing the parameter String with the XML content
*
*/
public MxCamt11100101(final String xml) {
this();
MxCamt11100101 tmp = parse(xml);
invstgtnRspn = tmp.getInvstgtnRspn();
}
/**
* Creates the MX object parsing the raw content from the parameter MxSwiftMessage
*
*/
public MxCamt11100101(final MxSwiftMessage mxSwiftMessage) {
this(mxSwiftMessage.message());
}
/**
* Gets the value of the invstgtnRspn property.
*
* @return
* possible object is
* {@link InvestigationResponseV01 }
*
*/
public InvestigationResponseV01 getInvstgtnRspn() {
return invstgtnRspn;
}
/**
* Sets the value of the invstgtnRspn property.
*
* @param value
* allowed object is
* {@link InvestigationResponseV01 }
*
*/
public MxCamt11100101 setInvstgtnRspn(InvestigationResponseV01 value) {
this.invstgtnRspn = value;
return this;
}
@Override
public String getBusinessProcess() {
return BUSINESS_PROCESS;
}
@Override
public int getFunctionality() {
return FUNCTIONALITY;
}
@Override
public int getVariant() {
return VARIANT;
}
@Override
public int getVersion() {
return VERSION;
}
/**
* Creates the MX object parsing the raw content from the parameter XML, using default unmarshalling options
*
*/
public static MxCamt11100101 parse(String xml) {
return ((MxCamt11100101) MxReadImpl.parse(MxCamt11100101 .class, xml, _classes, new MxReadParams()));
}
/**
* Creates the MX object parsing the raw content from the parameter XML, using the provided unmarshalling options
* @since 9.2.6
*
*/
public static MxCamt11100101 parse(String xml, MxReadConfiguration conf) {
return ((MxCamt11100101) MxReadImpl.parse(MxCamt11100101 .class, xml, _classes, new MxReadParams(conf)));
}
/**
* Creates the MX object parsing the raw content from the parameter XML with injected read implementation
* @since 9.0.1
*
* @param parserImpl an MX unmarshall implementation
*/
public static MxCamt11100101 parse(String xml, MxRead parserImpl) {
return ((MxCamt11100101) parserImpl.read(MxCamt11100101 .class, xml, _classes));
}
@Override
public String getNamespace() {
return NAMESPACE;
}
@Override
@SuppressWarnings("rawtypes")
public Class[] getClasses() {
return _classes;
}
/**
* Creates an MxCamt11100101 messages from its JSON representation.
* <p>
* For generic conversion of JSON into the corresponding MX instance
* see {@link AbstractMX#fromJson(String)}
*
* @since 7.10.2
*
* @param json a JSON representation of an MxCamt11100101 message
* @return
* a new instance of MxCamt11100101
*/
public static final MxCamt11100101 fromJson(String json) {
return AbstractMX.fromJson(json, MxCamt11100101 .class);
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
}
@Override
public boolean equals(Object that) {
return EqualsBuilder.reflectionEquals(this, that);
}
@Override
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}
}
/*
* Copyright 2006-2023 Prowide
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.prowidesoftware.swift.model.mx;
import com.prowidesoftware.swift.model.mx.adapter.TypeAdaptersConfiguration;
import javax.xml.bind.JAXBContext;
/**
* Options to customize the behaviour of the MX parser (XML into model) in the {@link AbstractMX} and its specific
* types subclasses.
*
* @since 9.2.6
*/
public class MxReadConfiguration {
/**
* Type adapters for the marshaller
* @since 9.2.6
*/
public TypeAdaptersConfiguration adapters;
/**
* Optional instance to pass to the read method, if null, a new instance will be created when needed
* @since 9.3.5
*/
public JAXBContext context;
/**
* Creates a configuration with the default adapters
*/
public MxReadConfiguration() {
this.adapters = new TypeAdaptersConfiguration();
}
/**
* Propagates the adapters from write to read configuration
*/
public MxReadConfiguration(MxWriteConfiguration writeConf) {
this.adapters = writeConf.adapters;
this.context = writeConf.context;
}
}
/*
* Copyright 2006-2021 Prowide
* Copyright 2006-2023 Prowide
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
......@@ -20,6 +20,7 @@ import com.prowidesoftware.swift.model.MxId;
import org.apache.commons.lang3.Validate;
import javax.xml.transform.sax.SAXSource;
import java.util.Objects;
import java.util.Optional;
import java.util.logging.Level;
import java.util.logging.Logger;
......@@ -50,7 +51,7 @@ import java.util.logging.Logger;
* @since 9.0
*/
public class MxReadImpl implements MxRead {
private static final transient Logger log = Logger.getLogger(MxReadImpl.class.getName());
private static final Logger log = Logger.getLogger(MxReadImpl.class.getName());
/**
* Static parse implementation of {@link MxRead#read(Class, String, Class[])}
......@@ -58,18 +59,34 @@ public class MxReadImpl implements MxRead {
* @param xml the XML to parse, should contain the Document, and optional AppHdr and any type of wrapper elements
* @since 8.0.4
*/
public static AbstractMX parse(final Class<? extends AbstractMX> targetClass, final String xml, final Class<?>[] classes) {
Validate.notNull(targetClass, "target class to parse must not be null");
Validate.notNull(xml, "XML to parse must not be null");
public static AbstractMX parse(
final Class<? extends AbstractMX> targetClass, final String xml, final Class<?>[] classes) {
return parse(targetClass, xml, classes, new MxReadParams());
}
/**
* @since 9.2.6
*/
public static AbstractMX parse(
final Class<? extends AbstractMX> targetClass,
final String xml,
final Class<?>[] classes,
final MxReadParams params) {
Objects.requireNonNull(targetClass, "target class to parse must not be null");
Objects.requireNonNull(xml, "XML to parse must not be null");
Validate.notBlank(xml, "XML to parse must not be a blank string");
Validate.notNull(classes, "object model classes array must not be null");
Objects.requireNonNull(classes, "object model classes array must not be null");
Objects.requireNonNull(params, "The unmarshalling params cannot be null");
try {
SAXSource documentSource = MxParseUtils.createFilteredSAXSource(xml, AbstractMX.DOCUMENT_LOCALNAME);
Optional<AbstractMX> mx = parseDocumentFromSAXSource(documentSource, targetClass, classes);
final AbstractMX parsedDocument =
(AbstractMX) MxParseUtils.parseSAXSource(documentSource, targetClass, classes, params);
Optional<AbstractMX> mx = Optional.ofNullable(parsedDocument);
Optional<AppHdr> appHdr = AppHdrParser.parse(xml);
Optional<AppHdr> appHdr = AppHdrParser.parse(xml, params);
if (mx.isPresent() && appHdr.isPresent()) {
mx.get().setAppHdr(appHdr.get());
......@@ -84,14 +101,6 @@ public class MxReadImpl implements MxRead {
}
/**
* @since 9.1.2
*/
private static Optional<AbstractMX> parseDocumentFromSAXSource(SAXSource source, Class<? extends AbstractMX> targetClass, Class<?>[] classes) {
final AbstractMX mx = (AbstractMX) MxParseUtils.parseSAXSource(source, targetClass, classes);
return Optional.ofNullable(mx);
}
/**
* Static parse implementation of {@link MxRead#read(String, MxId)}
*
* @return parsed message or null if XML is malformed or unrecognized as MX message
......@@ -100,17 +109,28 @@ public class MxReadImpl implements MxRead {
* @since 9.0
*/
public static AbstractMX parse(final String xml, MxId id) {
Validate.notNull(xml, "XML to parse must not be null");
return parse(xml, id, new MxReadParams());
}
/**
* @since 9.2.6
*/
public static AbstractMX parse(final String xml, final MxId id, final MxReadParams params) {
Objects.requireNonNull(xml, "XML to parse must not be null");
Validate.notBlank(xml, "XML to parse must not be a blank string");
Objects.requireNonNull(params, "unmarshalling params cannot be null");
MxId resolvedId = id;
if (id == null) {
Optional<String> namespace = NamespaceReader.findDocumentNamespace(xml);
if (namespace.isPresent()) {
resolvedId = new MxId(namespace.get());
Optional<MxId> detectedIdentifier = MxParseUtils.identifyMessage(xml);
if (detectedIdentifier.isPresent()) {
resolvedId = detectedIdentifier.get();
} else {
log.severe("Cannot detect the Mx type from the XML, ensure the XML contains proper namespaces or provide an MxId object as parameter to the parse call");
Level level = params.verbose ? Level.SEVERE : Level.FINE;
log.log(
level,
"Cannot detect the MX type from the XML, make sure the Document contains a valid namespace or the message contains an identifiable AppHdr");
return null;
}
}
......@@ -122,18 +142,26 @@ public class MxReadImpl implements MxRead {
fqn = "com.prowidesoftware.swift.model.mx" + subPackage + ".Mx" + resolvedId.camelized();
Class<? extends AbstractMX> clazz = (Class<? extends AbstractMX>) Class.forName(fqn);
java.lang.reflect.Field _classes = clazz.getDeclaredField("_classes");
mx = parse(clazz, xml, (Class[]) _classes.get(null));
mx = parse(clazz, xml, (Class[]) _classes.get(null), params);
} catch (ClassNotFoundException e) {
log.log(Level.SEVERE, "MX model implementation not found for " + fqn, e);
if (params.verbose) {
log.log(Level.SEVERE, "Cannot find class " + fqn + " to parse the XML", e);
} else {
log.fine("MX model implementation not found for " + fqn);
}
} catch (Exception e) {
log.log(Level.SEVERE, "Error calling parse in specific MX model implementation", e);
if (params.verbose) {
log.log(Level.SEVERE, "Error calling parse in specific MX model implementation", e);
} else {
log.fine("Error calling parse in specific MX model implementation");
}
}
return mx;
}
@Override
public AbstractMX read(final Class<? extends AbstractMX> targetClass, final String xml, final Class<?>[] classes) {
return parse(targetClass, xml, classes);
return parse(targetClass, xml, classes, new MxReadParams());
}
/**
......@@ -154,7 +182,6 @@ public class MxReadImpl implements MxRead {
*/
@Override
public AbstractMX read(final String xml, MxId id) {
return parse(xml, id);
return parse(xml, id, new MxReadParams());
}
}
\ No newline at end of file
}
/*
* Copyright 2006-2023 Prowide
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.prowidesoftware.swift.model.mx;
import com.prowidesoftware.swift.model.mx.adapter.TypeAdaptersConfiguration;
import javax.xml.bind.JAXBContext;
/**
* Simple DTO to encapsulate parameters in the different XML-to-model parser implementation methods in the API
*
* @since 9.2.6
*/
public class MxReadParams {
/**
* Specific adapters for date time, date, time
*/
public TypeAdaptersConfiguration adapters;
/**
* When true; errors during parsing, such as a ClassNotFoundException, will generate a log error, while when set
* to false those errors will generate finer log entries.
*
* @since 9.2.8
*/
public boolean verbose = true;
/**
* Optional instance to pass to the read method, if null, a new instance will be created when needed
* @since 9.3.5
*/
public JAXBContext context;
public MxReadParams() {
this.adapters = new TypeAdaptersConfiguration();
}
public MxReadParams(MxReadConfiguration conf) {
this();
if (conf != null) {
this.adapters = conf.adapters;
this.context = conf.context;
}
}
}
/*
* Copyright 2006-2023 Prowide
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.prowidesoftware.swift.model.mx;
import com.prowidesoftware.swift.model.mx.adapter.TypeAdaptersConfiguration;
import javax.xml.bind.JAXBContext;
/**
* Options to customize the behaviour of the MX writer (model into XML serialization) in the {@link AbstractMX}
* and its specific types subclasses.
*
* @since 9.1.7
*/
public class MxWriteConfiguration {
/**
* The name of the envelope element that binds a Header to the message to which it applies is
* implementation/network specific. The header root element ‘AppHdr’ and the ISO 20022 MessageDefinition
* root element ‘Document’ must always be sibling elements in any XML document, with the AppHdr element preceding
* the Document element. If no root element name is provided the value in {@link AbstractMX#DEFAULT_ROOT_ELEMENT}
* is used as default
*/
public String rootElement;
/**
* Determines if the XML will include the XML declaration as first line. It is true by default. You can switch this
* off if the generated XML will then be used a a fragment of another XML wrapper.
*/
public boolean includeXMLDeclaration;
/**
* Enables switching between different implementations for the element and attributes value escaping. Some
* implementations are available in the library and your own custom class can also be used. This is useful if you
* handle XML messages with specific charset and you want to control what is escaped and what is propagated as is.
*/
public EscapeHandler escapeHandler;
/**
* The prefix for the header namespace. Set it to null if you don't want to have any prefix in header elements.
* It is "h" by default.
*/
public String headerPrefix;
/**
* The prefix for the document namespace. Set it to null if you don't want to have any prefix in document elements.
* It is "Doc" by default.
*/
public String documentPrefix;
/**
* Type adapters for the marshaller
* @since 9.2.6
*/
public TypeAdaptersConfiguration adapters;
/**
* Optional instance to pass to the write method, if null, a new instance will be created when needed
* @since 9.3.5
*/
public JAXBContext context;
/**
* Optional indent string to use when marshalling into XML, if null, a four spaces string will be used as default
* @since 9.3.6
*/
public String indent;
/**
* Creates a configuration with the default options and adapters
*/
public MxWriteConfiguration() {
this((JAXBContext) null);
}
public MxWriteConfiguration(JAXBContext context) {
this.rootElement = AbstractMX.DEFAULT_ROOT_ELEMENT;
this.includeXMLDeclaration = true;
this.escapeHandler = new DefaultEscapeHandler();
this.headerPrefix = "h";
this.documentPrefix = "Doc";
this.adapters = new TypeAdaptersConfiguration();
this.context = context;
}
/**
* Creates a configuration with the default options and propagates the adapters from read to write configuration
* @since 9.2.6
*/
public MxWriteConfiguration(MxReadConfiguration readConf) {
this();
this.adapters = readConf.adapters;
this.context = readConf.context;
}
}
/*
* Copyright 2006-2023 Prowide
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.prowidesoftware.swift.model.mx;
import com.prowidesoftware.swift.model.mx.adapter.TypeAdaptersConfiguration;
import javax.xml.bind.JAXBContext;
/**
* Simple DTO to encapsulate parameters in the different model-to-XML serialization implementation methods in the API
*
* @since 9.2.6
*/
public class MxWriteParams {
/**
* Optional prefix for namespace (empty by default)
*/
public String prefix;
/**
* True to include the XML declaration (false by default)
*/
public boolean includeXMLDeclaration;
/**
* A specific escape handler for the header elements content (none by default)
*/
public EscapeHandler escapeHandler;
/**
* Optional instance to pass to the write method, if null, a new instance will be created when needed
* @since 9.3.5
*/
public JAXBContext context;
/**
* Specific adapters for date time, date, time
*/
public TypeAdaptersConfiguration adapters;
/**
* Optional indent string to use when marshalling into XML, if null, a four spaces string will be used as default
* @since 9.3.6
*/
public String indent;
public MxWriteParams() {
this(new MxWriteConfiguration());
}
MxWriteParams(MxWriteConfiguration conf) {
this.prefix = null;
MxWriteConfiguration notNullConf = conf == null ? new MxWriteConfiguration() : conf;
// use same defaults as configuration
this.includeXMLDeclaration = notNullConf.includeXMLDeclaration;
this.escapeHandler = notNullConf.escapeHandler;
this.adapters = notNullConf.adapters;
this.context = notNullConf.context;
this.indent = notNullConf.indent;
}
}
/*
* Copyright 2006-2023 Prowide
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.prowidesoftware.swift.model.mx;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Marshaller;
import javax.xml.bind.annotation.adapters.XmlAdapter;
/**
* Reusable code for marshalling methods
*
* @since 9.2.6
*/
class MxWriteUtils {
static Marshaller createMarshaller(final JAXBContext context, final MxWriteParams params) throws JAXBException {
final Marshaller marshaller = context.createMarshaller();
if (params.adapters != null) {
for (XmlAdapter adapter : params.adapters.asList()) {
marshaller.setAdapter(adapter);
}
}
return marshaller;
}
}
......@@ -38,7 +38,7 @@ public class NamespaceReader {
return findNamespaceForLocalName(xml, AbstractMX.DOCUMENT_LOCALNAME);
}
public static Optional<String> findAppHdrNamespace(final String xml) {
public static Optional<String> findAppHdrNamespace(final String xml) {
return findNamespaceForLocalName(xml, AppHdr.HEADER_LOCALNAME);
}
......@@ -68,11 +68,11 @@ public class NamespaceReader {
return null;
}
public static boolean elementExists(final String xml, final String localName) {
public static boolean elementExists(final String xml, final String localName) {
return findElement(xml, localName).isPresent();
}
private static Optional<XMLStreamReader> findElement(final String xml, final String localName) {
static Optional<XMLStreamReader> findElement(final String xml, final String localName) {
Validate.notNull(xml, "XML to parse must not be null");
Validate.notBlank(xml, "XML to parse must not be a blank string");
Validate.notNull(xml, "localName to find must not be null");
......
package com.prowidesoftware.swift.model.mx;
import com.prowidesoftware.swift.model.mx.dic.ActiveOrHistoricCurrencyAndAmount;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
/**
* Set of elements used to provide information on the tax amount(s) of tax record.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "TaxAmount3", propOrder = {
"rate",
"taxblBaseAmt",
"ttlAmt",
"dtls"
})
public class TaxAmount3 {
@XmlElement(name = "Rate")
protected BigDecimal rate;
@XmlElement(name = "TaxblBaseAmt")
protected ActiveOrHistoricCurrencyAndAmount taxblBaseAmt;
@XmlElement(name = "TtlAmt")
protected ActiveOrHistoricCurrencyAndAmount ttlAmt;
@XmlElement(name = "Dtls")
protected List<TaxRecordDetails3> dtls;
/**
* Gets the value of the rate property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getRate() {
return rate;
}
/**
* Sets the value of the rate property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public TaxAmount3 setRate(BigDecimal value) {
this.rate = value;
return this;
}
/**
* Gets the value of the taxblBaseAmt property.
*
* @return
* possible object is
* {@link ActiveOrHistoricCurrencyAndAmount }
*
*/
public ActiveOrHistoricCurrencyAndAmount getTaxblBaseAmt() {
return taxblBaseAmt;
}
/**
* Sets the value of the taxblBaseAmt property.
*
* @param value
* allowed object is
* {@link ActiveOrHistoricCurrencyAndAmount }
*
*/
public TaxAmount3 setTaxblBaseAmt(ActiveOrHistoricCurrencyAndAmount value) {
this.taxblBaseAmt = value;
return this;
}
/**
* Gets the value of the ttlAmt property.
*
* @return
* possible object is
* {@link ActiveOrHistoricCurrencyAndAmount }
*
*/
public ActiveOrHistoricCurrencyAndAmount getTtlAmt() {
return ttlAmt;
}
/**
* Sets the value of the ttlAmt property.
*
* @param value
* allowed object is
* {@link ActiveOrHistoricCurrencyAndAmount }
*
*/
public TaxAmount3 setTtlAmt(ActiveOrHistoricCurrencyAndAmount value) {
this.ttlAmt = value;
return this;
}
/**
* Gets the value of the dtls property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the Jakarta XML Binding object.
* This is why there is not a {@code set} method for the dtls property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getDtls().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link TaxRecordDetails3 }
*
*
* @return
* The value of the dtls property.
*/
public List<TaxRecordDetails3> getDtls() {
if (dtls == null) {
dtls = new ArrayList<>();
}
return this.dtls;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
}
@Override
public boolean equals(Object that) {
return EqualsBuilder.reflectionEquals(this, that);
}
@Override
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}
/**
* Adds a new item to the dtls list.
* @see #getDtls()
*
*/
public TaxAmount3 addDtls(TaxRecordDetails3 dtls) {
getDtls().add(dtls);
return this;
}
}
package com.prowidesoftware.swift.model.mx;
import com.prowidesoftware.swift.model.mx.adapter.IsoDateAdapter;
import com.prowidesoftware.swift.model.mx.dic.ActiveOrHistoricCurrencyAndAmount;
import com.prowidesoftware.swift.model.mx.dic.TaxParty1;
import com.prowidesoftware.swift.model.mx.dic.TaxParty2;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import javax.xml.bind.annotation.*;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;
/**
* Details about tax paid, or to be paid, to the government in accordance with the law, including pre-defined parameters such as thresholds and type of account.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "TaxData1", propOrder = {
"cdtr",
"dbtr",
"ultmtDbtr",
"admstnZone",
"refNb",
"mtd",
"ttlTaxblBaseAmt",
"ttlTaxAmt",
"dt",
"seqNb",
"rcrd"
})
public class TaxData1 {
@XmlElement(name = "Cdtr")
protected TaxParty1 cdtr;
@XmlElement(name = "Dbtr")
protected TaxParty2 dbtr;
@XmlElement(name = "UltmtDbtr")
protected TaxParty2 ultmtDbtr;
@XmlElement(name = "AdmstnZone")
protected String admstnZone;
@XmlElement(name = "RefNb")
protected String refNb;
@XmlElement(name = "Mtd")
protected String mtd;
@XmlElement(name = "TtlTaxblBaseAmt")
protected ActiveOrHistoricCurrencyAndAmount ttlTaxblBaseAmt;
@XmlElement(name = "TtlTaxAmt")
protected ActiveOrHistoricCurrencyAndAmount ttlTaxAmt;
@XmlElement(name = "Dt", type = String.class)
@XmlJavaTypeAdapter(IsoDateAdapter.class)
@XmlSchemaType(name = "date")
protected LocalDate dt;
@XmlElement(name = "SeqNb")
protected BigDecimal seqNb;
@XmlElement(name = "Rcrd")
protected List<TaxRecord3> rcrd;
/**
* Gets the value of the cdtr property.
*
* @return
* possible object is
* {@link TaxParty1 }
*
*/
public TaxParty1 getCdtr() {
return cdtr;
}
/**
* Sets the value of the cdtr property.
*
* @param value
* allowed object is
* {@link TaxParty1 }
*
*/
public TaxData1 setCdtr(TaxParty1 value) {
this.cdtr = value;
return this;
}
/**
* Gets the value of the dbtr property.
*
* @return
* possible object is
* {@link TaxParty2 }
*
*/
public TaxParty2 getDbtr() {
return dbtr;
}
/**
* Sets the value of the dbtr property.
*
* @param value
* allowed object is
* {@link TaxParty2 }
*
*/
public TaxData1 setDbtr(TaxParty2 value) {
this.dbtr = value;
return this;
}
/**
* Gets the value of the ultmtDbtr property.
*
* @return
* possible object is
* {@link TaxParty2 }
*
*/
public TaxParty2 getUltmtDbtr() {
return ultmtDbtr;
}
/**
* Sets the value of the ultmtDbtr property.
*
* @param value
* allowed object is
* {@link TaxParty2 }
*
*/
public TaxData1 setUltmtDbtr(TaxParty2 value) {
this.ultmtDbtr = value;
return this;
}
/**
* Gets the value of the admstnZone property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getAdmstnZone() {
return admstnZone;
}
/**
* Sets the value of the admstnZone property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public TaxData1 setAdmstnZone(String value) {
this.admstnZone = value;
return this;
}
/**
* Gets the value of the refNb property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRefNb() {
return refNb;
}
/**
* Sets the value of the refNb property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public TaxData1 setRefNb(String value) {
this.refNb = value;
return this;
}
/**
* Gets the value of the mtd property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getMtd() {
return mtd;
}
/**
* Sets the value of the mtd property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public TaxData1 setMtd(String value) {
this.mtd = value;
return this;
}
/**
* Gets the value of the ttlTaxblBaseAmt property.
*
* @return
* possible object is
* {@link ActiveOrHistoricCurrencyAndAmount }
*
*/
public ActiveOrHistoricCurrencyAndAmount getTtlTaxblBaseAmt() {
return ttlTaxblBaseAmt;
}
/**
* Sets the value of the ttlTaxblBaseAmt property.
*
* @param value
* allowed object is
* {@link ActiveOrHistoricCurrencyAndAmount }
*
*/
public TaxData1 setTtlTaxblBaseAmt(ActiveOrHistoricCurrencyAndAmount value) {
this.ttlTaxblBaseAmt = value;
return this;
}
/**
* Gets the value of the ttlTaxAmt property.
*
* @return
* possible object is
* {@link ActiveOrHistoricCurrencyAndAmount }
*
*/
public ActiveOrHistoricCurrencyAndAmount getTtlTaxAmt() {
return ttlTaxAmt;
}
/**
* Sets the value of the ttlTaxAmt property.
*
* @param value
* allowed object is
* {@link ActiveOrHistoricCurrencyAndAmount }
*
*/
public TaxData1 setTtlTaxAmt(ActiveOrHistoricCurrencyAndAmount value) {
this.ttlTaxAmt = value;
return this;
}
/**
* Gets the value of the dt property.
*
* @return
* possible object is
* {@link String }
*
*/
public LocalDate getDt() {
return dt;
}
/**
* Sets the value of the dt property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public TaxData1 setDt(LocalDate value) {
this.dt = value;
return this;
}
/**
* Gets the value of the seqNb property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getSeqNb() {
return seqNb;
}
/**
* Sets the value of the seqNb property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public TaxData1 setSeqNb(BigDecimal value) {
this.seqNb = value;
return this;
}
/**
* Gets the value of the rcrd property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the Jakarta XML Binding object.
* This is why there is not a {@code set} method for the rcrd property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getRcrd().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link TaxRecord3 }
*
*
* @return
* The value of the rcrd property.
*/
public List<TaxRecord3> getRcrd() {
if (rcrd == null) {
rcrd = new ArrayList<>();
}
return this.rcrd;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
}
@Override
public boolean equals(Object that) {
return EqualsBuilder.reflectionEquals(this, that);
}
@Override
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}
/**
* Adds a new item to the rcrd list.
* @see #getRcrd()
*
*/
public TaxData1 addRcrd(TaxRecord3 rcrd) {
getRcrd().add(rcrd);
return this;
}
}
package com.prowidesoftware.swift.model.mx;
import com.prowidesoftware.swift.model.mx.adapter.IsoYearAdapter;
import com.prowidesoftware.swift.model.mx.dic.DatePeriod2;
import com.prowidesoftware.swift.model.mx.dic.TaxRecordPeriod1Code;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import javax.xml.bind.annotation.*;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import java.time.Year;
/**
* Period of time details related to the tax payment.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "TaxPeriod3", propOrder = {
"yr",
"tp",
"frToDt"
})
public class TaxPeriod3 {
@XmlElement(name = "Yr", type = String.class)
@XmlJavaTypeAdapter(IsoYearAdapter.class)
@XmlSchemaType(name = "gYear")
protected Year yr;
@XmlElement(name = "Tp")
@XmlSchemaType(name = "string")
protected TaxRecordPeriod1Code tp;
@XmlElement(name = "FrToDt")
protected DatePeriod2 frToDt;
/**
* Gets the value of the yr property.
*
* @return
* possible object is
* {@link String }
*
*/
public Year getYr() {
return yr;
}
/**
* Sets the value of the yr property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public TaxPeriod3 setYr(Year value) {
this.yr = value;
return this;
}
/**
* Gets the value of the tp property.
*
* @return
* possible object is
* {@link TaxRecordPeriod1Code }
*
*/
public TaxRecordPeriod1Code getTp() {
return tp;
}
/**
* Sets the value of the tp property.
*
* @param value
* allowed object is
* {@link TaxRecordPeriod1Code }
*
*/
public TaxPeriod3 setTp(TaxRecordPeriod1Code value) {
this.tp = value;
return this;
}
/**
* Gets the value of the frToDt property.
*
* @return
* possible object is
* {@link DatePeriod2 }
*
*/
public DatePeriod2 getFrToDt() {
return frToDt;
}
/**
* Sets the value of the frToDt property.
*
* @param value
* allowed object is
* {@link DatePeriod2 }
*
*/
public TaxPeriod3 setFrToDt(DatePeriod2 value) {
this.frToDt = value;
return this;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
}
@Override
public boolean equals(Object that) {
return EqualsBuilder.reflectionEquals(this, that);
}
@Override
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}
}
package com.prowidesoftware.swift.model.mx;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import javax.xml.bind.annotation.*;
/**
* Set of elements used to define the tax record.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "TaxRecord3", propOrder = {
"tp",
"ctgy",
"ctgyDtls",
"dbtrSts",
"certId",
"frmsCd",
"prd",
"taxAmt",
"addtlInf"
})
public class TaxRecord3 {
@XmlElement(name = "Tp")
protected String tp;
@XmlElement(name = "Ctgy")
protected String ctgy;
@XmlElement(name = "CtgyDtls")
protected String ctgyDtls;
@XmlElement(name = "DbtrSts")
protected String dbtrSts;
@XmlElement(name = "CertId")
protected String certId;
@XmlElement(name = "FrmsCd")
protected String frmsCd;
@XmlElement(name = "Prd")
protected TaxPeriod3 prd;
@XmlElement(name = "TaxAmt")
protected TaxAmount3 taxAmt;
@XmlElement(name = "AddtlInf")
protected String addtlInf;
/**
* Gets the value of the tp property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTp() {
return tp;
}
/**
* Sets the value of the tp property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public TaxRecord3 setTp(String value) {
this.tp = value;
return this;
}
/**
* Gets the value of the ctgy property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCtgy() {
return ctgy;
}
/**
* Sets the value of the ctgy property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public TaxRecord3 setCtgy(String value) {
this.ctgy = value;
return this;
}
/**
* Gets the value of the ctgyDtls property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCtgyDtls() {
return ctgyDtls;
}
/**
* Sets the value of the ctgyDtls property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public TaxRecord3 setCtgyDtls(String value) {
this.ctgyDtls = value;
return this;
}
/**
* Gets the value of the dbtrSts property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDbtrSts() {
return dbtrSts;
}
/**
* Sets the value of the dbtrSts property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public TaxRecord3 setDbtrSts(String value) {
this.dbtrSts = value;
return this;
}
/**
* Gets the value of the certId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCertId() {
return certId;
}
/**
* Sets the value of the certId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public TaxRecord3 setCertId(String value) {
this.certId = value;
return this;
}
/**
* Gets the value of the frmsCd property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getFrmsCd() {
return frmsCd;
}
/**
* Sets the value of the frmsCd property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public TaxRecord3 setFrmsCd(String value) {
this.frmsCd = value;
return this;
}
/**
* Gets the value of the prd property.
*
* @return
* possible object is
* {@link TaxPeriod3 }
*
*/
public TaxPeriod3 getPrd() {
return prd;
}
/**
* Sets the value of the prd property.
*
* @param value
* allowed object is
* {@link TaxPeriod3 }
*
*/
public TaxRecord3 setPrd(TaxPeriod3 value) {
this.prd = value;
return this;
}
/**
* Gets the value of the taxAmt property.
*
* @return
* possible object is
* {@link TaxAmount3 }
*
*/
public TaxAmount3 getTaxAmt() {
return taxAmt;
}
/**
* Sets the value of the taxAmt property.
*
* @param value
* allowed object is
* {@link TaxAmount3 }
*
*/
public TaxRecord3 setTaxAmt(TaxAmount3 value) {
this.taxAmt = value;
return this;
}
/**
* Gets the value of the addtlInf property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getAddtlInf() {
return addtlInf;
}
/**
* Sets the value of the addtlInf property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public TaxRecord3 setAddtlInf(String value) {
this.addtlInf = value;
return this;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
}
@Override
public boolean equals(Object that) {
return EqualsBuilder.reflectionEquals(this, that);
}
@Override
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}
}
package com.prowidesoftware.swift.model.mx;
import com.prowidesoftware.swift.model.mx.dic.ActiveOrHistoricCurrencyAndAmount;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* Provides information on the individual tax amount(s) per period of the tax record.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "TaxRecordDetails3", propOrder = {
"prd",
"amt"
})
public class TaxRecordDetails3 {
@XmlElement(name = "Prd")
protected TaxPeriod3 prd;
@XmlElement(name = "Amt", required = true)
protected ActiveOrHistoricCurrencyAndAmount amt;
/**
* Gets the value of the prd property.
*
* @return
* possible object is
* {@link TaxPeriod3 }
*
*/
public TaxPeriod3 getPrd() {
return prd;
}
/**
* Sets the value of the prd property.
*
* @param value
* allowed object is
* {@link TaxPeriod3 }
*
*/
public TaxRecordDetails3 setPrd(TaxPeriod3 value) {
this.prd = value;
return this;
}
/**
* Gets the value of the amt property.
*
* @return
* possible object is
* {@link ActiveOrHistoricCurrencyAndAmount }
*
*/
public ActiveOrHistoricCurrencyAndAmount getAmt() {
return amt;
}
/**
* Sets the value of the amt property.
*
* @param value
* allowed object is
* {@link ActiveOrHistoricCurrencyAndAmount }
*
*/
public TaxRecordDetails3 setAmt(ActiveOrHistoricCurrencyAndAmount value) {
this.amt = value;
return this;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
}
@Override
public boolean equals(Object that) {
return EqualsBuilder.reflectionEquals(this, that);
}
@Override
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment