Added TODO for encoding

This commit is contained in:
dankito 2024-10-04 03:14:31 +02:00
parent 13d01a6be3
commit fbca7ad51f
1 changed files with 4 additions and 4 deletions

View File

@ -62,7 +62,7 @@ open class EpcQrCodeGenerator {
epcQrCodeBuilder.appendLine(epcQrCode.coding.code) epcQrCodeBuilder.appendLine(epcQrCode.coding.code)
epcQrCodeBuilder.appendLine(epcQrCode.function) epcQrCodeBuilder.appendLine(epcQrCode.function)
epcQrCodeBuilder.appendLine(mapNullable(epcQrCode.bic)) epcQrCodeBuilder.appendLine(mapNullable(epcQrCode.bic))
epcQrCodeBuilder.appendLine(epcQrCode.receiverName) epcQrCodeBuilder.appendLine(epcQrCode.receiverName) // TODO: encode to param.encoding
epcQrCodeBuilder.appendLine(epcQrCode.iban) 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.amount?.let { (epcQrCode.currencyCode ?: EpcQrCodeValues.CurrencyCodeDefaultValue) + it })) // TODO: ensure that amount is converted to the correct format
epcQrCodeBuilder.appendLine(mapNullable(epcQrCode.purposeCode)) epcQrCodeBuilder.appendLine(mapNullable(epcQrCode.purposeCode))
@ -75,14 +75,14 @@ open class EpcQrCodeGenerator {
if (epcQrCode.remittanceText != null || epcQrCode.informationForUser != null) { if (epcQrCode.remittanceText != null || epcQrCode.informationForUser != null) {
if (epcQrCode.informationForUser != null) { if (epcQrCode.informationForUser != null) {
epcQrCodeBuilder.appendLine(mapNullable(epcQrCode.remittanceText)) epcQrCodeBuilder.appendLine(mapNullable(epcQrCode.remittanceText)) // TODO: encode to param.encoding
} else { } else {
epcQrCodeBuilder.append(mapNullable(epcQrCode.remittanceText)) epcQrCodeBuilder.append(mapNullable(epcQrCode.remittanceText)) // TODO: encode to param.encoding
} }
} }
if (epcQrCode.informationForUser != null) { if (epcQrCode.informationForUser != null) {
epcQrCodeBuilder.append(epcQrCode.informationForUser) epcQrCodeBuilder.append(epcQrCode.informationForUser) // TODO: encode to param.encoding
} }
return epcQrCodeBuilder.toString() return epcQrCodeBuilder.toString()