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);
}
Aggregations