Class InternalProductsApiClient
java.lang.Object
es.kukenan.smartfi.microservice.transfer.service.backoffice.apis.InternalProductsApiClient
Internal Products API client.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate GenericProductsInternalEndpointProducts endpoint implementation for destination products.private GenericProductsInternalEndpointProducts endpoint implementation for origin products.private org.springframework.scheduling.concurrent.ThreadPoolTaskExecutorThread pool task executor. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindAllDestinationInternalProductsAsync(String userToken, String queryParams) Find all the destination products in this API owner by the given user.findAllOriginInternalProductsAsync(String userToken, String queryParams) Find all the origin products in this API owner by the given user.
-
Field Details
-
productsOriginEndpoint
Products endpoint implementation for origin products. -
productsDestinationEndpoint
Products endpoint implementation for destination products. -
threadPoolTaskExecutor
@Autowired private org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor threadPoolTaskExecutorThread 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.
-