Skip to content

Commit 99bd245

Browse files
committed
Clean up
1 parent 501ba21 commit 99bd245

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
intuit-oauth==1.2.4
1+
intuit-oauth==1.2.6
22
requests_oauthlib>=1.3.1
33
requests>=2.31.0

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def read(*parts):
3131

3232
install_requires=[
3333
'setuptools',
34-
'intuit-oauth==1.2.5',
34+
'intuit-oauth==1.2.6',
3535
'requests_oauthlib>=1.3.1',
3636
'requests>=2.31.0',
3737
'python-dateutil',

tests/integration/test_invoice.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,19 +107,18 @@ def test_invoice_link(self):
107107
# Create an invoice with sharable link flags set
108108
invoice = Invoice()
109109
invoice.CustomerRef = customer.to_ref()
110+
invoice.DueDate = '2024-12-31'
111+
invoice.AllowOnlineCreditCardPayment = True
112+
invoice.AllowOnlineACHPayment = True
113+
invoice.Line.append(self.create_invoice_line())
110114

111115
# BillEmail must be set for Sharable link to work!
112116
invoice.BillEmail = EmailAddress()
113117
invoice.BillEmail.Address = '[email protected]'
114118

115-
invoice.PrivateNote = 'This is a test invoice'
116-
invoice.DueDate = '2024-12-31'
117-
invoice.AllowOnlineCreditCardPayment = True
118-
invoice.AllowOnlineACHPayment = True
119-
invoice.Line.append(self.create_invoice_line())
120119
invoice.save(qb=self.qb_client)
121120

122-
# You must set the params when doing a query for the invoice
121+
# You must add 'include': 'invoiceLink' to the params when doing a query for the invoice
123122
query_invoice = Invoice.get(invoice.Id, qb=self.qb_client, params={'include': 'invoiceLink'})
124123

125124
self.assertIsNotNone(query_invoice.InvoiceLink)

0 commit comments

Comments
 (0)