def update_payment_token_by_id(cls, payment_token_id, payment_token, **kwargs):
        """Update PaymentToken

        Update attributes of PaymentToken
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async=True
        >>> thread = api.update_payment_token_by_id(payment_token_id, payment_token, async=True)
        >>> result = thread.get()

        :param async bool
        :param str payment_token_id: ID of paymentToken to update. (required)
        :param PaymentToken payment_token: Attributes of paymentToken to update. (required)
        :return: PaymentToken
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async'):
            return cls._update_payment_token_by_id_with_http_info(payment_token_id, payment_token, **kwargs)
        else:
            (data) = cls._update_payment_token_by_id_with_http_info(payment_token_id, payment_token, **kwargs)
            return data
Update PaymentToken

        Update attributes of PaymentToken
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async=True
        >>> thread = api.update_payment_token_by_id(payment_token_id, payment_token, async=True)
        >>> result = thread.get()

        :param async bool
        :param str payment_token_id: ID of paymentToken to update. (required)
        :param PaymentToken payment_token: Attributes of paymentToken to update. (required)
        :return: PaymentToken
                 If the method is called asynchronously,
                 returns the request thread.