Package com.skava.loyalty.model.exchange
Class Voucher
java.lang.Object
com.skava.core.validation.OutputModel
com.skava.loyalty.model.exchange.Voucher
- All Implemented Interfaces:
Serializable
public class Voucher
extends com.skava.core.validation.OutputModel
This class holds voucher type and count value
- Since:
- 8.15.0
- Version:
- 8.15.0
- Author:
- Infosys Equinox
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontoVoucherDomainObject
(Voucher voucherEntity) This method is used to convert the entity object to domain objecttoVoucherDomainObject
(List<Voucher> voucherEntities) This method is used to convert the entity object to domain objecttoVoucherEntity
(Voucher voucher) This method is used to convert the domain object to entity objecttoVoucherEntity
(List<Voucher> voucher) This method is used to convert the domain object to entity object
-
Constructor Details
-
Voucher
public Voucher()
-
-
Method Details
-
toVoucherDomainObject
This method is used to convert the entity object to domain object- Parameters:
voucherEntity
- refers to the List of voucher Entity.- Returns:
-
toVoucherDomainObject
This method is used to convert the entity object to domain object- Parameters:
voucherEntity
- refers to the voucher Entity- Returns:
-
toVoucherEntity
This method is used to convert the domain object to entity object- Parameters:
voucher
- refers to the voucher domain object- Returns:
-
toVoucherEntity
This method is used to convert the domain object to entity object- Parameters:
voucher
- refers to the List of voucher domain object- Returns:
-