/** * Shell Data & Reporting APIsLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ import { nullable, number, object, optional, Schema, string, } from '../schema.js'; export interface EIDDocument { /** Technical identifier for the EID file. Should not be stored in database as it is not guaranteed to stay unchanged over time. */ documentId?: number | null; /** Account Group Id */ accountGroupId?: string | null; /** Account group name */ accountGroupName?: string | null; /** * Document type. * Possible values: * • NAT (National) * • INT (International) */ documentType?: string | null; /** Document format (CHORUS, DIFI etc.) */ documentFormat?: string | null; /** * Document date. * Example: 20170101 */ documentDate?: string | null; /** Number of invoices */ numberOfInvoices?: number | null; /** Document size */ fileSize?: number | null; /** Document file name. */ documentName?: string | null; } export const eIDDocumentSchema: Schema = object({ documentId: ['DocumentId', optional(nullable(number()))], accountGroupId: ['AccountGroupId', optional(nullable(string()))], accountGroupName: ['AccountGroupName', optional(nullable(string()))], documentType: ['DocumentType', optional(nullable(string()))], documentFormat: ['DocumentFormat', optional(nullable(string()))], documentDate: ['DocumentDate', optional(nullable(string()))], numberOfInvoices: ['NumberOfInvoices', optional(nullable(number()))], fileSize: ['FileSize', optional(nullable(number()))], documentName: ['DocumentName', optional(nullable(string()))], });