/** * Shell Data & Reporting APIsLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ import { array, nullable, number, object, optional, Schema, string, } from '../schema.js'; export interface EIDSearchReq { /** * Collecting Company Code of the selected payer. * Mandatory */ colCoCode: number | null; /** * Country code (colco code) of the account group. * Mandatory */ accountGroupCountry: number | null; /** * List of IDs of the account groups that user has access to. * Mandatory */ accountGroupId: string[]; /** * Account group name * Optional. * This input is a search criterion, if given. */ accountGroupName?: string | null; /** * EID date searched from this date. * Optional. */ fromDate?: string | null; /** * Invoice date searched until this date. * Optional. */ toDate?: string | null; /** * Invoice type. * Optional. * Possible values: * • NAT (National) * • INT (International) */ invoiceType?: string | null; /** * Sort option – * • InvoiceNumber ASC * • InvoiceDate ASC * • InvoiceNumber DESC * • InvoiceDate DESC * Optional */ sortBy?: string[]; } export const eIDSearchReqSchema: Schema = object({ colCoCode: ['ColCoCode', nullable(number())], accountGroupCountry: ['AccountGroupCountry', nullable(number())], accountGroupId: ['AccountGroupId', array(string())], accountGroupName: ['AccountGroupName', optional(nullable(string()))], fromDate: ['FromDate', optional(nullable(string()))], toDate: ['ToDate', optional(nullable(string()))], invoiceType: ['InvoiceType', optional(nullable(string()))], sortBy: ['SortBy', optional(array(string()))], });