Class MovementCoreController

java.lang.Object
es.kukenan.smartfi.microservice.smartficore.controller.AbstractController
es.kukenan.smartfi.microservice.smartficore.controller.MovementCoreController

@RestController public class MovementCoreController extends AbstractController
Controller to reply movements endpoints definition.
  • Field Details

    • service

      @Autowired private MovementCoreService service
      Core service.
    • contextManager

      @Autowired private es.kukenan.smartfi.common.context.RequestContextManager contextManager
      Request 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 identifier
      cardId - account id
      paginationKey - paging
      dateFrom - date from
      dateTo - date to
      cardType - card type
      reason - movement concept
      allMovement - 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 identifier
      currencyType - currency type on wallet
      walletId - wallet id
      paginationKey - paging
      dateFrom - date from
      dateTo - date to
      Returns:
      Core response with the wallets