Class TaxMapping
- Namespace
- Integrations.Application.Tax
- Assembly
- Integrations.Application.dll
Domain ↔ contract mapping. Amounts are rounded to the currency's minor units here and only here.
public static class TaxMapping
- Inheritance
-
TaxMapping
- Inherited Members
Methods
GlCategoryFor(TaxDirection)
GL bucket for the direction: sales tax payable (AR) or use tax accrual (AP).
public static GlCategory GlCategoryFor(TaxDirection direction)
Parameters
directionTaxDirection
Returns
ToContract(LineCategory)
Domain category to contract category.
public static LineCategory ToContract(this LineCategory c)
Parameters
Returns
ToContract(TaxDirection)
Domain direction to contract direction.
public static TaxDirection ToContract(this TaxDirection d)
Parameters
Returns
ToDomain(AddressDto)
Contract address to domain address.
public static Address ToDomain(this AddressDto dto)
Parameters
dtoAddressDto
Returns
ToDomain(LineCategory)
Contract category to domain category.
public static LineCategory ToDomain(this LineCategory c)
Parameters
Returns
ToDomain(TaxDirection)
Contract direction to domain direction.
public static TaxDirection ToDomain(this TaxDirection d)
Parameters
Returns
ToDto(Address)
Domain address to contract address.
public static AddressDto ToDto(this Address a)
Parameters
aAddress
Returns
ToDto(TaxDocument)
Document to contract, amounts rounded to the currency.
public static TaxDocumentDto ToDto(this TaxDocument d)
Parameters
Returns
ToDto(TaxDocumentLine, string)
Line to contract, amounts rounded to the currency.
public static TaxLineDto ToDto(this TaxDocumentLine l, string currency)
Parameters
lTaxDocumentLinecurrencystring