Class TaxLineRequest
- Namespace
- Integrations.Contracts.Tax
- Assembly
- Integrations.Contracts.dll
One cost line. WorkType/WorkSubType/Trade + Category select the tax code through the
mapping table unless TaxCode overrides it. JobSite overrides the document's job site for this line.
public sealed record TaxLineRequest : IEquatable<TaxLineRequest>
- Inheritance
-
TaxLineRequest
- Implements
- Inherited Members
Constructors
TaxLineRequest(LineCategory, decimal, decimal?, string?, string?, string?, string?, string?, string?, string?, AddressDto?)
One cost line. WorkType/WorkSubType/Trade + Category select the tax code through the
mapping table unless TaxCode overrides it. JobSite overrides the document's job site for this line.
public TaxLineRequest(LineCategory Category, decimal Amount, decimal? Quantity = null, string? WorkType = null, string? WorkSubType = null, string? Trade = null, string? TaxCode = null, string? ItemCode = null, string? Description = null, string? SourceLineId = null, AddressDto? JobSite = null)
Parameters
CategoryLineCategoryLabor, material, freight, ... Keep labor and materials on separate lines.
AmountdecimalLine amount before tax, in the document currency. Never negative: use a credit instead.
Quantitydecimal?Units, if meaningful. Defaults to 1.
WorkTypestringWork type (e.g.
HVAC,Plumbing) used to pick the tax code.WorkSubTypestringWork sub-type, for finer tax-code mapping.
TradestringTrade, for finer tax-code mapping.
TaxCodestringExplicit AvaTax tax code; skips the mapping table.
ItemCodestringCaller's item or SKU code, passed through for audit.
DescriptionstringLine description shown on reports.
SourceLineIdstringCaller's line id (PO/WO line), passed through so results can be matched back.
JobSiteAddressDtoJob site for this line only, when it differs from the document's.
Properties
Amount
Line amount before tax, in the document currency. Never negative: use a credit instead.
public decimal Amount { get; init; }
Property Value
Category
Labor, material, freight, ... Keep labor and materials on separate lines.
public LineCategory Category { get; init; }
Property Value
Description
Line description shown on reports.
public string? Description { get; init; }
Property Value
ItemCode
Caller's item or SKU code, passed through for audit.
public string? ItemCode { get; init; }
Property Value
JobSite
Job site for this line only, when it differs from the document's.
public AddressDto? JobSite { get; init; }
Property Value
Quantity
Units, if meaningful. Defaults to 1.
public decimal? Quantity { get; init; }
Property Value
SourceLineId
Caller's line id (PO/WO line), passed through so results can be matched back.
public string? SourceLineId { get; init; }
Property Value
TaxCode
Explicit AvaTax tax code; skips the mapping table.
public string? TaxCode { get; init; }
Property Value
Trade
Trade, for finer tax-code mapping.
public string? Trade { get; init; }
Property Value
WorkSubType
Work sub-type, for finer tax-code mapping.
public string? WorkSubType { get; init; }
Property Value
WorkType
Work type (e.g. HVAC, Plumbing) used to pick the tax code.
public string? WorkType { get; init; }