Class DefaultTmaServiceabilityCheckService
java.lang.Object
de.hybris.platform.b2ctelcoserviceabilityclient.service.impl.DefaultTmaServiceabilityCheckService
- All Implemented Interfaces:
TmaServiceabilityCheckService
public class DefaultTmaServiceabilityCheckService
extends Object
implements TmaServiceabilityCheckService
Default Implementation of
TmaServiceabilityCheckService- Since:
- 2102
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultTmaServiceabilityCheckService(TmaServiceQualificationClientService tmaServiceQualificationClientService, de.hybris.platform.servicelayer.dto.converter.Converter<AddressModel, GeographicAddress> tmaPlaceConverter) This is a class constructor used to specify the required dependencies required by class for creation. -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckServiceability(ProductModel product, AddressModel installationAddress) Method computes if the product is serviceable at the provided installation address based on the response from the external systemprotected TmaServiceQualificationClientServiceprotected de.hybris.platform.servicelayer.dto.converter.Converter<AddressModel,GeographicAddress> protected BooleanisProductOfferingServiceable(QueryServiceQualification availableServices, TmaProductOfferingModel product)
-
Constructor Details
-
DefaultTmaServiceabilityCheckService
public DefaultTmaServiceabilityCheckService(TmaServiceQualificationClientService tmaServiceQualificationClientService, de.hybris.platform.servicelayer.dto.converter.Converter<AddressModel, GeographicAddress> tmaPlaceConverter) This is a class constructor used to specify the required dependencies required by class for creation.- Parameters:
tmaServiceQualificationClientService- the b2ctelcoServiceabilityClientServicetmaPlaceConverter- the tmaAddressConverter
-
-
Method Details
-
checkServiceability
Description copied from interface:TmaServiceabilityCheckServiceMethod computes if the product is serviceable at the provided installation address based on the response from the external system- Specified by:
checkServiceabilityin interfaceTmaServiceabilityCheckService- Parameters:
product- the product ModelinstallationAddress- the Installation address- Returns:
- true if productOffering is serviceable, else false
-
isProductOfferingServiceable
protected Boolean isProductOfferingServiceable(QueryServiceQualification availableServices, TmaProductOfferingModel product) -
getB2ctelcoserviceabilityclientService
-
getTmaAddressConverter
protected de.hybris.platform.servicelayer.dto.converter.Converter<AddressModel,GeographicAddress> getTmaAddressConverter()
-