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 type;
private String displayName; private String displayName;
private String maskedDetails; private String maskedDetails;
private String cardNumber;
private boolean isDefault; private boolean isDefault;
private boolean isVerified; private boolean isVerified;
} }
@@ -129,13 +129,19 @@ public class PayoutMethodService {
} }
public PayoutMethodDTO convertToDto(PayoutMethod method) { public PayoutMethodDTO convertToDto(PayoutMethod method) {
return PayoutMethodDTO.builder() PayoutMethodDTO payoutMethodDTO = PayoutMethodDTO.builder()
.id(method.getId()) .id(method.getId())
.type(method.getClass().getSimpleName().replace("PayoutMethod", "")) .type(method.getClass().getSimpleName().replace("PayoutMethod", ""))
.displayName(method.getDisplayName()) .displayName(method.getDisplayName())
.maskedDetails(method.getMaskedDetails()) .maskedDetails(method.getMaskedDetails())
.isDefault(method.isDefault()) .isDefault(method.isDefault())
.build(); .build();
if (method instanceof CardPayoutMethod cardMethod) {
payoutMethodDTO.setCardNumber(cardMethod.getCardNumber());
}
return payoutMethodDTO;
} }
private String generateCardHash(String cardNumber) { private String generateCardHash(String cardNumber) {