Search in sources :

Example 6 with MiraklShopKycStatus

use of com.mirakl.client.mmp.domain.shop.MiraklShopKycStatus in project mirakl-hyperwallet-connector by paypal.

the class IndividualKYCUserNotificationStrategyTest method execute_shouldSendKycUpdateNotification_whenIndividualSeller.

@MethodSource("validVerificationStatuses")
@ParameterizedTest
void execute_shouldSendKycUpdateNotification_whenIndividualSeller(final HyperwalletUser.VerificationStatus hyperwalletVerificationStatus, final MiraklShopKycStatus miraklKycStatus) {
    // @formatter:off
    final KYCUserStatusNotificationBodyModel KYCUserStatusNotificationBodyModelStub = KYCUserStatusNotificationBodyModel.builder().clientUserId(String.valueOf(CLIENT_USER_ID)).verificationStatus(hyperwalletVerificationStatus).profileType(HyperwalletUser.ProfileType.INDIVIDUAL).build();
    // @formatter:on
    final MiraklShopKycStatus result = testObj.expectedKycMiraklStatus(KYCUserStatusNotificationBodyModelStub);
    assertThat(result).isEqualTo(miraklKycStatus);
}
Also used : MiraklShopKycStatus(com.mirakl.client.mmp.domain.shop.MiraklShopKycStatus) KYCUserStatusNotificationBodyModel(com.paypal.kyc.model.KYCUserStatusNotificationBodyModel) MethodSource(org.junit.jupiter.params.provider.MethodSource) ParameterizedTest(org.junit.jupiter.params.ParameterizedTest)

Aggregations

MiraklShopKycStatus (com.mirakl.client.mmp.domain.shop.MiraklShopKycStatus)6 KYCUserStatusNotificationBodyModel (com.paypal.kyc.model.KYCUserStatusNotificationBodyModel)5 ParameterizedTest (org.junit.jupiter.params.ParameterizedTest)5 Test (org.junit.jupiter.api.Test)3 MethodSource (org.junit.jupiter.params.provider.MethodSource)2 MiraklException (com.mirakl.client.core.exception.MiraklException)1 MiraklUpdatedShopReturn (com.mirakl.client.mmp.operator.domain.shop.update.MiraklUpdatedShopReturn)1 MiraklUpdatedShops (com.mirakl.client.mmp.operator.domain.shop.update.MiraklUpdatedShops)1 MiraklUpdateShopsRequest (com.mirakl.client.mmp.operator.request.shop.MiraklUpdateShopsRequest)1