File tree 2 files changed +26
-0
lines changed
src/sdk/src/main/java/com/sportradar/mbs/sdk
2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,11 @@ public CompletableFuture<CashoutResponse> sendCashoutAsync(final CashoutRequest
44
44
return engine .execute ("ticket-cashout" , request , CashoutResponse .class );
45
45
}
46
46
47
+ @ Override
48
+ public CompletableFuture <CashoutInformResponse > sendCashoutInformAsync (final CashoutInformRequest request ) {
49
+ return engine .execute ("cashout-inform" , request , CashoutInformResponse .class );
50
+ }
51
+
47
52
@ Override
48
53
public CompletableFuture <CashoutAckResponse > sendCashoutAckAsync (final CashoutAckRequest request ) {
49
54
return engine .execute ("ticket-cashout-ack" , request , CashoutAckResponse .class );
Original file line number Diff line number Diff line change @@ -90,6 +90,19 @@ default CashoutResponse sendCashout(CashoutRequest request)
90
90
return this .sendCashoutAsync (request ).get ();
91
91
}
92
92
93
+ /**
94
+ * Sends a cashout inform request synchronously and returns the corresponding response.
95
+ *
96
+ * @param request a {@link CashoutInformRequest} to be sent
97
+ * @return a {@link CashoutInformResponse} received
98
+ * @throws ExecutionException if the execution of the request encounters an exception wrapping the cause exception
99
+ * @throws InterruptedException if the execution of the request is interrupted
100
+ */
101
+ default CashoutInformResponse sendCashoutInform (CashoutInformRequest request )
102
+ throws ExecutionException , InterruptedException {
103
+ return this .sendCashoutInformAsync (request ).get ();
104
+ }
105
+
93
106
/**
94
107
* Sends a cashout acknowledgment request synchronously and returns the corresponding response.
95
108
*
@@ -177,6 +190,14 @@ default ExtSettlementAckResponse sendExtSettlementAck(ExtSettlementAckRequest re
177
190
*/
178
191
CompletableFuture <CashoutResponse > sendCashoutAsync (CashoutRequest request );
179
192
193
+ /**
194
+ * Sends a {@link CashoutInformRequest} asynchronously and returns a {@link CompletableFuture} of {@link CashoutInformResponse}.
195
+ *
196
+ * @param request the cashout inform request to be sent
197
+ * @return a CompletableFuture of CashoutInformResponse
198
+ */
199
+ CompletableFuture <CashoutInformResponse > sendCashoutInformAsync (CashoutInformRequest request );
200
+
180
201
/**
181
202
* Sends a cashout acknowledgment request asynchronously and returns a CompletableFuture representing the response.
182
203
*
You can’t perform that action at this time.
0 commit comments