Package com.skava.payment.model.mapper
Class PaymentAssembler
java.lang.Object
com.skava.payment.model.mapper.PaymentAssembler
- All Implemented Interfaces:
AbstractEntityAssembler<PaymentEntity,
Payment>
@Component
public class PaymentAssembler
extends Object
implements AbstractEntityAssembler<PaymentEntity,Payment>
PaymentAssembler
This class defines the Payment Response to handle the payment request.
- Since:
- 09-Aug-2018
- Author:
- Infosys Equinox
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontoDto
(PaymentEntity payment) Payment Entity to Domain Object ConversionPayment Domain to Entity Object Conversion
-
Constructor Details
-
PaymentAssembler
public PaymentAssembler()
-
-
Method Details
-
toDto
Payment Entity to Domain Object Conversion- Specified by:
toDto
in interfaceAbstractEntityAssembler<PaymentEntity,
Payment> - Parameters:
payment
- the entity which are going to transform- Returns:
- transform object
-
toEntity
Payment Domain to Entity Object Conversion- Specified by:
toEntity
in interfaceAbstractEntityAssembler<PaymentEntity,
Payment> - Parameters:
paymentDTO
- the request which are going to transform- Returns:
- transform object
-