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
EntityIdstringEntity the estimate is for.
DirectionTaxDirectionReceivable or payable.
CurrencyCodestringCurrency of every amount.
TotalAmountdecimalSum of line amounts before tax.
TotalTaxabledecimalSum of taxable amounts.
TotalExemptdecimalSum of exempt amounts.
TotalTaxdecimalTotal tax.
TotalWithTaxdecimalTotal amount plus tax (what a PO or NTE should allow for).
LinesIReadOnlyList<TaxLineDto>Per-line results.
ProviderstringTax engine that calculated it (
AvaTaxorSimulated).CalculatedAtDateTimeOffsetWhen it was calculated.
Properties
CalculatedAt
When it was calculated.
public DateTimeOffset CalculatedAt { get; init; }
Property Value
CurrencyCode
Currency of every amount.
public string CurrencyCode { get; init; }
Property Value
Direction
Receivable or payable.
public TaxDirection Direction { get; init; }
Property Value
EntityId
Entity the estimate is for.
public string EntityId { get; init; }
Property Value
Lines
Per-line results.
public IReadOnlyList<TaxLineDto> Lines { get; init; }
Property Value
Provider
Tax engine that calculated it (AvaTax or Simulated).
public string Provider { get; init; }
Property Value
TotalAmount
Sum of line amounts before tax.
public decimal TotalAmount { get; init; }
Property Value
TotalExempt
Sum of exempt amounts.
public decimal TotalExempt { get; init; }
Property Value
TotalTax
Total tax.
public decimal TotalTax { get; init; }
Property Value
TotalTaxable
Sum of taxable amounts.
public decimal TotalTaxable { get; init; }
Property Value
TotalWithTax
Total amount plus tax (what a PO or NTE should allow for).
public decimal TotalWithTax { get; init; }