Class BusinessUsersClient


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

      • BusinessUsersClient

        public BusinessUsersClient​(ClientOptions clientOptions)
    • Method Detail

      • withRawResponse

        public RawBusinessUsersClient withRawResponse()
        Get responses with HTTP metadata like headers
      • create

        public 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 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 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 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