use of com.mirakl.client.mmp.request.shop.MiraklGetShopsRequest in project mirakl-hyperwallet-connector by paypal.
the class MiraklSellersExtractServiceImpl method retrieveMiraklShopsByShopIds.
private MiraklShops retrieveMiraklShopsByShopIds(final List<String> shopIds) {
final MiraklGetShopsRequest request = new MiraklGetShopsRequest();
request.setShopIds(shopIds);
request.setPaginate(false);
log.info("Retrieving shops with ids {}", shopIds);
try {
return miraklOperatorClient.getShops(request);
} catch (final MiraklApiException ex) {
log.error("Something went wrong getting s information with ids [{}]", shopIds);
sellerMailNotificationUtil.sendPlainTextEmail(EMAIL_SUBJECT_MESSAGE, String.format(ERROR_MESSAGE_PREFIX + "Something went wrong getting shop information with ids [%s]%n%s", shopIds, MiraklLoggingErrorsUtil.stringify(ex)));
return new MiraklShops();
}
}
use of com.mirakl.client.mmp.request.shop.MiraklGetShopsRequest in project mirakl-hyperwallet-connector by paypal.
the class MiraklSellersExtractServiceImpl method retrieveMiraklShopsByDate.
private MiraklShops retrieveMiraklShopsByDate(@Nullable final Date delta) {
final MiraklGetShopsRequest request = new MiraklGetShopsRequest();
request.setUpdatedSince(delta);
request.setPaginate(false);
log.info("Retrieving shops since {}", delta);
try {
return miraklOperatorClient.getShops(request);
} catch (final MiraklApiException ex) {
log.error("Something went wrong getting shop information since [{}]", delta);
sellerMailNotificationUtil.sendPlainTextEmail(EMAIL_SUBJECT_MESSAGE, String.format(ERROR_MESSAGE_PREFIX + "Something went wrong getting shop information since [%s]%n%s", delta, MiraklLoggingErrorsUtil.stringify(ex)));
return new MiraklShops();
}
}
Aggregations