Adapter-bank-payout-spring-boot-starter

Spring boot starter for payout adapters

License

License

Categories

Categories

Spring Boot Container Microservices
GroupId

GroupId

com.rbkmoney
ArtifactId

ArtifactId

adapter-bank-payout-spring-boot-starter
Last Version

Last Version

1.0.12
Release Date

Release Date

Type

Type

jar
Description

Description

Adapter-bank-payout-spring-boot-starter
Spring boot starter for payout adapters
Project URL

Project URL

https://github.com/rbkmoney/adapter-bank-payout-spring-boot-starter
Source Code Management

Source Code Management

https://github.com/rbkmoney/adapter-bank-payout-spring-boot-starter/tree/master

Download adapter-bank-payout-spring-boot-starter

How to add to project

<!-- https://jarcasting.com/artifacts/com.rbkmoney/adapter-bank-payout-spring-boot-starter/ -->
<dependency>
    <groupId>com.rbkmoney</groupId>
    <artifactId>adapter-bank-payout-spring-boot-starter</artifactId>
    <version>1.0.12</version>
</dependency>
// https://jarcasting.com/artifacts/com.rbkmoney/adapter-bank-payout-spring-boot-starter/
implementation 'com.rbkmoney:adapter-bank-payout-spring-boot-starter:1.0.12'
// https://jarcasting.com/artifacts/com.rbkmoney/adapter-bank-payout-spring-boot-starter/
implementation ("com.rbkmoney:adapter-bank-payout-spring-boot-starter:1.0.12")
'com.rbkmoney:adapter-bank-payout-spring-boot-starter:jar:1.0.12'
<dependency org="com.rbkmoney" name="adapter-bank-payout-spring-boot-starter" rev="1.0.12">
  <artifact name="adapter-bank-payout-spring-boot-starter" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.rbkmoney', module='adapter-bank-payout-spring-boot-starter', version='1.0.12')
)
libraryDependencies += "com.rbkmoney" % "adapter-bank-payout-spring-boot-starter" % "1.0.12"
[com.rbkmoney/adapter-bank-payout-spring-boot-starter "1.0.12"]

Dependencies

compile (4)

Group / Artifact Type Version
org.hibernate.validator : hibernate-validator jar 6.1.5.Final
org.springframework.boot : spring-boot-autoconfigure jar 2.3.8.RELEASE
org.springframework.boot : spring-boot-configuration-processor Optional jar 2.3.8.RELEASE
com.rbkmoney : adapter-common-lib jar 0.0.26

provided (9)

Group / Artifact Type Version
javax.servlet : javax.servlet-api jar 4.0.1
org.slf4j : slf4j-api jar 1.7.30
org.projectlombok : lombok jar 1.18.4
org.springframework.boot : spring-boot jar 2.3.8.RELEASE
org.springframework.boot : spring-boot-starter-web jar 2.3.8.RELEASE
com.rbkmoney.woody : woody-thrift jar [1.1.21,)
com.rbkmoney : error-mapping-java jar 1.0.6
com.rbkmoney.geck : serializer jar [0.6.11,)
com.rbkmoney : damsel jar 1.474-c5b986f

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

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);
        }
        
    }
    
com.rbkmoney

RBKmoney

Versions

Version
1.0.12
1.0.11