-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
7 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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) | ||
|