mindee
Version:
Mindee Client Library for Node.js
35 lines (34 loc) • 976 B
TypeScript
import { StringDict } from "../../parsing/common";
import { Polygon } from "../../geometry";
/**
* List of all line items on the receipt.
*/
export declare class ReceiptV5LineItem {
#private;
/** The item description. */
description: string | null;
/** The item quantity. */
quantity: number | null;
/** The item total amount. */
totalAmount: number | null;
/** The item unit price. */
unitPrice: number | null;
/** Confidence score */
confidence: number;
/** The document page on which the information was found. */
pageId: number;
/**
* Contains the relative vertices coordinates (points) of a polygon containing
* the field in the document.
*/
polygon: Polygon;
constructor({ prediction }: StringDict);
/**
* Default string representation.
*/
toString(): string;
/**
* Output in a format suitable for inclusion in an rST table.
*/
toTableLine(): string;
}