From c6c9ff11fe22646039f9f68b8efe1c486cf8257d Mon Sep 17 00:00:00 2001 From: Alexander Romanov Date: Mon, 10 Oct 2022 16:09:47 +0400 Subject: [PATCH] Add currency exponent (#49) --- pom.xml | 2 +- .../dev/vality/adapter/flow/lib/model/Currency.java | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 712b9b5..9d11feb 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ adapter-flow-lib - 0.1.17 + 0.1.18 jar adapter-flow-lib diff --git a/src/main/java/dev/vality/adapter/flow/lib/model/Currency.java b/src/main/java/dev/vality/adapter/flow/lib/model/Currency.java index e52511e..eb6678b 100644 --- a/src/main/java/dev/vality/adapter/flow/lib/model/Currency.java +++ b/src/main/java/dev/vality/adapter/flow/lib/model/Currency.java @@ -12,12 +12,18 @@ import lombok.experimental.SuperBuilder; public class Currency { /** - * Currency in symbolic formats (example: "USD"). + * Currency code ISO 4217 in symbolic format (e.g., "USD" for United States dollar) */ private String symbolicCode; + /** - * Currency in symbolic formats (example: "USD"). + * Currency code ISO 4217 in numeric format (e.g., "840" for United States dollar) */ private Short numericCode; + /** + * Number of decimal places between the smallest defined currency unit + * and a whole currency unit ("2" for most currencies) + */ + private Short exponent; }