Class RawTransactionEventsClient
- java.lang.Object
-
- com.flagright.api.resources.transactionevents.RawTransactionEventsClient
-
public class RawTransactionEventsClient extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientOptionsclientOptions
-
Constructor Summary
Constructors Constructor Description RawTransactionEventsClient(ClientOptions clientOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FlagrightHttpResponse<TransactionEventMonitoringResult>create(TransactionEvent request)POST Transaction EventsFlagrightHttpResponse<TransactionEventMonitoringResult>create(TransactionEvent request, RequestOptions requestOptions)POST Transaction EventsFlagrightHttpResponse<TransactionEventWithRulesResult>get(java.lang.String eventId)GET Transaction EventsFlagrightHttpResponse<TransactionEventWithRulesResult>get(java.lang.String eventId, RequestOptions requestOptions)GET Transaction Events
-
-
-
Field Detail
-
clientOptions
protected final ClientOptions clientOptions
-
-
Constructor Detail
-
RawTransactionEventsClient
public RawTransactionEventsClient(ClientOptions clientOptions)
-
-
Method Detail
-
create
public FlagrightHttpResponse<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 FlagrightHttpResponse<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 FlagrightHttpResponse<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 FlagrightHttpResponse<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.
-
-