Class MovementCoreController
java.lang.Object
es.kukenan.smartfi.microservice.smartficore.controller.AbstractController
es.kukenan.smartfi.microservice.smartficore.controller.MovementCoreController
Controller to reply movements endpoints definition.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate es.kukenan.smartfi.common.context.RequestContextManagerRequest context manager.private MovementCoreServiceCore service. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.backoffice.dtos.core.response.CoreResponse<List<es.kukenan.smartfi.microservice.backoffice.dtos.core.movement.CardMovement>>>getCardMovement(String userId, String cardId, String paginationKey, String dateFrom, String dateTo, String cardType, String reason, Boolean allMovement) Retrieve card movements.org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.backoffice.dtos.core.response.CoreResponse<List<es.kukenan.smartfi.microservice.backoffice.dtos.core.movement.WalletMovement>>>getWalletMovement(String userId, String currencyType, String walletId, String paginationKey, String dateFrom, String dateTo) Retrieve user wallets.Methods inherited from class es.kukenan.smartfi.microservice.smartficore.controller.AbstractController
fillResponseOk, fillResponseOk
-
Field Details
-
service
Core service. -
contextManager
@Autowired private es.kukenan.smartfi.common.context.RequestContextManager contextManagerRequest context manager.
-
-
Constructor Details
-
MovementCoreController
public MovementCoreController()
-
-
Method Details
-
getCardMovement
@GetMapping(path="/api-cards/cards/{cardId}/movements", produces="application/json") public org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.backoffice.dtos.core.response.CoreResponse<List<es.kukenan.smartfi.microservice.backoffice.dtos.core.movement.CardMovement>>> getCardMovement(@RequestHeader(name="X-USER-PROFILE-ID") String userId, @PathVariable String cardId, @RequestParam(defaultValue="",required=false) String paginationKey, @RequestParam(defaultValue="",required=false) String dateFrom, @RequestParam(defaultValue="",required=false) String dateTo, @RequestParam(defaultValue="",required=false) String cardType, @RequestParam(defaultValue="",required=false) String reason, @RequestParam(defaultValue="",required=false) Boolean allMovement) Retrieve card movements.- Parameters:
userId- User identifiercardId- account idpaginationKey- pagingdateFrom- date fromdateTo- date tocardType- card typereason- movement conceptallMovement- show all movements.- Returns:
- Core response with the accounts
-
getWalletMovement
@GetMapping(path="/api-wallets/wallets/{walletId}/movements", produces="application/json") public org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.backoffice.dtos.core.response.CoreResponse<List<es.kukenan.smartfi.microservice.backoffice.dtos.core.movement.WalletMovement>>> getWalletMovement(@RequestHeader(name="X-USER-PROFILE-ID") String userId, @RequestHeader(name="X-ACCOUNT-CURRENCY") String currencyType, @PathVariable String walletId, @RequestParam(defaultValue="",required=false) String paginationKey, @RequestParam(defaultValue="",required=false) String dateFrom, @RequestParam(defaultValue="",required=false) String dateTo) Retrieve user wallets.- Parameters:
userId- User identifiercurrencyType- currency type on walletwalletId- wallet idpaginationKey- pagingdateFrom- date fromdateTo- date to- Returns:
- Core response with the wallets
-