TD-267: migrate from enum bankcard field (#17)

- remove mamsel
This commit is contained in:
vitaxa 2022-04-19 12:55:54 +03:00 committed by GitHub
parent 4a28a6483c
commit 3c080dbc22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 6 deletions

View File

@ -47,10 +47,6 @@
<groupId>dev.vality</groupId>
<artifactId>damsel</artifactId>
</dependency>
<dependency>
<groupId>dev.vality</groupId>
<artifactId>mamsel</artifactId>
</dependency>
<dependency>
<groupId>dev.vality</groupId>
<artifactId>machinegun-proto</artifactId>

View File

@ -13,7 +13,6 @@ import dev.vality.fraudbusters.mg.connector.mapper.initializer.InfoInitializer;
import dev.vality.fraudbusters.mg.connector.service.HgClientService;
import dev.vality.geck.common.util.TBaseUtil;
import dev.vality.machinegun.eventsink.MachineEvent;
import dev.vality.mamsel.TokenProviderUtil;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
@ -108,7 +107,7 @@ public class PaymentMapper implements Mapper<InvoiceChange, MachineEvent, Paymen
}
public boolean isMobile(PaymentTool paymentTool) {
return paymentTool.isSetBankCard() && TokenProviderUtil.getTokenProviderName(paymentTool.getBankCard()) != null;
return paymentTool.isSetBankCard() && paymentTool.getBankCard().getPaymentToken() != null;
}
}