diff --git a/apitest/src/test/java/bisq/apitest/method/payment/AbstractPaymentAccountTest.java b/apitest/src/test/java/bisq/apitest/method/payment/AbstractPaymentAccountTest.java index 034bc3aeb0..433898731e 100644 --- a/apitest/src/test/java/bisq/apitest/method/payment/AbstractPaymentAccountTest.java +++ b/apitest/src/test/java/bisq/apitest/method/payment/AbstractPaymentAccountTest.java @@ -129,7 +129,10 @@ public class AbstractPaymentAccountTest extends MethodTest { assertEquals(paymentMethodId, emptyForm.get(PROPERTY_NAME_PAYMENT_METHOD_ID)); assertEquals("your accountname", emptyForm.get(PROPERTY_NAME_ACCOUNT_NAME)); for (String field : fields) { - assertEquals("your " + field.toLowerCase(), emptyForm.get(field)); + if (field.equals("country")) + assertEquals("your two letter country code", emptyForm.get(field)); + else + assertEquals("your " + field.toLowerCase(), emptyForm.get(field)); } } diff --git a/core/src/main/java/bisq/core/api/model/PaymentAccountTypeAdapter.java b/core/src/main/java/bisq/core/api/model/PaymentAccountTypeAdapter.java index b566ac10b0..219c3db04c 100644 --- a/core/src/main/java/bisq/core/api/model/PaymentAccountTypeAdapter.java +++ b/core/src/main/java/bisq/core/api/model/PaymentAccountTypeAdapter.java @@ -147,7 +147,10 @@ class PaymentAccountTypeAdapter extends TypeAdapter { String fieldName = field.getName(); out.name(fieldName); - out.value("your " + fieldName.toLowerCase()); + if (fieldName.equals("country")) + out.value("your two letter country code"); + else + out.value("your " + fieldName.toLowerCase()); } } catch (Exception ex) { String errMsg = format("cannot create a new %s json form",