From 99bd2451cb261b6bf4adbe31ccad4f0599eaf5e5 Mon Sep 17 00:00:00 2001 From: Edward Emanuel Date: Wed, 7 Aug 2024 11:51:54 -0500 Subject: [PATCH] Clean up --- requirements.txt | 2 +- setup.py | 2 +- tests/integration/test_invoice.py | 11 +++++------ 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/requirements.txt b/requirements.txt index d67d7f6..401d589 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ -intuit-oauth==1.2.4 +intuit-oauth==1.2.6 requests_oauthlib>=1.3.1 requests>=2.31.0 \ No newline at end of file diff --git a/setup.py b/setup.py index a2ee218..414873f 100644 --- a/setup.py +++ b/setup.py @@ -31,7 +31,7 @@ def read(*parts): install_requires=[ 'setuptools', - 'intuit-oauth==1.2.5', + 'intuit-oauth==1.2.6', 'requests_oauthlib>=1.3.1', 'requests>=2.31.0', 'python-dateutil', diff --git a/tests/integration/test_invoice.py b/tests/integration/test_invoice.py index cfddc2e..8b93f1d 100644 --- a/tests/integration/test_invoice.py +++ b/tests/integration/test_invoice.py @@ -107,19 +107,18 @@ def test_invoice_link(self): # Create an invoice with sharable link flags set invoice = Invoice() invoice.CustomerRef = customer.to_ref() + invoice.DueDate = '2024-12-31' + invoice.AllowOnlineCreditCardPayment = True + invoice.AllowOnlineACHPayment = True + invoice.Line.append(self.create_invoice_line()) # BillEmail must be set for Sharable link to work! invoice.BillEmail = EmailAddress() invoice.BillEmail.Address = 'test@email.com' - invoice.PrivateNote = 'This is a test invoice' - invoice.DueDate = '2024-12-31' - invoice.AllowOnlineCreditCardPayment = True - invoice.AllowOnlineACHPayment = True - invoice.Line.append(self.create_invoice_line()) invoice.save(qb=self.qb_client) - # You must set the params when doing a query for the invoice + # You must add 'include': 'invoiceLink' to the params when doing a query for the invoice query_invoice = Invoice.get(invoice.Id, qb=self.qb_client, params={'include': 'invoiceLink'}) self.assertIsNotNone(query_invoice.InvoiceLink)