Class AsyncTransactionEventsClient
- java.lang.Object
-
- com.flagright.api.resources.transactionevents.AsyncTransactionEventsClient
-
public class AsyncTransactionEventsClient extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientOptionsclientOptions
-
Constructor Summary
Constructors Constructor Description AsyncTransactionEventsClient(ClientOptions clientOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<TransactionEventMonitoringResult>create(TransactionEvent request)POST Transaction Eventsjava.util.concurrent.CompletableFuture<TransactionEventMonitoringResult>create(TransactionEvent request, RequestOptions requestOptions)POST Transaction Eventsjava.util.concurrent.CompletableFuture<TransactionEventWithRulesResult>get(java.lang.String eventId)GET Transaction Eventsjava.util.concurrent.CompletableFuture<TransactionEventWithRulesResult>get(java.lang.String eventId, RequestOptions requestOptions)GET Transaction EventsAsyncRawTransactionEventsClientwithRawResponse()Get responses with HTTP metadata like headers
-
-
-
Field Detail
-
clientOptions
protected final ClientOptions clientOptions
-
-
Constructor Detail
-
AsyncTransactionEventsClient
public AsyncTransactionEventsClient(ClientOptions clientOptions)
-
-
Method Detail
-
withRawResponse
public AsyncRawTransactionEventsClient withRawResponse()
Get responses with HTTP metadata like headers
-
create
public java.util.concurrent.CompletableFuture<TransactionEventMonitoringResult> create(TransactionEvent request)
POST Transaction Events
/events/transactionendpoint allows you to operate on the Transaction Events entity.Transaction events are created after the initial
POST /transactionscall (which creates a transaction) and are used to:- Update the STATE of the transaction, using the
transactionStatefield and manage the Transaction Lifecycle - Update the transaction details, using the
updatedTransactionAttributesfield.
If you have neither of the above two use cases, you do not need to use transaction events.
Payload
Each transaction event needs three mandatory fields:
transactionState- STATE of the transaction -> value is set toCREATEDafterPOST /transactionscalltimestamp- the timestamp of when the event was created or occured in your systemtransactionId- The ID of the transaction for which this event is generated.
In order to make individual events retrievable, you also need to pass in a unique
eventIdto the request body. - Update the STATE of the transaction, using the
-
create
public java.util.concurrent.CompletableFuture<TransactionEventMonitoringResult> create(TransactionEvent request, RequestOptions requestOptions)
POST Transaction Events
/events/transactionendpoint allows you to operate on the Transaction Events entity.Transaction events are created after the initial
POST /transactionscall (which creates a transaction) and are used to:- Update the STATE of the transaction, using the
transactionStatefield and manage the Transaction Lifecycle - Update the transaction details, using the
updatedTransactionAttributesfield.
If you have neither of the above two use cases, you do not need to use transaction events.
Payload
Each transaction event needs three mandatory fields:
transactionState- STATE of the transaction -> value is set toCREATEDafterPOST /transactionscalltimestamp- the timestamp of when the event was created or occured in your systemtransactionId- The ID of the transaction for which this event is generated.
In order to make individual events retrievable, you also need to pass in a unique
eventIdto the request body. - Update the STATE of the transaction, using the
-
get
public java.util.concurrent.CompletableFuture<TransactionEventWithRulesResult> get(java.lang.String eventId)
GET Transaction Events
/events/transactionendpoint allows you to operate on the Transaction Events entity..You can retrieve any transaction event you created using the POST Transaction Events call.
-
get
public java.util.concurrent.CompletableFuture<TransactionEventWithRulesResult> get(java.lang.String eventId, RequestOptions requestOptions)
GET Transaction Events
/events/transactionendpoint allows you to operate on the Transaction Events entity..You can retrieve any transaction event you created using the POST Transaction Events call.
-
-