use of com.paypal.kyc.model.KYCUserStatusNotificationBodyModel in project mirakl-hyperwallet-connector by paypal.
the class IndividualKYCUserNotificationStrategyTest method isApplicable_shouldReturnTrueWhenProfileTypeIsIndividual.
@Test
void isApplicable_shouldReturnTrueWhenProfileTypeIsIndividual() {
// @formatter:off
final KYCUserStatusNotificationBodyModel KYCUserStatusNotificationBodyModelStub = KYCUserStatusNotificationBodyModel.builder().profileType(HyperwalletUser.ProfileType.INDIVIDUAL).build();
// @formatter:on
final boolean result = testObj.isApplicable(KYCUserStatusNotificationBodyModelStub);
assertThat(result).isTrue();
}
use of com.paypal.kyc.model.KYCUserStatusNotificationBodyModel in project mirakl-hyperwallet-connector by paypal.
the class IndividualKYCUserNotificationStrategyTest method isApplicable_shouldReturnFalseWhenProfileTypeIsNotIndividual.
@MethodSource("nonIndividualProfileTypes")
@ParameterizedTest
void isApplicable_shouldReturnFalseWhenProfileTypeIsNotIndividual(final HyperwalletUser.ProfileType profileType) {
// @formatter:off
final KYCUserStatusNotificationBodyModel KYCUserStatusNotificationBodyModelStub = KYCUserStatusNotificationBodyModel.builder().profileType(profileType).build();
// @formatter:on
final boolean result = testObj.isApplicable(KYCUserStatusNotificationBodyModelStub);
assertThat(result).isFalse();
}
use of com.paypal.kyc.model.KYCUserStatusNotificationBodyModel in project mirakl-hyperwallet-connector by paypal.
the class BusinessKycUserNotificationStrategyTest method expectedKycMiraklStatus_shouldSetCorrectMiraklStatus_whenVerificationStatusIsNull.
@Test
void expectedKycMiraklStatus_shouldSetCorrectMiraklStatus_whenVerificationStatusIsNull() {
// @formatter:off
final KYCUserStatusNotificationBodyModel KYCUserStatusNotificationBodyModelStub = KYCUserStatusNotificationBodyModel.builder().clientUserId(String.valueOf(CLIENT_USER_ID)).verificationStatus(null).businessStakeholderVerificationStatus(HyperwalletUser.BusinessStakeholderVerificationStatus.VERIFIED).letterOfAuthorizationStatus(HyperwalletUser.LetterOfAuthorizationStatus.VERIFIED).profileType(HyperwalletUser.ProfileType.BUSINESS).build();
// @formatter:on
final MiraklShopKycStatus result = testObj.expectedKycMiraklStatus(KYCUserStatusNotificationBodyModelStub);
assertThat(result).isEqualTo(MiraklShopKycStatus.APPROVED);
}
use of com.paypal.kyc.model.KYCUserStatusNotificationBodyModel in project mirakl-hyperwallet-connector by paypal.
the class BusinessKycUserNotificationStrategyTest method expectedKycMiraklStatus_shouldSetCorrectMiraklStatus_whenLetterOfAuthorizationStatusIsNull.
@Test
void expectedKycMiraklStatus_shouldSetCorrectMiraklStatus_whenLetterOfAuthorizationStatusIsNull() {
// @formatter:off
final KYCUserStatusNotificationBodyModel KYCUserStatusNotificationBodyModelStub = KYCUserStatusNotificationBodyModel.builder().clientUserId(String.valueOf(CLIENT_USER_ID)).verificationStatus(HyperwalletUser.VerificationStatus.VERIFIED).businessStakeholderVerificationStatus(HyperwalletUser.BusinessStakeholderVerificationStatus.VERIFIED).letterOfAuthorizationStatus(null).profileType(HyperwalletUser.ProfileType.BUSINESS).build();
// @formatter:on
final MiraklShopKycStatus result = testObj.expectedKycMiraklStatus(KYCUserStatusNotificationBodyModelStub);
assertThat(result).isEqualTo(MiraklShopKycStatus.APPROVED);
}
use of com.paypal.kyc.model.KYCUserStatusNotificationBodyModel in project mirakl-hyperwallet-connector by paypal.
the class BusinessKycUserNotificationStrategyTest method isApplicable_shouldReturnTrueWhenProfileTypeIsBusiness.
@Test
void isApplicable_shouldReturnTrueWhenProfileTypeIsBusiness() {
// @formatter:off
final KYCUserStatusNotificationBodyModel KYCUserStatusNotificationBodyModelStub = KYCUserStatusNotificationBodyModel.builder().profileType(HyperwalletUser.ProfileType.BUSINESS).build();
// @formatter:on
final boolean result = testObj.isApplicable(KYCUserStatusNotificationBodyModelStub);
assertThat(result).isTrue();
}
Aggregations