Skip to content

Commit 3500782

Browse files
committed
Enable setting the $include query parameter on transaction creation
The client function create_transaction allows setting of the $include query parameter. When using the transaction builders create function its not possible to set this variable. This change allows setting of the variable while keeping backwards compatibility with the previous implementation.
1 parent 8497fe7 commit 3500782

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/transaction_builder_methods.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,13 +241,12 @@ def get_most_recent_line(self, member_name=None):
241241
raise Exception('No lines have been added. The {} method applies to the most recent line. To use this function, first add a line.'.format(member_name))
242242
return line[-1]
243243

244-
def create(self):
244+
def create(self, include=None):
245245
"""
246246
Create this transaction.
247247
248248
:return: TransactionModel
249249
"""
250-
include = None
251250
return self.client.create_transaction(self.create_model, include)
252251

253252
def with_line_tax_override(self, type_, reason, tax_amount, tax_date):

0 commit comments

Comments
 (0)