Class CorreosCashRestController
java.lang.Object
es.kukenan.smartfi.microservice.transfer.controller.CorreosCashRestController
Correos Cash Rest API Controller.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringAuthority (role) required in order to be able to invoke greeting API.static final StringCorreos Cash base path.static final StringCorreos Cash path to create the data needed to deposit cash at the post office.static final StringCorreos Cash path to get the data of deposit cash at the post office.private final CorreosCashServiceCorreos Cash ServiceCorreosCashService.private final es.kukenan.smartfi.common.service.jwt.JwtServiceJWT service for create a bearer to call productsJwtService. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.transfer.api.transfer.correoscash.CorreosCashResponseDto>getCorreosCashDeposit(es.kukenan.smartfi.common.security.WalletAuthentication kukenanWalletAuthentication, Integer paginationKey) Correos Cash endpoint to get user deposits data.
-
Field Details
-
API_CORREOS_CASH_BASE_PATH
Correos Cash base path.- See Also:
-
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
Correos Cash path to get the data of deposit cash at the post office.- See Also:
-
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 jwtServiceJWT service for create a bearer to call productsJwtService. -
correosCashService
Correos Cash ServiceCorreosCashService.
-
-
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 credentialsWalletAuthentication.paginationKey- pagination key used to request next result page.- Returns:
- deposits cash list
CorreosCashResponseDto
-