public async Task <TransactionModel> CommitTransactionAsync(string transactionCode) { var model = new CommitTransactionModel() { commit = true }; var transaction = await _avaTax.CommitTransactionAsync(_companyCode, transactionCode, DocumentType.SalesInvoice, "", model); return(transaction); }
public async Task <OrderTaxCalculation> CommitTransactionAsync(string transactionCode) { if (ShouldMockAvalaraResponse()) { return(CreateMockTransactionModel()); } var model = new CommitTransactionModel() { commit = true }; var transaction = await _avaTax.CommitTransactionAsync(_companyCode, transactionCode, DocumentType.SalesInvoice, "", model); return(transaction.ToOrderTaxCalculation()); }