From b55fbd78630605413465386f5df67fbe68faf845 Mon Sep 17 00:00:00 2001 From: Alec White Date: Wed, 19 May 2021 15:39:13 -0400 Subject: [PATCH] exposed with tax included mutation to the transaction builder --- .../net/avalara/avatax/rest/client/TransactionBuilder.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/net/avalara/avatax/rest/client/TransactionBuilder.java b/src/main/java/net/avalara/avatax/rest/client/TransactionBuilder.java index a49a1929..5ce5afee 100644 --- a/src/main/java/net/avalara/avatax/rest/client/TransactionBuilder.java +++ b/src/main/java/net/avalara/avatax/rest/client/TransactionBuilder.java @@ -218,6 +218,12 @@ public TransactionBuilder withLineAddress(TransactionAddressType type, String li return this; } + public TransactionBuilder withTaxIncluded(boolean taxIncluded) { + LineItemModel line = getMostRecentLine("WithLineAddress"); + line.setTaxIncluded(taxIncluded); + return this; + } + public TransactionBuilder withTaxOverride(TaxOverrideType type, String reason, BigDecimal taxAmount, Date taxDate) { if (taxAmount == null) { taxAmount = new BigDecimal(0);