Class AsyncRawBusinessUsersClient


  • public class AsyncRawBusinessUsersClient
    extends java.lang.Object
    • Constructor Detail

      • AsyncRawBusinessUsersClient

        public AsyncRawBusinessUsersClient​(ClientOptions clientOptions)
    • Method Detail

      • create

        public java.util.concurrent.CompletableFuture<FlagrightHttpResponse<BusinessUsersCreateResponse>> create​(BusinessUsersCreateRequest request)

        POST Business User

        /business/user endpoint allows you to operate on the Business user entity.

        In order to pass the payload of a User to Flagright and verify the User, you will need to call this endpoint with the User payload. Not all fields are mandatory, you will only need to pass in the fields that you have and are relevant for your compliance setup.

        Payload

        Each business user needs three mandatory fields:

        • userId - Unique identifier for the user
        • legalEntity - Details of the business legal entity (CompanyGeneralDetails, FinancialDetails etc) - only legalNamein CompanyGeneralDetails is mandatory
        • createdTimestamp - UNIX timestamp in milliseconds for when the User is created in your system
      • create

        public java.util.concurrent.CompletableFuture<FlagrightHttpResponse<BusinessUsersCreateResponse>> create​(BusinessUsersCreateRequest request,
                                                                                                                 RequestOptions requestOptions)

        POST Business User

        /business/user endpoint allows you to operate on the Business user entity.

        In order to pass the payload of a User to Flagright and verify the User, you will need to call this endpoint with the User payload. Not all fields are mandatory, you will only need to pass in the fields that you have and are relevant for your compliance setup.

        Payload

        Each business user needs three mandatory fields:

        • userId - Unique identifier for the user
        • legalEntity - Details of the business legal entity (CompanyGeneralDetails, FinancialDetails etc) - only legalNamein CompanyGeneralDetails is mandatory
        • createdTimestamp - UNIX timestamp in milliseconds for when the User is created in your system
      • get

        public java.util.concurrent.CompletableFuture<FlagrightHttpResponse<BusinessWithRulesResult>> get​(java.lang.String userId)

        GET Business User

        /business/user endpoint allows you to operate on the Business User entity.

        Calling GET /business/user/{userId} will return the entire User payload and rule execution results for the User with the corresponding userId

      • get

        public java.util.concurrent.CompletableFuture<FlagrightHttpResponse<BusinessWithRulesResult>> get​(java.lang.String userId,
                                                                                                          RequestOptions requestOptions)

        GET Business User

        /business/user endpoint allows you to operate on the Business User entity.

        Calling GET /business/user/{userId} will return the entire User payload and rule execution results for the User with the corresponding userId