Pipe in bank mandate parameter.

This commit is contained in:
Alex Hart
2023-10-24 15:21:16 -03:00
committed by Cody Henthorne
parent 95d68e09da
commit dddd0e7b71
5 changed files with 39 additions and 17 deletions

View File

@@ -120,11 +120,11 @@ public class DonationsService {
);
}
public ServiceResponse<BankMandate> getBankMandate(Locale locale) {
public ServiceResponse<BankMandate> getBankMandate(Locale locale, String bankTransferType) {
return getCachedValue(
locale,
sepaBankMandateCache,
l -> pushServiceSocket.getBankMandate(l, "SEPA_DEBIT"),
l -> pushServiceSocket.getBankMandate(l, bankTransferType),
SEPA_DEBIT_MANDATE_TTL
);
}