File tree Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 1- intuit-oauth == 1.2.4
1+ intuit-oauth == 1.2.6
22requests_oauthlib >= 1.3.1
33requests >= 2.31.0
Original file line number Diff line number Diff 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' ,
Original file line number Diff line number Diff 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 = 'test@email.com'
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 )
You can’t perform that action at this time.
0 commit comments