Class TransactionEventsClient
- java.lang.Object
-
- com.flagright.api.resources.transactionevents.TransactionEventsClient
-
public class TransactionEventsClient extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientOptionsclientOptions
-
Constructor Summary
Constructors Constructor Description TransactionEventsClient(ClientOptions clientOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TransactionEventMonitoringResultcreate(TransactionEvent request)POST Transaction EventsTransactionEventMonitoringResultcreate(TransactionEvent request, RequestOptions requestOptions)POST Transaction EventsTransactionEventWithRulesResultget(java.lang.String eventId)GET Transaction EventsTransactionEventWithRulesResultget(java.lang.String eventId, RequestOptions requestOptions)GET Transaction EventsRawTransactionEventsClientwithRawResponse()Get responses with HTTP metadata like headers
-
-
-
Field Detail
-
clientOptions
protected final ClientOptions clientOptions
-
-
Constructor Detail
-
TransactionEventsClient
public TransactionEventsClient(ClientOptions clientOptions)
-
-
Method Detail
-
withRawResponse
public RawTransactionEventsClient withRawResponse()
Get responses with HTTP metadata like headers
-
create
public 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 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 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 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.
-
-