Skip to content

Commit

Permalink
Updated following file(s): accounting.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
GeertWille committed Apr 30, 2024
1 parent 5e2728a commit 4586e66
Showing 1 changed file with 130 additions and 225 deletions.
355 changes: 130 additions & 225 deletions accounting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1153,238 +1153,143 @@ components:
BalanceSheet:
type: object
x-apideck-schema-id: BalanceSheet
x-apideck-circular-ref: true
x-apideck-weights:
id: medium
report_name: medium
start_date: critical
assets: critical
liabilities: critical
equity: critical
updated_by: edge-case
created_by: edge-case
updated_at: low
created_at: edge-case
reports: critical
additionalProperties: false
required:
- report_name
- start_date
- assets
- liabilities
- equity
- reports
properties:
id:
$ref: '#/components/schemas/Id'
report_name:
reports:
type: array
x-apideck-schema-id: BalanceSheetReports
items:
type: object
x-apideck-schema-id: BalanceSheetReport
x-apideck-weights:
id: medium
report_name: medium
start_date: medium
end_date: critical
currency: medium
assets: critical
liabilities: critical
equity: critical
net_assets: high
custom_mappings: edge-case
updated_by: edge-case
created_by: edge-case
updated_at: low
created_at: edge-case
additionalProperties: false
required:
- end_date
- assets
- liabilities
- equity
properties:
id:
$ref: '#/components/schemas/Id'
report_name:
type: string
description: The name of the report
title: Report Name
example: BalanceSheet
start_date:
type: string
description: The start date of the report
title: Start Date
pattern: ^\d{4}-\d{2}-\d{2}$
example: '2017-01-01'
end_date:
type: string
description: The start date of the report
title: Start Date
pattern: ^\d{4}-\d{2}-\d{2}$
example: '2017-01-01'
currency:
$ref: '#/components/schemas/Currency'
assets:
$ref: '#/components/schemas/BalanceSheetAccount'
liabilities:
$ref: '#/components/schemas/BalanceSheetAccount'
equity:
$ref: '#/components/schemas/BalanceSheetAccount'
net_assets:
type: number
description: The net assets of the balance sheet
title: Net Assets
example: 1000
custom_mappings:
$ref: '#/components/schemas/CustomMappings'
updated_by:
$ref: '#/components/schemas/UpdatedBy'
created_by:
$ref: '#/components/schemas/CreatedBy'
updated_at:
$ref: '#/components/schemas/UpdatedAt'
created_at:
$ref: '#/components/schemas/CreatedAt'
BalanceSheetAccount:
type: object
x-apideck-schema-id: BalanceSheetAccount
x-apideck-weights:
account_id: critical
name: high
value: critical
items: medium
additionalProperties: false
properties:
account_id:
title: Account Id
description: The unique identifier for the account.
type: string
description: The name of the report
title: Report Name
example: BalanceSheet
start_date:
example: '123456'
readOnly: true
name:
type: string
description: The start date of the report
title: Start Date
pattern: ^\d{4}-\d{2}-\d{2}$
example: '2017-01-01'
end_date:
title: Name
description: Name of the report item
example: Current assets
value:
type: number
title: Value
description: The value of the account.
example: 0
items:
type: array
x-apideck-schema-id: BalanceSheetAccountItems
nullable: true
items:
anyOf:
- $ref: '#/components/schemas/BalanceSheetAccount'
- $ref: '#/components/schemas/BalanceSheetAccountRecord'
BalanceSheetAccountRecord:
type: object
x-apideck-schema-id: BalanceSheetAccount
x-apideck-weights:
account_id: critical
name: high
value: critical
items: medium
additionalProperties: false
properties:
account_id:
title: Account Id
description: The unique identifier for the account.
type: string
description: The start date of the report
title: Start Date
pattern: ^\d{4}-\d{2}-\d{2}$
example: '2017-01-01'
assets:
x-apideck-weights:
total: medium
current_assets: medium
fixed_assets: medium
type: object
required:
- total
- current_assets
- fixed_assets
example:
total: 200000
current_assets:
total: 100000
accounts:
- id: '1'
name: Accounts Receivable (A/R)
value: 10000
- id: '2'
name: Accounts Payable (A/P)
value: 10000
fixed_assets:
total: 100000
accounts:
- id: '1'
name: Accounts Receivable (A/R)
value: 10000
- id: '2'
name: Accounts Payable (A/P)
value: 10000
properties:
total:
type: number
description: Total assets
title: Total Assets
example: 100000
current_assets:
x-apideck-weights:
total: medium
accounts: medium
type: object
required:
- total
- accounts
properties:
total:
type: number
description: Total current assets
title: Total Current Assets
example: 100000
accounts:
type: array
items:
type: object
properties:
id:
$ref: '#/components/schemas/Id'
name:
type: string
description: The name of the current asset account
title: Account Name
example: Accounts Receivable (A/R)
value:
type: number
description: The value of the current asset
title: Value
example: 10000
fixed_assets:
x-apideck-weights:
total: medium
accounts: medium
type: object
required:
- total
- accounts
properties:
total:
type: number
description: Total fixed assets
title: Total Fixed Assets
example: 100000
accounts:
type: array
items:
x-apideck-weights:
id: medium
name: medium
value: medium
type: object
properties:
id:
$ref: '#/components/schemas/Id'
name:
type: string
description: The name of the fixed asset account
title: Account Name
example: Accounts Receivable (A/R)
value:
type: number
description: The value of the fixed asset
title: Value
example: 10000
liabilities:
x-apideck-weights:
total: medium
accounts: medium
type: object
required:
- total
- accounts
example:
total: 200000
accounts:
- id: '1'
name: Accounts Payable (A/P)
value: 10000
properties:
total:
type: number
description: Total liabilities
title: Total Liabilities
example: 100000
accounts:
type: array
items:
x-apideck-weights:
id: medium
name: medium
value: medium
type: object
properties:
id:
$ref: '#/components/schemas/Id'
name:
type: string
description: The name of the liability account
title: Account Name
example: Accounts Payable (A/P)
value:
type: number
description: The value of the liability
title: Value
example: 10000
equity:
x-apideck-weights:
total: medium
items: medium
type: object
required:
- total
- items
example:
total: 200000
items:
- id: '1'
name: Retained Earnings
value: 10000
properties:
total:
type: number
description: Total equity
title: Total Equity
example: 100000
items:
type: array
items:
x-apideck-weights:
id: medium
name: medium
value: medium
type: object
properties:
id:
$ref: '#/components/schemas/Id'
name:
type: string
description: The type of the equity
title: Account Name
example: Retained Earnings
value:
type: number
description: The equity amount
title: Value
example: 10000
custom_mappings:
$ref: '#/components/schemas/CustomMappings'
updated_by:
$ref: '#/components/schemas/UpdatedBy'
created_by:
$ref: '#/components/schemas/CreatedBy'
updated_at:
$ref: '#/components/schemas/UpdatedAt'
created_at:
$ref: '#/components/schemas/CreatedAt'
example: '123456'
readOnly: true
name:
type: string
title: Name
description: Name of the report item
example: Current assets
value:
type: number
title: Value
description: The value of the account.
example: 0
BalanceSheetFilter:
type: object
x-apideck-schema-id: BalanceSheetFilter
Expand Down

0 comments on commit 4586e66

Please sign in to comment.