Skip to content

Commit 5fbac24

Browse files
author
sangeet-joy_xero
committed
generated from codegen branch
1 parent b81050f commit 5fbac24

File tree

21 files changed

+1848
-506
lines changed

21 files changed

+1848
-506
lines changed

docs/v1/accounting/index.html

Lines changed: 1013 additions & 209 deletions
Large diffs are not rendered by default.

docs/v1/appstore/index.html

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1634,7 +1634,10 @@ <h2>Parameters</h2>
16341634
"schema" : {
16351635
"$ref" : "#/components/schemas/CreateUsageRecord"
16361636
},
1637-
"example" : "{ \"timestamp\": \"2022-01-21T13:01:00\", \"quantity\": 10 }"
1637+
"example" : {
1638+
"timestamp" : "2022-01-21T13:01:00",
1639+
"quantity" : 10
1640+
}
16381641
}
16391642
},
16401643
"required" : true
@@ -1846,7 +1849,9 @@ <h2>Parameters</h2>
18461849
"schema" : {
18471850
"$ref" : "#/components/schemas/UpdateUsageRecord"
18481851
},
1849-
"example" : "{ \"quantity\": 10 }"
1852+
"example" : {
1853+
"quantity" : 10
1854+
}
18501855
}
18511856
},
18521857
"required" : true

docs/v1/assets/index.html

