/* tslint:disable */ /* eslint-disable */ /** * Emil PublicAPI * The Emil Public API description * * The version of the OpenAPI document: 1.0 * Contact: kontakt@emil.de * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface DocumentClass */ export interface DocumentClass { /** * Internal unique identifier for the object. You should not have to use this, use code instead. * @type {number} * @memberof DocumentClass */ 'id': number; /** * Unique identifier for the object. * @type {string} * @memberof DocumentClass */ 'code': string; /** * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id. * @type {string} * @memberof DocumentClass */ 'templateSlug': string; /** * Document entity type * @type {string} * @memberof DocumentClass */ 'entityType': DocumentClassEntityTypeEnum; /** * Unique identifier of the policy that this object belongs to. * @type {string} * @memberof DocumentClass */ 'policyCode'?: string; /** * Unique identifier of the account that this object belongs to. * @type {string} * @memberof DocumentClass */ 'accountCode'?: string; /** * Unique identifier referencing the entity on the service the document belongs to. * @type {number} * @memberof DocumentClass */ 'entityId'?: number; /** * Identifier of the service that requested the creation of this document. * @type {string} * @memberof DocumentClass */ 'requester': DocumentClassRequesterEnum; /** * Metadata contains extra information that the document would need for specific cases. * @type {object} * @memberof DocumentClass */ 'metadata': object; /** * Description of the document. Usually a short summary about the context in which the document is being used. * @type {string} * @memberof DocumentClass */ 'description': string; /** * The unique key used by Amazon Simple Storage Service (S3). * @type {string} * @memberof DocumentClass */ 's3Key': string; /** * Type of the document expressed with its file extension. * @type {string} * @memberof DocumentClass */ 'contentType': DocumentClassContentTypeEnum; /** * Document file name. * @type {string} * @memberof DocumentClass */ 'filename': string; /** * Lead * @type {string} * @memberof DocumentClass */ 'leadCode': string; /** * Time at which the object was created. * @type {string} * @memberof DocumentClass */ 'createdAt': string; } export const DocumentClassEntityTypeEnum = { PolicyApplication: 'policy_application', PolicyContract: 'policy_contract', PolicyAddendum: 'policy_addendum', InitialInvoice: 'initial_invoice', CorrectionInvoice: 'correction_invoice', RecurringInvoice: 'recurring_invoice', SepaMandate: 'sepa_mandate', Static: 'static' } as const; export type DocumentClassEntityTypeEnum = typeof DocumentClassEntityTypeEnum[keyof typeof DocumentClassEntityTypeEnum]; export const DocumentClassRequesterEnum = { Publicapi: 'publicapi' } as const; export type DocumentClassRequesterEnum = typeof DocumentClassRequesterEnum[keyof typeof DocumentClassRequesterEnum]; export const DocumentClassContentTypeEnum = { Pdf: 'pdf', Jpg: 'jpg', Png: 'png', Gz: 'gz', Csv: 'csv', Doc: 'doc', Docx: 'docx', Html: 'html', Json: 'json', Xml: 'xml', Txt: 'txt', Zip: 'zip', Tar: 'tar', Rar: 'rar', Mp4: 'MP4', Mov: 'MOV', Wmv: 'WMV', Avi: 'AVI' } as const; export type DocumentClassContentTypeEnum = typeof DocumentClassContentTypeEnum[keyof typeof DocumentClassContentTypeEnum];