Represent a single tax line.

Hierarchy

Constructors

Properties

base?: number = undefined

The tax base

boundingBox: BoundingBox

Contains exactly 4 relative vertices coordinates (points) of a right rectangle containing the field in the document.

code?: string = undefined

The tax code (HST, GST... for Canadian; City Tax, State tax for US, etc..).

confidence: number

The confidence score of the prediction.

pageId: number

The document page on which the information was found.

polygon: Polygon = []

Contains the relative vertices coordinates (points) of a polygon containing the field in the document.

rate?: number = undefined

The tax rate.

reconstructed: boolean

true when the field was reconstructed or computed using other fields.

value?: number = undefined

The tax amount.

Methods

  • Returns {
        base: string;
        code: string;
        rate: string;
        value: string;
    }

    • base: string
    • code: string
    • rate: string
    • value: string
  • Returns

    true if all elements in array1 exist in array2 and vice-versa, false otherwise

    Parameters

    • array1: Field[]

      first Array of Fields

    • array2: Field[]

      second Array of Fields

    • attr: string = "value"

      Attribute to compare

    Returns boolean

Generated using TypeDoc