Interface BankAccountMapper
public interface BankAccountMapper
Mapper interface for converting between
BankAccountRequest
and BankAccountResponse
.
This interface utilizes MapStruct to automatically generate the implementation for mapping fields between the two data transfer objects (DTOs). The mappings ensure that fields are correctly transferred between request and response objects for bank account operations.
-
Method Summary
Modifier and TypeMethodDescriptiontoRequest
(BankAccountResponse accountNumber) Converts aBankAccountResponse
object to aBankAccountRequest
object.toResponse
(BankAccountRequest accountNumber) Converts aBankAccountRequest
object to aBankAccountResponse
object.
-
Method Details
-
toRequest
Converts aBankAccountResponse
object to aBankAccountRequest
object.- Parameters:
accountNumber
- TheBankAccountResponse
object to convert.- Returns:
- The converted
BankAccountRequest
object.
-
toResponse
Converts aBankAccountRequest
object to aBankAccountResponse
object.- Parameters:
accountNumber
- TheBankAccountRequest
object to convert.- Returns:
- The converted
BankAccountResponse
object.
-