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

"""
pqapiv2

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


class CardPersonalizationType(object):

    """Implementation of the 'cardPersonalizationType' model.

    Type of personalization for the prepaid card

    Attributes:
        card_personalization (PrepaidCardPersonalizationTypesEnum): Specifies
            a card is <i>Personalized</i> or <i>Non-personalized</i> (i.e.,
            issued to Preferred Customer)

    """

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

    def __init__(self,
                 card_personalization=None):
        """Constructor for the CardPersonalizationType class"""

        # Initialize members of the class
        self.card_personalization = card_personalization

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

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