Go to file
Anatoly Cherkasov 77343b02c8
PROX-370: add exponent (#15)
* PROX-370: add exponent
2020-01-22 19:17:42 +03:00
build_utils@ea4aa042f4 Lib for OCT(payout) adapter spring (#1) 2019-06-04 11:50:48 +03:00
src PROX-370: add exponent (#15) 2020-01-22 19:17:42 +03:00
.gitignore Lib for OCT(payout) adapter spring (#1) 2019-06-04 11:50:48 +03:00
.gitmodules Lib for OCT(payout) adapter spring (#1) 2019-06-04 11:50:48 +03:00
Jenkinsfile Lib for OCT(payout) adapter spring (#1) 2019-06-04 11:50:48 +03:00
pom.xml PROX-370: add exponent (#15) 2020-01-22 19:17:42 +03:00
README.md Lib for OCT(payout) adapter spring (#1) 2019-06-04 11:50:48 +03:00

adapter-bank-payout-spring-boot-starter

For new payout:

  1. implement RemoteClient

  2. implement ResultProcessor and config ChainProcessor:

    @Bean
    @Autowired
    public ResultProcessor<Response, ProcessResult> responseProcessorChain(ErrorMapping errorMapping) {
        SuccessProcessor successProcessor = new SuccessProcessor(null);
        return new ErrorProcessor(errorMapping, successProcessor);
    }
    
  3. implement WithdrawalConverter

  4. implement GenericServlet for woody:

    @WebServlet("/adapter/{app-path}/payout")
    public class PayoutServlet extends GenericServlet {
    
        @Autowired
        private AdapterSrv.Iface payoutAdapterServiceLogDecorator;
    
        private Servlet servlet;
    
        @Override
        public void init(ServletConfig config) throws ServletException {
            super.init(config);
            servlet = new THServiceBuilder().build(AdapterSrv.Iface.class, payoutAdapterServiceLogDecorator);
        }
    
        @Override
        public void service(ServletRequest request, ServletResponse response) throws ServletException, IOException {
            servlet.service(request, response);
        }
    
    }