scmc.AvalaraTaxCalculationServiceglobal with sharing class AvalaraTaxCalculationService This service enables you to use Avalara AvaTax to perform the following actions on Order and Inventory Management documents:
Methods
calculateTaxForPurchaseOrderglobal static Map<Id, scmc.AvalaraTaxCalculationService.Result> calculateTaxForPurchaseOrder(Set<Id> purchaseOrderIds) Calculates tax for the specified purchase orders. Input Parameters
Return ValueMap that contains the ID of the purchase order and a result that indicates whether the action was successful and provides a user-friendly success or error message. calculateTaxForApVoucherglobal static Map<Id, scmc.AvalaraTaxCalculationService.Result> calculateTaxForApVoucher(Set<Id> apVoucherIds) Calculates tax for the specified AP vouchers. Input Parameters
Exceptions Thrown
Return ValueMap that contains the ID of the AP voucher and a result that indicates whether the action was successful and provides a user-friendly success or error message. postTaxForApVoucherglobal static Map<Id, scmc.AvalaraTaxCalculationService.Result> postTaxForApVoucher(Set<Id> apVoucherIds) Posts tax in Avalara for the specified AP vouchers. Input Parameters
Exceptions Thrown
Return ValueMap that contains the ID of the AP voucher and a result that indicates whether the action was successful and provides a user-friendly success or error message. commitTaxForApVoucherglobal static Map<Id, scmc.AvalaraTaxCalculationService.Result> commitTaxForApVoucher(Set<Id> apVoucherIds) Commits tax in Avalara for the specified AP vouchers.
Input Parameters
Exceptions Thrown
Return ValueMap that contains the ID of the AP voucher and a result that indicates whether the action was successful and provides a user-friendly success or error message. postAndCommitTaxForApVoucherglobal static Map<Id, scmc.AvalaraTaxCalculationService.Result> postAndCommitTaxForApVoucher(Set<Id> apVoucherIds) Posts and commits tax in Avalara for the specified AP vouchers. Input Parameters
Exceptions Thrown
Return ValueMap that contains the ID of the AP voucher and a result that indicates whether the action was successful and provides a user-friendly success or error message. cancelTaxForApVoucherglobal static Map<Id, scmc.AvalaraTaxCalculationService.Result> cancelTaxForApVoucher(Set<Id> apVoucherIds) Cancels tax in Avalara for the specified AP vouchers. Input Parameters
Exceptions Thrown
Return ValueMap that contains the ID of the AP voucher and a result that indicates whether the action was successful and provides a user-friendly success or error message. calculateTaxForApVoucherCreditglobal static Map<Id, scmc.AvalaraTaxCalculationService.Result> calculateTaxForApVoucherCredit(Set<Id> apVoucherCreditIds) Calculates tax for the specified AP voucher credits. Input Parameters
Return ValueMap that contains the ID of the AP voucher credit and a result that indicates whether the action was successful and provides a user-friendly success or error message. postTaxForApVoucherCreditglobal static Map<Id, scmc.AvalaraTaxCalculationService.Result> postTaxForApVoucherCredit(Set<Id> apVoucherCreditIds) Posts tax in Avalara for the specified AP voucher credits. Input Parameters
Return ValueMap that contains the ID of the AP voucher credit and a result that indicates whether the action was successful and provides a user-friendly success or error message. commitTaxForApVoucherCreditglobal static Map<Id, scmc.AvalaraTaxCalculationService.Result> commitTaxForApVoucherCredit(Set<Id> apVoucherCreditIds) Commits tax in Avalara for the specified AP voucher credits.
Input Parameters
Return ValueMap that contains the ID of the AP voucher credit and a result that indicates whether the action was successful and provides a user-friendly success or error message. postAndCommitTaxForApVoucherCreditglobal static Map<Id, scmc.AvalaraTaxCalculationService.Result> postAndCommitTaxForApVoucherCredit(Set<Id> apVoucherCreditIds) Posts and commits tax in Avalara for the specified AP voucher credits. Input Parameters
Return ValueMap that contains the ID of the AP voucher credit and a result that indicates whether the action was successful and provides a user-friendly success or error message. cancelTaxForApVoucherCreditglobal static Map<Id, scmc.AvalaraTaxCalculationService.Result> cancelTaxForApVoucherCredit(Set<Id> apVoucherCreditIds) Cancels tax in Avalara for the specified AP voucher credits. Input Parameters
Return ValueMap that contains the ID of the AP voucher credit and a result that indicates whether the action was successful and provides a user-friendly success or error message. calculateTaxForCustomerQuotationglobal static Map<Id, scmc.AvalaraTaxCalculationService.Result> calculateTaxForCustomerQuotation(Set<Id> customerQuotationIds) Calculates tax for the specified customer quotations. Input Parameters
Return ValueMap that contains the ID of the customer quotation and a result that indicates whether the action was successful and provides a user-friendly success or error message. calculateTaxForSalesOrderglobal static Map<Id, scmc.AvalaraTaxCalculationService.Result> calculateTaxForSalesOrder(Set<Id> salesOrderIds) Calculates tax for the specified sales orders. Input Parameters
Return ValueMap that contains the ID of the sales order and a result that indicates whether the action was successful and provides a user-friendly success or error message. calculateTaxForInvoiceglobal static Map<Id, scmc.AvalaraTaxCalculationService.Result> calculateTaxForInvoice(Set<Id> invoiceIds) Calculates tax for the specified invoices. Input Parameters
Exceptions Thrown
Return ValueMap that contains the ID of the invoice and a result that indicates whether the action was successful and provides a user-friendly success or error message. postTaxForInvoiceglobal static Map<Id, scmc.AvalaraTaxCalculationService.Result> postTaxForInvoice(Set<Id> invoiceIds) Posts tax in Avalara for the specified invoices. Input Parameters
Exceptions Thrown
Return ValueMap that contains the ID of the invoice and a result that indicates whether the action was successful and provides a user-friendly success or error message. commitTaxForInvoiceglobal static Map<Id, scmc.AvalaraTaxCalculationService.Result> commitTaxForInvoice(Set<Id> invoiceIds) Commits tax in Avalara for the specified invoices.
Input Parameters
Exceptions Thrown
Return ValueMap that contains the ID of the invoice and a result that indicates whether the action was successful and provides a user-friendly success or error message. postAndCommitTaxForInvoiceglobal static Map<Id, scmc.AvalaraTaxCalculationService.Result> postAndCommitTaxForInvoice(Set<Id> invoiceIds) Posts and commits tax in Avalara for the specified invoices. Input Parameters
Exceptions Thrown
Return ValueMap that contains the ID of the invoice and a result that indicates whether the action was successful and provides a user-friendly success or error message. cancelTaxForInvoiceglobal static Map<Id, scmc.AvalaraTaxCalculationService.Result> cancelTaxForInvoice(Set<Id> invoiceIds) Cancels tax in Avalara for the specified invoices. Input Parameters
Return ValueMap that contains the ID of the invoice and a result that indicates whether the action was successful and provides a user-friendly success or error message. calculateTaxForCreditInvoiceglobal static Map<Id, scmc.AvalaraTaxCalculationService.Result> calculateTaxForCreditInvoice(Set<Id> creditInvoiceIds) Calculates tax for the specified credit invoices. Input Parameters
Exceptions Thrown
Return ValueMap that contains the ID of the credit invoice and a result that indicates whether the action was successful and provides a user-friendly success or error message. postTaxForCreditInvoiceglobal static Map<Id, scmc.AvalaraTaxCalculationService.Result> postTaxForCreditInvoice(Set<Id> creditInvoiceIds) Posts tax in Avalara for the specified credit invoices. Input Parameters
Exceptions Thrown
Return ValueMap that contains the ID of the credit invoice and a result that indicates whether the action was successful and provides a user-friendly success or error message. commitTaxForCreditInvoiceglobal static Map<Id, scmc.AvalaraTaxCalculationService.Result> commitTaxForCreditInvoice(Set<Id> creditInvoiceIds) Commits tax in Avalara for the specified credit invoices.
Input Parameters
Exceptions Thrown
Return ValueMap that contains the ID of the credit invoice and a result that indicates whether the action was successful and provides a user-friendly success or error message. postAndCommitTaxForCreditInvoiceglobal static Map<Id, scmc.AvalaraTaxCalculationService.Result> postAndCommitTaxForCreditInvoice(Set<Id> creditInvoiceIds) Posts and commits tax in Avalara for the specified credit invoices. Input Parameters
Exceptions Thrown
Return ValueMap that contains the ID of the credit invoice and a result that indicates whether the action was successful and provides a user-friendly success or error message. cancelTaxForCreditInvoiceglobal static Map<Id, scmc.AvalaraTaxCalculationService.Result> cancelTaxForCreditInvoice(Set<Id> creditInvoiceIds) Cancels tax in Avalara for the specified credit invoices. Input Parameters
Return ValueMap that contains the ID of the credit invoice and a result that indicates whether the action was successful and provides a user-friendly success or error message. scmc.AvalaraTaxCalculationService.Resultglobal inherited sharing class Result Result that indicates whether an scmc.AvalaraTaxCalculationService action was successful and contains a user-friendly success or error message. Properties
|