1 package eu.glsgroup.fpcs.soap.util;
24 import java.util.List;
25 import java.util.Optional;
26 import java.util.stream.Collectors;
27 import java.util.stream.Stream;
34 throw new AssertionError(
"ConverterUtils cannot be instantiated.");
39 if (categoryType == null) {
42 switch (categoryType) {
44 return ConsigneeCategory.PRIVATE;
46 return ConsigneeCategory.BUSINESS;
48 throw new IllegalArgumentException(
"Unexpected categoryType '" + categoryType +
"'");
54 return Stream.of(Optional.ofNullable(unitService.
getCash())
64 .filter(Optional::isPresent)
66 .collect(Collectors.toList());
71 return Stream.of(Optional.ofNullable(shipmentService.
getService())
83 Optional.ofNullable(shipmentService.
getDeposit())
87 Optional.ofNullable(shipmentService.
getIdent())
93 .filter(Optional::isPresent)
95 .collect(Collectors.toList());
PickAndShipService getPickAndShip()
ShopReturnService getShopReturn()
IntercompanyService getIntercompany()
PickAndReturnService getPickAndReturn()
ShopDeliveryService getShopDelivery()
LimitedQuantitiesService getLimitedQuantities()
AddOnLiabilityService getAddonLiability()
static ConsigneeCategory convertCategoryType(CategoryType categoryType)
static List< String > convertUnitService(UnitService unitService)
IdentPINService getIdentPin()
HazardousGoodsService getHazardousGoods()
static List< String > convertShipmentService(ShipmentService shipmentService)
DepositService getDeposit()
ExWorksService getExWorks()
DeliveryAtWorkService getDeliveryAtWork()
ExchangeService getExchange()