Remove \t and whitespaces from xml

This commit is contained in:
Sebastian Sieber
2022-03-21 16:23:53 +01:00
parent 577ac0e930
commit 4077700b2e
4 changed files with 223 additions and 226 deletions

View File

@@ -24,6 +24,7 @@ public interface IZUGFeRDTradeSettlementDebit extends IZUGFeRDTradeSettlement {
@Override
default String getSettlementXML() {
@@ -38,6 +39,7 @@ public interface IZUGFeRDTradeSettlementDebit extends IZUGFeRDTradeSettlement {
return xml;
}
@Override
default String getPaymentXML() {
return "<ram:DirectDebitMandateID>"+XMLTools.encodeXML(getMandate())+"</ram:DirectDebitMandateID>";
}

View File

@@ -66,19 +66,19 @@ public interface IZUGFeRDTradeSettlementPayment extends IZUGFeRDTradeSettlement
}
String xml = " <ram:SpecifiedTradeSettlementPaymentMeans>"
+ " <ram:TypeCode>58</ram:TypeCode>"
+ " <ram:Information>SEPA credit transfer</ram:Information>"
+ " <ram:PayeePartyCreditorFinancialAccount>"
+ " <ram:IBANID>" + XMLTools.encodeXML(getOwnIBAN()) + "</ram:IBANID>";
String xml = "<ram:SpecifiedTradeSettlementPaymentMeans>"
+ "<ram:TypeCode>58</ram:TypeCode>"
+ "<ram:Information>SEPA credit transfer</ram:Information>"
+ "<ram:PayeePartyCreditorFinancialAccount>"
+ "<ram:IBANID>" + XMLTools.encodeXML(getOwnIBAN()) + "</ram:IBANID>";
xml+= accountNameStr;
xml+= " </ram:PayeePartyCreditorFinancialAccount>"
+ " <ram:PayeeSpecifiedCreditorFinancialInstitution>"
+ " <ram:BICID>" + XMLTools.encodeXML(getOwnBIC()) + "</ram:BICID>"
xml+= "</ram:PayeePartyCreditorFinancialAccount>"
+ "<ram:PayeeSpecifiedCreditorFinancialInstitution>"
+ "<ram:BICID>" + XMLTools.encodeXML(getOwnBIC()) + "</ram:BICID>"
// + " <ram:Name>"+trans.getOwnBankName()+"</ram:Name>"
//
+ " </ram:PayeeSpecifiedCreditorFinancialInstitution>"
+ " </ram:SpecifiedTradeSettlementPaymentMeans>";
+ "</ram:PayeeSpecifiedCreditorFinancialInstitution>"
+ "</ram:SpecifiedTradeSettlementPaymentMeans>";
return xml;
}