Class TaxLineDto
- Namespace
- Integrations.Contracts.Tax
- Assembly
- Integrations.Contracts.dll
A calculated line with its tax broken down by jurisdiction.
public sealed record TaxLineDto : IEquatable<TaxLineDto>
- Inheritance
-
TaxLineDto
- Implements
- Inherited Members
Constructors
TaxLineDto(int, string?, LineCategory, string?, string?, string?, string, decimal, decimal, decimal, decimal, bool, AddressDto, IReadOnlyList<JurisdictionTaxDto>, int?)
A calculated line with its tax broken down by jurisdiction.
public TaxLineDto(int LineNumber, string? SourceLineId, LineCategory Category, string? WorkType, string? WorkSubType, string? Trade, string TaxCode, decimal Amount, decimal TaxableAmount, decimal ExemptAmount, decimal Tax, bool IsTaxable, AddressDto JobSite, IReadOnlyList<JurisdictionTaxDto> Jurisdictions, int? OriginalLineNumber = null)
Parameters
LineNumberint1-based line number on the document.
SourceLineIdstringCaller's line id, echoed back.
CategoryLineCategoryLabor, material, ...
WorkTypestringWork type the tax code was chosen for.
WorkSubTypestringWork sub-type, if given.
TradestringTrade, if given.
TaxCodestringAvaTax tax code used.
AmountdecimalLine amount before tax.
TaxableAmountdecimalTaxable part of the line.
ExemptAmountdecimalExempt part of the line.
TaxdecimalTotal tax on the line across jurisdictions.
IsTaxableboolWhether any part of the line is taxable.
JobSiteAddressDtoJob site the line was taxed at.
JurisdictionsIReadOnlyList<JurisdictionTaxDto>Tax per jurisdiction.
OriginalLineNumberint?On a credit: the invoice line it reverses.
Properties
Amount
Line amount before tax.
public decimal Amount { get; init; }
Property Value
Category
Labor, material, ...
public LineCategory Category { get; init; }
Property Value
ExemptAmount
Exempt part of the line.
public decimal ExemptAmount { get; init; }
Property Value
IsTaxable
Whether any part of the line is taxable.
public bool IsTaxable { get; init; }
Property Value
JobSite
Job site the line was taxed at.
public AddressDto JobSite { get; init; }
Property Value
Jurisdictions
Tax per jurisdiction.
public IReadOnlyList<JurisdictionTaxDto> Jurisdictions { get; init; }
Property Value
LineNumber
1-based line number on the document.
public int LineNumber { get; init; }
Property Value
OriginalLineNumber
On a credit: the invoice line it reverses.
public int? OriginalLineNumber { get; init; }
Property Value
- int?
SourceLineId
Caller's line id, echoed back.
public string? SourceLineId { get; init; }
Property Value
Tax
Total tax on the line across jurisdictions.
public decimal Tax { get; init; }
Property Value
TaxCode
AvaTax tax code used.
public string TaxCode { get; init; }
Property Value
TaxableAmount
Taxable part of the line.
public decimal TaxableAmount { get; init; }
Property Value
Trade
Trade, if given.
public string? Trade { get; init; }
Property Value
WorkSubType
Work sub-type, if given.
public string? WorkSubType { get; init; }
Property Value
WorkType
Work type the tax code was chosen for.
public string? WorkType { get; init; }