Class CorreosCashRestController

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

@RestController public class CorreosCashRestController extends Object
Correos Cash Rest API Controller.
  • Field Details

    • API_CORREOS_CASH_BASE_PATH

      public static final String API_CORREOS_CASH_BASE_PATH
      Correos Cash base path.
      See Also:
    • API_CORREOS_CASH_DEPOSIT_PATH

      public static final String API_CORREOS_CASH_DEPOSIT_PATH
      Correos Cash path to create the data needed to deposit cash at the post office.
      See Also:
    • API_CORREOS_CASH_DEPOSITS_PATH

      public static final String API_CORREOS_CASH_DEPOSITS_PATH
      Correos Cash path to get the data of deposit cash at the post office.
      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

      private final es.kukenan.smartfi.common.service.jwt.JwtService jwtService
      JWT service for create a bearer to call products JwtService.
    • correosCashService

      private final CorreosCashService correosCashService
      Correos Cash Service CorreosCashService.
  • Constructor Details

    • CorreosCashRestController

      public CorreosCashRestController()
  • Method Details

    • getCorreosCashDeposit

      @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/correos-cash/deposits") public org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.transfer.api.transfer.correoscash.CorreosCashResponseDto> getCorreosCashDeposit(es.kukenan.smartfi.common.security.WalletAuthentication kukenanWalletAuthentication, @RequestParam(value="paginationKey",required=false,defaultValue="0") Integer paginationKey)
      Correos Cash endpoint to get user deposits data.
      Parameters:
      kukenanWalletAuthentication - user credentials WalletAuthentication.
      paginationKey - pagination key used to request next result page.
      Returns:
      deposits cash list CorreosCashResponseDto