mirror of
https://github.com/valitydev/adapter-flow-lib.git
synced 2024-11-06 00:05:22 +00:00
Add currency name (#77)
This commit is contained in:
parent
f5a59d2032
commit
352d468a4d
2
pom.xml
2
pom.xml
@ -12,7 +12,7 @@
|
||||
</parent>
|
||||
|
||||
<artifactId>adapter-flow-lib</artifactId>
|
||||
<version>0.2.4</version>
|
||||
<version>0.2.5</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>adapter-flow-lib</name>
|
||||
|
@ -80,6 +80,7 @@ public class CtxToEntryModelConverter implements Converter<PaymentContext, Entry
|
||||
.invoiceFormatPaymentId(invoiceFormatPaymentId)
|
||||
.createdAt(paymentInfo.getPayment().getCreatedAt())
|
||||
.currency(Currency.builder()
|
||||
.name(payment.getCost().getCurrency().getName())
|
||||
.symbolicCode(payment.getCost().getCurrency().getSymbolicCode())
|
||||
.numericCode(payment.getCost().getCurrency().getNumericCode())
|
||||
.build()
|
||||
|
@ -69,6 +69,7 @@ public class RecCtxToEntryModelConverter implements Converter<RecurrentTokenCont
|
||||
.paymentId(orderId)
|
||||
.invoiceFormatPaymentId(invoiceFormatPaymentId)
|
||||
.currency(Currency.builder()
|
||||
.name(recurrentPaymentTool.getMinimalPaymentCost().getCurrency().getName())
|
||||
.symbolicCode(
|
||||
recurrentPaymentTool.getMinimalPaymentCost().getCurrency().getSymbolicCode())
|
||||
.numericCode(
|
||||
|
@ -11,6 +11,11 @@ import lombok.experimental.SuperBuilder;
|
||||
@AllArgsConstructor
|
||||
public class Currency {
|
||||
|
||||
/**
|
||||
* Currency name
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* Currency code ISO 4217 in symbolic format (e.g., "USD" for United States dollar)
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user