mirror of
https://github.com/valitydev/adapter-flow-lib.git
synced 2024-11-06 00:05:22 +00:00
Add exponent (#80)
This commit is contained in:
parent
352d468a4d
commit
11fd78b6d1
2
pom.xml
2
pom.xml
@ -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>
|
||||
|
@ -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()))
|
||||
|
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user