Search in sources :

Example 1 with NationalBankAccount

use of bisq.core.payment.NationalBankAccount in project bisq-desktop by bisq-network.

the class OfferBookViewModelTest method getNationalBankAccount.

private PaymentAccount getNationalBankAccount(String currencyCode, String countryCode, String bankId) {
    CountryBasedPaymentAccount paymentAccount = new NationalBankAccount();
    paymentAccount.setSingleTradeCurrency(new FiatCurrency(currencyCode));
    paymentAccount.setCountry(new Country(countryCode, null, null));
    ((NationalBankAccountPayload) paymentAccount.getPaymentAccountPayload()).setBankId(bankId);
    return paymentAccount;
}
Also used : NationalBankAccount(bisq.core.payment.NationalBankAccount) CountryBasedPaymentAccount(bisq.core.payment.CountryBasedPaymentAccount) Country(bisq.core.locale.Country) FiatCurrency(bisq.core.locale.FiatCurrency) NationalBankAccountPayload(bisq.core.payment.payload.NationalBankAccountPayload)

Aggregations

Country (bisq.core.locale.Country)1 FiatCurrency (bisq.core.locale.FiatCurrency)1 CountryBasedPaymentAccount (bisq.core.payment.CountryBasedPaymentAccount)1 NationalBankAccount (bisq.core.payment.NationalBankAccount)1 NationalBankAccountPayload (bisq.core.payment.payload.NationalBankAccountPayload)1