# coding=utf-8
# --------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class PaymentMethodModel(Model):
    """Defines a a funding source for a payment request.

    :param payment_token: The credit card or bank account token that will be
     used for payment.
    :type payment_token: str
    :param type: The type of funding source that will be used for the payment.
     Possible values include: 'Unknown', 'Credit Card', 'ACH'
    :type type: str or ~softheon.wallet.api.client.models.enum
    """

    _validation = {
        'payment_token': {'required': True},
        'type': {'required': True},
    }

    _attribute_map = {
        'payment_token': {'key': 'paymentToken', 'type': 'str'},
        'type': {'key': 'type', 'type': 'str'},
    }

    def __init__(self, payment_token, type):
        super(PaymentMethodModel, self).__init__()
        self.payment_token = payment_token
        self.type = type
