File tree Expand file tree Collapse file tree 3 files changed +36
-0
lines changed
src/main/java/io/inisos/bank4j Expand file tree Collapse file tree 3 files changed +36
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ public interface CreditTransfer {
1414
1515 Priority getInstructionPriority ();
1616
17+ String getServiceLevelCode ();
18+
1719 Optional <Party > getDebtor ();
1820
1921 BankAccount getDebtorAccount ();
@@ -28,6 +30,10 @@ public interface CreditTransfer {
2830
2931 Collection <Transaction > getTransactions ();
3032
33+ ChargeBearer getChargeBearer ();
34+
35+ boolean isBatchBooking ();
36+
3137 default BigDecimal getTotalAmount () {
3238 return getTransactions ()
3339 .stream ()
Original file line number Diff line number Diff line change @@ -287,6 +287,11 @@ public Priority getInstructionPriority() {
287287 return instructionPriority ;
288288 }
289289
290+ @ Override
291+ public String getServiceLevelCode () {
292+ return serviceLevelCode ;
293+ }
294+
290295 @ Override
291296 public Optional <Party > getDebtor () {
292297 return Optional .ofNullable (debtor );
@@ -322,6 +327,16 @@ public Collection<Transaction> getTransactions() {
322327 return transactions ;
323328 }
324329
330+ @ Override
331+ public ChargeBearer getChargeBearer () {
332+ return chargeBearer ;
333+ }
334+
335+ @ Override
336+ public boolean isBatchBooking () {
337+ return batchBooking ;
338+ }
339+
325340 private <T > Collection <T > requireTransaction (Collection <T > collection ) {
326341 if (collection .isEmpty ()) {
327342 throw new IllegalArgumentException ("At least 1 transaction is required" );
Original file line number Diff line number Diff line change @@ -323,6 +323,11 @@ public Priority getInstructionPriority() {
323323 return instructionPriority ;
324324 }
325325
326+ @ Override
327+ public String getServiceLevelCode () {
328+ return serviceLevelCode ;
329+ }
330+
326331 @ Override
327332 public Optional <Party > getDebtor () {
328333 return Optional .ofNullable (debtor );
@@ -358,6 +363,16 @@ public Collection<Transaction> getTransactions() {
358363 return transactions ;
359364 }
360365
366+ @ Override
367+ public ChargeBearer getChargeBearer () {
368+ return chargeBearer ;
369+ }
370+
371+ @ Override
372+ public boolean isBatchBooking () {
373+ return batchBooking ;
374+ }
375+
361376 private <T > Collection <T > requireTransaction (Collection <T > collection ) {
362377 if (collection .isEmpty ()) {
363378 throw new IllegalArgumentException ("At least 1 transaction is required" );
You can’t perform that action at this time.
0 commit comments