Class AsyncRawConsumerUserEventsClient
- java.lang.Object
-
- com.flagright.api.resources.consumeruserevents.AsyncRawConsumerUserEventsClient
-
public class AsyncRawConsumerUserEventsClient extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientOptionsclientOptions
-
Constructor Summary
Constructors Constructor Description AsyncRawConsumerUserEventsClient(ClientOptions clientOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<FlagrightHttpResponse<UserWithRulesResult>>create(ConsumerUserEventsCreateRequest request)POST Consumer User Eventsjava.util.concurrent.CompletableFuture<FlagrightHttpResponse<UserWithRulesResult>>create(ConsumerUserEventsCreateRequest request, RequestOptions requestOptions)POST Consumer User Eventsjava.util.concurrent.CompletableFuture<FlagrightHttpResponse<ConsumerUserEventWithRulesResult>>get(java.lang.String eventId)GET a Consumer User Eventjava.util.concurrent.CompletableFuture<FlagrightHttpResponse<ConsumerUserEventWithRulesResult>>get(java.lang.String eventId, RequestOptions requestOptions)GET a Consumer User Event
-
-
-
Field Detail
-
clientOptions
protected final ClientOptions clientOptions
-
-
Constructor Detail
-
AsyncRawConsumerUserEventsClient
public AsyncRawConsumerUserEventsClient(ClientOptions clientOptions)
-
-
Method Detail
-
create
public java.util.concurrent.CompletableFuture<FlagrightHttpResponse<UserWithRulesResult>> create(ConsumerUserEventsCreateRequest request)
POST Consumer User Events
/events/consumer/userendpoint allows you to operate on the Consumer User Events entity.User events are created after the initial
POST /consumer/userscall (which creates a user) and are used to:- Update the STATE and KYC Status of the user, using the
userStateDetailsorkycStatusDetailsfield - Update the user details, using the
updatedConsumerUserAttributesfield.
If you have neither of the above two use cases, you do not need to use user events.
Payload
Each user event needs three mandatory fields:
timestamp- the timestamp of when the event was created or occured in your systemuserId- 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 and KYC Status of the user, using the
-
create
public java.util.concurrent.CompletableFuture<FlagrightHttpResponse<UserWithRulesResult>> create(ConsumerUserEventsCreateRequest request, RequestOptions requestOptions)
POST Consumer User Events
/events/consumer/userendpoint allows you to operate on the Consumer User Events entity.User events are created after the initial
POST /consumer/userscall (which creates a user) and are used to:- Update the STATE and KYC Status of the user, using the
userStateDetailsorkycStatusDetailsfield - Update the user details, using the
updatedConsumerUserAttributesfield.
If you have neither of the above two use cases, you do not need to use user events.
Payload
Each user event needs three mandatory fields:
timestamp- the timestamp of when the event was created or occured in your systemuserId- 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 and KYC Status of the user, using the
-
get
public java.util.concurrent.CompletableFuture<FlagrightHttpResponse<ConsumerUserEventWithRulesResult>> get(java.lang.String eventId)
GET a Consumer User Event
You can retrieve any consumer user event you created using the POST Consumer User Events call.
-
get
public java.util.concurrent.CompletableFuture<FlagrightHttpResponse<ConsumerUserEventWithRulesResult>> get(java.lang.String eventId, RequestOptions requestOptions)
GET a Consumer User Event
You can retrieve any consumer user event you created using the POST Consumer User Events call.
-
-