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

"""
pqapiv2

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


class IdentityVerificationCheckType(object):

    """Implementation of the '_identityVerificationCheckType' model.

    Type of verification used for performing an identity check

    Attributes:
        idv_check_type (IdentityVerificationCheckTypesEnum): Types of
            verification used for performing identity checks
            (<i>documentary</i>, <i>non-documentary</i>, <i>OFAC</i>, etc.)

    """

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

    def __init__(self,
                 idv_check_type=None):
        """Constructor for the IdentityVerificationCheckType class"""

        # Initialize members of the class
        self.idv_check_type = idv_check_type

    @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_check_type = dictionary.get('idvCheckType')

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