Remove \t and whitespaces from xml
This commit is contained in:
@@ -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>";
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user