# -*- coding: utf-8 -*-

"""
pqapiv2

This file was automatically generated by APIMATIC v3.0 (
 https://www.apimatic.io ).
"""


class IdentityVerificationSubResultType(object):

    """Implementation of the '_identityVerificationSubResultType' model.

    If used by a provider, sub-results that give additional insight into the
    results, including whether they result was <i>Soft</i> or <i>Hard</i>.
    <i>Soft</i> results may have additional recourse that can be leveraged to
    validate a user’s identity.

    Attributes:
        idv_sub_result (IdentityVerificationResultSubTypesEnum): If used by a
            provider, sub-results that give additional insight into the
            results, including whether they result was <i>Soft</i> or
            <i>Hard</i>. <i>Soft</i> results may have additional recourse that
            can be leveraged to validate a user’s identity.

    """

    # Create a mapping from Model property names to API property names
    _names = {
        "idv_sub_result": 'idvSubResult'
    }

    def __init__(self,
                 idv_sub_result=None):
        """Constructor for the IdentityVerificationSubResultType class"""

        # Initialize members of the class
        self.idv_sub_result = idv_sub_result

    @classmethod
    def from_dictionary(cls,
                        dictionary):
        """Creates an instance of this model from a dictionary

        Args:
            dictionary (dictionary): A dictionary representation of the object
            as obtained from the deserialization of the server's response. The
            keys MUST match property names in the API description.

        Returns:
            object: An instance of this structure class.

        """
        if dictionary is None:
            return None

        # Extract variables from the dictionary
        idv_sub_result = dictionary.get('idvSubResult')

        # Return an object of this model
        return cls(idv_sub_result)
