Add exponent (#80)

This commit is contained in:
struga 2024-03-31 11:56:22 +03:00 committed by GitHub
parent 352d468a4d
commit 11fd78b6d1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 1 deletions

View File

@ -12,7 +12,7 @@
</parent>
<artifactId>adapter-flow-lib</artifactId>
<version>0.2.5</version>
<version>0.2.6</version>
<packaging>jar</packaging>
<name>adapter-flow-lib</name>

View File

@ -83,6 +83,7 @@ public class CtxToEntryModelConverter implements Converter<PaymentContext, Entry
.name(payment.getCost().getCurrency().getName())
.symbolicCode(payment.getCost().getCurrency().getSymbolicCode())
.numericCode(payment.getCost().getCurrency().getNumericCode())
.exponent(payment.getCost().getCurrency().getExponent())
.build()
).amount(payment.getCost().getAmount())
.details(Objects.requireNonNullElse(details.getDescription(), details.getProduct()))

View File

@ -74,6 +74,7 @@ public class RecCtxToEntryModelConverter implements Converter<RecurrentTokenCont
recurrentPaymentTool.getMinimalPaymentCost().getCurrency().getSymbolicCode())
.numericCode(
recurrentPaymentTool.getMinimalPaymentCost().getCurrency().getNumericCode())
.exponent(recurrentPaymentTool.getMinimalPaymentCost().getCurrency().getExponent())
.build()
)
.amount(recurrentPaymentTool.getMinimalPaymentCost().getAmount())