Class VerificationResponse

java.lang.Object
com.checkhim.models.VerificationResponse

public class VerificationResponse extends Object
Represents the response from a phone number verification request. Contains information about the phone number's validity, carrier information, and other relevant verification details.
  • Constructor Details

    • VerificationResponse

      public VerificationResponse()
      Default constructor for JSON deserialization.
  • Method Details

    • isValid

      public boolean isValid()
      Checks if the phone number is valid.
      Returns:
      true if the phone number is valid, false otherwise
    • getValid

      public Boolean getValid()
      Gets the validation status as a Boolean object.
      Returns:
      Boolean indicating validity, or null if not set
    • setValid

      public void setValid(Boolean valid)
      Sets the validation status.
      Parameters:
      valid - true if valid, false otherwise
    • getCarrier

      public String getCarrier()
      Gets the carrier/network provider name.
      Returns:
      The carrier name (e.g., "UNITEL", "VIVO")
    • setCarrier

      public void setCarrier(String carrier)
      Sets the carrier/network provider name.
      Parameters:
      carrier - The carrier name
    • getCountry

      public String getCountry()
      Gets the country code (ISO 3166-1 alpha-2).
      Returns:
      The two-letter country code (e.g., "BR", "US")
    • setCountry

      public void setCountry(String country)
      Sets the country code.
      Parameters:
      country - The country code
    • getCountryCode

      public String getCountryCode()
      Gets the numeric country code.
      Returns:
      The country calling code (e.g., "55" for Brazil, "1" for US)
    • setCountryCode

      public void setCountryCode(String countryCode)
      Sets the numeric country code.
      Parameters:
      countryCode - The country calling code
    • getCountryName

      public String getCountryName()
      Gets the full country name.
      Returns:
      The country name (e.g., "Brazil", "United States")
    • setCountryName

      public void setCountryName(String countryName)
      Sets the full country name.
      Parameters:
      countryName - The country name
    • getLineType

      public String getLineType()
      Gets the line type (mobile, landline, etc.).
      Returns:
      The line type
    • setLineType

      public void setLineType(String lineType)
      Sets the line type.
      Parameters:
      lineType - The line type
    • getNetworkCode

      public String getNetworkCode()
      Gets the network code.
      Returns:
      The network code
    • setNetworkCode

      public void setNetworkCode(String networkCode)
      Sets the network code.
      Parameters:
      networkCode - The network code
    • getStatus

      public String getStatus()
      Gets the verification status code.
      Returns:
      The status code (e.g., "DELIVERED_TO_HANDSET", "REJECTED_NETWORK")
    • setStatus

      public void setStatus(String status)
      Sets the verification status code.
      Parameters:
      status - The status code
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object