Class AppUtil

java.lang.Object
com.skava.addressapp.util.AppUtil

@Component public class AppUtil extends Object
This is a Utility class for address which contains string validator and util methods used in this service.
  • Constructor Details

    • AppUtil

      public AppUtil()
  • Method Details

    • isAppActivatedForWebhookType

      public boolean isAppActivatedForWebhookType(String webhookTypeName, Long collectionId)
      Check if any webhook is registered and activated with the webhook type in the mentioned collection
      Parameters:
      webhookTypeName -
      collectionId -
      Returns:
    • supportsAppBasedAddressValidation

      public boolean 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
      Parameters:
      addressValidationType -
      collectionId -
      Returns:
    • convertToAppAddressRequest

      public AppAddressRequest convertToAppAddressRequest(com.skava.address.model.domain.AddressDO address, boolean showRecommendation)
    • convertToAddressDO

      public com.skava.address.model.domain.AddressDO convertToAddressDO(AppAddressRequest address)
      Parameters:
      address -
      Returns:
    • convertToAddressValidationDO

      public com.skava.address.model.domain.AddressValidationDO convertToAddressValidationDO(AppAddressResponse appResponse)
      convertToAddressValidationDO
      Parameters:
      appResponse -
      Returns: