Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo-catalano committed Jan 11, 2024
1 parent 0467c21 commit a7f9a8e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import it.gov.pagopa.standinmanager.config.model.Station;
import it.gov.pagopa.standinmanager.repository.CosmosEventsRepository;
import it.gov.pagopa.standinmanager.util.Constants;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.HttpMethod;
Expand All @@ -13,6 +14,7 @@
import org.springframework.web.client.RestTemplate;
import org.springframework.web.util.UriComponentsBuilder;

@Slf4j
@Component
public class ForwarderClient {

Expand Down Expand Up @@ -43,6 +45,7 @@ public class ForwarderClient {
+ "</soapenv:Envelope>";

public boolean verifyPaymentNotice(Station station) {
log.info("verifyPaymentNotice to station [{}]",station.getStationCode());
cosmosEventsRepository.newEvent(
station.getStationCode(),
Constants.EVENT_FORWARDER_CALL,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ private CompletableFuture<Boolean> checkStation(
() -> {
log.info("checkStation [{}] [{}]", now, standInStation.getStation());
boolean b = forwarderClient.verifyPaymentNotice(station);
log.info("checkStation done success:[{}]", b);
CosmosForwarderCallCounts forwarderCallCounts =
CosmosForwarderCallCounts.builder()
.id(UUID.randomUUID().toString())
Expand Down

0 comments on commit a7f9a8e

Please sign in to comment.