Class WalletUtils
java.lang.Object
es.kukenan.smartfi.microservice.smartficore.util.WalletUtils
Wallet utilities.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic es.kukenan.smartfi.microservice.backoffice.dtos.core.products.Walletmap(WalletProduct walletProduct) Map the givenWalletProductto aWallet.static List<es.kukenan.smartfi.microservice.backoffice.dtos.core.products.Wallet>map(List<WalletProduct> walletsEntities) Map the givenWalletProductlist to aWalletlist.static List<es.kukenan.smartfi.microservice.backoffice.dtos.core.movement.WalletMovement>mapMovementsWallet(List<WalletMovement> movementsEntities) Map the givenWalletMovementlist to aWalletMovementlist.static es.kukenan.smartfi.microservice.backoffice.dtos.core.productdetail.WalletDetailmapWalletDetail(WalletProduct walletProductDetail) Map the givenWalletProductlist to aWalletlist.
-
Constructor Details
-
WalletUtils
public WalletUtils()
-
-
Method Details
-
map
public static List<es.kukenan.smartfi.microservice.backoffice.dtos.core.products.Wallet> map(List<WalletProduct> walletsEntities) Map the givenWalletProductlist to aWalletlist.- Parameters:
walletsEntities- a wallet product entity list.- Returns:
- the mapped wallet dto list.
-
map
public static es.kukenan.smartfi.microservice.backoffice.dtos.core.products.Wallet map(WalletProduct walletProduct) Map the givenWalletProductto aWallet.- Parameters:
walletProduct- a wallet product entity.- Returns:
- the mapped wallet dto.
-
mapMovementsWallet
public static List<es.kukenan.smartfi.microservice.backoffice.dtos.core.movement.WalletMovement> mapMovementsWallet(List<WalletMovement> movementsEntities) Map the givenWalletMovementlist to aWalletMovementlist.- Parameters:
movementsEntities- a product movements entity list.- Returns:
- the mapped wallet dto list.
-
mapWalletDetail
public static es.kukenan.smartfi.microservice.backoffice.dtos.core.productdetail.WalletDetail mapWalletDetail(WalletProduct walletProductDetail) Map the givenWalletProductlist to aWalletlist.- Parameters:
walletProductDetail- a wallet product entity list.- Returns:
- the mapped wallet dto list.
-