UNPKG

@apideck/node

Version:
93 lines (87 loc) 2.47 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 { BalanceSheetAccounts, BalanceSheetAccountsFromJSON, BalanceSheetAccountsToJSON } from './BalanceSheetAccounts' /** * A balance sheet liabilities account represents the financial position of a company at a specific point in time. * @export * @interface BalanceSheetLiabilitiesAccount */ export interface BalanceSheetLiabilitiesAccount { /** * The unique identifier for the account. * @type {string} * @memberof BalanceSheetLiabilitiesAccount */ readonly account_id?: string /** * The account code of the account * @type {string} * @memberof BalanceSheetLiabilitiesAccount */ readonly code?: string /** * The name of the account. * @type {string} * @memberof BalanceSheetLiabilitiesAccount */ readonly name?: string /** * The amount or value of the item * @type {number} * @memberof BalanceSheetLiabilitiesAccount */ readonly value?: number /** * * @type {BalanceSheetAccounts} * @memberof BalanceSheetLiabilitiesAccount */ items?: BalanceSheetAccounts | null } export function BalanceSheetLiabilitiesAccountFromJSON(json: any): BalanceSheetLiabilitiesAccount { return BalanceSheetLiabilitiesAccountFromJSONTyped(json, false) } export function BalanceSheetLiabilitiesAccountFromJSONTyped( json: any, ignoreDiscriminator: boolean ): BalanceSheetLiabilitiesAccount { if (json === undefined || json === null) { return json } return { account_id: !exists(json, 'account_id') ? undefined : json['account_id'], code: !exists(json, 'code') ? undefined : json['code'], name: !exists(json, 'name') ? undefined : json['name'], value: !exists(json, 'value') ? undefined : json['value'], items: !exists(json, 'items') ? undefined : BalanceSheetAccountsFromJSON(json['items']) } } export function BalanceSheetLiabilitiesAccountToJSON( value?: BalanceSheetLiabilitiesAccount | null ): any { if (value === undefined) { return undefined } if (value === null) { return null } return { items: BalanceSheetAccountsToJSON(value.items) } }