All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev.vality.fraudo.utils.key.generator.CountryKeyGenerator Maven / Gradle / Ivy

There is a newer version: 1.0.7
Show newest version
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