Search in sources :

Example 1 with Country

use of io.bitsquare.locale.Country in project bitsquare by bitsquare.

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));
    ((NationalBankAccountContractData) paymentAccount.getContractData()).setBankId(bankId);
    return paymentAccount;
}
Also used : Country(io.bitsquare.locale.Country) FiatCurrency(io.bitsquare.locale.FiatCurrency)

Example 2 with Country

use of io.bitsquare.locale.Country in project bitsquare by bitsquare.

the class OfferBookViewModelTest method getSpecificBanksAccount.

private PaymentAccount getSpecificBanksAccount(String currencyCode, String countryCode, String bankId, ArrayList<String> bankIds) {
    SpecificBanksAccount paymentAccount = new SpecificBanksAccount();
    paymentAccount.setSingleTradeCurrency(new FiatCurrency(currencyCode));
    paymentAccount.setCountry(new Country(countryCode, null, null));
    ((SpecificBanksAccountContractData) paymentAccount.getContractData()).setBankId(bankId);
    bankIds.forEach(((SpecificBanksAccountContractData) paymentAccount.getContractData())::addAcceptedBank);
    return paymentAccount;
}
Also used : Country(io.bitsquare.locale.Country) FiatCurrency(io.bitsquare.locale.FiatCurrency)

Example 3 with Country

use of io.bitsquare.locale.Country in project bitsquare by bitsquare.

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));
    ((SameBankAccountContractData) paymentAccount.getContractData()).setBankId(bankId);
    return paymentAccount;
}
Also used : Country(io.bitsquare.locale.Country) FiatCurrency(io.bitsquare.locale.FiatCurrency)

Example 4 with Country

use of io.bitsquare.locale.Country in project bitsquare by bitsquare.

the class OfferBookViewModelTest method getSepaAccount.

private PaymentAccount getSepaAccount(String currencyCode, String countryCode, String bic, ArrayList<String> countryCodes) {
    CountryBasedPaymentAccount paymentAccount = new SepaAccount();
    paymentAccount.setSingleTradeCurrency(new FiatCurrency(currencyCode));
    paymentAccount.setCountry(new Country(countryCode, null, null));
    ((SepaAccountContractData) paymentAccount.getContractData()).setBic(bic);
    countryCodes.forEach(((SepaAccountContractData) paymentAccount.getContractData())::addAcceptedCountry);
    return paymentAccount;
}
Also used : Country(io.bitsquare.locale.Country) FiatCurrency(io.bitsquare.locale.FiatCurrency)

Aggregations

Country (io.bitsquare.locale.Country)4 FiatCurrency (io.bitsquare.locale.FiatCurrency)4