Class TransferRestController
java.lang.Object
es.kukenan.smartfi.microservice.transfer.controller.TransferRestController
Move Money service Rest API controller.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringRecharge money base path.static final StringAuthority (role) required in order to be able to invoke greeting API.static final StringBase path for move money Rest API.static final StringSingle comment path.static final StringComments base path.static final StringPath for destinations Rest API.static final StringTransfers favorites path.static final StringTransfers scheduled path for single transfer.static final StringTransfers favorites validation.static final StringPath for origins Rest API.static final StringProduct Favourite Transfers path.static final StringProduct Transfers path.static final StringTransfers scheduled path filter by product.static final StringTransfers path for single transfer id.static final StringTransfer report path.static final StringTransfers base path.static final StringTransfers base path.static final StringTransfers limits path.static final StringRemittances path.static final StringTransfers scheduled path.static final StringTransfers scheduled path for single transfer.static final StringTransfers simulate path.static final StringValidate BIC and IBAN.private CommentServiceComment service.private ContractsServiceContract Service.protected es.kukenan.smartfi.common.service.jwt.JwtServiceJWT service for create a bearer to call products.private MoveMoneyServiceMove Money service.protected es.kukenan.smartfi.common.context.RequestContextManagerRequest context manager.private TransferServiceMove money service. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate StringcreateBearerToken(es.kukenan.smartfi.common.security.WalletAuthentication kukenanAuthentication) org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.transfer.api.comment.CommentDto>createComment(es.kukenan.smartfi.common.security.WalletAuthentication kukenanWalletAuthentication, es.kukenan.smartfi.microservice.transfer.api.comment.CommentRequestDto commentRequestDto) Create comment endpoint.org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.transfer.api.transfer.TransferResponseDto>createFavorite(es.kukenan.smartfi.common.security.WalletAuthentication kukenanWalletAuthentication, es.kukenan.smartfi.microservice.transfer.api.transfer.TransferRequestDto request, Integer backofficeId) New favorite transfer.org.springframework.http.ResponseEntity<Void>deleteComment(es.kukenan.smartfi.common.security.WalletAuthentication kukenanWalletAuthentication, String commentId) Delete comment endpoint.org.springframework.http.ResponseEntity<Void>deleteFavorite(String transferID, es.kukenan.smartfi.common.security.WalletAuthentication kukenanAuthentication, String userIP, String userAgent, Integer backofficeId) Delete scheduled endpoint.org.springframework.http.ResponseEntity<Void>deleteScheduled(String transferID, es.kukenan.smartfi.common.security.WalletAuthentication kukenanWalletAuthentication, String userIP, String userAgent, Integer backofficeId, String operationId) Delete scheduled endpoint.org.springframework.http.ResponseEntity<Void>deleteTransfer(String transferID, es.kukenan.smartfi.common.security.WalletAuthentication kukenanWalletAuthentication, String userIP, String userAgent, Integer backofficeId) Delete transfer endpoint.org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.transfer.api.transfer.TransferResponseDto>exchangeCode(es.kukenan.smartfi.common.security.WalletAuthentication kukenanWalletAuthentication, es.kukenan.smartfi.microservice.transfer.api.exchange.ExchangeTransferRequestDto body, Integer backofficeId, String operationId) User transfer.org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.transfer.api.comment.CommentDto>getComment(es.kukenan.smartfi.common.security.WalletAuthentication kukenanWalletAuthentication, String productId, String transferId) Read comment endpoint.org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.transfer.api.products.ProductsDestinationResponseDto>getDestinations(es.kukenan.smartfi.common.security.WalletAuthentication kukenanWalletAuthentication, String type) Destinations endpoint.org.springframework.http.ResponseEntitygetDetailTransfer(es.kukenan.smartfi.common.security.WalletAuthentication kukenanAuthentication, Integer backofficeId, String type, String mode, String dateFrom, String dateTo, String productId, String paginationKey, String transferId) Detail transfers endpoint.org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.transfer.api.transfer.favorite.TransferFavoritesResponseDto>getFavorites(es.kukenan.smartfi.common.security.WalletAuthentication kukenanWalletAuthentication, Integer backofficeId) Transfers favorites endpoint.org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.transfer.api.transfer.favorite.TransferFavoritesResponseDto>getFavourites(es.kukenan.smartfi.common.security.WalletAuthentication kukenanWalletAuthentication, String productId, Optional<String> paginationKey, Integer backofficeId) Product Favourite Transfers endpoint.org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.transfer.api.transfer.limits.LimitsDto>getLimits(es.kukenan.smartfi.common.security.WalletAuthentication kukenanWalletAuthentication, Integer backofficeId) Transfers limits endpoint.org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.transfer.api.products.ProductsOriginResponseDto>getOrigins(es.kukenan.smartfi.common.security.WalletAuthentication kukenanWalletAuthentication, String type) Origins endpoint.org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.transfer.api.transfer.TransferReportResponseDto>getTransferReport(es.kukenan.smartfi.common.security.WalletAuthentication kukenanAuthentication, Integer backofficeId, String reference, String type, String mode, String reportType, Boolean isPeriodic) Transfer report endpoint.org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.transfer.api.transfer.TransfersResponseDto>getTransfers(es.kukenan.smartfi.common.security.WalletAuthentication kukenanWalletAuthentication, Integer backofficeId, String type, Optional<String> mode, String dateFrom, String dateTo, String productId, String paginationKey) Transfers endpoint.org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.transfer.api.transfer.TransfersResponseDto>getTransfers(es.kukenan.smartfi.common.security.WalletAuthentication kukenanAuthentication, String productId, String type, Optional<String> mode, String dateFrom, String dateTo, Optional<String> paginationKey, Integer backofficeId) Product Transfers endpoint.org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.transfer.api.transfer.TransferResponseDto>modifyTransferScheduled(es.kukenan.smartfi.common.security.WalletAuthentication kukenanWalletAuthentication, String userIP, String userAgent, es.kukenan.smartfi.microservice.transfer.api.transfer.TransferRequestDto request, Integer backofficeId, String transferId, String operationId) Modify scheduled transfer.org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.transfer.api.remittance.SendRemittanceRequestDto>sendRemittance(es.kukenan.smartfi.common.security.WalletAuthentication kukenanWalletAuthentication, es.kukenan.smartfi.microservice.transfer.api.remittance.SendRemittanceRequestDto body, Integer backofficeId, String operationId) User transfer.org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.transfer.api.transfer.TransferResponseDto>transfers(es.kukenan.smartfi.common.security.WalletAuthentication kukenanWalletAuthentication, es.kukenan.smartfi.microservice.transfer.api.transfer.TransferRequestDto body, Integer backofficeId, String operationId) User transfer.org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.transfer.api.comment.CommentDto>updateComment(es.kukenan.smartfi.common.security.WalletAuthentication kukenanWalletAuthentication, String commentId, es.kukenan.smartfi.microservice.transfer.api.comment.CommentRequestDto commentRequestDto) Update comment endpoint.org.springframework.http.ResponseEntity<Void>validateFavoriteTransfer(es.kukenan.smartfi.common.security.WalletAuthentication kukenanWalletAuthentication, String userIP, String userAgent, String alias, Integer transferMode, Integer backofficeId) validate transfer favorite.
-
Field Details
-
API_BASE_PATH
Base path for move money Rest API.- See Also:
-
API_ORIGINS_PATH
Path for origins Rest API.- See Also:
-
API_DESTINATIONS_PATH
Path for destinations Rest API.- See Also:
-
API_TRANSFERS
Transfers base path.- See Also:
-
API_ADD_MONEY
Recharge money base path.- See Also:
-
API_COMMENTS
Comments base path.- See Also:
-
API_COMMENT
Single comment path.- See Also:
-
API_TRANSFERS_DETAIL
Transfers base path.- See Also:
-
API_TRANSFERS_LIMITS
Transfers limits path.- See Also:
-
API_TRANSFERS_SIMULATE
Transfers simulate path.- See Also:
-
API_TRANSFERS_SCHEDULED
Transfers scheduled path.- See Also:
-
API_TRANSFERS_SCHEDULED_PATH
Transfers scheduled path for single transfer.- See Also:
-
API_TRANSFER_PATH
Transfers path for single transfer id.- See Also:
-
API_TRANSFER_REPORT
Transfer report path.- See Also:
-
API_VALIDATEBICIBAN
Validate BIC and IBAN.- See Also:
-
API_FAVORITES
Transfers favorites path.- See Also:
-
API_FAVORITES_VALIDATION
Transfers favorites validation.- See Also:
-
API_FAVORITES_PATH
Transfers scheduled path for single transfer.- See Also:
-
API_PRODUCT_TRANSFERS
Product Transfers path.- See Also:
-
API_PRODUCT_FAVOURITE_TRANSFERS
Product Favourite Transfers path.- See Also:
-
API_PRODUCT_TRANSFERS_SCHEDULED
Transfers scheduled path filter by product.- See Also:
-
API_TRANSFERS_REMITTANCES
Remittances path.- 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. -
requestContextManager
@Autowired protected es.kukenan.smartfi.common.context.RequestContextManager requestContextManagerRequest context manager. -
moveMoneyService
Move Money service. -
transferService
Move money service. -
contractsService
Contract Service. -
commentService
Comment service.
-
-
Constructor Details
-
TransferRestController
public TransferRestController()
-
-
Method Details
-
getOrigins
@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/move-money/origins") public org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.transfer.api.products.ProductsOriginResponseDto> getOrigins(es.kukenan.smartfi.common.security.WalletAuthentication kukenanWalletAuthentication, @RequestParam String type) Origins endpoint.- Parameters:
kukenanWalletAuthentication- user credentials.type- type of movement (transfer, contribution, earlyRepayment, ..)- Returns:
- origin acounts.
-
getDestinations
@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/move-money/destinations") public org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.transfer.api.products.ProductsDestinationResponseDto> getDestinations(es.kukenan.smartfi.common.security.WalletAuthentication kukenanWalletAuthentication, @RequestParam String type) Destinations endpoint.- Parameters:
kukenanWalletAuthentication- user credentials.type- type of movement (transfer, contribution, earlyRepayment, ..)- Returns:
- destination acounts.
-
getLimits
@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/move-money/transfers/limits") public org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.transfer.api.transfer.limits.LimitsDto> getLimits(es.kukenan.smartfi.common.security.WalletAuthentication kukenanWalletAuthentication, @RequestAttribute Integer backofficeId) Transfers limits endpoint.- Parameters:
kukenanWalletAuthentication- user credentials.backofficeId- backoffice identifier- Returns:
- transfer limits
-
transfers
@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\'))") @PostMapping(produces="application/json", path="/api/v1/move-money/transfers") public org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.transfer.api.transfer.TransferResponseDto> transfers(es.kukenan.smartfi.common.security.WalletAuthentication kukenanWalletAuthentication, @RequestBody es.kukenan.smartfi.microservice.transfer.api.transfer.TransferRequestDto body, @RequestAttribute Integer backofficeId, @RequestParam(required=false) String operationId) User transfer.- Parameters:
kukenanWalletAuthentication- user credentials.body- request body.backofficeId- backofficeId defined.operationId- idOperation.- Returns:
- transfer
-
exchangeCode
@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\'))") @PostMapping(produces="application/json", path="/api/v1/move-money/addmoney") public org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.transfer.api.transfer.TransferResponseDto> exchangeCode(es.kukenan.smartfi.common.security.WalletAuthentication kukenanWalletAuthentication, @RequestBody es.kukenan.smartfi.microservice.transfer.api.exchange.ExchangeTransferRequestDto body, @RequestAttribute Integer backofficeId, @RequestParam(required=false) String operationId) User transfer.- Parameters:
kukenanWalletAuthentication- user credentials.body- request body.backofficeId- backofficeId defined.operationId- idOperation.- Returns:
- transfer
-
getFavorites
@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/move-money/favorites") public org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.transfer.api.transfer.favorite.TransferFavoritesResponseDto> getFavorites(es.kukenan.smartfi.common.security.WalletAuthentication kukenanWalletAuthentication, @RequestAttribute Integer backofficeId) Transfers favorites endpoint.- Parameters:
kukenanWalletAuthentication- user credentials.backofficeId- backoffice identifier- Returns:
- transfer favorites
-
getFavourites
@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/move-money/{productId}/transfers/favorites") public org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.transfer.api.transfer.favorite.TransferFavoritesResponseDto> getFavourites(es.kukenan.smartfi.common.security.WalletAuthentication kukenanWalletAuthentication, @PathVariable String productId, @RequestParam Optional<String> paginationKey, @RequestAttribute Integer backofficeId) Product Favourite Transfers endpoint.- Parameters:
kukenanWalletAuthentication- user credentials.productId- product id.paginationKey- pagination key used to request next result page.backofficeId- backoffice identifier.- Returns:
- Product Favourite Transfers
TransferFavoritesResponseDto.
-
createFavorite
@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\'))") @PostMapping(produces="application/json", path="/api/v1/move-money/favorites") public org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.transfer.api.transfer.TransferResponseDto> createFavorite(es.kukenan.smartfi.common.security.WalletAuthentication kukenanWalletAuthentication, @RequestBody es.kukenan.smartfi.microservice.transfer.api.transfer.TransferRequestDto request, @RequestAttribute Integer backofficeId) New favorite transfer.- Parameters:
kukenanWalletAuthentication- user credentials.request- request body.backofficeId- backofficeId defined.- Returns:
- transfer
-
createComment
@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\'))") @PostMapping(produces="application/json", path="/api/v1/move-money/transfers/comments") public org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.transfer.api.comment.CommentDto> createComment(es.kukenan.smartfi.common.security.WalletAuthentication kukenanWalletAuthentication, @RequestBody es.kukenan.smartfi.microservice.transfer.api.comment.CommentRequestDto commentRequestDto) Create comment endpoint.- Parameters:
kukenanWalletAuthentication- user credentialscommentRequestDto- request DTO.- Returns:
- CommentResponseDto.
-
getComment
@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/move-money/transfers/comments") public org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.transfer.api.comment.CommentDto> getComment(es.kukenan.smartfi.common.security.WalletAuthentication kukenanWalletAuthentication, @RequestParam(name="productId") String productId, @RequestParam(name="transferId") String transferId) Read comment endpoint.- Parameters:
kukenanWalletAuthentication- user credentials.productId- product identifier.transferId- transfer identifier.- Returns:
- comment
-
updateComment
@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\'))") @PutMapping(produces="application/json", path="/api/v1/move-money/transfers/comments/{commentId}") public org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.transfer.api.comment.CommentDto> updateComment(es.kukenan.smartfi.common.security.WalletAuthentication kukenanWalletAuthentication, @PathVariable String commentId, @RequestBody es.kukenan.smartfi.microservice.transfer.api.comment.CommentRequestDto commentRequestDto) Update comment endpoint.- Parameters:
kukenanWalletAuthentication- user credentials.commentId- comment identifier.commentRequestDto- Dto containing new data.- Returns:
- CommentDto.
-
deleteComment
@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\'))") @DeleteMapping(produces="application/json", path="/api/v1/move-money/transfers/comments/{commentId}") public org.springframework.http.ResponseEntity<Void> deleteComment(es.kukenan.smartfi.common.security.WalletAuthentication kukenanWalletAuthentication, @PathVariable(name="commentId") String commentId) Delete comment endpoint.- Parameters:
kukenanWalletAuthentication- user credentials.commentId- comment identifier.- Returns:
- empty response.
-
deleteScheduled
@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\'))") @DeleteMapping(produces="application/json", path="/api/v1/move-money/transfers/scheduled/{transferID}") public org.springframework.http.ResponseEntity<Void> deleteScheduled(@PathVariable(name="transferID") String transferID, es.kukenan.smartfi.common.security.WalletAuthentication kukenanWalletAuthentication, @RequestHeader("X-SKYLINE-USER-IP") String userIP, @RequestHeader("X-USER-AGENT") String userAgent, @RequestAttribute Integer backofficeId, @RequestParam(required=false) String operationId) Delete scheduled endpoint.- Parameters:
transferID- transfer identifier.kukenanWalletAuthentication- user credentials.userIP- user real ip.userAgent- user-agent header.backofficeId- backoffice identifier.operationId- operation identifier.- Returns:
- response without data
-
deleteTransfer
@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\'))") @DeleteMapping(produces="application/json", path="/api/v1/move-money/transfers/{transferID}") public org.springframework.http.ResponseEntity<Void> deleteTransfer(@PathVariable(name="transferID") String transferID, es.kukenan.smartfi.common.security.WalletAuthentication kukenanWalletAuthentication, @RequestHeader("X-SKYLINE-USER-IP") String userIP, @RequestHeader("X-USER-AGENT") String userAgent, @RequestAttribute Integer backofficeId) Delete transfer endpoint.- Parameters:
transferID- transfer identifierkukenanWalletAuthentication- user credentials.userIP- user real ipuserAgent- user-agent headerbackofficeId- backoffice identifier- Returns:
- transfer favorites
-
modifyTransferScheduled
@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\'))") @PutMapping(produces="application/json", path="/api/v1/move-money/transfers/scheduled/{transferID}") public org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.transfer.api.transfer.TransferResponseDto> modifyTransferScheduled(es.kukenan.smartfi.common.security.WalletAuthentication kukenanWalletAuthentication, @RequestHeader("X-SKYLINE-USER-IP") String userIP, @RequestHeader("X-USER-AGENT") String userAgent, @RequestBody es.kukenan.smartfi.microservice.transfer.api.transfer.TransferRequestDto request, @RequestAttribute Integer backofficeId, @PathVariable(name="transferID") String transferId, @RequestParam(required=false) String operationId) Modify scheduled transfer.- Parameters:
kukenanWalletAuthentication- user credentials.userIP- user real ipuserAgent- user-agent headerrequest- request body.backofficeId- backofficeId defined.transferId- transfer Id.operationId- operation identifier.- Returns:
- transfer
-
getTransfers
@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/move-money/transfers") public org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.transfer.api.transfer.TransfersResponseDto> getTransfers(es.kukenan.smartfi.common.security.WalletAuthentication kukenanWalletAuthentication, @RequestAttribute Integer backofficeId, @RequestParam String type, @RequestParam Optional<String> mode, @RequestParam(required=false) String dateFrom, @RequestParam(required=false) String dateTo, @RequestParam(required=false) String productId, @RequestParam(required=false) String paginationKey) Transfers endpoint.- Parameters:
kukenanWalletAuthentication- user credentials.backofficeId- backoffice identifiertype- transfer typemode- transfer modedateFrom- date from intervaldateTo- date to intervalproductId- product uuidpaginationKey- pagination key used to request next result page.- Returns:
- transfer
-
getTransfers
@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/move-money/{productId}/transfers") public org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.transfer.api.transfer.TransfersResponseDto> getTransfers(es.kukenan.smartfi.common.security.WalletAuthentication kukenanAuthentication, @PathVariable String productId, @RequestParam String type, @RequestParam Optional<String> mode, @RequestParam(required=false) String dateFrom, @RequestParam(required=false) String dateTo, @RequestParam Optional<String> paginationKey, @RequestAttribute Integer backofficeId) Product Transfers endpoint.- Parameters:
kukenanAuthentication- user credentialsWalletAuthentication.productId- product id.type- transfer type.mode- transfer mode.dateFrom- date from interval.dateTo- date to interval.paginationKey- pagination key used to request next result page.backofficeId- backoffice identifier.- Returns:
- Product Transfers
TransfersResponseDto.
-
getDetailTransfer
@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(path="/api/v1/move-money/transfers/detail", produces="application/json") public org.springframework.http.ResponseEntity getDetailTransfer(es.kukenan.smartfi.common.security.WalletAuthentication kukenanAuthentication, @RequestAttribute Integer backofficeId, @RequestParam String type, @RequestParam(required=false) String mode, @RequestParam(required=false) String dateFrom, @RequestParam(required=false) String dateTo, @RequestParam(required=true) String productId, @RequestParam(required=false) String paginationKey, @RequestParam(required=true) String transferId) Detail transfers endpoint.- Parameters:
kukenanAuthentication- user credentials.backofficeId- backoffice identifiertype- transfer typemode- transfer modedateFrom- date from intervaldateTo- date to intervalproductId- product uuidpaginationKey- pagination key used to request next result page.transferId- transfer id.- Returns:
- transfer
-
deleteFavorite
@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\'))") @DeleteMapping(produces="application/json", path="/api/v1/move-money/favorites/{transferID}") public org.springframework.http.ResponseEntity<Void> deleteFavorite(@PathVariable(name="transferID") String transferID, es.kukenan.smartfi.common.security.WalletAuthentication kukenanAuthentication, @RequestHeader("X-SKYLINE-USER-IP") String userIP, @RequestHeader("X-USER-AGENT") String userAgent, @RequestAttribute Integer backofficeId) Delete scheduled endpoint.- Parameters:
transferID- transfer identifierkukenanAuthentication- user credentials.userIP- user real ipuserAgent- user-agent headerbackofficeId- backoffice identifier- Returns:
- response without data
-
createBearerToken
private String createBearerToken(es.kukenan.smartfi.common.security.WalletAuthentication kukenanAuthentication) -
validateFavoriteTransfer
@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/move-money/favorites/validate") public org.springframework.http.ResponseEntity<Void> validateFavoriteTransfer(es.kukenan.smartfi.common.security.WalletAuthentication kukenanWalletAuthentication, @RequestHeader("X-SKYLINE-USER-IP") String userIP, @RequestHeader("X-USER-AGENT") String userAgent, @RequestParam String alias, @RequestParam Integer transferMode, @RequestAttribute Integer backofficeId) validate transfer favorite.- Parameters:
kukenanWalletAuthentication- user credentials.userIP- user real ipuserAgent- user-agent headeralias- param value.transferMode- param value.backofficeId- backofficeId defined.- Returns:
- transfer favorite validated
-
getTransferReport
@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/move-money/transfers/{reference}/document") public org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.transfer.api.transfer.TransferReportResponseDto> getTransferReport(es.kukenan.smartfi.common.security.WalletAuthentication kukenanAuthentication, @RequestAttribute Integer backofficeId, @PathVariable String reference, @RequestParam String type, @RequestParam String mode, @RequestParam(required=false,defaultValue="pdf") String reportType, @RequestParam(required=false) Boolean isPeriodic) Transfer report endpoint.- Parameters:
kukenanAuthentication- user credentials.backofficeId- backoffice identifierreference- Skyline transfer referencetype- transfer typemode- transfer modereportType- report typeisPeriodic- is periodic transfer flag indicator- Returns:
- transfer
-
sendRemittance
@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\'))") @PostMapping(produces="application/json", path="/api/v1/move-money/transfers/remittances") public org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.transfer.api.remittance.SendRemittanceRequestDto> sendRemittance(es.kukenan.smartfi.common.security.WalletAuthentication kukenanWalletAuthentication, @RequestBody es.kukenan.smartfi.microservice.transfer.api.remittance.SendRemittanceRequestDto body, @RequestAttribute Integer backofficeId, @RequestParam(required=false) String operationId) User transfer.- Parameters:
kukenanWalletAuthentication- user credentials.body- request body.backofficeId- backofficeId defined.operationId- idOperation.- Returns:
- transfer
-