Class ExchangeController
java.lang.Object
es.kukenan.smartfi.microservice.smartficore.controller.AbstractController
es.kukenan.smartfi.microservice.smartficore.controller.ExchangeController
Exchange controller for wallet product.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.backoffice.dtos.core.response.CoreResponse<es.kukenan.smartfi.microservice.backoffice.dtos.core.transfers.TransferB2B>>exchangeCreditCard(es.kukenan.smartfi.microservice.backoffice.dtos.core.exchange.ExchangeCardDto exchangeCardDto) Generate prepaid card code.org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.backoffice.dtos.core.response.CoreResponse<es.kukenan.smartfi.microservice.backoffice.dtos.core.transfers.TransferB2B>>exchangePrepareCode(es.kukenan.smartfi.microservice.backoffice.dtos.core.exchange.ExchangePrepaidCodeRequestDto exchangePrepaidCodeRequestDto) Generate prepaid card code.org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.backoffice.dtos.core.exchange.ExchangeResult>generatePrepaidCodes(es.kukenan.smartfi.microservice.backoffice.dtos.core.exchange.ExchangeRequestDto exchangeRequestDto) Generate prepaid card code.Methods inherited from class es.kukenan.smartfi.microservice.smartficore.controller.AbstractController
fillResponseOk, fillResponseOk
-
Field Details
-
exchangeService
Service for exchange methods.
-
-
Constructor Details
-
ExchangeController
public ExchangeController()
-
-
Method Details
-
generatePrepaidCodes
@PutMapping(path="/papi/v1/api-exchange/exchange", produces="application/json") public org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.backoffice.dtos.core.exchange.ExchangeResult> generatePrepaidCodes(@RequestBody es.kukenan.smartfi.microservice.backoffice.dtos.core.exchange.ExchangeRequestDto exchangeRequestDto) Generate prepaid card code.- Parameters:
exchangeRequestDto- request with data for generate code.- Returns:
- Exchange Result with code generated.
-
exchangePrepareCode
@PostMapping(path="/api-exchange/exchange", 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>> exchangePrepareCode(@RequestBody es.kukenan.smartfi.microservice.backoffice.dtos.core.exchange.ExchangePrepaidCodeRequestDto exchangePrepaidCodeRequestDto) Generate prepaid card code.- Parameters:
exchangePrepaidCodeRequestDto- request with data for generate code.- Returns:
- Exchange Result with code generated.
-
exchangeCreditCard
@PostMapping(path="/api-exchange/exchangeCreditCard", 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>> exchangeCreditCard(@RequestBody es.kukenan.smartfi.microservice.backoffice.dtos.core.exchange.ExchangeCardDto exchangeCardDto) Generate prepaid card code.- Parameters:
exchangeCardDto- request with data for generate code.- Returns:
- Exchange Result with code generated.
-