From 909b517c49da422c3c998f09dfb806727acea186 Mon Sep 17 00:00:00 2001 From: zubri Date: Sun, 5 May 2024 21:16:04 -0300 Subject: [PATCH] added isPercentage helper method in field 37K + javadoc typo --- .../prowidesoftware/swift/model/field/Field37K.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/generated/java/com/prowidesoftware/swift/model/field/Field37K.java b/src/generated/java/com/prowidesoftware/swift/model/field/Field37K.java index db65a1a59..7e3c66559 100644 --- a/src/generated/java/com/prowidesoftware/swift/model/field/Field37K.java +++ b/src/generated/java/com/prowidesoftware/swift/model/field/Field37K.java @@ -606,5 +606,18 @@ public static Field37K fromJson(final String json) { return field; } + /** + * Constant with the literal value PCT + * @since 9.4.16 + */ + public static final String PERCENTAGE = "PCT"; + /** + * This fields admits the literal PCT as a CurrencyCode meaning the amount is a percentage. + * @return true if the currency code is PCT, false otherwise + * @since 9.4.16 + */ + public boolean isPercentage() { + return PERCENTAGE.equals(getComponent1()); + } }