Skip to content

Commit 9230953

Browse files
authored
Merge pull request #731 from XeroAPI/petoss-56-byte-to-binary
PETOSS 654 | Byte to Binary type change
2 parents eff9ecd + e3195b1 commit 9230953

31 files changed

+1724
-478
lines changed

docs/accounting/index.html

+1,035-341
Large diffs are not rendered by default.

docs/appstore/index.html

+7-2
Original file line numberDiff line numberDiff line change
@@ -1602,7 +1602,10 @@ <h2>Parameters</h2>
16021602
"schema" : {
16031603
"$ref" : "#/components/schemas/CreateUsageRecord"
16041604
},
1605-
"example" : "{ \"timestamp\": \"2022-01-21T13:01:00\", \"quantity\": 10 }"
1605+
"example" : {
1606+
"timestamp" : "2022-01-21T13:01:00",
1607+
"quantity" : 10
1608+
}
16061609
}
16071610
},
16081611
"required" : true
@@ -1803,7 +1806,9 @@ <h2>Parameters</h2>
18031806
"schema" : {
18041807
"$ref" : "#/components/schemas/UpdateUsageRecord"
18051808
},
1806-
"example" : "{ \"quantity\": 10 }"
1809+
"example" : {
1810+
"quantity" : 10
1811+
}
18071812
}
18081813
},
18091814
"required" : true

docs/assets/index.html

+34-4
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",
@@ -1564,7 +1562,28 @@ <h2>Parameters</h2>
15641562
"schema" : {
15651563
"$ref" : "#/components/schemas/Asset"
15661564
},
1567-
"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 }"
1565+
"example" : {
1566+
"assetName" : "Computer74863",
1567+
"assetNumber" : "123477544",
1568+
"purchaseDate" : "2020-01-01",
1569+
"purchasePrice" : 100.0,
1570+
"disposalPrice" : 23.23,
1571+
"assetStatus" : "Draft",
1572+
"bookDepreciationSetting" : {
1573+
"depreciationMethod" : "StraightLine",
1574+
"averagingMethod" : "ActualDays",
1575+
"depreciationRate" : 0.5,
1576+
"depreciationCalculationMethod" : "None"
1577+
},
1578+
"bookDepreciationDetail" : {
1579+
"currentCapitalGain" : 5.32,
1580+
"currentGainLoss" : 3.88,
1581+
"depreciationStartDate" : "2020-01-02",
1582+
"costLimit" : 100.0,
1583+
"currentAccumDepreciationAmount" : 2.25
1584+
},
1585+
"AccountingBookValue" : 99.5
1586+
}
15681587
}
15691588
},
15701589
"required" : true
@@ -1716,7 +1735,18 @@ <h2>Parameters</h2>
17161735
"schema" : {
17171736
"$ref" : "#/components/schemas/AssetType"
17181737
},
1719-
"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\" } }"
1738+
"example" : {
1739+
"assetTypeName" : "Machinery11004",
1740+
"fixedAssetAccountId" : "3d8d063a-c148-4bb8-8b3c-a5e2ad3b1e82",
1741+
"depreciationExpenseAccountId" : "d1602f69-f900-4616-8d34-90af393fa368",
1742+
"accumulatedDepreciationAccountId" : "9195cadd-8645-41e6-9f67-7bcd421defe8",
1743+
"bookDepreciationSetting" : {
1744+
"depreciationMethod" : "DiminishingValue100",
1745+
"averagingMethod" : "ActualDays",
1746+
"depreciationRate" : 0.05,
1747+
"depreciationCalculationMethod" : "None"
1748+
}
1749+
}
17201750
}
17211751
},
17221752
"required" : true

docs/payroll-au/index.html

+29-2
Original file line numberDiff line numberDiff line change
@@ -4134,7 +4134,25 @@ <h2>Parameters</h2>
41344134
"schema" : {
41354135
"$ref" : "#/components/schemas/PayItem"
41364136
},
4137-
"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\" } ] }"
4137+
"example" : {
4138+
"EarningsRates" : [ {
4139+
"Name" : "MyRate",
4140+
"AccountCode" : "400",
4141+
"TypeOfUnits" : "4.00",
4142+
"IsExemptFromTax" : true,
4143+
"IsExemptFromSuper" : true,
4144+
"IsReportableAsW1" : false,
4145+
"AllowanceContributesToAnnualLeaveRate" : false,
4146+
"AllowanceContributesToOvertimeRate" : false,
4147+
"EarningsType" : "ORDINARYTIMEEARNINGS",
4148+
"EarningsRateID" : "1fa4e226-b711-46ba-a8a7-4344c9c5fb87",
4149+
"RateType" : "MULTIPLE",
4150+
"RatePerUnit" : "10.0",
4151+
"Multiplier" : 1.5,
4152+
"Amount" : 5,
4153+
"EmploymentTerminationPaymentType" : "O"
4154+
} ]
4155+
}
41384156
}
41394157
},
41404158
"required" : true
@@ -8055,7 +8073,16 @@ <h2>Parameters</h2>
80558073
"$ref" : "#/components/schemas/PayslipLines"
80568074
}
80578075
},
8058-
"example" : "{ \"Payslip\": { \"EmployeeID\": \"cdfb8371-0b21-4b8a-8903-1024df6c391e\", \"DeductionLines\": [ { \"DeductionTypeID\": \"727af5e8-b347-4ae7-85fc-9b82266d0aec\", \"CalculationType\": \"FIXEDAMOUNT\", \"NumberOfUnits\": 10 } ] } }"
8076+
"example" : {
8077+
"Payslip" : {
8078+
"EmployeeID" : "cdfb8371-0b21-4b8a-8903-1024df6c391e",
8079+
"DeductionLines" : [ {
8080+
"DeductionTypeID" : "727af5e8-b347-4ae7-85fc-9b82266d0aec",
8081+
"CalculationType" : "FIXEDAMOUNT",
8082+
"NumberOfUnits" : 10
8083+
} ]
8084+
}
8085+
}
80598086
}
80608087
},
80618088
"required" : true

0 commit comments

Comments
 (0)