Class TransferRestController

java.lang.Object
es.kukenan.smartfi.microservice.transfer.controller.TransferRestController

@RestController public class TransferRestController extends Object
Move Money service Rest API controller.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Recharge money base path.
    static final String
    Authority (role) required in order to be able to invoke greeting API.
    static final String
    Base path for move money Rest API.
    static final String
    Single comment path.
    static final String
    Comments base path.
    static final String
    Path for destinations Rest API.
    static final String
    Transfers favorites path.
    static final String
    Transfers scheduled path for single transfer.
    static final String
    Transfers favorites validation.
    static final String
    Path for origins Rest API.
    static final String
    Product Favourite Transfers path.
    static final String
    Product Transfers path.
    static final String
    Transfers scheduled path filter by product.
    static final String
    Transfers path for single transfer id.
    static final String
    Transfer report path.
    static final String
    Transfers base path.
    static final String
    Transfers base path.
    static final String
    Transfers limits path.
    static final String
    Remittances path.
    static final String
    Transfers scheduled path.
    static final String
    Transfers scheduled path for single transfer.
    static final String
    Transfers simulate path.
    static final String
    Validate BIC and IBAN.
    Comment service.
    Contract Service.
    protected es.kukenan.smartfi.common.service.jwt.JwtService
    JWT service for create a bearer to call products.
    Move Money service.
    protected es.kukenan.smartfi.common.context.RequestContextManager
    Request context manager.
    Move money service.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private String
    createBearerToken(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.ResponseEntity
    getDetailTransfer(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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • API_BASE_PATH

      public static final String API_BASE_PATH
      Base path for move money Rest API.
      See Also:
    • API_ORIGINS_PATH

      public static final String API_ORIGINS_PATH
      Path for origins Rest API.
      See Also:
    • API_DESTINATIONS_PATH

      public static final String API_DESTINATIONS_PATH
      Path for destinations Rest API.
      See Also:
    • API_TRANSFERS

      public static final String API_TRANSFERS
      Transfers base path.
      See Also:
    • API_ADD_MONEY

      public static final String API_ADD_MONEY
      Recharge money base path.
      See Also:
    • API_COMMENTS

      public static final String API_COMMENTS
      Comments base path.
      See Also:
    • API_COMMENT

      public static final String API_COMMENT
      Single comment path.
      See Also:
    • API_TRANSFERS_DETAIL

      public static final String API_TRANSFERS_DETAIL
      Transfers base path.
      See Also:
    • API_TRANSFERS_LIMITS

      public static final String API_TRANSFERS_LIMITS
      Transfers limits path.
      See Also:
    • API_TRANSFERS_SIMULATE

      public static final String API_TRANSFERS_SIMULATE
      Transfers simulate path.
      See Also:
    • API_TRANSFERS_SCHEDULED

      public static final String API_TRANSFERS_SCHEDULED
      Transfers scheduled path.
      See Also:
    • API_TRANSFERS_SCHEDULED_PATH

      public static final String API_TRANSFERS_SCHEDULED_PATH
      Transfers scheduled path for single transfer.
      See Also:
    • API_TRANSFER_PATH

      public static final String API_TRANSFER_PATH
      Transfers path for single transfer id.
      See Also:
    • API_TRANSFER_REPORT

      public static final String API_TRANSFER_REPORT
      Transfer report path.
      See Also:
    • API_VALIDATEBICIBAN

      public static final String API_VALIDATEBICIBAN
      Validate BIC and IBAN.
      See Also:
    • API_FAVORITES

      public static final String API_FAVORITES
      Transfers favorites path.
      See Also:
    • API_FAVORITES_VALIDATION

      public static final String API_FAVORITES_VALIDATION
      Transfers favorites validation.
      See Also:
    • API_FAVORITES_PATH

      public static final String API_FAVORITES_PATH
      Transfers scheduled path for single transfer.
      See Also:
    • API_PRODUCT_TRANSFERS

      public static final String API_PRODUCT_TRANSFERS
      Product Transfers path.
      See Also:
    • API_PRODUCT_FAVOURITE_TRANSFERS

      public static final String API_PRODUCT_FAVOURITE_TRANSFERS
      Product Favourite Transfers path.
      See Also:
    • API_PRODUCT_TRANSFERS_SCHEDULED

      public static final String API_PRODUCT_TRANSFERS_SCHEDULED
      Transfers scheduled path filter by product.
      See Also:
    • API_TRANSFERS_REMITTANCES

      public static final String API_TRANSFERS_REMITTANCES
      Remittances path.
      See Also:
    • API_AUTHORITIES

      public static final String 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 jwtService
      JWT service for create a bearer to call products.
    • requestContextManager

      @Autowired protected es.kukenan.smartfi.common.context.RequestContextManager requestContextManager
      Request context manager.
    • moveMoneyService

      @Autowired private MoveMoneyService moveMoneyService
      Move Money service.
    • transferService

      @Autowired private TransferService transferService
      Move money service.
    • contractsService

      @Autowired private ContractsService contractsService
      Contract Service.
    • commentService

      @Autowired private CommentService 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 credentials
      commentRequestDto - 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 identifier
      kukenanWalletAuthentication - user credentials.
      userIP - user real ip
      userAgent - user-agent header
      backofficeId - 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 ip
      userAgent - user-agent header
      request - 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 identifier
      type - transfer type
      mode - transfer mode
      dateFrom - date from interval
      dateTo - date to interval
      productId - product uuid
      paginationKey - 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 credentials WalletAuthentication.
      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 identifier
      type - transfer type
      mode - transfer mode
      dateFrom - date from interval
      dateTo - date to interval
      productId - product uuid
      paginationKey - 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 identifier
      kukenanAuthentication - user credentials.
      userIP - user real ip
      userAgent - user-agent header
      backofficeId - 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 ip
      userAgent - user-agent header
      alias - 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 identifier
      reference - Skyline transfer reference
      type - transfer type
      mode - transfer mode
      reportType - report type
      isPeriodic - 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