Table of Contents

Class TaxEstimateDto

Namespace
Integrations.Contracts.Tax
Assembly
Integrations.Contracts.dll

Result of a real-time estimate. Nothing was recorded.

public sealed record TaxEstimateDto : IEquatable<TaxEstimateDto>
Inheritance
TaxEstimateDto
Implements
Inherited Members

Constructors

TaxEstimateDto(string, TaxDirection, string, decimal, decimal, decimal, decimal, decimal, IReadOnlyList<TaxLineDto>, string, DateTimeOffset)

Result of a real-time estimate. Nothing was recorded.

public TaxEstimateDto(string EntityId, TaxDirection Direction, string CurrencyCode, decimal TotalAmount, decimal TotalTaxable, decimal TotalExempt, decimal TotalTax, decimal TotalWithTax, IReadOnlyList<TaxLineDto> Lines, string Provider, DateTimeOffset CalculatedAt)

Parameters

EntityId string

Entity the estimate is for.

Direction TaxDirection

Receivable or payable.

CurrencyCode string

Currency of every amount.

TotalAmount decimal

Sum of line amounts before tax.

TotalTaxable decimal

Sum of taxable amounts.

TotalExempt decimal

Sum of exempt amounts.

TotalTax decimal

Total tax.

TotalWithTax decimal

Total amount plus tax (what a PO or NTE should allow for).

Lines IReadOnlyList<TaxLineDto>

Per-line results.

Provider string

Tax engine that calculated it (AvaTax or Simulated).

CalculatedAt DateTimeOffset

When it was calculated.

Properties

CalculatedAt

When it was calculated.

public DateTimeOffset CalculatedAt { get; init; }

Property Value

DateTimeOffset

CurrencyCode

Currency of every amount.

public string CurrencyCode { get; init; }

Property Value

string

Direction

Receivable or payable.

public TaxDirection Direction { get; init; }

Property Value

TaxDirection

EntityId

Entity the estimate is for.

public string EntityId { get; init; }

Property Value

string

Lines

Per-line results.

public IReadOnlyList<TaxLineDto> Lines { get; init; }

Property Value

IReadOnlyList<TaxLineDto>

Provider

Tax engine that calculated it (AvaTax or Simulated).

public string Provider { get; init; }

Property Value

string

TotalAmount

Sum of line amounts before tax.

public decimal TotalAmount { get; init; }

Property Value

decimal

TotalExempt

Sum of exempt amounts.

public decimal TotalExempt { get; init; }

Property Value

decimal

TotalTax

Total tax.

public decimal TotalTax { get; init; }

Property Value

decimal

TotalTaxable

Sum of taxable amounts.

public decimal TotalTaxable { get; init; }

Property Value

decimal

TotalWithTax

Total amount plus tax (what a PO or NTE should allow for).

public decimal TotalWithTax { get; init; }

Property Value

decimal