Skip to content

Commit 19141f7

Browse files
committed
Update BookDepreciationDetail
1 parent b5ca731 commit 19141f7

File tree

1 file changed

+47
-23
lines changed

1 file changed

+47
-23
lines changed

xero_assets.yaml

Lines changed: 47 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ servers:
1717
paths:
1818
/Assets:
1919
parameters:
20-
- $ref: '#/components/parameters/requiredHeader'
20+
- $ref: "#/components/parameters/requiredHeader"
2121
get:
2222
security:
2323
- OAuth2:
@@ -33,7 +33,7 @@ paths:
3333
in: query
3434
description: Required when retrieving a collection of assets. See Asset Status Codes
3535
schema:
36-
$ref: '#/components/schemas/AssetStatusQueryParam'
36+
$ref: "#/components/schemas/AssetStatusQueryParam"
3737
required: true
3838
- name: page
3939
in: query
@@ -86,7 +86,7 @@ paths:
8686
content:
8787
application/json:
8888
schema:
89-
$ref: '#/components/schemas/Assets'
89+
$ref: "#/components/schemas/Assets"
9090
example:
9191
pagination:
9292
page: 1
@@ -167,7 +167,7 @@ paths:
167167
- Asset
168168
summary: adds a fixed asset
169169
parameters:
170-
- $ref: '#/components/parameters/idempotencyKey'
170+
- $ref: "#/components/parameters/idempotencyKey"
171171
operationId: createAsset
172172
x-hasAssetsValidationError: true
173173
x-example:
@@ -209,7 +209,7 @@ paths:
209209
content:
210210
application/json:
211211
schema:
212-
$ref: '#/components/schemas/Asset'
212+
$ref: "#/components/schemas/Asset"
213213
example:
214214
assetId: 2257c64a-77ca-444c-a5ea-fa9a588c7039
215215
assetName: Computer74863
@@ -260,7 +260,7 @@ paths:
260260
content:
261261
application/json:
262262
schema:
263-
$ref: '#/components/schemas/Asset'
263+
$ref: "#/components/schemas/Asset"
264264
example:
265265
assetName: Computer74863
266266
assetNumber: "123477544"
@@ -283,7 +283,7 @@ paths:
283283
description: Fixed asset you are creating
284284
/Assets/{id}:
285285
parameters:
286-
- $ref: '#/components/parameters/requiredHeader'
286+
- $ref: "#/components/parameters/requiredHeader"
287287
get:
288288
security:
289289
- OAuth2:
@@ -311,7 +311,7 @@ paths:
311311
content:
312312
application/json:
313313
schema:
314-
$ref: '#/components/schemas/Asset'
314+
$ref: "#/components/schemas/Asset"
315315
example:
316316
assetId: 68f17094-af97-4f1b-b36b-013b45b6ad3c
317317
assetName: Computer47822
@@ -348,7 +348,7 @@ paths:
348348
description: bad input parameter
349349
/AssetTypes:
350350
parameters:
351-
- $ref: '#/components/parameters/requiredHeader'
351+
- $ref: "#/components/parameters/requiredHeader"
352352
get:
353353
security:
354354
- OAuth2:
@@ -367,7 +367,7 @@ paths:
367367
schema:
368368
type: array
369369
items:
370-
$ref: '#/components/schemas/AssetType'
370+
$ref: "#/components/schemas/AssetType"
371371
example:
372372
- assetTypeId: 710255c6-d2ed-4463-b992-06c8685add5e
373373
assetTypeName: Computer Equipment
@@ -411,7 +411,7 @@ paths:
411411
- Asset
412412
summary: adds a fixed asset type
413413
parameters:
414-
- $ref: '#/components/parameters/idempotencyKey'
414+
- $ref: "#/components/parameters/idempotencyKey"
415415
operationId: createAssetType
416416
x-example:
417417
- bookDepreciationSetting:
@@ -497,7 +497,7 @@ paths:
497497
content:
498498
application/json:
499499
schema:
500-
$ref: '#/components/schemas/AssetType'
500+
$ref: "#/components/schemas/AssetType"
501501
example:
502502
assetTypeId: 85509b5d-308e-420d-9532-b85105058916
503503
assetTypeName: Machinery11004
@@ -542,7 +542,7 @@ paths:
542542
content:
543543
application/json:
544544
schema:
545-
$ref: '#/components/schemas/AssetType'
545+
$ref: "#/components/schemas/AssetType"
546546
example:
547547
assetTypeName: Machinery11004
548548
fixedAssetAccountId: 3d8d063a-c148-4bb8-8b3c-a5e2ad3b1e82
@@ -556,7 +556,7 @@ paths:
556556
description: Asset type to add
557557
/Settings:
558558
parameters:
559-
- $ref: '#/components/parameters/requiredHeader'
559+
- $ref: "#/components/parameters/requiredHeader"
560560
get:
561561
security:
562562
- OAuth2:
@@ -573,7 +573,7 @@ paths:
573573
content:
574574
application/json:
575575
schema:
576-
$ref: '#/components/schemas/Setting'
576+
$ref: "#/components/schemas/Setting"
577577
example:
578578
assetNumberPrefix: FA-
579579
assetNumberSequence: "0007"
@@ -619,11 +619,11 @@ components:
619619
type: object
620620
properties:
621621
pagination:
622-
$ref: '#/components/schemas/Pagination'
622+
$ref: "#/components/schemas/Pagination"
623623
items:
624624
type: array
625625
items:
626-
$ref: '#/components/schemas/Asset'
626+
$ref: "#/components/schemas/Asset"
627627
Pagination:
628628
properties:
629629
page:
@@ -684,7 +684,7 @@ components:
684684
description: The price the asset was disposed at
685685
example: "1.0000"
686686
assetStatus:
687-
$ref: '#/components/schemas/AssetStatus'
687+
$ref: "#/components/schemas/AssetStatus"
688688
warrantyExpiryDate:
689689
type: string
690690
description: The date the asset’s warranty expires (if needed) YYYY-MM-DD
@@ -694,9 +694,9 @@ components:
694694
description: The asset's serial number
695695
example: ca4c6b39-4f4f-43e8-98da-5e1f350a6694
696696
bookDepreciationSetting:
697-
$ref: '#/components/schemas/BookDepreciationSetting'
697+
$ref: "#/components/schemas/BookDepreciationSetting"
698698
bookDepreciationDetail:
699-
$ref: '#/components/schemas/BookDepreciationDetail'
699+
$ref: "#/components/schemas/BookDepreciationDetail"
700700
canRollback:
701701
type: boolean
702702
description: Boolean to indicate whether depreciation can be rolled back for this asset individually. This is true if it doesn't have 'legacy' journal entries and if there is no lock period that would prevent this asset from rolling back.
@@ -759,7 +759,7 @@ components:
759759
example: ca4c6b39-4f4f-43e8-98da-5e1f350a6694
760760
description: The account for accumulated depreciation of fixed assets of this type
761761
bookDepreciationSetting:
762-
$ref: '#/components/schemas/BookDepreciationSetting'
762+
$ref: "#/components/schemas/BookDepreciationSetting"
763763
locks:
764764
type: integer
765765
example: 33
@@ -859,6 +859,30 @@ components:
859859
x-is-money: true
860860
example: 5.0000
861861
description: All depreciation occurring in the current financial year.
862+
businessUseCapitalGain:
863+
type: number
864+
format: decimal
865+
x-is-money: true
866+
description: (New Zealand Orgs Only) The portion of capital gain realised from the disposal of a fixed asset that is attributable to its business use.
867+
businessUseCurrentGainLoss:
868+
type: number
869+
format: decimal
870+
x-is-money: true
871+
description: (New Zealand Orgs Only) Represents the gain or loss from the disposal of the business use portion of a fixed asset. This value records the financial result (profit or loss) related specifically to the asset’s business use.
872+
privateUseCapitalGain:
873+
type: number
874+
format: decimal
875+
x-is-money: true
876+
description: (New Zealand Orgs Only) The portion of capital gain realised from the disposal of a fixed asset that is attributable to its private (non-business) use.
877+
privateUseCurrentGainLoss:
878+
type: number
879+
format: decimal
880+
x-is-money: true
881+
description: (New Zealand Orgs Only) Represents the gain or loss from the disposal of the private use portion of a fixed asset. This value records the financial result (profit or loss) related specifically to the asset’s private use.
882+
initialDeductionPercentage:
883+
type: number
884+
format: decimal
885+
description: (New Zealand Orgs Only) The Investment Boost deduction percentage.
862886
Setting:
863887
required:
864888
- name
@@ -909,12 +933,12 @@ components:
909933
description: Array of elements of resource validation errors
910934
type: array
911935
items:
912-
$ref: '#/components/schemas/ResourceValidationErrorsElement'
936+
$ref: "#/components/schemas/ResourceValidationErrorsElement"
913937
fieldValidationErrors:
914938
description: Array of elements of field validation errors
915939
type: array
916940
items:
917-
$ref: '#/components/schemas/FieldValidationErrorsElement'
941+
$ref: "#/components/schemas/FieldValidationErrorsElement"
918942
type:
919943
description: The internal type of error, not accessible externally
920944
type: string

0 commit comments

Comments
 (0)