Commit 9e97df3a by chengzhuoshen

commit init

parent f40ddb7f
# Default ignored files
/shelf/
/workspace.xml
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
<option name="BUILD_PROCESS_HEAP_SIZE" value="3072" />
<annotationProcessing>
<profile name="Maven default annotation processors profile" enabled="true">
<sourceOutputDir name="target/generated-sources/annotations" />
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
<outputRelativeToContentRoot value="true" />
<module name="swiftMx2Mt" />
</profile>
</annotationProcessing>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="RemoteRepositoriesConfiguration">
<remote-repository>
<option name="id" value="central" />
<option name="name" value="Central Repository" />
<option name="url" value="https://repo.maven.apache.org/maven2" />
</remote-repository>
<remote-repository>
<option name="id" value="central" />
<option name="name" value="Maven Central repository" />
<option name="url" value="https://repo1.maven.org/maven2" />
</remote-repository>
<remote-repository>
<option name="id" value="jboss.community" />
<option name="name" value="JBoss Community repository" />
<option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" />
</remote-repository>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ExternalStorageConfigurationManager" enabled="true" />
<component name="MavenProjectsManager">
<option name="originalFiles">
<list>
<option value="$PROJECT_DIR$/pom.xml" />
</list>
</option>
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Palette2">
<group name="Swing">
<item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
</item>
<item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
</item>
<item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
</item>
<item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.png" removable="false" auto-create-binding="false" can-attach-label="true">
<default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
</item>
<item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
<initial-values>
<property name="text" value="Button" />
</initial-values>
</item>
<item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
<initial-values>
<property name="text" value="RadioButton" />
</initial-values>
</item>
<item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
<initial-values>
<property name="text" value="CheckBox" />
</initial-values>
</item>
<item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
<initial-values>
<property name="text" value="Label" />
</initial-values>
</item>
<item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<preferred-size width="150" height="-1" />
</default-constraints>
</item>
<item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<preferred-size width="150" height="-1" />
</default-constraints>
</item>
<item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<preferred-size width="150" height="-1" />
</default-constraints>
</item>
<item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
</item>
<item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
<preferred-size width="200" height="200" />
</default-constraints>
</item>
<item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
<preferred-size width="200" height="200" />
</default-constraints>
</item>
<item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
</item>
<item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
</item>
<item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" />
</item>
<item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" />
</item>
<item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1">
<preferred-size width="-1" height="20" />
</default-constraints>
</item>
<item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" />
</item>
<item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" />
</item>
</group>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$/../.." vcs="Git" />
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!-- scan="true"表示配置文件发生改变时自动更新,scanPeriod表示多久扫描一次配置文件看是否更新 debug="true"会打印logback内部的日志信息,查看运行状态 -->
<configuration scan="false" scanPeriod="60 seconds" debug="false">
<!-- 定义参数常量 -->
<property name="app_name" value="mx2mt"/>
<!-- 文件保留多长时间(默认30天) -->
<property name="log.maxHistory" value="30"/>
<!-- 每个日志文件大小 -->
<property name="log.maxFileSize" value="50MB"/>
<!-- 日志文件最大多少 -->
<property name="log.totalSizeCap" value="10GB"/>
<!-- 日志存储的根路径 -->
<property name="log.filePath" value="log"/>
<property name="log.pattern"
value="%d{yyyy-MM-dd HH:mm:ss.SSS} %-5level [%t] [%logger:%L.java] - %msg%n"/>
<!-- 控制台设置 -->
<!-- 日志输出的地方 -->
<appender name="consoleAppender" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<!-- 定义格式 -->
<pattern>${log.pattern}</pattern>
</encoder>
</appender>
<appender name="fileAppender"
class="ch.qos.logback.core.rolling.RollingFileAppender">
<!-- 文件路径 -->
<!--<file>${log.filePath}/${app_name}_%d{yyyyMMdd}.log</file>-->
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
<!-- 文件名称 -->
<fileNamePattern>${log.filePath}/${app_name}_%d{yyyyMMdd}-%i.log</fileNamePattern>
<!-- each file should be at most 50MB, keep 30 days worth of history, but at most 10GB -->
<MaxFileSize>${log.maxFileSize}</MaxFileSize>
<maxHistory>${log.maxHistory}</maxHistory>
<totalSizeCap>${log.totalSizeCap}</totalSizeCap>
</rollingPolicy>
<encoder>
<pattern>${log.pattern}</pattern>
</encoder>
</appender>
<!-- 特殊的logger添加 -->
<!--<logger name="xxx" level="INFO" addtivity="false">
<appender-ref ref="fileAppender" />
</logger>-->
<!-- TRACE < DEBUG < INFO < WARN < ERROR -->
<!-- 特殊的logger,如果logger的level没有指定,默认会继承root的level -->
<root level="DEBUG">
<appender-ref ref="consoleAppender"/>
<appender-ref ref="fileAppender"/>
</root>
</configuration>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Document xmlns="urn:iso:std:iso:20022:tech:xsd:camt.053.001.02">
<BkToCstmrStmt>
<GrpHdr>
<MsgId>00010013800002001234</MsgId>
<CreDtTm>2022-03-30T15:15:40.483+08:00</CreDtTm>
<AddtlInf>EODY</AddtlInf>
<MsgPgntn>
<PgNb>200</PgNb>
</MsgPgntn>
</GrpHdr>
<Stmt>
<Id>1123456789012317092013</Id>
<ElctrncSeqNb>178</ElctrncSeqNb>
<LglSeqNb>178</LglSeqNb>
<CreDtTm>2022-03-30T15:15:40.483+08:00</CreDtTm>
<FrToDt>
<FrDtTm>2022-03-30T15:15:40.483+08:00</FrDtTm>
<ToDtTm>2022-03-30T15:15:40.483+08:00</ToDtTm>
</FrToDt>
<RptgSrc>
<Cd>GPRD</Cd>
</RptgSrc>
<Acct>
<Id>
<IBAN>S15612345678012345</IBAN>
</Id>
<Ccy>USD</Ccy>
<Svcr>
<FinInstnId>
<BIC>BJWHS12X</BIC>
</FinInstnId>
</Svcr>
<Ownr>
<Id>
<OrgId>
<BICOrBEI>SHWHQWER123</BICOrBEI>
</OrgId>
</Id>
</Ownr>
</Acct>
<Bal>
<Tp>
<CdOrPrtry>
<Cd>ITBD</Cd>
</CdOrPrtry>
</Tp>
<Amt Ccy="USD">120274.34</Amt>
<CdtDbtInd>DBIT</CdtDbtInd>
<Dt>
<Dt>2022-03-30+08:00</Dt>
</Dt>
</Bal>
<Bal>
<Tp>
<CdOrPrtry>
<Cd>ITBD</Cd>
</CdOrPrtry>
</Tp>
<Amt Ccy="USD">123456.29</Amt>
<CdtDbtInd>DBIT</CdtDbtInd>
<Dt>
<Dt>2022-03-30+08:00</Dt>
</Dt>
</Bal>
<Bal>
<Tp>
<CdOrPrtry>
<Cd>CLAV</Cd>
</CdOrPrtry>
</Tp>
<Amt Ccy="USD">119609.29</Amt>
<CdtDbtInd>DBIT</CdtDbtInd>
<Dt>
<Dt>2022-03-30+08:00</Dt>
</Dt>
</Bal>
<Bal>
<Tp>
<CdOrPrtry>
<Cd>FWAV</Cd>
</CdOrPrtry>
</Tp>
<Amt Ccy="USD">120274.34</Amt>
<CdtDbtInd>DBIT</CdtDbtInd>
<Dt>
<Dt>2022-03-30+08:00</Dt>
</Dt>
</Bal>
<Ntry>
<NtryRef>FUNDTRANFER20220330</NtryRef>
<Amt Ccy="USD">393.17</Amt>
<CdtDbtInd>DBIT</CdtDbtInd>
<Sts>BOOK</Sts>
<BookgDt>
<Dt>2022-03-30+08:00</Dt>
</BookgDt>
<ValDt>
<Dt>2022-03-30+08:00</Dt>
</ValDt>
<AcctSvcrRef>1309170100000390154395</AcctSvcrRef>
<BkTxCd>
<Prtry>
<Cd>123456789</Cd>
</Prtry>
</BkTxCd>
<NtryDtls>
<TxDtls>
<Refs>
<EndToEndId>S100000189-735</EndToEndId>
<TxId>1309170100000390154395</TxId>
</Refs>
<AmtDtls>
<InstdAmt>
<Amt Ccy="USD">393.17</Amt>
</InstdAmt>
<TxAmt>
<Amt Ccy="USD">393.17</Amt>
</TxAmt>
</AmtDtls>
<AddtlTxInf>PLACI LOVECNAMENSKIH WUHAN</AddtlTxInf>
</TxDtls>
</NtryDtls>
<AddtlNtryInf>CHINESE BEIJING</AddtlNtryInf>
</Ntry>
<Ntry>
<NtryRef>FUNDTRANFER20220331</NtryRef>
<Amt Ccy="USD">445</Amt>
<CdtDbtInd>DBIT</CdtDbtInd>
<Sts>BOOK</Sts>
<BookgDt>
<Dt>2022-03-30+08:00</Dt>
</BookgDt>
<ValDt>
<Dt>2022-03-30+08:00</Dt>
</ValDt>
<AcctSvcrRef>1309170100000390154395</AcctSvcrRef>
<BkTxCd>
<Prtry>
<Cd>123456789</Cd>
</Prtry>
</BkTxCd>
<NtryDtls>
<TxDtls>
<Refs>
<EndToEndId>S100000189-735</EndToEndId>
<TxId>1309170100000390154395</TxId>
</Refs>
<AmtDtls>
<InstdAmt>
<Amt Ccy="USD">393.17</Amt>
</InstdAmt>
<TxAmt>
<Amt Ccy="USD">393.17</Amt>
</TxAmt>
</AmtDtls>
<AddtlTxInf>PLACI LOVECNAMENSKIH STORITEV</AddtlTxInf>
</TxDtls>
</NtryDtls>
<AddtlNtryInf></AddtlNtryInf>
</Ntry>
<AddtlStmtInf>HELLO WORLD</AddtlStmtInf>
</Stmt>
</BkToCstmrStmt>
</Document>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Document xmlns="urn:iso:std:iso:20022:tech:xsd:camt.053.001.02">
<BkToCstmrStmt>
<GrpHdr>
<MsgId>00010013800002001234</MsgId>
<CreDtTm>2022-03-30T15:15:40.483+08:00</CreDtTm>
<AddtlInf>EODY</AddtlInf>
<MsgPgntn>
<PgNb>200</PgNb>
</MsgPgntn>
</GrpHdr>
<Stmt>
<Id>1123456789012317092013</Id>
<ElctrncSeqNb>178</ElctrncSeqNb>
<LglSeqNb>178</LglSeqNb>
<CreDtTm>2022-03-30T15:15:40.483+08:00</CreDtTm>
<FrToDt>
<FrDtTm>2022-03-30T15:15:40.483+08:00</FrDtTm>
<ToDtTm>2022-03-30T15:15:40.483+08:00</ToDtTm>
</FrToDt>
<RptgSrc>
<Cd>GPRD</Cd>
</RptgSrc>
<Acct>
<Id>
<IBAN>S15612345678012345</IBAN>
</Id>
<Ccy>USD</Ccy>
<Svcr>
<FinInstnId>
<BIC>BJWHS12X</BIC>
</FinInstnId>
</Svcr>
<Ownr>
<Id>
<OrgId>
<BICOrBEI>SHWHQWER123</BICOrBEI>
</OrgId>
</Id>
</Ownr>
</Acct>
<Bal>
<Tp>
<CdOrPrtry>
<Cd>ITBD</Cd>
</CdOrPrtry>
</Tp>
<Amt Ccy="USD">120274.34</Amt>
<CdtDbtInd>DBIT</CdtDbtInd>
<Dt>
<Dt>2022-03-30+08:00</Dt>
</Dt>
</Bal>
<Bal>
<Tp>
<CdOrPrtry>
<Cd>ITBD</Cd>
</CdOrPrtry>
</Tp>
<Amt Ccy="USD">123456.29</Amt>
<CdtDbtInd>DBIT</CdtDbtInd>
<Dt>
<Dt>2022-03-30+08:00</Dt>
</Dt>
</Bal>
<Bal>
<Tp>
<CdOrPrtry>
<Cd>CLAVS</Cd>
</CdOrPrtry>
</Tp>
<Amt Ccy="USD">119609.29</Amt>
<CdtDbtInd>DBIT</CdtDbtInd>
<Dt>
<Dt>2022-03-30+08:00</Dt>
</Dt>
</Bal>
<Ntry>
<NtryRef>FUNDTRANFER20220330</NtryRef>
<Amt Ccy="USD">393.17</Amt>
<CdtDbtInd>DBIT</CdtDbtInd>
<Sts>BOOK</Sts>
<BookgDt>
<Dt>2022-03-30+08:00</Dt>
</BookgDt>
<ValDt>
<Dt>2022-03-30+08:00</Dt>
</ValDt>
<AcctSvcrRef>1309170100000390154395</AcctSvcrRef>
<BkTxCd>
<Prtry>
<Cd>123456789</Cd>
</Prtry>
</BkTxCd>
<NtryDtls>
<TxDtls>
<Refs>
<EndToEndId>S100000189-735</EndToEndId>
<TxId>1309170100000390154395</TxId>
</Refs>
<AmtDtls>
<InstdAmt>
<Amt Ccy="USD">393.17</Amt>
</InstdAmt>
<TxAmt>
<Amt Ccy="USD">393.17</Amt>
</TxAmt>
</AmtDtls>
<AddtlTxInf>PLACI LOVECNAMENSKIH WUHAN</AddtlTxInf>
</TxDtls>
</NtryDtls>
</Ntry>
<Ntry>
<NtryRef>FUNDTRANFER20220331</NtryRef>
<Amt Ccy="USD">445</Amt>
<CdtDbtInd>DBIT</CdtDbtInd>
<Sts>BOOK</Sts>
<BookgDt>
<Dt>2022-03-30+08:00</Dt>
</BookgDt>
<ValDt>
<Dt>2022-03-30+08:00</Dt>
</ValDt>
<AcctSvcrRef>1309170100000390154395</AcctSvcrRef>
<BkTxCd>
<Prtry>
<Cd>123456789</Cd>
</Prtry>
</BkTxCd>
<NtryDtls>
<TxDtls>
<Refs>
<EndToEndId>S100000189-735</EndToEndId>
<TxId>1309170100000390154395</TxId>
</Refs>
<AmtDtls>
<InstdAmt>
<Amt Ccy="USD">393.17</Amt>
</InstdAmt>
<TxAmt>
<Amt Ccy="USD">393.17</Amt>
</TxAmt>
</AmtDtls>
<AddtlTxInf>PLACI LOVECNAMENSKIH STORITEV</AddtlTxInf>
</TxDtls>
</NtryDtls>
</Ntry>
</Stmt>
</BkToCstmrStmt>
</Document>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Document xmlns="urn:iso:std:iso:20022:tech:xsd:camt.054.001.02">
<BkToCstmrDbtCdtNtfctn>
<GrpHdr>
<MsgId>FRDA000003421606</MsgId>
<CreDtTm>2022-03-30T15:15:40.483+08:00</CreDtTm>
<AddtlInf>BatchAccounting</AddtlInf>
</GrpHdr>
<Ntfctn>
<Id>AC730486180000000002</Id>
<ElctrncSeqNb>1234</ElctrncSeqNb>
<Acct>
<Id>
<IBAN>S15612345678012345</IBAN>
</Id>
<Svcr>
<FinInstnId>
<BIC>40457258</BIC>
</FinInstnId>
</Svcr>
<Ownr>
<Id>
<OrgId>
<BICOrBEI>SHWHQWER123</BICOrBEI>
</OrgId>
</Id>
</Ownr>
</Acct>
<Ntry>
<ValDt>
<Dt>2022-03-30+08:00</Dt>
</ValDt>
<Amt Ccy="EUR">126</Amt>
<CdtDbtInd>CRDT</CdtDbtInd>
<Sts>BOOK</Sts>
<BkTxCd>
<Domn>
<Cd>PMNT</Cd>
<Fmly>
<Cd>RDDT</Cd>
<SubFmlyCd>ESDD</SubFmlyCd>
</Fmly>
</Domn>
<Prtry>
<Issr>SWIFT</Issr>
</Prtry>
</BkTxCd>
<AmtDtls>
<InstdAmt>
<Amt Ccy="EUR">126</Amt>
<CcyXchg/>
</InstdAmt>
<TxAmt>
<Amt Ccy="EUR">126</Amt>
<CcyXchg/>
</TxAmt>
<CntrValAmt>
<Amt Ccy="EUR">126</Amt>
<CcyXchg/>
</CntrValAmt>
</AmtDtls>
<Chrgs>
<TtlChrgsAndTaxAmt Ccy="AAA">0</TtlChrgsAndTaxAmt>
<Amt Ccy="AAA">0</Amt>
<CdtDbtInd>DBIT</CdtDbtInd>
<Tp>
<Cd>COMM</Cd>
</Tp>
<Rate>0</Rate>
<Br>SLEV</Br>
<Pty>
<FinInstnId>
<BIC>AAAAAA20</BIC>
<ClrSysMmbId>
<ClrSysId>
<Cd>a</Cd>
</ClrSysId>
<MmbId>a</MmbId>
</ClrSysMmbId>
<Nm>a</Nm>
<PstlAdr>
<AdrTp>MLTO</AdrTp>
<Dept>a</Dept>
<SubDept>a</SubDept>
<StrtNm>a</StrtNm>
<BldgNb>a</BldgNb>
<PstCd>a</PstCd>
<TwnNm>a</TwnNm>
<CtrySubDvsn>a</CtrySubDvsn>
<Ctry>AA</Ctry>
<AdrLine>a</AdrLine>
</PstlAdr>
<Othr>
<Id>a</Id>
<SchmeNm>
<Cd>a</Cd>
</SchmeNm>
<Issr>a</Issr>
</Othr>
</FinInstnId>
<BrnchId>
<Id>a</Id>
<Nm>a</Nm>
<PstlAdr>
<AdrTp>ADDR</AdrTp>
<Dept>a</Dept>
<SubDept>a</SubDept>
<StrtNm>a</StrtNm>
<BldgNb>a</BldgNb>
<PstCd>a</PstCd>
<TwnNm>a</TwnNm>
<CtrySubDvsn>a</CtrySubDvsn>
<Ctry>AA</Ctry>
<AdrLine>a</AdrLine>
</PstlAdr>
</BrnchId>
</Pty>
<Tax>
<Id>a</Id>
<Rate>0</Rate>
<Amt Ccy="AAA">0</Amt>
</Tax>
</Chrgs>
<NtryDtls>
<Btch>
<MsgId>FG00000000000y88sd</MsgId>
<NbOfTxs>1</NbOfTxs>
</Btch>
<TxDtls>
<Refs>
<AcctSvcrRef>FRDA00000343</AcctSvcrRef>
<EndToEndId>E2E1201</EndToEndId>
<TxId>FRDA00003343</TxId>
<MndtId>MANFRST1COR1201003</MndtId>
</Refs>
<AmtDtls/>
<RltdPties>
<Dbtr>
<Nm>Creditor 1</Nm>
<PstlAdr>
<Ctry>PT</Ctry>
<AdrLine>TEST1</AdrLine>
<AdrLine>TEST2</AdrLine>
<AdrLine>TEST3</AdrLine>
<AdrLine>TEST4</AdrLine>
</PstlAdr>
<CtryOfRes>PT</CtryOfRes>
</Dbtr>
<DbtrAcct>
<Id>
<IBAN>FR7630588000010050000143176</IBAN>
</Id>
</DbtrAcct>
</RltdPties>
<RltdAgts>
<DbtrAgt>
<FinInstnId>
<BIC>QWERASDF</BIC>
<ClrSysMmbId>
<mmbId>123456</mmbId>
</ClrSysMmbId>
</FinInstnId>
</DbtrAgt>
<IntrmyAgt1>
<FinInstnId>
<Nm>81939316</Nm>
<PstlAdr>
<AdrLine>ADDRESS 1</AdrLine>
<AdrLine>ADDRESS 2</AdrLine>
<AdrLine>ADDRESS 3</AdrLine>
<AdrLine>ADDRESS 4</AdrLine>
</PstlAdr>
</FinInstnId>
</IntrmyAgt1>
</RltdAgts>
<RltdDts>
<AccptncDtTm>2016-12-06T04:01:10</AccptncDtTm>
<IntrBkSttlmDt>2016-12-07</IntrBkSttlmDt>
</RltdDts>
<AddtlTxInf>ENRICHED|TRUE SETT_METHOD|SEPA IAT_IND|FALSE DOMESTIC_IND|FALSE PRIORITY_IND|FALSE</AddtlTxInf>
</TxDtls>
</NtryDtls>
<AddtlNtryInf>ENRICHED|TRUE SETT_METHOD|SEPA IAT_IND|FALSE DOMESTIC_IND|FALSE PRIORITY_IND|FALSE</AddtlNtryInf>
</Ntry>
</Ntfctn>
</BkToCstmrDbtCdtNtfctn>
</Document>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Document xmlns="urn:iso:std:iso:20022:tech:xsd:camt.054.001.02">
<BkToCstmrDbtCdtNtfctn>
<GrpHdr>
<MsgId>FRDA000003421606</MsgId>
<CreDtTm>2022-03-30T15:15:40.483+08:00</CreDtTm>
<AddtlInf>BatchAccounting</AddtlInf>
</GrpHdr>
<Ntfctn>
<Id>AC730486180000000002</Id>
<ElctrncSeqNb>1234</ElctrncSeqNb>
<Acct>
<Id>
<IBAN>S15612345678012345</IBAN>
</Id>
<Svcr>
<FinInstnId>
<BIC>40457258</BIC>
</FinInstnId>
</Svcr>
<Ownr>
<Id>
<OrgId>
<BICOrBEI>SHWHQWER123</BICOrBEI>
</OrgId>
</Id>
</Ownr>
</Acct>
<Ntry>
<ValDt>
<Dt>2022-03-30+08:00</Dt>
</ValDt>
<Amt Ccy="EUR">126</Amt>
<CdtDbtInd>DBIT</CdtDbtInd>
<Sts>BOOK</Sts>
<BkTxCd>
<Domn>
<Cd>PMNT</Cd>
<Fmly>
<Cd>RDDT</Cd>
<SubFmlyCd>ESDD</SubFmlyCd>
</Fmly>
</Domn>
<Prtry>
<Issr>SWIFT</Issr>
</Prtry>
</BkTxCd>
<AmtDtls>
<InstdAmt>
<Amt Ccy="EUR">126</Amt>
<CcyXchg/>
</InstdAmt>
<TxAmt>
<Amt Ccy="EUR">126</Amt>
<CcyXchg/>
</TxAmt>
<CntrValAmt>
<Amt Ccy="EUR">126</Amt>
<CcyXchg/>
</CntrValAmt>
</AmtDtls>
<Chrgs>
<TtlChrgsAndTaxAmt Ccy="AAA">0</TtlChrgsAndTaxAmt>
<Amt Ccy="AAA">0</Amt>
<CdtDbtInd>DBIT</CdtDbtInd>
<Tp>
<Cd>COMM</Cd>
</Tp>
<Rate>0</Rate>
<Br>SLEV</Br>
<Pty>
<FinInstnId>
<BIC>AAAAAA20</BIC>
<ClrSysMmbId>
<ClrSysId>
<Cd>a</Cd>
</ClrSysId>
<MmbId>a</MmbId>
</ClrSysMmbId>
<Nm>a</Nm>
<PstlAdr>
<AdrTp>MLTO</AdrTp>
<Dept>a</Dept>
<SubDept>a</SubDept>
<StrtNm>a</StrtNm>
<BldgNb>a</BldgNb>
<PstCd>a</PstCd>
<TwnNm>a</TwnNm>
<CtrySubDvsn>a</CtrySubDvsn>
<Ctry>AA</Ctry>
<AdrLine>a</AdrLine>
</PstlAdr>
<Othr>
<Id>a</Id>
<SchmeNm>
<Cd>a</Cd>
</SchmeNm>
<Issr>a</Issr>
</Othr>
</FinInstnId>
<BrnchId>
<Id>a</Id>
<Nm>a</Nm>
<PstlAdr>
<AdrTp>ADDR</AdrTp>
<Dept>a</Dept>
<SubDept>a</SubDept>
<StrtNm>a</StrtNm>
<BldgNb>a</BldgNb>
<PstCd>a</PstCd>
<TwnNm>a</TwnNm>
<CtrySubDvsn>a</CtrySubDvsn>
<Ctry>AA</Ctry>
<AdrLine>a</AdrLine>
</PstlAdr>
</BrnchId>
</Pty>
<Tax>
<Id>a</Id>
<Rate>0</Rate>
<Amt Ccy="AAA">0</Amt>
</Tax>
</Chrgs>
<NtryDtls>
<Btch>
<MsgId>FG00000000000y88sd</MsgId>
<NbOfTxs>1</NbOfTxs>
</Btch>
<TxDtls>
<Refs>
<AcctSvcrRef>FRDA00000343</AcctSvcrRef>
<EndToEndId>E2E1201</EndToEndId>
<TxId>FRDA00003343</TxId>
<MndtId>MANFRST1COR1201003</MndtId>
</Refs>
<AmtDtls/>
<RltdPties>
<Dbtr>
<Nm>Creditor 1</Nm>
<PstlAdr>
<Ctry>PT</Ctry>
<AdrLine>TEST1</AdrLine>
<AdrLine>TEST2</AdrLine>
<AdrLine>TEST3</AdrLine>
<AdrLine>TEST4</AdrLine>
</PstlAdr>
<CtryOfRes>PT</CtryOfRes>
</Dbtr>
<DbtrAcct>
<Id>
<IBAN>FR7630588000010050000143176</IBAN>
</Id>
</DbtrAcct>
</RltdPties>
<RltdAgts>
<IntrmyAgt1>
<FinInstnId>
<Nm>81939316</Nm>
<PstlAdr>
<AdrLine>ADDRESS 1</AdrLine>
<AdrLine>ADDRESS 2</AdrLine>
<AdrLine>ADDRESS 3</AdrLine>
<AdrLine>ADDRESS 4</AdrLine>
</PstlAdr>
</FinInstnId>
</IntrmyAgt1>
</RltdAgts>
<RltdDts>
<AccptncDtTm>2016-12-06T04:01:10</AccptncDtTm>
<IntrBkSttlmDt>2016-12-07</IntrBkSttlmDt>
</RltdDts>
<AddtlTxInf>ENRICHED|TRUE SETT_METHOD|SEPA IAT_IND|FALSE DOMESTIC_IND|FALSE PRIORITY_IND|FALSEENRICHED|TRUE SETT_METHOD|SEPA IAT_ENRICHED|TRUE SETT_METHOD|SEPA IAT_ENRICHED|TRUE SETT_METHOD|SEPA IAT_ENRICHED|TRUE SETT_METHOD|SEPA IAT_ENRICHED|TRUE SETT_METHOD|SEPA IAT_ENRICHED|TRUE SETT_METHOD|SEPA IAT_EWEQDSDSDGFGFTYTY</AddtlTxInf>
</TxDtls>
</NtryDtls>
<AddtlNtryInf>ENRICHED|TRUE SETT_METHOD|SEPA IAT_IND|FALSE DOMESTIC_IND|FALSE PRIORITY_IND|FALSE</AddtlNtryInf>
</Ntry>
</Ntfctn>
</BkToCstmrDbtCdtNtfctn>
</Document>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<Doc:Document xmlns:Doc="urn:iso:std:iso:20022:tech:xsd:pacs.008.001.02">
<Doc:FIToFICstmrCdtTrf>
<Doc:GrpHdr>
<Doc:MsgId>TBEXO12345</Doc:MsgId>
<Doc:CreDtTm>2022-03-13T20:24:42.112+08:00</Doc:CreDtTm>
<Doc:NbOfTxs>1</Doc:NbOfTxs>
<Doc:SttlmInf>
<Doc:SttlmMtd>INDA</Doc:SttlmMtd>
<Doc:SttlmAcct>
<Doc:Id>
<Doc:Othr>
<Doc:Id>00010013800002001234</Doc:Id>
</Doc:Othr>
</Doc:Id>
</Doc:SttlmAcct>
</Doc:SttlmInf>
<Doc:InstgAgt>
<Doc:FinInstnId>
<Doc:BIC>FOOBARC0XXX</Doc:BIC>
</Doc:FinInstnId>
</Doc:InstgAgt>
<Doc:InstdAgt>
<Doc:FinInstnId>
<Doc:BIC>BANKANC0XXX</Doc:BIC>
</Doc:FinInstnId>
</Doc:InstdAgt>
</Doc:GrpHdr>
<Doc:CdtTrfTxInf>
<Doc:PmtTpInf>
<Doc:SvcLvl>
<Doc:Cd>SDVA1</Doc:Cd>
<Doc:Prtry>CRED</Doc:Prtry>
</Doc:SvcLvl>
</Doc:PmtTpInf>
<Doc:PmtId>
<Doc:InstrId>GTBEXO12345</Doc:InstrId>
<Doc:EndToEndId>GTBEXO12345</Doc:EndToEndId>
<Doc:TxId>GTBEXO12345</Doc:TxId>
</Doc:PmtId>
<Doc:IntrBkSttlmAmt Ccy="USD">23453</Doc:IntrBkSttlmAmt>
<Doc:IntrBkSttlmDt>2022-03-13+08:00</Doc:IntrBkSttlmDt>
<Doc:ChrgBr>CRED</Doc:ChrgBr>
<Doc:Dbtr>
<Doc:Nm>JOE DOE</Doc:Nm>
<Doc:PstlAdr>
<Doc:AdrLine>310 Field Road, NY</Doc:AdrLine>
<Doc:AdrLine>XXXX</Doc:AdrLine>
<Doc:AdrLine>PSBC</Doc:AdrLine>
<Doc:AdrLine>BJSH</Doc:AdrLine>
</Doc:PstlAdr>
<Doc:Id>
<Doc:OrgId>
<Doc:BICOrBEI>GCYXXXXXX12</Doc:BICOrBEI>
</Doc:OrgId>
</Doc:Id>
</Doc:Dbtr>
<Doc:DbtrAcct>
<Doc:Id>
<Doc:Othr>
<Doc:Id>01111001759234567890</Doc:Id>
</Doc:Othr>
</Doc:Id>
</Doc:DbtrAcct>
<Doc:DbtrAgt>
<Doc:FinInstnId>
<Doc:BIC>FOOBARC0XXX</Doc:BIC>
</Doc:FinInstnId>
</Doc:DbtrAgt>
<Doc:CdtrAgt>
<Doc:FinInstnId>
<Doc:BIC>BANKANC0XXX</Doc:BIC>
</Doc:FinInstnId>
</Doc:CdtrAgt>
<Doc:Cdtr>
<Doc:Nm>TEST CORP</Doc:Nm>
<Doc:PstlAdr>
<Doc:AdrLine>Nellis ABC, NV</Doc:AdrLine>
</Doc:PstlAdr>
</Doc:Cdtr>
<Doc:CdtrAcct>
<Doc:Id>
<Doc:Othr>
<Doc:Id>00013500510020179998</Doc:Id>
</Doc:Othr>
</Doc:Id>
</Doc:CdtrAcct>
</Doc:CdtTrfTxInf>
</Doc:FIToFICstmrCdtTrf>
</Doc:Document>
\ No newline at end of file
{1:F01${vm.ReceiverBic}5769414896}{2:O103${vm.createTime}${vm.createDate}${vm.SenderBic}0002000001${vm.outDate}${vm.outTime}N{3:{108:178908658RSC1}{111:001}{121:9bc16ba2-76e0-4651-b225-3bae8552f17a}}{4:
#if(!$null.isNull($vm.field20))
:20:$vm.field20
#end
#if(!$null.isNull($vm.filed13CList) && $vm.filed13CList.size()!=0)
#foreach($field13C in $vm.filed13CList)
:13C:$field13C
#end
#end
#if(!$null.isNull($vm.field23B) && $vm.field23B.length()>0)
:23B:$vm.field23B
#end
#if(!$null.isNull($vm.field23EList) && $vm.field23EList.size()!=0)
#foreach($field23E in $vm.field23EList)
:23E:$field23E
#end
#end
#if(!$null.isNull($vm.field23E) && $vm.field23E.length()>0)
:23E:$vm.field23E
#end
#if(!$null.isNull($vm.field26T) && $vm.field26T.length()>0)
:26T:$vm.field26T
#end
#if(!$null.isNull($vm.field32A) && $vm.field32A.length()>0)
:32A:$vm.field32A
#end
#if(!$null.isNull($vm.field33B))
:33B:$vm.field33B
#end
#if(!$null.isNull($vm.field36) && $vm.field36.length()>0)
:36:$vm.field36
#end
#if($vm.field50Key=='A')
#if($vm.field50A)
$vm.field50A
#end
#if($vm.field50Account)
:50A:$vm.field50Account
#end
#elseif($vm.field50Key=='F')
#if($vm.field50Account)
:50F:$vm.field50Account
#end
#elseif($vm.field50Key=='K')
#if($vm.field50Account)
:50K:$vm.field50Account
#if($vm.field50Adr)
$vm.field50Adr
#end
#end
#end
#if($vm.field52Key=='A')
#if($vm.field52Account)
:52A:$vm.field52Account
#end
#elseif($vm.field52Key=='D')
#if($vm.field52Account)
:52D:$vm.field52Account
#if($vm.field52DAdr)
$vm.field52DAdr
#end
#end
#end
#if($vm.field53Key=='A')
#if($vm.field53Account)
:53A:$vm.field53Account
#end
#elseif($vm.field53Key=='B')
#if($vm.field53Account)
:53B:$vm.field53Account
#end
#elseif($vm.field53Key=='D')
#if($vm.field53Account)
:53D:$vm.field53Account
#if($vm.field53DAdr)
$vm.field53DAdr
#end
#end
#end
#if($vm.field54Key=='A')
#if($vm.field54Account)
:54A:$vm.field54Account
#end
#elseif($vm.field54Key=='D')
#if($vm.field54Account)
:54D:$vm.field54Account
#if($vm.field54DAdr)
$vm.field54DAdr
#end
#end
#end
#if($vm.field55Key=='A')
#if($vm.field55Account)
:55A:$vm.field55Account
#end
#elseif($vm.field55Key=='D')
#if($vm.field55Account)
:55D:$vm.field55Account
#if($vm.field55DAdr)
$vm.field55DAdr
#end
#end
#end
#if($vm.field56Key=='A')
#if($vm.field56Account)
:56A:$vm.field56Account
#end
#elseif($vm.field56Key=='C')
#if($vm.field56Account)
:56C:$vm.field56Account
#end
#elseif($vm.field56Key=='D')
#if($vm.field56Account)
:56D:$vm.field56Account
#if($vm.field56DAdr)
$vm.field56DAdr
#end
#end
#end
#if($vm.field57Key=='A')
#if($vm.field57Account)
:57A:$vm.field57Account
#end
#elseif($vm.field57Key=='C')
#if($vm.field57Account)
:57C:$vm.field57Account
#end
#elseif($vm.field57Key=='D')
:57D:$vm.field57Account
#if($vm.field57DAdr)
$vm.field57DAdr
#end
#end
#if($vm.field59Key=='')
#if($vm.field59Adr)
:59:$vm.field59Adr
#end
#if($vm.field59Account)
:59:$vm.field59Account
#end
#end
#if($vm.field59Key=='A')
#if($vm.field59Account)
:59A:$vm.field59Account
#end
#end
#if($vm.field70)
:70::$vm.field70
#end
:71A:$vm.field71A
#if($vm.field71F)
:71F:$vm.field71F
#end
#if($vm.field71G)
:71G:$vm.field71G
#end
#if(!$null.isNull($vm.field72Adr1) && $vm.field72Adr1.length()>0)
:72:$vm.field72Adr1
#end
#if(!$null.isNull($vm.field72Adr2) && $vm.field72Adr2.length()>0)
:72:$vm.field72Adr2
#end
#if(!$null.isNull($vm.field72Adr3) && $vm.field72Adr3.length()>0)
:72:$vm.field72Adr3
#end
#if(!$null.isNull($vm.field72Adr4) && $vm.field72Adr4.length()>0)
:72:$vm.field72Adr4
#end
#if(!$null.isNull($vm.field77B) && $vm.field77B.length()>0)
:77B:$vm.field77B
#end
-}{5:{MAC:6342F3D2}{CHK:C412E5AF7797}{DLM:}}
{1:F01${vm.receiverBic}0001000001}{2:O${vm.mtType}${vm.createTime}${vm.createDate}${vm.senderBic}0002000001${vm.outDate}${vm.outTime}N}{3:{108:178908658RSC1}{111:001}{121:9bc16ba2-76e0-4651-b225-3bae8552f17a}}{4:
:20:$vm.field20
:21:$vm.field21
:25:$vm.field25a
#if(!$null.isNull($vm.field13D) && $vm.field13D.length()>0)
:13:$vm.field13D
#end
:32A:$vm.field32A
#if($vm.field50aOption=="A")
:50A:$vm.field50a
#elseif($vm.field50aOption=="F")
:50F:$vm.field50a
#elseif($vm.field50aOption=="K")
:50K:$vm.field50a
#end
#if($vm.field52aOption=="A")
:52A:$vm.field52a
#elseif($vm.field52aOption=="D")
:52D:$vm.field52a
#end
#if($vm.field56aOption=="A")
:56A:$vm.field56a
#elseif($vm.field56aOption=="D")
:56D:$vm.field56a
#end
#if(!$null.isNull($vm.field72) && $vm.field72.length()>0)
:72:$vm.field72
#end
-}{5:{MAC:6342F3D2}{CHK:C412E5AF7797}{DLM:}}
{1:F01${vm.receiverBic}0001000001}{2:O950${vm.createTime}${vm.createDate}${vm.senderBic}0002000001${vm.outDate}${vm.outTime}N}{3:{108:178908658RSC1}{111:001}{121:9bc16ba2-76e0-4651-b225-3bae8552f17a}}{4:
:20:$vm.field20
#if(!$null.isNull($vm.field21) && $vm.field21.length()>0)
:21:$vm.field21
#end
:25a:$vm.field25a
:28C:$vm.field28C
#if($vm.filed60Option=='F')
:60F:$vm.filed60
#elseif($vm.filed60Option=='M')
:60M:$vm.filed60
#end
#if(!$null.isNull($vm.filed61List) && $vm.filed61List.size()!=0)
#foreach($field61 in $vm.filed61List)
:61:$field61
#end
#end
#if($vm.filed62Option=='F')
:62F:$vm.filed62
#elseif($vm.filed62Option=='M')
:62M:$vm.filed62
#end
#if(!$null.isNull($vm.filed64) && $vm.filed64.length()>0)
:64:$vm.filed64
#end
#if(!$null.isNull($vm.field65) && $vm.field65.length()>0)
:65:$vm.field65
#end
#if(!$null.isNull($vm.field86) && $vm.field86.length()>0)
:86:$vm.field86
#end
-}{5:{MAC:6342F3D2}{CHK:C412E5AF7797}{DLM:}}
{1:F01${vm.receiverBic}0001000001}{2:O950${vm.createTime}${vm.createDate}${vm.senderBic}0002000001${vm.outDate}${vm.outTime}N}{3:{108:178908658RSC1}{111:001}{121:9bc16ba2-76e0-4651-b225-3bae8552f17a}}{4:
:20:$vm.field20
:25:$vm.field25a
:28C:$vm.field28C
#if($vm.filed60Option=="F")
:60F:$vm.filed60
#elseif($vm.filed60Option=="M")
:60M:$vm.filed60
#end
#if(!$null.isNull($vm.filed61List) && $vm.filed61List.size()!=0)
#foreach($field61 in $vm.filed61List)
:61:$field61
#end
#end
#if($vm.filed62Option=="F")
:62F:$vm.filed62
#elseif($vm.filed62Option=="M")
:62M:$vm.filed62
#end
#if(!$null.isNull($vm.filed64) && $vm.filed64.length() > 0)
:64:$vm.filed64
#end
-}{5:{MAC:6342F3D2}{CHK:C412E5AF7797}{DLM:}}
package com.brilliance.mt900;
import com.prowidesoftware.brilliance.mx2mt.Mx2MtCreateManager;
import java.io.File;
public class TestMx2MtFor900 {
public static void main(String[] args) throws Exception {
Mx2MtCreateManager mx2MtCreateManager = new Mx2MtCreateManager();
String mt900 = mx2MtCreateManager.mx2mt(
new File(System.getProperty("user.dir")+"\\swift-core\\src\\main\\resources\\swiftXml\\MxCamt05400102_DEBIT.xml"),
"D:/test/MT900.txt");
System.out.println(mt900);
}
}
package com.brilliance.mt910;
import com.prowidesoftware.brilliance.mx2mt.Mx2MtCreateManager;
import java.io.File;
public class TestMx2MtFor910 {
public static void main(String[] args) throws Exception {
Mx2MtCreateManager mx2MtCreateManager = new Mx2MtCreateManager();
String mt910 = mx2MtCreateManager.mx2mt(
new File(System.getProperty("user.dir")+"\\src\\main\\resources\\swiftXml\\MxCamt05400102_CREDIT.xml"),
"D:/test/MT910.txt");
System.out.println(mt910);
}
}
package com.brilliance.mt940;
import com.prowidesoftware.brilliance.mx2mt.Mx2MtCreateManager;
import java.io.File;
import java.net.URL;
public class Mx2Mt940 {
public static void main(String[] args) {
String s = null;
try {
URL resource = Mx2Mt940.class.getClassLoader().getResource("swiftXml/");
s = new Mx2MtCreateManager().mx2mt(new File(resource.getPath()+"MxCamt05300102_940.xml"));
} catch (Exception e) {
e.printStackTrace();
}
System.out.println(s);
}
}
package com.brilliance.mt950;
import com.prowidesoftware.swift.model.mx.MxCamt05300102;
import com.prowidesoftware.swift.model.mx.dic.*;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Marshaller;
import javax.xml.datatype.DatatypeConfigurationException;
import javax.xml.datatype.DatatypeFactory;
import javax.xml.datatype.XMLGregorianCalendar;
import java.io.File;
import java.io.IOException;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.List;
public class MessageCreationMxCamt05300102 {
public static void main(String[] args) throws DatatypeConfigurationException {
MxCamt05300102 mxCamt05300102 = new MxCamt05300102();
BankToCustomerStatementV02 bkToCstmrStmt = new BankToCustomerStatementV02();
//set groupHeader
GroupHeader42 grpHdr = new GroupHeader42();
grpHdr.setMsgId("00010013800002001234");
GregorianCalendar cal = new GregorianCalendar();
cal.setTime(new Date());
XMLGregorianCalendar creDtTm = DatatypeFactory.newInstance().newXMLGregorianCalendar(cal);
grpHdr.setCreDtTm(creDtTm);
grpHdr.setAddtlInf("EODY");
bkToCstmrStmt.setGrpHdr(grpHdr);
//set Stmt
AccountStatement2 stmt = new AccountStatement2();
stmt.setId("1123456789012317092013");
stmt.setElctrncSeqNb(new BigDecimal("178"));
stmt.setLglSeqNb(new BigDecimal("178"));
stmt.setCreDtTm(creDtTm);
DateTimePeriodDetails frToDt = new DateTimePeriodDetails();
frToDt.setFrDtTm(creDtTm);
frToDt.setToDtTm(creDtTm);
stmt.setFrToDt(frToDt);
ReportingSource1Choice rptgSrc = new ReportingSource1Choice();
rptgSrc.setCd("GPRD");
stmt.setRptgSrc(rptgSrc);
//SET ACCOUNT INFO
CashAccount20 acct = new CashAccount20();
AccountIdentification4Choice id = new AccountIdentification4Choice();
id.setIBAN("S15612345678012345");
acct.setId(id);
acct.setCcy("USD");
BranchAndFinancialInstitutionIdentification4 svcr = new BranchAndFinancialInstitutionIdentification4();
FinancialInstitutionIdentification7 finInstnId = new FinancialInstitutionIdentification7();
finInstnId.setBIC("BJWHS12X");
svcr.setFinInstnId(finInstnId);
acct.setSvcr(svcr);
stmt.setAcct(acct);
//SET CashBalance
List<CashBalance3> balList = new ArrayList<>();
CashBalance3 cashBalance301 = new CashBalance3();
BalanceType12 tp01 = new BalanceType12();
BalanceType5Choice cdOrPrtry01 = new BalanceType5Choice();
cdOrPrtry01.setCd(BalanceType12Code.OPBD);
tp01.setCdOrPrtry(cdOrPrtry01);
cashBalance301.setTp(tp01);
ActiveOrHistoricCurrencyAndAmount amt01 = new ActiveOrHistoricCurrencyAndAmount();
amt01.setCcy("USD");
amt01.setValue(new BigDecimal("120274.34"));
cashBalance301.setAmt(amt01);
cashBalance301.setCdtDbtInd(CreditDebitCode.CRDT);
DateAndDateTimeChoice dt01 = new DateAndDateTimeChoice();
dt01.setDt(creDtTm);
cashBalance301.setDt(dt01);
stmt.addBal(cashBalance301);
CashBalance3 cashBalance302 = new CashBalance3();
BalanceType12 tp02 = new BalanceType12();
BalanceType5Choice cdOrPrtry02 = new BalanceType5Choice();
cdOrPrtry02.setCd(BalanceType12Code.CLBD);
tp02.setCdOrPrtry(cdOrPrtry02);
cashBalance302.setTp(tp02);
ActiveOrHistoricCurrencyAndAmount amt02 = new ActiveOrHistoricCurrencyAndAmount();
amt02.setCcy("USD");
amt02.setValue(new BigDecimal("123456.29"));
cashBalance302.setAmt(amt02);
cashBalance302.setCdtDbtInd(CreditDebitCode.CRDT);
DateAndDateTimeChoice dt02 = new DateAndDateTimeChoice();
dt02.setDt(creDtTm);
cashBalance302.setDt(dt02);
stmt.addBal(cashBalance302);
CashBalance3 cashBalance303 = new CashBalance3();
BalanceType12 tp03 = new BalanceType12();
BalanceType5Choice cdOrPrtry03 = new BalanceType5Choice();
cdOrPrtry03.setCd(BalanceType12Code.CLAV);
tp03.setCdOrPrtry(cdOrPrtry03);
cashBalance303.setTp(tp03);
ActiveOrHistoricCurrencyAndAmount amt03 = new ActiveOrHistoricCurrencyAndAmount();
amt03.setCcy("USD");
amt03.setValue(new BigDecimal("119609.29"));
cashBalance303.setAmt(amt03);
cashBalance303.setCdtDbtInd(CreditDebitCode.CRDT);
DateAndDateTimeChoice dt03 = new DateAndDateTimeChoice();
dt03.setDt(creDtTm);
cashBalance303.setDt(dt03);
stmt.addBal(cashBalance303);
//Ntry
ReportEntry2 reportEntry201 = new ReportEntry2();
reportEntry201.setNtryRef("1309170100003901154395");
ActiveOrHistoricCurrencyAndAmount nTryAmt = new ActiveOrHistoricCurrencyAndAmount();
nTryAmt.setCcy("USD");
nTryAmt.setValue(new BigDecimal("393.17"));
reportEntry201.setAmt(nTryAmt);
reportEntry201.setCdtDbtInd(CreditDebitCode.DBIT);
reportEntry201.setSts(EntryStatus2Code.BOOK);
DateAndDateTimeChoice bookgDt = new DateAndDateTimeChoice();
bookgDt.setDt(creDtTm);
reportEntry201.setBookgDt(bookgDt);
DateAndDateTimeChoice valDt = new DateAndDateTimeChoice();
valDt.setDt(creDtTm);
reportEntry201.setValDt(valDt);
reportEntry201.setAcctSvcrRef("1309170100000390154395");
BankTransactionCodeStructure4 bkTxCd = new BankTransactionCodeStructure4();
ProprietaryBankTransactionCodeStructure1 prtry = new ProprietaryBankTransactionCodeStructure1();
prtry.setCd("123456789");
bkTxCd.setPrtry(prtry);
reportEntry201.setBkTxCd(bkTxCd);
//EntryDetails1
EntryDetails1 entryDetail1 = new EntryDetails1();
EntryTransaction2 entryTransaction2 = new EntryTransaction2();
TransactionReferences2 refs = new TransactionReferences2();
refs.setEndToEndId("S100000189-735");
refs.setTxId("1309170100000390154395");
entryTransaction2.setRefs(refs);
AmountAndCurrencyExchange3 amtDtls = new AmountAndCurrencyExchange3();
AmountAndCurrencyExchangeDetails3 instdAmt = new AmountAndCurrencyExchangeDetails3();
ActiveOrHistoricCurrencyAndAmount amt001 = new ActiveOrHistoricCurrencyAndAmount();
amt001.setCcy("USD");
amt001.setValue(new BigDecimal("393.17"));
instdAmt.setAmt(amt001);
amtDtls.setInstdAmt(instdAmt);
AmountAndCurrencyExchangeDetails3 txAmt = new AmountAndCurrencyExchangeDetails3();
txAmt.setAmt(amt001);
amtDtls.setTxAmt(txAmt);
entryTransaction2.setAmtDtls(amtDtls);
entryTransaction2.setAddtlTxInf("PLACI LOVECNAMENSKIH STORITEV");
entryDetail1.addTxDtls(entryTransaction2);
reportEntry201.addNtryDtls(entryDetail1);
stmt.addNtry(reportEntry201);
bkToCstmrStmt.addStmt(stmt);
mxCamt05300102.setBkToCstmrStmt(bkToCstmrStmt);
try {
JAXBContext jaxbContext = JAXBContext.newInstance(MxCamt05300102.class);
Marshaller marshaller = jaxbContext.createMarshaller();
marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);
File file = new File("D:/test/"+MxCamt05300102.class.getSimpleName()+".xml");
if (!file.exists()) {
file.createNewFile();
}
marshaller.marshal(mxCamt05300102, file);
} catch (JAXBException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
package com.brilliance.mt950;
import com.prowidesoftware.brilliance.mx2mt.Mx2MtCreateManager;
import java.io.File;
public class TestMx2MtFor950 {
public static void main(String[] args) throws Exception {
Mx2MtCreateManager mx2MtCreateManager = new Mx2MtCreateManager();
String mt950 = mx2MtCreateManager.mx2mt(
new File(System.getProperty("user.dir")+"\\swift-core\\src\\main\\resources\\swiftXml\\MxCamt05300102_950.xml"),
"D:/test/MT950.txt");
System.out.println(mt950);
}
}
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