UNPKG

mindee

Version:

Mindee Client Library for Node.js

28 lines (27 loc) 1.21 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BankAccountDetailsV2 = void 0; const common_1 = require("../../../parsing/common"); const bankAccountDetailsV2Document_1 = require("./bankAccountDetailsV2Document"); /** * Bank Account Details API version 2 inference prediction. */ class BankAccountDetailsV2 extends common_1.Inference { constructor(rawPrediction) { super(rawPrediction); /** The endpoint's name. */ this.endpointName = "bank_account_details"; /** The endpoint's version. */ this.endpointVersion = "2"; /** The document's pages. */ this.pages = []; this.prediction = new bankAccountDetailsV2Document_1.BankAccountDetailsV2Document(rawPrediction["prediction"]); rawPrediction["pages"].forEach((page) => { if (page.prediction !== undefined && page.prediction !== null && Object.keys(page.prediction).length > 0) { this.pages.push(new common_1.Page(bankAccountDetailsV2Document_1.BankAccountDetailsV2Document, page, page["id"], page["orientation"])); } }); } } exports.BankAccountDetailsV2 = BankAccountDetailsV2;