Renamed EpcQrCode to EpcQrCodeValues
This commit is contained in:
parent
5d818dfeec
commit
01b5d33dfb
|
@ -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))
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package net.codinux.banking.epcqrcode
|
||||
|
||||
|
||||
open class EpcQrCode(
|
||||
open class EpcQrCodeValues(
|
||||
|
||||
/**
|
||||
* 3 bytes.
|
Loading…
Reference in New Issue