code: def edit(self, invoice_id, data={}, **kwargs):
          
          Update an invoice
          In draft state all the attributes are allowed.
  
          Args:
              invoice_id : Id for delete the invoice
              data : Dictionary having keys using which invoice have to be updated
          Returns:
              Its response is the invoice entity, similar to create/update API response. Its status now would be issued.
              Refer https://razorpay.com/docs/invoices/api/#entity-structure
          """
          url = "{}/{}".format(self.base_url, invoice_id)
          return self.patch_url(url, data, **kwargs)
docs: Update an invoice
          In draft state all the attributes are allowed.
  
          Args:
              invoice_id : Id for delete the invoice
              data : Dictionary having keys using which invoice have to be updated
          Returns:
              Its response is the invoice entity, similar to create/update API response. Its status now would be issued.
              Refer https://razorpay.com/docs/invoices/api/#entity-structure