@@ -0,0 +1,2044 @@
+package main.java.org.bankio.sepa;%0D%0A%0D%0Aimport java.io.InputStream;%0D%0Aimport java.io.OutputStream;%0D%0Aimport java.nio.charset.StandardCharsets;%0D%0A%0D%0Aimport javax.xml.bind.JAXBContext;%0D%0Aimport javax.xml.bind.JAXBElement;%0D%0Aimport javax.xml.bind.JAXBException;%0D%0Aimport javax.xml.bind.Marshaller;%0D%0Aimport javax.xml.bind.Unmarshaller;%0D%0Aimport javax.xml.transform.stream.StreamSource;%0D%0A%0D%0Aimport iso.std.iso._20022.tech.xsd.pain_001_001.CustomerCreditTransferInitiationV07;%0D%0Aimport iso.std.iso._20022.tech.xsd.pain_001_001.Document;%0D%0Aimport iso.std.iso._20022.tech.xsd.pain_001_001.ObjectFactory;%0D%0A%0D%0Apublic class CustomerCreditTransferInitiation %7B%0D%0A%09private Document document = new Document();%0D%0A%09private CustomerCreditTransferInitiationV07 customerCreditTransferInitiation;%0D%0A%09%0D%0A%09public CustomerCreditTransferInitiationV07 getCustomerCreditTransferInitiation() %7B%0D%0A%09%09return customerCreditTransferInitiation;%0D%0A%09%7D%0D%0A%0D%0A%09public CustomerCreditTransferInitiation(Document document) %7B%0D%0A%09%09this.document = document;%0D%0A%09%09customerCreditTransferInitiation= new CustomerCreditTransferInitiationV07();%0D%0A%09%09document.setCstmrCdtTrfInitn(customerCreditTransferInitiation);%0D%0A%09%7D%0D%0A%09%0D%0A%09public static CustomerCreditTransferInitiation read(InputStream is) throws JAXBException %7B%0D%0A%09%09JAXBContext jc = JAXBContext.newInstance(Document.class);%0D%0A%09%09Unmarshaller unmarshaller = jc.createUnmarshaller();%0D%0A%09%09%09%09%0D%0A%09%09StreamSource streamSource = new StreamSource(is);%0D%0A%09%09JAXBElement%3CDocument%3E root = unmarshaller.unmarshal(streamSource, Document.class);%0D%0A%09%09%0D%0A%09%09return new CustomerCreditTransferInitiation(root.getValue());%0D%0A%09%7D%0D%0A%09%0D%0A%09public void write(OutputStream outputStream) throws JAXBException %7B%0D%0A%09%09JAXBContext jAXBContext = JAXBContext.newInstance(Document.class);%0D%0A%09%09Marshaller marshaller = jAXBContext.createMarshaller();%0D%0A        marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);%0D%0A        %0D%0A        marshaller.setProperty(Marshaller.JAXB_ENCODING, StandardCharsets.UTF_8.name());%0D%0A        marshaller.marshal(new ObjectFactory().createDocument(document), outputStream);%0D%0A%09%7D%0D%0A%7D%0D%0A

Add pain.001.001 CustomerCreditTransferInitiation V07