Skip to content

Commit

Permalink
Automated update by SDK Generator version:3.3.1 commit:62cfc01
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jun 10, 2024
1 parent edf239d commit ec5a4ce
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/gen/docs/models/BalanceSheetAccount.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ A balance sheet account represents the financial position of a company at a spec
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
`account_id` | **string** | The unique identifier for the account. | [optional]
`code` | **string** | The code of the account. | [optional]
`name` | **string** | Name of the report item | [optional]
`value` | **number** | The value of the account. | [optional]
`items` | **Array<BalanceSheetAccount \| BalanceSheetAccountRecord>** | | [optional]
Expand Down
1 change: 1 addition & 0 deletions src/gen/docs/models/BalanceSheetAccountRecord.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
`account_id` | **string** | The unique identifier for the account. | [optional]
`code` | **string** | The code of the account. | [optional]
`name` | **string** | Name of the report item | [optional]
`value` | **number** | The value of the account. | [optional]

Expand Down
8 changes: 8 additions & 0 deletions src/gen/models/BalanceSheetAccount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ export interface BalanceSheetAccount {
* @memberof BalanceSheetAccount
*/
readonly account_id?: string
/**
* The code of the account.
* @type {string}
* @memberof BalanceSheetAccount
*/
code?: string
/**
* Name of the report item
* @type {string}
Expand Down Expand Up @@ -59,6 +65,7 @@ export function BalanceSheetAccountFromJSONTyped(
}
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')
Expand All @@ -77,6 +84,7 @@ export function BalanceSheetAccountToJSON(value?: BalanceSheetAccount | null): a
return null
}
return {
code: value.code,
name: value.name,
value: value.value,
items:
Expand Down
8 changes: 8 additions & 0 deletions src/gen/models/BalanceSheetAccountRecord.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ export interface BalanceSheetAccountRecord {
* @memberof BalanceSheetAccountRecord
*/
readonly account_id?: string
/**
* The code of the account.
* @type {string}
* @memberof BalanceSheetAccountRecord
*/
code?: string
/**
* Name of the report item
* @type {string}
Expand Down Expand Up @@ -52,6 +58,7 @@ export function BalanceSheetAccountRecordFromJSONTyped(
}
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']
}
Expand All @@ -65,6 +72,7 @@ export function BalanceSheetAccountRecordToJSON(value?: BalanceSheetAccountRecor
return null
}
return {
code: value.code,
name: value.name,
value: value.value
}
Expand Down
4 changes: 4 additions & 0 deletions src/gen/tests/apis/AccountingApiTest.api.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,18 +245,21 @@ describe('AccountingApi', () => {
currency: 'USD',
assets: {
account_id: '123456',
code: '1000',
name: 'Current assets',
value: 0,
items: [{}]
},
liabilities: {
account_id: '123456',
code: '1000',
name: 'Current assets',
value: 0,
items: [{}]
},
equity: {
account_id: '123456',
code: '1000',
name: 'Current assets',
value: 0,
items: [{}]
Expand All @@ -270,6 +273,7 @@ describe('AccountingApi', () => {
uncategorized_items: [
{
account_id: '123456',
code: '1000',
name: 'Current assets',
value: 0,
items: [Array]
Expand Down

0 comments on commit ec5a4ce

Please sign in to comment.