Class CreditsUtils
java.lang.Object
es.kukenan.smartfi.microservice.smartficore.util.CreditsUtils
Credits utilities.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<es.kukenan.smartfi.microservice.backoffice.dtos.core.products.Credit>map(List<CreditProduct> creditProducts) Map the givenCreditlist to aAccountlist.static es.kukenan.smartfi.microservice.backoffice.dtos.core.movement.ProductMovementmapMovement(CreditMovement creditMovementEntity) Map the givenCreditMovementlist to aProductMovementlist.static List<es.kukenan.smartfi.microservice.backoffice.dtos.core.movement.ProductMovement>mapMovements(List<CreditMovement> productMovements) Map the givenCreditMovementlist to aProductMovementlist.
-
Constructor Details
-
CreditsUtils
public CreditsUtils()
-
-
Method Details
-
map
public static List<es.kukenan.smartfi.microservice.backoffice.dtos.core.products.Credit> map(List<CreditProduct> creditProducts) Map the givenCreditlist to aAccountlist.- Parameters:
creditProducts- a account product entity list.- Returns:
- the mapped account dto list.
-
mapMovement
public static es.kukenan.smartfi.microservice.backoffice.dtos.core.movement.ProductMovement mapMovement(CreditMovement creditMovementEntity) Map the givenCreditMovementlist to aProductMovementlist.- Parameters:
creditMovementEntity- a product movement entity object.- Returns:
- the mapped product movement.
-
mapMovements
public static List<es.kukenan.smartfi.microservice.backoffice.dtos.core.movement.ProductMovement> mapMovements(List<CreditMovement> productMovements) Map the givenCreditMovementlist to aProductMovementlist.- Parameters:
productMovements- a product movements entity list.- Returns:
- the mapped Product Movement list.
-