Class WalletProductController

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

@RestController public class WalletProductController extends AbstractController
Controller to reply Wallet Product endpoints definition.
  • Field Details

    • API_PATH

      public static final String API_PATH
      REST API base path.
      See Also:
    • walletProductService

      @Autowired private WalletProductService walletProductService
      Wallet Product service.
    • contextManager

      @Autowired private es.kukenan.smartfi.common.context.RequestContextManager contextManager
      Request context manager.
  • Constructor Details

    • WalletProductController

      public WalletProductController()
  • Method Details

    • getWalletProductsByUser

      @GetMapping(value="/api/v1/actions/wallet-product/", produces="application/json") public org.springframework.http.ResponseEntity<List<WalletProduct>> getWalletProductsByUser(@RequestHeader(name="X-USER-PROFILE-ID") String userId)
      Retrieve wallet products.
      Parameters:
      userId - user id
      Returns:
      status code and message
    • createWalletProductsForUser

      @PostMapping(value="/api/v1/actions/wallet-product/", produces="application/json") public org.springframework.http.ResponseEntity<Object> createWalletProductsForUser(@RequestHeader(name="X-USER-PROFILE-ID") String userId)
      Retrieve wallet products.
      Parameters:
      userId - user id
      Returns:
      status code and message
    • enableDisableWalletProduct

      @PutMapping(value="/api/v1/actions/wallet-product/{walletProductId}", produces="application/json") public org.springframework.http.ResponseEntity<WalletProduct> enableDisableWalletProduct(@PathVariable String walletProductId, @RequestBody boolean enableDisable)
      Enable/Disable wallet product.
      Parameters:
      walletProductId - Wallet product id .
      enableDisable - boolean .
      Returns:
      the wallet product.
    • doTransfer

      @PostMapping(path="/api-transfers/transfers", produces="application/json") public org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.backoffice.dtos.core.response.CoreResponse<es.kukenan.smartfi.microservice.backoffice.dtos.core.transfers.TransferB2B>> doTransfer(@RequestHeader(name="X-USER-PROFILE-ID") String userId, @RequestHeader(name="X-SKYLINE-USER-IP") String userIp, @RequestHeader(name="X-USER-AGENT") String userAgent, @RequestBody es.kukenan.smartfi.microservice.backoffice.dtos.core.transfers.TransferRequest transferRequest)
      Do transfer.
      Parameters:
      userId - id of the user.
      userIp - ip of the user.
      userAgent - userAgent
      transferRequest - body transfer request
      Returns:
      the transfer modes list.