Package net.avalara.avatax.rest.client
Class TransactionBuilder
java.lang.Object
net.avalara.avatax.rest.client.TransactionBuilder
-
Constructor Summary
ConstructorsConstructorDescriptionTransactionBuilder
(AvaTaxClient client, String companyCode, DocumentType docType, String customerCode) -
Method Summary
Modifier and TypeMethodDescriptioncreate()
Create()
createAdjustmentRequest
(String description, AdjustmentReason reason) CreateAdjustmentRequest
(String description, AdjustmentReason reason) withAddress
(TransactionAddressType type, String line1, String line2, String line3, String city, String region, String postalCode, String country) withCurrencyCode
(String currencyCode) withCustomerUsageType
(String customerUsageType) withDiscountAmount
(BigDecimal discountAmount) withExemptionNo
(String exemptionNo) withExemptLine
(BigDecimal amount, String exemptionCode) withIsSellerImporterOfRecord
(Boolean isSellerImporterOfRecord) withItemDiscount
(Boolean discounted) withLatLong
(TransactionAddressType type, BigDecimal latitude, BigDecimal longitude) withLine
(String lineNo, BigDecimal amount, BigDecimal quantity, String taxCode) withLine
(String lineNo, BigDecimal amount, BigDecimal quantity, String taxCode, String itemCode) withLine
(String lineNo, BigDecimal amount, BigDecimal quantity, String taxCode, String itemCode, String description) withLine
(String lineNo, BigDecimal amount, BigDecimal quantity, String taxCode, String itemCode, String description, String ref1, String ref2) withLine
(String lineNo, BigDecimal amount, BigDecimal quantity, String taxCode, String itemCode, String description, String ref1, String ref2, String customerUsageType, String hsCode) withLine
(BigDecimal amount, BigDecimal quantity, String taxCode) withLine
(BigDecimal amount, BigDecimal quantity, String taxCode, String itemCode) withLine
(BigDecimal amount, BigDecimal quantity, String taxCode, String itemCode, String description) withLine
(BigDecimal amount, BigDecimal quantity, String taxCode, String itemCode, String description, String ref1, String ref2) withLine
(BigDecimal amount, BigDecimal quantity, String taxCode, String itemCode, String description, String ref1, String ref2, String customerUsageType) withLineAddress
(TransactionAddressType type, String line1, String line2, String line3, String city, String region, String postalCode, String country) withLineParameter
(String name, String value) withLineParameter
(String name, String value, String unit) withLineTaxOverride
(TaxOverrideType type, String reason, BigDecimal taxAmount, Date taxDate) withParameter
(String name, String value) withParameter
(String name, String value, String unit) withReferenceCode
(String referenceCode) withSeparateAddressLine
(BigDecimal amount, TransactionAddressType type, String line1, String line2, String line3, String city, String region, String postalCode, String country) withSeparateAddressLineAndQuantity
(BigDecimal amount, BigDecimal quantity, TransactionAddressType type, String line1, String line2, String line3, String city, String region, String postalCode, String country) withSeparateAddressLineQuantityAndItemCode
(BigDecimal amount, BigDecimal quantity, String itemCode, TransactionAddressType type, String line1, String line2, String line3, String city, String region, String postalCode, String country) withTaxOverride
(TaxOverrideType type, String reason, BigDecimal taxAmount, Date taxDate) withTransactionCode
(String code) withType
(DocumentType type)
-
Constructor Details
-
TransactionBuilder
public TransactionBuilder(AvaTaxClient client, String companyCode, DocumentType docType, String customerCode)
-
-
Method Details
-
withCommit
-
withDiagnostics
-
withDiscountAmount
-
withItemDiscount
-
withTransactionCode
-
withType
-
withParameter
-
withParameter
-
withIsSellerImporterOfRecord
-
withLineParameter
-
withLineParameter
-
withReferenceCode
-
withDate
-
withCustomerUsageType
-
withExemptionNo
-
withCode
-
withAddress
public TransactionBuilder withAddress(TransactionAddressType type, String line1, String line2, String line3, String city, String region, String postalCode, String country) -
withLatLong
public TransactionBuilder withLatLong(TransactionAddressType type, BigDecimal latitude, BigDecimal longitude) -
withLineAddress
public TransactionBuilder withLineAddress(TransactionAddressType type, String line1, String line2, String line3, String city, String region, String postalCode, String country) -
withTaxOverride
public TransactionBuilder withTaxOverride(TaxOverrideType type, String reason, BigDecimal taxAmount, Date taxDate) -
withLineTaxOverride
public TransactionBuilder withLineTaxOverride(TaxOverrideType type, String reason, BigDecimal taxAmount, Date taxDate) throws AvaTaxClientException - Throws:
AvaTaxClientException
-
withLine
public TransactionBuilder withLine(String lineNo, BigDecimal amount, BigDecimal quantity, String taxCode) -
withLine
-
withLine
public TransactionBuilder withLine(String lineNo, BigDecimal amount, BigDecimal quantity, String taxCode, String itemCode) -
withLine
public TransactionBuilder withLine(BigDecimal amount, BigDecimal quantity, String taxCode, String itemCode) -
withLine
public TransactionBuilder withLine(String lineNo, BigDecimal amount, BigDecimal quantity, String taxCode, String itemCode, String description) -
withLine
public TransactionBuilder withLine(BigDecimal amount, BigDecimal quantity, String taxCode, String itemCode, String description) -
withLine
public TransactionBuilder withLine(String lineNo, BigDecimal amount, BigDecimal quantity, String taxCode, String itemCode, String description, String ref1, String ref2) -
withLine
public TransactionBuilder withLine(BigDecimal amount, BigDecimal quantity, String taxCode, String itemCode, String description, String ref1, String ref2) -
withLine
public TransactionBuilder withLine(BigDecimal amount, BigDecimal quantity, String taxCode, String itemCode, String description, String ref1, String ref2, String customerUsageType) -
withLine
public TransactionBuilder withLine(String lineNo, BigDecimal amount, BigDecimal quantity, String taxCode, String itemCode, String description, String ref1, String ref2, String customerUsageType, String hsCode) -
withSeparateAddressLine
public TransactionBuilder withSeparateAddressLine(BigDecimal amount, TransactionAddressType type, String line1, String line2, String line3, String city, String region, String postalCode, String country) -
withSeparateAddressLineAndQuantity
public TransactionBuilder withSeparateAddressLineAndQuantity(BigDecimal amount, BigDecimal quantity, TransactionAddressType type, String line1, String line2, String line3, String city, String region, String postalCode, String country) -
withSeparateAddressLineQuantityAndItemCode
public TransactionBuilder withSeparateAddressLineQuantityAndItemCode(BigDecimal amount, BigDecimal quantity, String itemCode, TransactionAddressType type, String line1, String line2, String line3, String city, String region, String postalCode, String country) -
withExemptLine
-
withTaxIncludeLine
-
withCurrencyCode
-
getIntermediaryTransactionModel
-
CreateAsync
-
createAsync
-
Create
- Throws:
Exception
-
create
- Throws:
Exception
-
CreateAdjustmentRequest
-
createAdjustmentRequest
-