Class ProductsRestController
java.lang.Object
es.kukenan.smartfi.microservice.contracts.controller.ProductsRestController
Products service Rest API controller.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringPath for the movements of a single asset Rest API.static final StringPath for single asset Rest API.static final StringPath for assets Rest API.static final StringPath for product detail with assets Rest API.static final StringAuthority (role) required in order to be able to invoke greeting API.static final StringBase path for products Rest API.static final StringPath for a comment.static final StringREST API create new wallet.static final StringREST API create new wallet.static final StringPath for cvv card Rest API.static final StringPath for deposit impositions.static final StringPath for document movement detail Rest API.static final StringPath for document movements list Rest API.static final StringPath for managed products Rest API.static final StringPath for movement's comment.static final StringPath for movements Rest API.static final StringPath for movements Rest API.static final StringPath for pin card Rest API.static final StringPath for single product Rest API.static final StringPath for single product position Rest API.static final StringPath for receipts Rest API.static final StringPath for repayments Rest API.static final StringPath for withheld movements Rest API.private AssetsServiceAssets service.private ConnectedContractCacheOperationConnected Contract Cache Operation.private ContractServiceContract Service.protected es.kukenan.smartfi.common.service.jwt.JwtServiceJWT service for create a bearer to call products.private MovementsServiceMovements service.private ProductsServiceProducts service.private es.kukenan.smartfi.common.context.RequestContextManagerRequest context manager.private ScaMovementsServicescaMovementsService service. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate StringcreateBearerToken(es.kukenan.smartfi.common.security.WalletAuthentication walletAuthentication) org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.contracts.api.products.ProductDto>createCard(es.kukenan.smartfi.common.security.WalletAuthentication walletAuthentication) Products position query endpoint.org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.contracts.api.products.ProductDto>createWallet(es.kukenan.smartfi.common.security.WalletAuthentication walletAuthentication) Products position query endpoint.org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.contracts.api.movement.DepositImpositionResponseDto>findDepositImpositions(String productId, es.kukenan.smartfi.common.security.WalletAuthentication walletAuthentication, javax.servlet.http.HttpServletRequest request) Products deposit imposition query endpoint.org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.contracts.api.movement.MovementDto>findMovement(String productId, String movementId, es.kukenan.smartfi.common.security.WalletAuthentication walletAuthentication, javax.servlet.http.HttpServletRequest request) Products an sepecific movement query endpoint.org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.contracts.api.movement.MovementsResponseDto>findMovements(String productId, String dateFrom, String dateTo, String type, String paginationKey, String number, String state, String reason, es.kukenan.smartfi.common.security.WalletAuthentication walletAuthentication, javax.servlet.http.HttpServletRequest request) Products movement query endpoint.org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.contracts.api.products.ProductDto>findProduct(String productId, es.kukenan.smartfi.common.security.WalletAuthentication walletAuthentication) Product detail endpoint.org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.contracts.api.assets.AssetDto>findProductAssetDetail(String productId, String assetId, es.kukenan.smartfi.common.security.WalletAuthentication walletAuthentication) Products asset detail query endpoint.org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.contracts.api.movement.MovementsResponseDto>findProductAssetMovements(String productId, String assetId, String dateFrom, String dateTo, String paginationKey, es.kukenan.smartfi.common.security.WalletAuthentication walletAuthentication, javax.servlet.http.HttpServletRequest request) Products asset movements query endpoint.org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.contracts.api.assets.AssetsResponseDto>findProductAssets(String productId, es.kukenan.smartfi.common.security.WalletAuthentication walletAuthentication) Products assets query endpoint.org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.contracts.api.products.ProductsResponseDto>findProductComposition(String productId, es.kukenan.smartfi.common.security.WalletAuthentication walletAuthentication) Product composition endpoint (products managed by the given product).org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.contracts.api.products.ProductDto>findProductPosition(String productId, es.kukenan.smartfi.common.security.WalletAuthentication walletAuthentication) Products position query endpoint.org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.contracts.api.products.ProductsMapResponseDto>findProducts(es.kukenan.smartfi.common.security.WalletAuthentication walletAuthentication, String byType, Boolean withPostedBalance, String byStatus, String bySignature, String byCurrency, String byService, String userIp) Products endpoint.org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.contracts.api.products.ProductDto>findProductWithAssetsTypes(String productId, es.kukenan.smartfi.common.security.WalletAuthentication walletAuthentication) Product detail with assets types endpoint.org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.contracts.api.receipt.ReceiptsResponseDto>findReceipts(String productId, String paginationKey, es.kukenan.smartfi.common.security.WalletAuthentication walletAuthentication) Products receipts query endpoint.org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.contracts.api.repayment.LoanRepaymentsResponseDto>findRepayments(String productId, String dateFrom, String dateTo, es.kukenan.smartfi.common.security.WalletAuthentication walletAuthentication) Product (loan) repayments endpoint.org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.contracts.api.movement.MovementsResponseDto>findWithheldMovements(String productId, String dateF, String dateT, String typeM, String paginationKeyM, String numberM, String stateM, String reasonM, es.kukenan.smartfi.common.security.WalletAuthentication walletAuthentication, javax.servlet.http.HttpServletRequest request) Products withheld movements query endpoint.org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.contracts.api.common.DocumentContentDto>getMovementDocument(String productId, String movementId, String reportType, String reference, String userIp, es.kukenan.smartfi.common.security.WalletAuthentication walletAuthentication) Products movement detail pdf or csv document.org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.contracts.api.common.DocumentContentDto>getMovementsDocument(String productId, String reportType, String dateFrom, String dateTo, String type, String reason, String number, String state, String userIp, es.kukenan.smartfi.common.security.WalletAuthentication walletAuthentication, javax.servlet.http.HttpServletRequest request) Products movement list pdf or csv document.
-
Field Details
-
API_BASE_PATH
Base path for products Rest API.- See Also:
-
API_PRODUCT_PATH
Path for single product Rest API.- See Also:
-
API_MOVEMENTS_PATH
Path for movements Rest API.- See Also:
-
API_MOVEMENT_PATH
Path for movements Rest API.- See Also:
-
API_MOVEMENT_COMMENT
Path for movement's comment.- See Also:
-
API_WITHHELD_MOVEMENTS_PATH
Path for withheld movements Rest API.- See Also:
-
API_DOCUMENT_MOVEMENTS_PATH
Path for document movements list Rest API.- See Also:
-
API_DOCUMENT_MOVEMENT_PATH
Path for document movement detail Rest API.- See Also:
-
API_DEPOSITS_IMPOSTIONS_PATH
Path for deposit impositions.- See Also:
-
API_REPAYMENTS_PATH
Path for repayments Rest API.- See Also:
-
API_ASSETS_PATH
Path for assets Rest API.- See Also:
-
API_ASSET_PATH
Path for single asset Rest API.- See Also:
-
API_ASSET_MOVEMENTS_PATH
Path for the movements of a single asset Rest API.- See Also:
-
API_MANAGED_PRODUCTS_PATH
Path for managed products Rest API.- See Also:
-
API_PIN_CARD_PATH
Path for pin card Rest API.- See Also:
-
API_CVV_CARD_PATH
Path for cvv card Rest API.- See Also:
-
API_ASSETS_TYPES_PATH
Path for product detail with assets Rest API.- See Also:
-
API_RECEIPTS_PATH
Path for receipts Rest API.- See Also:
-
API_PRODUCT_POSITION_PATH
Path for single product position Rest API.- See Also:
-
API_COMMENT
Path for a comment.- See Also:
-
API_CREATE_WALLET_PATH
REST API create new wallet.- See Also:
-
API_CREATE_CARD_PATH
REST API create new wallet.- See Also:
-
API_AUTHORITIES
Authority (role) required in order to be able to invoke greeting API.- See Also:
-
jwtService
@Autowired protected es.kukenan.smartfi.common.service.jwt.JwtService jwtServiceJWT service for create a bearer to call products. -
productsService
Products service. -
movementService
Movements service. -
scaMovementsService
scaMovementsService service. -
assetsService
Assets service. -
requestContextManager
@Autowired private es.kukenan.smartfi.common.context.RequestContextManager requestContextManagerRequest context manager. -
connectedContractCacheOperation
Connected Contract Cache Operation. -
contractService
Contract Service.
-
-
Constructor Details
-
ProductsRestController
public ProductsRestController()
-
-
Method Details
-
findProducts
@PreAuthorize("(hasRole(\'ROLE_ACCESS_USER\') or hasRole(\'ROLE_ACCESS_AGENT\') or hasRole(\'ROLE_ACCESS_SUPERVISOR\')) and (hasRole(\'ROLE_LEVEL_USER_PWD\') or hasRole(\'ROLE_LEVEL_USER_SCA\'))") @GetMapping(produces="application/json", path="/api/v1/products") public org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.contracts.api.products.ProductsMapResponseDto> findProducts(es.kukenan.smartfi.common.security.WalletAuthentication walletAuthentication, @RequestParam(required=false) String byType, @RequestParam(required=false) Boolean withPostedBalance, @RequestParam(required=false) String byStatus, @RequestParam(required=false) String bySignature, @RequestParam(required=false) String byCurrency, @RequestParam(required=false) String byService, @RequestHeader(name="X-SKYLINE-USER-IP",defaultValue="") String userIp) Products endpoint.- Parameters:
walletAuthentication- user credentials.byType- types to filterwithPostedBalance- flag to filter for posted balancebyStatus- status to filterbySignature- signatures to filterbyCurrency- currency to filterbyService- service to filteruserIp- user Ip.- Returns:
- products movements.
-
findProduct
@PreAuthorize("(hasRole(\'ROLE_ACCESS_USER\') or hasRole(\'ROLE_ACCESS_AGENT\') or hasRole(\'ROLE_ACCESS_SUPERVISOR\')) and (hasRole(\'ROLE_LEVEL_USER_PWD\') or hasRole(\'ROLE_LEVEL_USER_SCA\'))") @GetMapping(produces="application/json", path="/api/v1/products/{productId}") public org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.contracts.api.products.ProductDto> findProduct(@PathVariable(name="productId") String productId, es.kukenan.smartfi.common.security.WalletAuthentication walletAuthentication) Product detail endpoint.- Parameters:
productId- product identifier.walletAuthentication- user credentials.- Returns:
- products movements.
-
findMovements
@PreAuthorize("(hasRole(\'ROLE_ACCESS_USER\') or hasRole(\'ROLE_ACCESS_AGENT\') or hasRole(\'ROLE_ACCESS_SUPERVISOR\')) and (hasRole(\'ROLE_LEVEL_USER_PWD\') or hasRole(\'ROLE_LEVEL_USER_SCA\'))") @GetMapping(produces="application/json", path="/api/v1/products/{productId}/movements") public org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.contracts.api.movement.MovementsResponseDto> findMovements(@PathVariable("productId") String productId, @RequestParam(value="dateFrom",required=false) String dateFrom, @RequestParam(value="dateTo",required=false) String dateTo, @RequestParam(value="type",required=false) String type, @RequestParam(value="paginationKey",required=false) String paginationKey, @RequestParam(value="number",required=false) String number, @RequestParam(value="state",required=false) String state, @RequestParam(value="reason",required=false) String reason, es.kukenan.smartfi.common.security.WalletAuthentication walletAuthentication, javax.servlet.http.HttpServletRequest request) Products movement query endpoint.- Parameters:
productId- product identifier which movements are to be retrieved.dateFrom- full from date in RFC3339 format with no separators (yyyymmdd).dateTo- full to date in RFC3339 format with no separators (yyyymmdd).type- movement type code.paginationKey- pagination key used to request next result page.number- imposition number.state- imposition state.reason- reason.walletAuthentication- user credentials.request- HTTP servlet request.- Returns:
- products movements.
-
findDepositImpositions
@PreAuthorize("(hasRole(\'ROLE_ACCESS_USER\') or hasRole(\'ROLE_ACCESS_AGENT\') or hasRole(\'ROLE_ACCESS_SUPERVISOR\')) and (hasRole(\'ROLE_LEVEL_USER_PWD\') or hasRole(\'ROLE_LEVEL_USER_SCA\'))") @GetMapping(produces="application/json", path="/api/v1/products/{productId}/impositions") public org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.contracts.api.movement.DepositImpositionResponseDto> findDepositImpositions(@PathVariable("productId") String productId, es.kukenan.smartfi.common.security.WalletAuthentication walletAuthentication, javax.servlet.http.HttpServletRequest request) Products deposit imposition query endpoint.- Parameters:
productId- product identifier which deposit impositions are to be retrieved.walletAuthentication- user credentials.request- HTTP servlet request.- Returns:
- deposit impositions.
-
findWithheldMovements
@PreAuthorize("(hasRole(\'ROLE_ACCESS_USER\') or hasRole(\'ROLE_ACCESS_AGENT\') or hasRole(\'ROLE_ACCESS_SUPERVISOR\')) and (hasRole(\'ROLE_LEVEL_USER_PWD\') or hasRole(\'ROLE_LEVEL_USER_SCA\'))") @GetMapping(produces="application/json", path="/api/v1/products/{productId}/movements/withholdings") public org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.contracts.api.movement.MovementsResponseDto> findWithheldMovements(@PathVariable("productId") String productId, @RequestParam(value="dateFrom",required=false) String dateF, @RequestParam(value="dateTo",required=false) String dateT, @RequestParam(value="type",required=false) String typeM, @RequestParam(value="paginationKey",required=false) String paginationKeyM, @RequestParam(value="number",required=false) String numberM, @RequestParam(value="state",required=false) String stateM, @RequestParam(value="reason",required=false) String reasonM, es.kukenan.smartfi.common.security.WalletAuthentication walletAuthentication, javax.servlet.http.HttpServletRequest request) Products withheld movements query endpoint.- Parameters:
productId- product identifier which movements are to be retrieved.dateF- min date which movements are to be retrieveddateT- max date which movements are to be retrieved.typeM- type which movements are to be retrieved.paginationKeyM- pagination which movements are to be retrieved.numberM- number which movements are to be retrieved.stateM- state which movements are to be retrieved.reasonM- reason which movements are to be retrieved.walletAuthentication- user credentials.request- request data.- Returns:
- products movements.
-
findMovement
@PreAuthorize("(hasRole(\'ROLE_ACCESS_USER\') or hasRole(\'ROLE_ACCESS_AGENT\') or hasRole(\'ROLE_ACCESS_SUPERVISOR\')) and (hasRole(\'ROLE_LEVEL_USER_PWD\') or hasRole(\'ROLE_LEVEL_USER_SCA\'))") @GetMapping(produces="application/json", path="/api/v1/products/{productId}/movements/{movementId}") public org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.contracts.api.movement.MovementDto> findMovement(@PathVariable("productId") String productId, @PathVariable("movementId") String movementId, es.kukenan.smartfi.common.security.WalletAuthentication walletAuthentication, javax.servlet.http.HttpServletRequest request) Products an sepecific movement query endpoint.- Parameters:
productId- product identifier which movements are to be retrieved.movementId- specific movement identifier.walletAuthentication- user credentials.request- HTTP servlet request.- Returns:
- an specific movement detail.
-
findRepayments
@PreAuthorize("(hasRole(\'ROLE_ACCESS_USER\') or hasRole(\'ROLE_ACCESS_AGENT\') or hasRole(\'ROLE_ACCESS_SUPERVISOR\')) and (hasRole(\'ROLE_LEVEL_USER_PWD\') or hasRole(\'ROLE_LEVEL_USER_SCA\'))") @GetMapping(produces="application/json", path="/api/v1/products/{productId}/repayments") public org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.contracts.api.repayment.LoanRepaymentsResponseDto> findRepayments(@PathVariable("productId") String productId, @RequestParam(value="dateFrom",required=false) String dateFrom, @RequestParam(value="dateTo",required=false) String dateTo, es.kukenan.smartfi.common.security.WalletAuthentication walletAuthentication) Product (loan) repayments endpoint.- Parameters:
productId- product identifier which movements are to be retrieved.dateFrom- dateFrom.dateTo- dateTo.walletAuthentication- user credentials.- Returns:
- an specific movement detail.
-
findReceipts
@PreAuthorize("(hasRole(\'ROLE_ACCESS_USER\') or hasRole(\'ROLE_ACCESS_AGENT\') or hasRole(\'ROLE_ACCESS_SUPERVISOR\')) and (hasRole(\'ROLE_LEVEL_USER_PWD\') or hasRole(\'ROLE_LEVEL_USER_SCA\'))") @GetMapping(produces="application/json", path="/api/v1/products/{productId}/receipts") public org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.contracts.api.receipt.ReceiptsResponseDto> findReceipts(@PathVariable("productId") String productId, @RequestParam(value="paginationKey",required=false) String paginationKey, es.kukenan.smartfi.common.security.WalletAuthentication walletAuthentication) Products receipts query endpoint.- Parameters:
productId- product identifier which movements are to be retrieved.paginationKey- pagination key used to request next result page.walletAuthentication- user credentials.- Returns:
- receipts.
-
findProductAssets
@PreAuthorize("(hasRole(\'ROLE_ACCESS_USER\') or hasRole(\'ROLE_ACCESS_AGENT\') or hasRole(\'ROLE_ACCESS_SUPERVISOR\')) and (hasRole(\'ROLE_LEVEL_USER_PWD\') or hasRole(\'ROLE_LEVEL_USER_SCA\'))") @GetMapping(produces="application/json", path="/api/v1/products/{productId}/assets") public org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.contracts.api.assets.AssetsResponseDto> findProductAssets(@PathVariable("productId") String productId, es.kukenan.smartfi.common.security.WalletAuthentication walletAuthentication) Products assets query endpoint.- Parameters:
productId- product identifier which assets are to be retrieved.walletAuthentication- user credentials.- Returns:
- product assets.
-
findProductPosition
@PreAuthorize("(hasRole(\'ROLE_ACCESS_USER\') or hasRole(\'ROLE_ACCESS_AGENT\') or hasRole(\'ROLE_ACCESS_SUPERVISOR\')) and (hasRole(\'ROLE_LEVEL_USER_PWD\') or hasRole(\'ROLE_LEVEL_USER_SCA\'))") @GetMapping(produces="application/json", path="/api/v1/products/{productId}/position") public org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.contracts.api.products.ProductDto> findProductPosition(@PathVariable("productId") String productId, es.kukenan.smartfi.common.security.WalletAuthentication walletAuthentication) Products position query endpoint.- Parameters:
productId- product identifier which assets are to be retrieved.walletAuthentication- user credentials.- Returns:
- product position.
-
createWallet
@PreAuthorize("(hasRole(\'ROLE_ACCESS_USER\') or hasRole(\'ROLE_ACCESS_AGENT\') or hasRole(\'ROLE_ACCESS_SUPERVISOR\')) and (hasRole(\'ROLE_LEVEL_USER_PWD\') or hasRole(\'ROLE_LEVEL_USER_SCA\'))") @GetMapping(produces="application/json", path="/api/v1/products/new-wallet") public org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.contracts.api.products.ProductDto> createWallet(es.kukenan.smartfi.common.security.WalletAuthentication walletAuthentication) Products position query endpoint.- Parameters:
walletAuthentication- user credentials.- Returns:
- product position.
-
createCard
@PreAuthorize("(hasRole(\'ROLE_ACCESS_USER\') or hasRole(\'ROLE_ACCESS_AGENT\') or hasRole(\'ROLE_ACCESS_SUPERVISOR\')) and (hasRole(\'ROLE_LEVEL_USER_PWD\') or hasRole(\'ROLE_LEVEL_USER_SCA\'))") @GetMapping(produces="application/json", path="/api/v1/products/new-card") public org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.contracts.api.products.ProductDto> createCard(es.kukenan.smartfi.common.security.WalletAuthentication walletAuthentication) Products position query endpoint.- Parameters:
walletAuthentication- user credentials.- Returns:
- product position.
-
findProductAssetDetail
@PreAuthorize("(hasRole(\'ROLE_ACCESS_USER\') or hasRole(\'ROLE_ACCESS_AGENT\') or hasRole(\'ROLE_ACCESS_SUPERVISOR\')) and (hasRole(\'ROLE_LEVEL_USER_PWD\') or hasRole(\'ROLE_LEVEL_USER_SCA\'))") @GetMapping(produces="application/json", path="/api/v1/products/{productId}/assets/{assetId}") public org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.contracts.api.assets.AssetDto> findProductAssetDetail(@PathVariable("productId") String productId, @PathVariable("assetId") String assetId, es.kukenan.smartfi.common.security.WalletAuthentication walletAuthentication) Products asset detail query endpoint.- Parameters:
productId- product identifier.assetId- product asset identifier.walletAuthentication- user credentials.- Returns:
- product assets.
-
findProductAssetMovements
@PreAuthorize("(hasRole(\'ROLE_ACCESS_USER\') or hasRole(\'ROLE_ACCESS_AGENT\') or hasRole(\'ROLE_ACCESS_SUPERVISOR\')) and (hasRole(\'ROLE_LEVEL_USER_PWD\') or hasRole(\'ROLE_LEVEL_USER_SCA\'))") @GetMapping(produces="application/json", path="/api/v1/products/{productId}/assets/{assetId}/movements") public org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.contracts.api.movement.MovementsResponseDto> findProductAssetMovements(@PathVariable("productId") String productId, @PathVariable("assetId") String assetId, @RequestParam(value="dateFrom",required=false) String dateFrom, @RequestParam(value="dateTo",required=false) String dateTo, @RequestParam(value="paginationKey",required=false) String paginationKey, es.kukenan.smartfi.common.security.WalletAuthentication walletAuthentication, javax.servlet.http.HttpServletRequest request) Products asset movements query endpoint.- Parameters:
productId- product identifier.assetId- product asset identifier.dateFrom- full from date in RFC3339 format with no separators (yyyymmdd).dateTo- full to date in RFC3339 format with no separators (yyyymmdd).paginationKey- pagination key used to request next result page.walletAuthentication- user credentials.request- HTTP servlet request.- Returns:
- product asset movements.
-
findProductComposition
@PreAuthorize("(hasRole(\'ROLE_ACCESS_USER\') or hasRole(\'ROLE_ACCESS_AGENT\') or hasRole(\'ROLE_ACCESS_SUPERVISOR\')) and (hasRole(\'ROLE_LEVEL_USER_PWD\') or hasRole(\'ROLE_LEVEL_USER_SCA\'))") @GetMapping(produces="application/json", path="/api/v1/products/{productId}/managedProducts") public org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.contracts.api.products.ProductsResponseDto> findProductComposition(@PathVariable(name="productId") String productId, es.kukenan.smartfi.common.security.WalletAuthentication walletAuthentication) Product composition endpoint (products managed by the given product).- Parameters:
productId- product identifier.walletAuthentication- user credentials.- Returns:
- the products managed by the given products.
-
getMovementsDocument
@PreAuthorize("(hasRole(\'ROLE_ACCESS_USER\') or hasRole(\'ROLE_ACCESS_AGENT\') or hasRole(\'ROLE_ACCESS_SUPERVISOR\')) and (hasRole(\'ROLE_LEVEL_USER_PWD\') or hasRole(\'ROLE_LEVEL_USER_SCA\'))") @GetMapping(produces="application/json", path="/api/v1/products/{productId}/movements/document") public org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.contracts.api.common.DocumentContentDto> getMovementsDocument(@PathVariable("productId") String productId, @RequestParam(defaultValue="pdf") String reportType, @RequestParam(value="dateFrom",required=false) String dateFrom, @RequestParam(value="dateTo",required=false) String dateTo, @RequestParam(value="type",required=false) String type, @RequestParam(value="reason",required=false) String reason, @RequestParam(value="number",required=false) String number, @RequestParam(value="state",required=false) String state, @RequestHeader(name="X-SKYLINE-USER-IP",defaultValue="") String userIp, es.kukenan.smartfi.common.security.WalletAuthentication walletAuthentication, javax.servlet.http.HttpServletRequest request) Products movement list pdf or csv document.- Parameters:
productId- product identifier which movements are to be retrieved.reportType- type of document (pdf or csv).dateFrom- full from date in RFC3339 format with no separators (yyyymmdd).dateTo- full to date in RFC3339 format with no separators (yyyymmdd).type- movement type code.reason- reason.number- imposition number.state- imposition state.userIp- user Ip.walletAuthentication- user credentials.request- HTTP servlet request.- Returns:
- products movements document.
-
getMovementDocument
@PreAuthorize("(hasRole(\'ROLE_ACCESS_USER\') or hasRole(\'ROLE_ACCESS_AGENT\') or hasRole(\'ROLE_ACCESS_SUPERVISOR\')) and (hasRole(\'ROLE_LEVEL_USER_PWD\') or hasRole(\'ROLE_LEVEL_USER_SCA\'))") @GetMapping(produces="application/json", path="/api/v1/products/{productId}/movements/{movementId}/document") public org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.contracts.api.common.DocumentContentDto> getMovementDocument(@PathVariable("productId") String productId, @PathVariable("movementId") String movementId, @RequestParam(defaultValue="pdf") String reportType, @RequestParam String reference, @RequestHeader(name="X-SKYLINE-USER-IP",defaultValue="") String userIp, es.kukenan.smartfi.common.security.WalletAuthentication walletAuthentication) Products movement detail pdf or csv document.- Parameters:
productId- product identifier which movements are to be retrieved.movementId- specific movement identifier.reportType- type of document (pdf or csv).reference- cache reference.userIp- user Ip.walletAuthentication- user credentials.- Returns:
- document.
-
createBearerToken
private String createBearerToken(es.kukenan.smartfi.common.security.WalletAuthentication walletAuthentication) -
findProductWithAssetsTypes
@PreAuthorize("(hasRole(\'ROLE_ACCESS_USER\') or hasRole(\'ROLE_ACCESS_AGENT\') or hasRole(\'ROLE_ACCESS_SUPERVISOR\')) and (hasRole(\'ROLE_LEVEL_USER_PWD\') or hasRole(\'ROLE_LEVEL_USER_SCA\'))") @GetMapping(produces="application/json", path="/api/v1/products/{productId}/assets-types") public org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.contracts.api.products.ProductDto> findProductWithAssetsTypes(@PathVariable(name="productId") String productId, es.kukenan.smartfi.common.security.WalletAuthentication walletAuthentication) Product detail with assets types endpoint.- Parameters:
productId- product identifier.walletAuthentication- user credentials.- Returns:
- products movements.
-