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 aPaymentResponseobject to aPaymentRequestobject.toResponse(PaymentRequest paymentRequest) Maps aPaymentRequestobject to aPaymentResponseobject.
-
Method Details
-
toRequest
Maps aPaymentResponseobject to aPaymentRequestobject.- Parameters:
paymentResponse- ThePaymentResponseobject to be converted.- Returns:
- The converted
PaymentRequestobject.
-
toResponse
Maps aPaymentRequestobject to aPaymentResponseobject.- Parameters:
paymentRequest- ThePaymentRequestobject to be converted.- Returns:
- The converted
PaymentResponseobject.
-