Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tl-luca-baggi committed Dec 4, 2024
1 parent 0ccfdd4 commit 249524e
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -659,13 +659,18 @@ private PreselectedProviderSelection buildPreselectedProviderSelection() {
private Beneficiary buildBeneficiary(CurrencyCode currencyCode) {
switch (currencyCode) {
case GBP:
case EUR:
MerchantAccount account = getMerchantAccount(currencyCode);
MerchantAccount gbpAccount = getMerchantAccount(currencyCode);
return Beneficiary.merchantAccount()
.merchantAccountId(account.getId())
.merchantAccountId(gbpAccount.getId())
.reference(UUID.randomUUID().toString())
.statementReference(RandomStringUtils.randomAlphanumeric(18))
.build();
case EUR:
MerchantAccount eurAccount = getMerchantAccount(currencyCode);
return Beneficiary.merchantAccount()
.merchantAccountId(eurAccount.getId())
.reference(UUID.randomUUID().toString())
.build();
case PLN:
return Beneficiary.externalAccount()
.accountHolderName("Ben Eficiary")
Expand Down

0 comments on commit 249524e

Please sign in to comment.