Creating a credit card (Token) and assigning it to a user.

        Args:
            customer_id: Identifier of the client with whom you are going to associate the token with.

            name: Full name of the credit card holder as shown in the credit card.
            Alphanumeric. Min: 1 Max: 255.

            document: Identification number of the credit card holder.
            Alphanumeric. Min: 1 Max: 30.

            number: Credit card number.
            Numeric. Min: 13 Max: 20.

            exp_month: Credit card’s expiration month.
            Numeric. Min: 1 Max: 12.

            exp_year: Credit card’s expiration year. If it is a two digit value, it represents the years
            between 2000 (00) and 2099 (99). It the value has more than two digits it is used literally,
            being 2000 the minimum value.
            Numeric. Min: 00 Max: 2999.

            type: The franchise or credit card type.
            http://developers.payulatam.com/en/api/variables_table.html
            Alphanumeric.

            address: Credit card holder's billing address, associated to the credit card.

        Returns:

def create_credit_card(self, *, customer_id, name, document, number, exp_month, exp_year, type, address):
        """
        Creating a credit card (Token) and assigning it to a user.

        Args:
            customer_id: Identifier of the client with whom you are going to associate the token with.

            name: Full name of the credit card holder as shown in the credit card.
            Alphanumeric. Min: 1 Max: 255.

            document: Identification number of the credit card holder.
            Alphanumeric. Min: 1 Max: 30.

            number: Credit card number.
            Numeric. Min: 13 Max: 20.

            exp_month: Credit card’s expiration month.
            Numeric. Min: 1 Max: 12.

            exp_year: Credit card’s expiration year. If it is a two digit value, it represents the years
            between 2000 (00) and 2099 (99). It the value has more than two digits it is used literally,
            being 2000 the minimum value.
            Numeric. Min: 00 Max: 2999.

            type: The franchise or credit card type.
            http://developers.payulatam.com/en/api/variables_table.html
            Alphanumeric.

            address: Credit card holder's billing address, associated to the credit card.

        Returns:

        """
        payload = {
            "name": name,
            "document": document,
            "number": number,
            "expMonth": exp_month,
            "expYear": exp_year,
            "type": type,
            "address": address
        }
        fmt = 'customers/{}/creditCards'.format(customer_id)
        return self.client._post(self.url + fmt, json=payload, headers=self.get_headers())