Package com.skava.addressapp.util
Class AppUtil
java.lang.Object
com.skava.addressapp.util.AppUtil
This is a Utility class for address which contains string validator and util
methods used in this service.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.skava.address.model.domain.AddressDO
convertToAddressDO
(AppAddressRequest address) com.skava.address.model.domain.AddressValidationDO
convertToAddressValidationDO
(AppAddressResponse appResponse) convertToAddressValidationDOconvertToAppAddressRequest
(com.skava.address.model.domain.AddressDO address, boolean showRecommendation) boolean
isAppActivatedForWebhookType
(String webhookTypeName, Long collectionId) Check if any webhook is registered and activated with the webhook type in the mentioned collectionboolean
supportsAppBasedAddressValidation
(String addressValidationType, Long collectionId) Checks if there is any app in the store which supports the respective address validation based on the request type
-
Constructor Details
-
AppUtil
public AppUtil()
-
-
Method Details
-
isAppActivatedForWebhookType
Check if any webhook is registered and activated with the webhook type in the mentioned collection- Parameters:
webhookTypeName
-collectionId
-- Returns:
-
supportsAppBasedAddressValidation
Checks if there is any app in the store which supports the respective address validation based on the request type- Parameters:
addressValidationType
-collectionId
-- Returns:
-
convertToAppAddressRequest
public AppAddressRequest convertToAppAddressRequest(com.skava.address.model.domain.AddressDO address, boolean showRecommendation) -
convertToAddressDO
- Parameters:
address
-- Returns:
-
convertToAddressValidationDO
public com.skava.address.model.domain.AddressValidationDO convertToAddressValidationDO(AppAddressResponse appResponse) convertToAddressValidationDO- Parameters:
appResponse
-- Returns:
-