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

"""
pqapiv2

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


class BankAccountOwnership(object):

    """Implementation of the '_bankAccountOwnership' model.

    Account ownership type

    Attributes:
        bank_account_ownership_type (BankAccountOwnershipTypesEnum): Account
            ownership types

    """

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

    def __init__(self,
                 bank_account_ownership_type=None):
        """Constructor for the BankAccountOwnership class"""

        # Initialize members of the class
        self.bank_account_ownership_type = bank_account_ownership_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
        bank_account_ownership_type = dictionary.get('bankAccountOwnershipType')

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