Class ExchangeController

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

@Controller public class ExchangeController extends AbstractController
Exchange controller for wallet product.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) ExchangeService
    Service for exchange methods.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • exchangeService

      @Autowired ExchangeService 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.