Class RawBusinessUsersClient
- java.lang.Object
-
- com.flagright.api.resources.businessusers.RawBusinessUsersClient
-
public class RawBusinessUsersClient extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientOptionsclientOptions
-
Constructor Summary
Constructors Constructor Description RawBusinessUsersClient(ClientOptions clientOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FlagrightHttpResponse<BusinessUsersCreateResponse>create(BusinessUsersCreateRequest request)POST Business UserFlagrightHttpResponse<BusinessUsersCreateResponse>create(BusinessUsersCreateRequest request, RequestOptions requestOptions)POST Business UserFlagrightHttpResponse<BusinessWithRulesResult>get(java.lang.String userId)GET Business UserFlagrightHttpResponse<BusinessWithRulesResult>get(java.lang.String userId, RequestOptions requestOptions)GET Business User
-
-
-
Field Detail
-
clientOptions
protected final ClientOptions clientOptions
-
-
Constructor Detail
-
RawBusinessUsersClient
public RawBusinessUsersClient(ClientOptions clientOptions)
-
-
Method Detail
-
create
public FlagrightHttpResponse<BusinessUsersCreateResponse> create(BusinessUsersCreateRequest request)
POST Business User
/business/userendpoint 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 userlegalEntity- Details of the business legal entity (CompanyGeneralDetails, FinancialDetails etc) - onlylegalNameinCompanyGeneralDetailsis mandatorycreatedTimestamp- UNIX timestamp in milliseconds for when the User is created in your system
-
create
public FlagrightHttpResponse<BusinessUsersCreateResponse> create(BusinessUsersCreateRequest request, RequestOptions requestOptions)
POST Business User
/business/userendpoint 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 userlegalEntity- Details of the business legal entity (CompanyGeneralDetails, FinancialDetails etc) - onlylegalNameinCompanyGeneralDetailsis mandatorycreatedTimestamp- UNIX timestamp in milliseconds for when the User is created in your system
-
get
public FlagrightHttpResponse<BusinessWithRulesResult> get(java.lang.String userId)
GET Business User
/business/userendpoint 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 correspondinguserId
-
get
public FlagrightHttpResponse<BusinessWithRulesResult> get(java.lang.String userId, RequestOptions requestOptions)
GET Business User
/business/userendpoint 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 correspondinguserId
-
-