diff --git a/EpcQrCode/src/commonMain/kotlin/net/codinux/banking/epcqrcode/EpcQrCodeGenerator.kt b/EpcQrCode/src/commonMain/kotlin/net/codinux/banking/epcqrcode/EpcQrCodeGenerator.kt index e291c99..077c411 100644 --- a/EpcQrCode/src/commonMain/kotlin/net/codinux/banking/epcqrcode/EpcQrCodeGenerator.kt +++ b/EpcQrCode/src/commonMain/kotlin/net/codinux/banking/epcqrcode/EpcQrCodeGenerator.kt @@ -62,7 +62,7 @@ open class EpcQrCodeGenerator { epcQrCodeBuilder.appendLine(epcQrCode.coding.code) epcQrCodeBuilder.appendLine(epcQrCode.function) epcQrCodeBuilder.appendLine(mapNullable(epcQrCode.bic)) - epcQrCodeBuilder.appendLine(epcQrCode.receiverName) + epcQrCodeBuilder.appendLine(epcQrCode.receiverName) // TODO: encode to param.encoding epcQrCodeBuilder.appendLine(epcQrCode.iban) epcQrCodeBuilder.appendLine(mapNullable(epcQrCode.amount?.let { (epcQrCode.currencyCode ?: EpcQrCodeValues.CurrencyCodeDefaultValue) + it })) // TODO: ensure that amount is converted to the correct format epcQrCodeBuilder.appendLine(mapNullable(epcQrCode.purposeCode)) @@ -75,14 +75,14 @@ open class EpcQrCodeGenerator { if (epcQrCode.remittanceText != null || epcQrCode.informationForUser != null) { if (epcQrCode.informationForUser != null) { - epcQrCodeBuilder.appendLine(mapNullable(epcQrCode.remittanceText)) + epcQrCodeBuilder.appendLine(mapNullable(epcQrCode.remittanceText)) // TODO: encode to param.encoding } else { - epcQrCodeBuilder.append(mapNullable(epcQrCode.remittanceText)) + epcQrCodeBuilder.append(mapNullable(epcQrCode.remittanceText)) // TODO: encode to param.encoding } } if (epcQrCode.informationForUser != null) { - epcQrCodeBuilder.append(epcQrCode.informationForUser) + epcQrCodeBuilder.append(epcQrCode.informationForUser) // TODO: encode to param.encoding } return epcQrCodeBuilder.toString()