55
66import com .flagright .api .core .ClientOptions ;
77import com .flagright .api .core .RequestOptions ;
8- import com .flagright .api .resources .batch .requests .BatchGetRequest ;
8+ import com .flagright .api .resources .batch .requests .BatchGetBusinessUserEventsRequest ;
9+ import com .flagright .api .resources .batch .requests .BatchGetBusinessUsersRequest ;
10+ import com .flagright .api .resources .batch .requests .BatchGetConsumerUserEventsRequest ;
11+ import com .flagright .api .resources .batch .requests .BatchGetConsumerUsersRequest ;
12+ import com .flagright .api .resources .batch .requests .BatchGetTransactionEventsRequest ;
13+ import com .flagright .api .resources .batch .requests .BatchGetTransactionsRequest ;
914import com .flagright .api .resources .batch .requests .BusinessBatchRequest ;
1015import com .flagright .api .resources .batch .requests .BusinessUserEventBatchRequest ;
1116import com .flagright .api .resources .batch .requests .ConsumerUserEventBatchRequest ;
1217import com .flagright .api .resources .batch .requests .TransactionBatchRequest ;
1318import com .flagright .api .resources .batch .requests .TransactionEventBatchRequest ;
1419import com .flagright .api .resources .batch .requests .UserBatchRequest ;
1520import com .flagright .api .types .BatchBusinessUserEventsWithRulesResult ;
21+ import com .flagright .api .types .BatchBusinessUsersWithRulesResults ;
22+ import com .flagright .api .types .BatchConsumerUserEventsRulesResult ;
23+ import com .flagright .api .types .BatchConsumerUsersWithRulesResult ;
1624import com .flagright .api .types .BatchResponse ;
25+ import com .flagright .api .types .BatchTransactionEventMonitoringResults ;
26+ import com .flagright .api .types .BatchTransactionMonitoringResults ;
1727import java .util .concurrent .CompletableFuture ;
1828
1929public class AsyncBatchClient {
@@ -42,17 +52,18 @@ public CompletableFuture<BatchResponse> verifyTransaction(
4252 return this .rawClient .verifyTransaction (request , requestOptions ).thenApply (response -> response .body ());
4353 }
4454
45- public CompletableFuture <BatchBusinessUserEventsWithRulesResult > get (String batchId ) {
46- return this .rawClient .get (batchId ).thenApply (response -> response .body ());
55+ public CompletableFuture <BatchTransactionMonitoringResults > getTransactions (String batchId ) {
56+ return this .rawClient .getTransactions (batchId ).thenApply (response -> response .body ());
4757 }
4858
49- public CompletableFuture <BatchBusinessUserEventsWithRulesResult > get (String batchId , BatchGetRequest request ) {
50- return this .rawClient .get (batchId , request ).thenApply (response -> response .body ());
59+ public CompletableFuture <BatchTransactionMonitoringResults > getTransactions (
60+ String batchId , BatchGetTransactionsRequest request ) {
61+ return this .rawClient .getTransactions (batchId , request ).thenApply (response -> response .body ());
5162 }
5263
53- public CompletableFuture <BatchBusinessUserEventsWithRulesResult > get (
54- String batchId , BatchGetRequest request , RequestOptions requestOptions ) {
55- return this .rawClient .get (batchId , request , requestOptions ).thenApply (response -> response .body ());
64+ public CompletableFuture <BatchTransactionMonitoringResults > getTransactions (
65+ String batchId , BatchGetTransactionsRequest request , RequestOptions requestOptions ) {
66+ return this .rawClient .getTransactions (batchId , request , requestOptions ).thenApply (response -> response .body ());
5667 }
5768
5869 public CompletableFuture <BatchResponse > createTransactionEvents (TransactionEventBatchRequest request ) {
@@ -64,6 +75,22 @@ public CompletableFuture<BatchResponse> createTransactionEvents(
6475 return this .rawClient .createTransactionEvents (request , requestOptions ).thenApply (response -> response .body ());
6576 }
6677
78+ public CompletableFuture <BatchTransactionEventMonitoringResults > getTransactionEvents (String batchId ) {
79+ return this .rawClient .getTransactionEvents (batchId ).thenApply (response -> response .body ());
80+ }
81+
82+ public CompletableFuture <BatchTransactionEventMonitoringResults > getTransactionEvents (
83+ String batchId , BatchGetTransactionEventsRequest request ) {
84+ return this .rawClient .getTransactionEvents (batchId , request ).thenApply (response -> response .body ());
85+ }
86+
87+ public CompletableFuture <BatchTransactionEventMonitoringResults > getTransactionEvents (
88+ String batchId , BatchGetTransactionEventsRequest request , RequestOptions requestOptions ) {
89+ return this .rawClient
90+ .getTransactionEvents (batchId , request , requestOptions )
91+ .thenApply (response -> response .body ());
92+ }
93+
6794 public CompletableFuture <BatchResponse > createConsumerUsers (UserBatchRequest request ) {
6895 return this .rawClient .createConsumerUsers (request ).thenApply (response -> response .body ());
6996 }
@@ -73,6 +100,34 @@ public CompletableFuture<BatchResponse> createConsumerUsers(
73100 return this .rawClient .createConsumerUsers (request , requestOptions ).thenApply (response -> response .body ());
74101 }
75102
103+ public CompletableFuture <BatchConsumerUsersWithRulesResult > getConsumerUsers (String batchId ) {
104+ return this .rawClient .getConsumerUsers (batchId ).thenApply (response -> response .body ());
105+ }
106+
107+ public CompletableFuture <BatchConsumerUsersWithRulesResult > getConsumerUsers (
108+ String batchId , BatchGetConsumerUsersRequest request ) {
109+ return this .rawClient .getConsumerUsers (batchId , request ).thenApply (response -> response .body ());
110+ }
111+
112+ public CompletableFuture <BatchConsumerUsersWithRulesResult > getConsumerUsers (
113+ String batchId , BatchGetConsumerUsersRequest request , RequestOptions requestOptions ) {
114+ return this .rawClient .getConsumerUsers (batchId , request , requestOptions ).thenApply (response -> response .body ());
115+ }
116+
117+ public CompletableFuture <BatchBusinessUsersWithRulesResults > getBusinessUsers (String batchId ) {
118+ return this .rawClient .getBusinessUsers (batchId ).thenApply (response -> response .body ());
119+ }
120+
121+ public CompletableFuture <BatchBusinessUsersWithRulesResults > getBusinessUsers (
122+ String batchId , BatchGetBusinessUsersRequest request ) {
123+ return this .rawClient .getBusinessUsers (batchId , request ).thenApply (response -> response .body ());
124+ }
125+
126+ public CompletableFuture <BatchBusinessUsersWithRulesResults > getBusinessUsers (
127+ String batchId , BatchGetBusinessUsersRequest request , RequestOptions requestOptions ) {
128+ return this .rawClient .getBusinessUsers (batchId , request , requestOptions ).thenApply (response -> response .body ());
129+ }
130+
76131 public CompletableFuture <BatchResponse > createBusinessUsers (BusinessBatchRequest request ) {
77132 return this .rawClient .createBusinessUsers (request ).thenApply (response -> response .body ());
78133 }
@@ -82,6 +137,38 @@ public CompletableFuture<BatchResponse> createBusinessUsers(
82137 return this .rawClient .createBusinessUsers (request , requestOptions ).thenApply (response -> response .body ());
83138 }
84139
140+ public CompletableFuture <BatchConsumerUserEventsRulesResult > getConsumerUserEvents (String batchId ) {
141+ return this .rawClient .getConsumerUserEvents (batchId ).thenApply (response -> response .body ());
142+ }
143+
144+ public CompletableFuture <BatchConsumerUserEventsRulesResult > getConsumerUserEvents (
145+ String batchId , BatchGetConsumerUserEventsRequest request ) {
146+ return this .rawClient .getConsumerUserEvents (batchId , request ).thenApply (response -> response .body ());
147+ }
148+
149+ public CompletableFuture <BatchConsumerUserEventsRulesResult > getConsumerUserEvents (
150+ String batchId , BatchGetConsumerUserEventsRequest request , RequestOptions requestOptions ) {
151+ return this .rawClient
152+ .getConsumerUserEvents (batchId , request , requestOptions )
153+ .thenApply (response -> response .body ());
154+ }
155+
156+ public CompletableFuture <BatchBusinessUserEventsWithRulesResult > getBusinessUserEvents (String batchId ) {
157+ return this .rawClient .getBusinessUserEvents (batchId ).thenApply (response -> response .body ());
158+ }
159+
160+ public CompletableFuture <BatchBusinessUserEventsWithRulesResult > getBusinessUserEvents (
161+ String batchId , BatchGetBusinessUserEventsRequest request ) {
162+ return this .rawClient .getBusinessUserEvents (batchId , request ).thenApply (response -> response .body ());
163+ }
164+
165+ public CompletableFuture <BatchBusinessUserEventsWithRulesResult > getBusinessUserEvents (
166+ String batchId , BatchGetBusinessUserEventsRequest request , RequestOptions requestOptions ) {
167+ return this .rawClient
168+ .getBusinessUserEvents (batchId , request , requestOptions )
169+ .thenApply (response -> response .body ());
170+ }
171+
85172 public CompletableFuture <BatchResponse > createConsumerUserEvents (ConsumerUserEventBatchRequest request ) {
86173 return this .rawClient .createConsumerUserEvents (request ).thenApply (response -> response .body ());
87174 }
0 commit comments