Search in sources :

Example 1 with KYCBusinessStakeholderStatusNotificationBodyModel

use of com.paypal.kyc.model.KYCBusinessStakeholderStatusNotificationBodyModel in project mirakl-hyperwallet-connector by paypal.

the class HyperWalletObjectToKYCBusinessStakeholderStatusExecutorNotificationBodyModelConverterTest method convert_shouldConvertTheRawNotificationIntoAnInternalNotificationModel.

@Test
void convert_shouldConvertTheRawNotificationIntoAnInternalNotificationModel() {
    createHyperWalletKycBusinessStakeholderBodyNotification();
    final KYCBusinessStakeholderStatusNotificationBodyModel result = testObj.convert(hyperwalletWebhookNotificationMock);
    assertThat(result.getToken()).isEqualTo(BUSINESS_STAKEHOLDER_TOKEN);
    assertThat(result.getUserToken()).isEqualTo(USER_TOKEN);
    assertThat(result.getProfileType()).isEqualTo(HyperwalletUser.ProfileType.INDIVIDUAL);
    assertThat(result.getVerificationStatus()).isEqualTo(HyperwalletUser.VerificationStatus.REQUIRED);
    assertThat(result.getIsBusinessContact()).isEqualTo(Boolean.FALSE);
    assertThat(result.getIsDirector()).isEqualTo(Boolean.TRUE);
    assertThat(result.getHyperwalletWebhookNotificationType()).isEqualTo(KYCConstants.HwWebhookNotificationType.USERS_BUSINESS_STAKEHOLDERS_CREATED);
}
Also used : KYCBusinessStakeholderStatusNotificationBodyModel(com.paypal.kyc.model.KYCBusinessStakeholderStatusNotificationBodyModel) Test(org.junit.jupiter.api.Test)

Aggregations

KYCBusinessStakeholderStatusNotificationBodyModel (com.paypal.kyc.model.KYCBusinessStakeholderStatusNotificationBodyModel)1 Test (org.junit.jupiter.api.Test)1