mirror of
https://github.com/valitydev/fraudbusters-mg-connector.git
synced 2024-11-06 01:15:17 +00:00
Up libs (#38)
This commit is contained in:
parent
e19af782c4
commit
9018ada12c
2
.github/settings.yml
vendored
Normal file
2
.github/settings.yml
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# These settings are synced to GitHub by https://probot.github.io/apps/settings/
|
||||||
|
_extends: .github
|
10
.github/workflows/basic-linters.yml
vendored
Normal file
10
.github/workflows/basic-linters.yml
vendored
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
name: Vality basic linters
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- "*"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
lint:
|
||||||
|
uses: valitydev/base-workflows/.github/workflows/basic-linters.yml@v1
|
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
@ -1,4 +1,4 @@
|
|||||||
name: Maven Build Artifact
|
name: Build Maven Artifact
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
@ -7,6 +7,4 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
uses: valitydev/java-workflow/.github/workflows/maven-service-build.yml@v1
|
uses: valitydev/java-workflow/.github/workflows/maven-service-build.yml@v2
|
||||||
with:
|
|
||||||
ignore-coverage: true
|
|
||||||
|
7
.github/workflows/deploy.yml
vendored
7
.github/workflows/deploy.yml
vendored
@ -4,11 +4,10 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- 'master'
|
- 'master'
|
||||||
- 'main'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
build-and-deploy:
|
||||||
uses: valitydev/java-workflow/.github/workflows/maven-service-deploy.yml@v1
|
uses: valitydev/java-workflow/.github/workflows/maven-service-deploy.yml@v2
|
||||||
secrets:
|
secrets:
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
mm-webhook-url: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
|
mm-webhook-url: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
|
||||||
|
2
.github/workflows/settings.yml
vendored
Normal file
2
.github/workflows/settings.yml
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# These settings are synced to GitHub by https://probot.github.io/apps/settings/
|
||||||
|
_extends: .github
|
16
pom.xml
16
pom.xml
@ -6,7 +6,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>dev.vality</groupId>
|
<groupId>dev.vality</groupId>
|
||||||
<artifactId>service-parent-pom</artifactId>
|
<artifactId>service-parent-pom</artifactId>
|
||||||
<version>1.0.18</version>
|
<version>2.0.4</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<artifactId>fraudbusters-mg-connector</artifactId>
|
<artifactId>fraudbusters-mg-connector</artifactId>
|
||||||
@ -25,8 +25,8 @@
|
|||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
|
|
||||||
<machinegun-proto.version>1.21-e4784ab</machinegun-proto.version>
|
<machinegun-proto.version>1.21-e4784ab</machinegun-proto.version>
|
||||||
<fraudbusters-proto.version>1.109-fa34434</fraudbusters-proto.version>
|
<fraudbusters-proto.version>1.111-913e879</fraudbusters-proto.version>
|
||||||
<fistful-proto.version>1.143-711814e</fistful-proto.version>
|
<fistful-proto.version>1.177-88e69a5</fistful-proto.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
@ -34,18 +34,22 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>dev.vality.woody</groupId>
|
<groupId>dev.vality.woody</groupId>
|
||||||
<artifactId>woody-thrift</artifactId>
|
<artifactId>woody-thrift</artifactId>
|
||||||
|
<version>2.0.8</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>dev.vality</groupId>
|
<groupId>dev.vality</groupId>
|
||||||
<artifactId>shared-resources</artifactId>
|
<artifactId>shared-resources</artifactId>
|
||||||
|
<version>2.1.0</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>dev.vality.geck</groupId>
|
<groupId>dev.vality.geck</groupId>
|
||||||
<artifactId>serializer</artifactId>
|
<artifactId>serializer</artifactId>
|
||||||
|
<version>1.0.2</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>dev.vality</groupId>
|
<groupId>dev.vality</groupId>
|
||||||
<artifactId>damsel</artifactId>
|
<artifactId>damsel</artifactId>
|
||||||
|
<version>1.646-7762f6c</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>dev.vality</groupId>
|
<groupId>dev.vality</groupId>
|
||||||
@ -108,6 +112,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.projectlombok</groupId>
|
<groupId>org.projectlombok</groupId>
|
||||||
<artifactId>lombok</artifactId>
|
<artifactId>lombok</artifactId>
|
||||||
|
<version>1.18.32</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.kafka</groupId>
|
<groupId>org.apache.kafka</groupId>
|
||||||
@ -206,6 +211,11 @@
|
|||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-site-plugin</artifactId>
|
||||||
|
<version>3.7.1</version>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
</project>
|
</project>
|
||||||
|
@ -29,7 +29,7 @@ public class FistfulResourceToDomainResourceConverter
|
|||||||
} else if (fistfulResource.isSetCryptoWallet()) {
|
} else if (fistfulResource.isSetCryptoWallet()) {
|
||||||
CryptoWallet cryptoWallet = new CryptoWallet()
|
CryptoWallet cryptoWallet = new CryptoWallet()
|
||||||
.setId(fistfulResource.getCryptoWallet().getCryptoWallet().getId())
|
.setId(fistfulResource.getCryptoWallet().getCryptoWallet().getId())
|
||||||
.setCurrency(fistfulResource.getCryptoWallet().getCryptoWallet().getCurrency().name());
|
.setCurrency(fistfulResource.getCryptoWallet().getCryptoWallet().getCurrency().id);
|
||||||
resource.setCryptoWallet(cryptoWallet);
|
resource.setCryptoWallet(cryptoWallet);
|
||||||
} else if (fistfulResource.isSetDigitalWallet()) {
|
} else if (fistfulResource.isSetDigitalWallet()) {
|
||||||
DigitalWallet digitalWallet = new DigitalWallet()
|
DigitalWallet digitalWallet = new DigitalWallet()
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
server:
|
server:
|
||||||
port: '@server.port@'
|
port: '${server.port}'
|
||||||
|
|
||||||
management:
|
management:
|
||||||
security:
|
security:
|
||||||
flag: false
|
flag: false
|
||||||
server:
|
server:
|
||||||
port: '@management.port@'
|
port: '${management.port}'
|
||||||
metrics:
|
metrics:
|
||||||
export:
|
export:
|
||||||
statsd:
|
statsd:
|
||||||
@ -27,7 +27,7 @@ management:
|
|||||||
|
|
||||||
spring:
|
spring:
|
||||||
application:
|
application:
|
||||||
name: '@project.name@'
|
name: '${project.name}'
|
||||||
output:
|
output:
|
||||||
ansi:
|
ansi:
|
||||||
enabled: always
|
enabled: always
|
||||||
@ -45,7 +45,7 @@ spring:
|
|||||||
fixed.rate.timeout.ms: 60000
|
fixed.rate.timeout.ms: 60000
|
||||||
|
|
||||||
info:
|
info:
|
||||||
version: '@project.version@'
|
version: '${project.version}'
|
||||||
stage: dev
|
stage: dev
|
||||||
|
|
||||||
service:
|
service:
|
||||||
|
@ -24,7 +24,7 @@ public class WithdrawalBeanUtils {
|
|||||||
.setBin(InvoiceTestConstant.CARD_BIN)
|
.setBin(InvoiceTestConstant.CARD_BIN)
|
||||||
.setCategory(InvoiceTestConstant.CARD_CATEGORY)
|
.setCategory(InvoiceTestConstant.CARD_CATEGORY)
|
||||||
.setIssuerCountry(Residence.PAN)
|
.setIssuerCountry(Residence.PAN)
|
||||||
.setPaymentSystem(new PaymentSystemRef(LegacyBankCardPaymentSystem.mastercard.name()))
|
.setPaymentSystem(new PaymentSystemRef("asd"))
|
||||||
.setToken(InvoiceTestConstant.CARD_TOKEN_PROVIDER)
|
.setToken(InvoiceTestConstant.CARD_TOKEN_PROVIDER)
|
||||||
.setMaskedPan(InvoiceTestConstant.CARD_MASKED_PAN)
|
.setMaskedPan(InvoiceTestConstant.CARD_MASKED_PAN)
|
||||||
.setCardType(CardType.debit)
|
.setCardType(CardType.debit)
|
||||||
|
@ -30,8 +30,7 @@ public class BuildUtils {
|
|||||||
.setBin(InvoiceTestConstant.CARD_BIN)
|
.setBin(InvoiceTestConstant.CARD_BIN)
|
||||||
.setCategory(InvoiceTestConstant.CARD_CATEGORY)
|
.setCategory(InvoiceTestConstant.CARD_CATEGORY)
|
||||||
.setIssuerCountry(Residence.PAN)
|
.setIssuerCountry(Residence.PAN)
|
||||||
.setPaymentSystem(new dev.vality.fistful.base.PaymentSystemRef(
|
.setPaymentSystem(new dev.vality.fistful.base.PaymentSystemRef("mastercard"))
|
||||||
dev.vality.fistful.base.LegacyBankCardPaymentSystem.mastercard.name()))
|
|
||||||
.setToken(InvoiceTestConstant.CARD_TOKEN_PROVIDER)
|
.setToken(InvoiceTestConstant.CARD_TOKEN_PROVIDER)
|
||||||
.setMaskedPan(InvoiceTestConstant.CARD_MASKED_PAN)
|
.setMaskedPan(InvoiceTestConstant.CARD_MASKED_PAN)
|
||||||
.setCardType(CardType.debit)
|
.setCardType(CardType.debit)
|
||||||
@ -41,7 +40,7 @@ public class BuildUtils {
|
|||||||
public static dev.vality.fistful.base.CryptoWallet buildFistfulCryptoWallet() {
|
public static dev.vality.fistful.base.CryptoWallet buildFistfulCryptoWallet() {
|
||||||
dev.vality.fistful.base.CryptoWallet cryptoWallet = new dev.vality.fistful.base.CryptoWallet();
|
dev.vality.fistful.base.CryptoWallet cryptoWallet = new dev.vality.fistful.base.CryptoWallet();
|
||||||
cryptoWallet.setId("id");
|
cryptoWallet.setId("id");
|
||||||
cryptoWallet.setCurrency(dev.vality.fistful.base.CryptoCurrency.bitcoin);
|
cryptoWallet.setCurrency(new dev.vality.fistful.base.CryptoCurrencyRef("bitcoin"));
|
||||||
return cryptoWallet;
|
return cryptoWallet;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -342,9 +341,10 @@ public class BuildUtils {
|
|||||||
String paymentId,
|
String paymentId,
|
||||||
InvoicePaymentStatus paymentStatus,
|
InvoicePaymentStatus paymentStatus,
|
||||||
MockTBaseProcessor thriftBaseProcessor) throws IOException {
|
MockTBaseProcessor thriftBaseProcessor) throws IOException {
|
||||||
return thriftBaseProcessor.process(
|
dev.vality.damsel.domain.InvoicePayment process = thriftBaseProcessor.process(
|
||||||
new dev.vality.damsel.domain.InvoicePayment(),
|
new dev.vality.damsel.domain.InvoicePayment(),
|
||||||
new TBaseHandler<>(dev.vality.damsel.domain.InvoicePayment.class))
|
new TBaseHandler<>(dev.vality.damsel.domain.InvoicePayment.class));
|
||||||
|
return process
|
||||||
.setCreatedAt("2016-03-22T06:12:27Z")
|
.setCreatedAt("2016-03-22T06:12:27Z")
|
||||||
.setId(paymentId)
|
.setId(paymentId)
|
||||||
.setOwnerId(partyId)
|
.setOwnerId(partyId)
|
||||||
|
Loading…
Reference in New Issue
Block a user