Renamed EpcQrCode to EpcQrCodeValues

This commit is contained in:
dankito 2022-03-13 22:30:02 +01:00
parent 5d818dfeec
commit 01b5d33dfb
2 changed files with 8 additions and 8 deletions

View File

@ -4,18 +4,18 @@ package net.codinux.banking.epcqrcode
open class EpcQrCodeGenerator {
open fun generate(param: EpcQrCodeConfig): EpcQrCode {
return EpcQrCode(
EpcQrCode.ServiceTagDefaultValue,
open fun generate(param: EpcQrCodeConfig): EpcQrCodeValues {
return EpcQrCodeValues(
EpcQrCodeValues.ServiceTagDefaultValue,
EpcQrCodeVersion.Version2,
param.encoding,
EpcQrCode.FunctionDefaultValue,
EpcQrCodeValues.FunctionDefaultValue,
param.bic,
param.receiverName,
param.iban,
EpcQrCode.CurrencyCodeDefaultValue,
EpcQrCodeValues.CurrencyCodeDefaultValue,
param.amount,
EpcQrCode.PurposeCodeDefaultValue,
EpcQrCodeValues.PurposeCodeDefaultValue,
null,
param.reference,
param.noteToUser
@ -34,7 +34,7 @@ open class EpcQrCodeGenerator {
epcQrCodeBuilder.appendLine(mapNullable(epcQrCode.bic))
epcQrCodeBuilder.appendLine(epcQrCode.receiverName)
epcQrCodeBuilder.appendLine(epcQrCode.iban)
epcQrCodeBuilder.appendLine(mapNullable(epcQrCode.amount?.let { (epcQrCode.currencyCode ?: EpcQrCode.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(epcQrCode.purposeCode)
epcQrCodeBuilder.appendLine(mapNullable(epcQrCode.remittanceReference))

View File

@ -1,7 +1,7 @@
package net.codinux.banking.epcqrcode
open class EpcQrCode(
open class EpcQrCodeValues(
/**
* 3 bytes.