(self)
Pay and send the customer's latest invoice.

        :returns: True if an invoice was able to be created and paid, False otherwise
            (typically if there was nothing to invoice).
Pay and send the customer's latest invoice.
Pay and send the customer s latest invoice .
def send_invoice(self):
        """
        Pay and send the customer's latest invoice.

        :returns: True if an invoice was able to be created and paid, False otherwise
            (typically if there was nothing to invoice).
        """
        from .billing import Invoice

        try:
            invoice = Invoice._api_create(customer=self.id)
            invoice.pay()
            return True
        except InvalidRequestError:  # TODO: Check this for a more
            #                           specific error message.
            return False
def send_invoice ( self ) : from . billing import Invoice try : invoice = Invoice . _api_create ( customer = self . id ) invoice . pay ( ) return True except InvalidRequestError : # TODO: Check this for a more #                           specific error message. return False