dev.vality.fraudo.utils.key.generator.CountryKeyGenerator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fraudo Show documentation
Show all versions of fraudo Show documentation
Language for describing antifraud patterns
package dev.vality.fraudo.utils.key.generator;
import dev.vality.fraudo.FraudoPaymentParser;
import dev.vality.fraudo.utils.TextUtil;
import lombok.AccessLevel;
import lombok.NoArgsConstructor;
@NoArgsConstructor(access = AccessLevel.PRIVATE)
public class CountryKeyGenerator {
public static String generate(FraudoPaymentParser.Country_byContext ctx) {
String fieldName = TextUtil.safeGetText(ctx.STRING());
return new StringBuilder()
.append(ctx.children.get(0))
.append(fieldName)
.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy