예제 #1
0
        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);
        }
예제 #2
0
        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());
        }