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 aBankAccountResponseobject to aBankAccountRequestobject.toResponse(BankAccountRequest accountNumber) Converts aBankAccountRequestobject to aBankAccountResponseobject.
-
Method Details
-
toRequest
Converts aBankAccountResponseobject to aBankAccountRequestobject.- Parameters:
accountNumber- TheBankAccountResponseobject to convert.- Returns:
- The converted
BankAccountRequestobject.
-
toResponse
Converts aBankAccountRequestobject to aBankAccountResponseobject.- Parameters:
accountNumber- TheBankAccountRequestobject to convert.- Returns:
- The converted
BankAccountResponseobject.
-