UNPKG

@apideck/node

Version:
105 lines (99 loc) 2.6 kB
/* tslint:disable */ /* eslint-disable */ /** * Apideck * The Apideck OpenAPI Spec: SDK Optimized * * The version of the OpenAPI document: 10.13.0 * Contact: support@apideck.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { exists } from '../runtime' import { ProfitAndLossRecords, ProfitAndLossRecordsFromJSON, ProfitAndLossRecordsToJSON } from './ProfitAndLossRecords' import { ProfitAndLossType, ProfitAndLossTypeFromJSON, ProfitAndLossTypeToJSON } from './ProfitAndLossType' /** * The accounts not categorized in the other sections * @export * @interface UncategorizedAccounts */ export interface UncategorizedAccounts { /** * The aggregated total of all accounts within this category. * @type {number} * @memberof UncategorizedAccounts */ total: number | null /** * * @type {ProfitAndLossRecords} * @memberof UncategorizedAccounts */ records: ProfitAndLossRecords | null /** * A unique identifier for an object. * @type {string} * @memberof UncategorizedAccounts */ readonly id?: string /** * The account code of the account * @type {string} * @memberof UncategorizedAccounts */ readonly code?: string /** * The name of the account. * @type {string} * @memberof UncategorizedAccounts */ readonly title?: string /** * * @type {ProfitAndLossType} * @memberof UncategorizedAccounts */ type?: ProfitAndLossType | null } export function UncategorizedAccountsFromJSON(json: any): UncategorizedAccounts { return UncategorizedAccountsFromJSONTyped(json, false) } export function UncategorizedAccountsFromJSONTyped( json: any, ignoreDiscriminator: boolean ): UncategorizedAccounts { if (json === undefined || json === null) { return json } return { total: json['total'], records: ProfitAndLossRecordsFromJSON(json['records']), id: !exists(json, 'id') ? undefined : json['id'], code: !exists(json, 'code') ? undefined : json['code'], title: !exists(json, 'title') ? undefined : json['title'], type: !exists(json, 'type') ? undefined : ProfitAndLossTypeFromJSON(json['type']) } } export function UncategorizedAccountsToJSON(value?: UncategorizedAccounts | null): any { if (value === undefined) { return undefined } if (value === null) { return null } return { total: value.total, records: ProfitAndLossRecordsToJSON(value.records), type: ProfitAndLossTypeToJSON(value.type) } }