Search in sources :

Example 1 with SameBankAccountPayload

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

the class OfferBookViewModelTest method getSameBankAccount.

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

Aggregations

Country (bisq.core.locale.Country)1 FiatCurrency (bisq.core.locale.FiatCurrency)1 SameBankAccount (bisq.core.payment.SameBankAccount)1 SameBankAccountPayload (bisq.core.payment.payload.SameBankAccountPayload)1