Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
ej2 committed Aug 7, 2024
1 parent 501ba21 commit 99bd245
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
intuit-oauth==1.2.4
intuit-oauth==1.2.6
requests_oauthlib>=1.3.1
requests>=2.31.0
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
11 changes: 5 additions & 6 deletions tests/integration/test_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '[email protected]'

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)
Expand Down

0 comments on commit 99bd245

Please sign in to comment.