Class InternalProductsApiClient

java.lang.Object
es.kukenan.smartfi.microservice.transfer.service.backoffice.apis.InternalProductsApiClient

@Component public class InternalProductsApiClient extends Object
Internal Products API client.
  • Field Details

    • productsOriginEndpoint

      @Autowired private GenericProductsInternalEndpoint productsOriginEndpoint
      Products endpoint implementation for origin products.
    • productsDestinationEndpoint

      @Autowired private GenericProductsInternalEndpoint productsDestinationEndpoint
      Products endpoint implementation for destination products.
    • threadPoolTaskExecutor

      @Autowired private org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor threadPoolTaskExecutor
      Thread pool task executor.
  • Constructor Details

    • InternalProductsApiClient

      public InternalProductsApiClient()
  • Method Details

    • findAllOriginInternalProductsAsync

      public Future<List<? extends es.kukenan.smartfi.microservice.transfer.api.products.ProductDto>> findAllOriginInternalProductsAsync(String userToken, String queryParams)
      Find all the origin products in this API owner by the given user.
      Parameters:
      userToken - user bearer token.
      queryParams - query params for filters.
      Returns:
      products response.
    • findAllDestinationInternalProductsAsync

      public Future<List<? extends es.kukenan.smartfi.microservice.transfer.api.products.ProductDto>> findAllDestinationInternalProductsAsync(String userToken, String queryParams)
      Find all the destination products in this API owner by the given user.
      Parameters:
      userToken - user bearer token.
      queryParams - query params for filters.
      Returns:
      products response.