Class WalletProductController
java.lang.Object
es.kukenan.smartfi.microservice.smartficore.controller.AbstractController
es.kukenan.smartfi.microservice.smartficore.controller.WalletProductController
Controller to reply Wallet Product endpoints definition.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringREST API base path.private es.kukenan.smartfi.common.context.RequestContextManagerRequest context manager.private WalletProductServiceWallet Product service. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Object>createWalletProductsForUser(String userId) Retrieve wallet products.org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.backoffice.dtos.core.response.CoreResponse<es.kukenan.smartfi.microservice.backoffice.dtos.core.transfers.TransferB2B>>doTransfer(String userId, String userIp, String userAgent, es.kukenan.smartfi.microservice.backoffice.dtos.core.transfers.TransferRequest transferRequest) Do transfer.org.springframework.http.ResponseEntity<WalletProduct>enableDisableWalletProduct(String walletProductId, boolean enableDisable) Enable/Disable wallet product.org.springframework.http.ResponseEntity<List<WalletProduct>>getWalletProductsByUser(String userId) Retrieve wallet products.Methods inherited from class es.kukenan.smartfi.microservice.smartficore.controller.AbstractController
fillResponseOk, fillResponseOk
-
Field Details
-
API_PATH
REST API base path.- See Also:
-
walletProductService
Wallet Product service. -
contextManager
@Autowired private es.kukenan.smartfi.common.context.RequestContextManager contextManagerRequest 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- userAgenttransferRequest- body transfer request- Returns:
- the transfer modes list.
-