dev use authtoken
Test Workflow / test (push) Successful in 4s

This commit is contained in:
vladp
2026-02-25 12:58:39 +07:00
parent bfe2367715
commit cb46ac6c88
2 changed files with 8 additions and 1 deletions
@@ -15,6 +15,7 @@ public class PayoutMethodDTO {
private String type;
private String displayName;
private String maskedDetails;
private String cardNumber;
private boolean isDefault;
private boolean isVerified;
}
@@ -129,13 +129,19 @@ public class PayoutMethodService {
}
public PayoutMethodDTO convertToDto(PayoutMethod method) {
return PayoutMethodDTO.builder()
PayoutMethodDTO payoutMethodDTO = PayoutMethodDTO.builder()
.id(method.getId())
.type(method.getClass().getSimpleName().replace("PayoutMethod", ""))
.displayName(method.getDisplayName())
.maskedDetails(method.getMaskedDetails())
.isDefault(method.isDefault())
.build();
if (method instanceof CardPayoutMethod cardMethod) {
payoutMethodDTO.setCardNumber(cardMethod.getCardNumber());
}
return payoutMethodDTO;
}
private String generateCardHash(String cardNumber) {