Skip to content

Commit

Permalink
Merge pull request #242 from VenturaFranklin/patch-1
Browse files Browse the repository at this point in the history
Add option for invoiceLink on query results
  • Loading branch information
ej2 authored Nov 30, 2021
2 parents 1be5436 + 4aca161 commit 1eb04e7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions quickbooks/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ class QuickBooks(object):
sandbox = False
minorversion = None
verifier_token = None
invoice_link = False

sandbox_api_url_v3 = "https://sandbox-quickbooks.api.intuit.com/v3"
api_url_v3 = "https://quickbooks.api.intuit.com/v3"
Expand Down Expand Up @@ -86,6 +87,8 @@ def __new__(cls, **kwargs):
if 'minorversion' in kwargs:
instance.minorversion = kwargs['minorversion']

instance.invoice_link = kwargs.get('invoice_link', False)

if 'verifier_token' in kwargs:
instance.verifier_token = kwargs.get('verifier_token')

Expand Down Expand Up @@ -171,6 +174,9 @@ def make_request(self, request_type, url, request_body=None, content_type='appli
if self.minorversion:
params['minorversion'] = self.minorversion

if self.invoice_link:
params['include'] = 'invoiceLink'

if not request_body:
request_body = {}

Expand Down

0 comments on commit 1eb04e7

Please sign in to comment.