Lines changed: 34 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1030,7 +1030,6 @@
10301030
};
10311031
defs["BookDepreciationDetail"] = {
10321032
"title" : "",
1033-
"required" : [ "name" ],
10341033
"properties" : {
10351034
"currentCapitalGain" : {
10361035
"type" : "number",
@@ -1084,7 +1083,6 @@
10841083
};
10851084
defs["BookDepreciationSetting"] = {
10861085
"title" : "",
1087-
"required" : [ "name" ],
10881086
"properties" : {
10891087
"depreciationMethod" : {
10901088
"type" : "string",
@@ -1573,7 +1571,28 @@ <h2>Parameters</h2>
15731571
"schema" : {
15741572
"$ref" : "#/components/schemas/Asset"
15751573
},
1576-
"example" : "{ \"assetName\":\"Computer74863\", \"assetNumber\":\"123477544\", \"purchaseDate\":\"2020-01-01\", \"purchasePrice\":100.0, \"disposalPrice\":23.23, \"assetStatus\":\"Draft\", \"bookDepreciationSetting\":{ \"depreciationMethod\":\"StraightLine\", \"averagingMethod\":\"ActualDays\", \"depreciationRate\":0.5, \"depreciationCalculationMethod\":\"None\" }, \"bookDepreciationDetail\":{ \"currentCapitalGain\":5.32, \"currentGainLoss\":3.88, \"depreciationStartDate\":\"2020-01-02\", \"costLimit\":100.0, \"currentAccumDepreciationAmount\":2.25 }, \"AccountingBookValue\":99.5 }"
1574+
"example" : {
1575+
"assetName" : "Computer74863",
1576+
"assetNumber" : "123477544",
1577+
"purchaseDate" : "2020-01-01",
1578+
"purchasePrice" : 100.0,
1579+
"disposalPrice" : 23.23,
1580+
"assetStatus" : "Draft",
1581+
"bookDepreciationSetting" : {
1582+
"depreciationMethod" : "StraightLine",
1583+
"averagingMethod" : "ActualDays",
1584+
"depreciationRate" : 0.5,
1585+
"depreciationCalculationMethod" : "None"
1586+
},
1587+
"bookDepreciationDetail" : {
1588+
"currentCapitalGain" : 5.32,
1589+
"currentGainLoss" : 3.88,
1590+
"depreciationStartDate" : "2020-01-02",
1591+
"costLimit" : 100.0,
1592+
"currentAccumDepreciationAmount" : 2.25
1593+
},
1594+
"AccountingBookValue" : 99.5
1595+
}
15771596
}
15781597
},
15791598
"required" : true
@@ -1734,7 +1753,18 @@ <h2>Parameters</h2>
17341753
"schema" : {
17351754
"$ref" : "#/components/schemas/AssetType"
17361755
},
1737-
"example" : "{ \"assetTypeName\":\"Machinery11004\", \"fixedAssetAccountId\":\"3d8d063a-c148-4bb8-8b3c-a5e2ad3b1e82\", \"depreciationExpenseAccountId\":\"d1602f69-f900-4616-8d34-90af393fa368\", \"accumulatedDepreciationAccountId\":\"9195cadd-8645-41e6-9f67-7bcd421defe8\", \"bookDepreciationSetting\":{ \"depreciationMethod\":\"DiminishingValue100\", \"averagingMethod\":\"ActualDays\", \"depreciationRate\":0.05, \"depreciationCalculationMethod\":\"None\" } }"
1756+
"example" : {
1757+
"assetTypeName" : "Machinery11004",
1758+
"fixedAssetAccountId" : "3d8d063a-c148-4bb8-8b3c-a5e2ad3b1e82",
1759+
"depreciationExpenseAccountId" : "d1602f69-f900-4616-8d34-90af393fa368",
1760+
"accumulatedDepreciationAccountId" : "9195cadd-8645-41e6-9f67-7bcd421defe8",
1761+
"bookDepreciationSetting" : {
1762+
"depreciationMethod" : "DiminishingValue100",
1763+
"averagingMethod" : "ActualDays",
1764+
"depreciationRate" : 0.05,
1765+
"depreciationCalculationMethod" : "None"
1766+
}
1767+
}
17381768
}
17391769
},
17401770
"required" : true

docs/v1/payroll-au/index.html

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4173,7 +4173,25 @@ <h2>Parameters</h2>
41734173
"schema" : {
41744174
"$ref" : "#/components/schemas/PayItem"
41754175
},
4176-
"example" : "{ \"EarningsRates\": [ { \"Name\": \"MyRate\", \"AccountCode\": \"400\", \"TypeOfUnits\": \"4.00\", \"IsExemptFromTax\": true, \"IsExemptFromSuper\": true, \"IsReportableAsW1\": false, \"AllowanceContributesToAnnualLeaveRate\": false, \"AllowanceContributesToOvertimeRate\": false, \"EarningsType\": \"ORDINARYTIMEEARNINGS\", \"EarningsRateID\": \"1fa4e226-b711-46ba-a8a7-4344c9c5fb87\", \"RateType\": \"MULTIPLE\", \"RatePerUnit\": \"10.0\", \"Multiplier\": 1.5, \"Amount\": 5, \"EmploymentTerminationPaymentType\": \"O\" } ] }"
4176+
"example" : {
4177+
"EarningsRates" : [ {
4178+
"Name" : "MyRate",
4179+
"AccountCode" : "400",
4180+
"TypeOfUnits" : "4.00",
4181+
"IsExemptFromTax" : true,
4182+
"IsExemptFromSuper" : true,
4183+
"IsReportableAsW1" : false,
4184+
"AllowanceContributesToAnnualLeaveRate" : false,
4185+
"AllowanceContributesToOvertimeRate" : false,
4186+
"EarningsType" : "ORDINARYTIMEEARNINGS",
4187+
"EarningsRateID" : "1fa4e226-b711-46ba-a8a7-4344c9c5fb87",
4188+
"RateType" : "MULTIPLE",
4189+
"RatePerUnit" : "10.0",
4190+
"Multiplier" : 1.5,
4191+
"Amount" : 5,
4192+
"EmploymentTerminationPaymentType" : "O"
4193+
} ]
4194+
}
41774195
}
41784196
},
41794197
"required" : true
@@ -8365,7 +8383,16 @@ <h2>Parameters</h2>
83658383
"$ref" : "#/components/schemas/PayslipLines"
83668384
}
83678385
},
8368-
"example" : "{ \"Payslip\": { \"EmployeeID\": \"cdfb8371-0b21-4b8a-8903-1024df6c391e\", \"DeductionLines\": [ { \"DeductionTypeID\": \"727af5e8-b347-4ae7-85fc-9b82266d0aec\", \"CalculationType\": \"FIXEDAMOUNT\", \"NumberOfUnits\": 10 } ] } }"
8386+
"example" : {
8387+
"Payslip" : {
8388+
"EmployeeID" : "cdfb8371-0b21-4b8a-8903-1024df6c391e",
8389+
"DeductionLines" : [ {
8390+
"DeductionTypeID" : "727af5e8-b347-4ae7-85fc-9b82266d0aec",
8391+
"CalculationType" : "FIXEDAMOUNT",
8392+
"NumberOfUnits" : 10
8393+
} ]
8394+
}
8395+
}
83698396
}
83708397
},
83718398
"required" : true

0 commit comments

Comments
 (0)