Interface PaymentMapper
public interface PaymentMapper
Mapper for converting between
PaymentRequest
and PaymentResponse
.
This interface uses MapStruct to automatically generate the implementation for mapping fields between the two data transfer objects (DTOs) related to payments.
-
Method Summary
Modifier and TypeMethodDescriptiontoRequest
(PaymentResponse paymentResponse) Maps aPaymentResponse
object to aPaymentRequest
object.toResponse
(PaymentRequest paymentRequest) Maps aPaymentRequest
object to aPaymentResponse
object.
-
Method Details
-
toRequest
Maps aPaymentResponse
object to aPaymentRequest
object.- Parameters:
paymentResponse
- ThePaymentResponse
object to be converted.- Returns:
- The converted
PaymentRequest
object.
-
toResponse
Maps aPaymentRequest
object to aPaymentResponse
object.- Parameters:
paymentRequest
- ThePaymentRequest
object to be converted.- Returns:
- The converted
PaymentResponse
object.
-