mirror of
https://github.com/valitydev/adapter-bank-payout-spring-boot-starter.git
synced 2024-11-06 00:45:21 +00:00
090bba7c1a
* 🔄 Created local '.github/workflows/basic-linters.yml' from remote 'workflows/base/basic-linters.yml' * 🔄 Synced local 'LICENSE' with remote 'LICENSE' * 🔄 Created local '.github/settings.yml' from remote '.github/settings.yml' * 🔄 Created local 'CODEOWNERS' from remote 'codeowners/java' |
||
---|---|---|
.github | ||
src | ||
.gitignore | ||
CODEOWNERS | ||
LICENSE | ||
pom.xml | ||
README.md | ||
renovate.json |
adapter-bank-payout-spring-boot-starter
For new payout:
-
implement RemoteClient
-
implement ResultProcessor and config ChainProcessor:
@Bean @Autowired public ResultProcessor<Response, ProcessResult> responseProcessorChain(ErrorMapping errorMapping) { SuccessProcessor successProcessor = new SuccessProcessor(null); return new ErrorProcessor(errorMapping, successProcessor); }
-
implement WithdrawalConverter
-
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); } }