changedInput schema / properties / costs / description
Previous value: -"Shared costs to split equally"New value: +"Shared costs, split equally between everyone in payments (names must be unique), e.g. [{\"name\":\"Groceries\",\"amount\":140}]"
addedInput schema / properties / costs / items / properties / amount / description
Added value: +"Cost amount, positive number"
addedInput schema / properties / costs / items / properties / name / description
Added value: +"Unique cost label, e.g. 'Weekly shop'"
addedInput schema / properties / costs / minItems
Added value: +1
changedInput schema / properties / payments / description
Previous value: -"What each housemate paid"New value: +"Every housemate sharing the costs and what they already paid (include people who paid 0), e.g. [{\"name\":\"Asha\",\"paid\":150},{\"name\":\"Mira\",\"paid\":0}]"
addedInput schema / properties / payments / items / properties / name / description
Added value: +"Unique housemate name"
addedInput schema / properties / payments / items / properties / paid / description
Added value: +"Amount this housemate already paid towards the costs, 0 or more"
addedInput schema / properties / payments / minItems
Added value: +1
removedOutput schema / properties / balances
Removed value: -{
- "description": "List of balances for each housemate",
- "items": {
- "properties": {
- "balance": {
- "description": "The balance owed or due by the housemate",
- "type": "number"
- },
- "name": {
- "description": "The name of the housemate",
- "type": "string"
- }
- },
- "required": [
- "name",
- "balance"
- ],
- "type": "object"
- },
- "type": "array"
-}
addedOutput schema / properties / note
Added value: +{
+ "description": "Summary of how many payments settle the group",
+ "type": "string"
+}
addedOutput schema / properties / people
Added value: +{
+ "description": "Per-housemate paid, owed and balance",
+ "items": {
+ "properties": {
+ "balance": {
+ "description": "paid minus owed; positive = should receive money, negative = owes money",
+ "type": "number"
+ },
+ "name": {
+ "description": "Housemate name",
+ "type": "string"
+ },
+ "owed": {
+ "description": "Equal share of the total costs",
+ "type": "number"
+ },
+ "paid": {
+ "description": "Amount already paid",
+ "type": "number"
+ }
+ },
+ "required": [
+ "name",
+ "paid",
+ "owed",
+ "balance"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+}
addedOutput schema / properties / total_costs
Added value: +{
+ "description": "Sum of all shared costs",
+ "type": "number"
+}
removedOutput schema / properties / transactions
Removed value: -{
- "description": "List of transactions to settle the balances",
- "items": {
- "properties": {
- "amount": {
- "description": "The amount to be paid",
- "type": "number"
- },
- "from": {
- "description": "The name of the housemate paying",
- "type": "string"
- },
- "to": {
- "description": "The name of the housemate receiving the payment",
- "type": "string"
- }
- },
- "required": [
- "from",
- "to",
- "amount"
- ],
- "type": "object"
- },
- "type": "array"
-}
addedOutput schema / properties / transfers
Added value: +{
+ "description": "Fewest payments that settle all balances (empty when settled)",
+ "items": {
+ "properties": {
+ "amount": {
+ "description": "Amount to transfer",
+ "type": "number"
+ },
+ "from": {
+ "description": "Housemate who pays",
+ "type": "string"
+ },
+ "to": {
+ "description": "Housemate who receives",
+ "type": "string"
+ }
+ },
+ "required": [
+ "from",
+ "to",
+ "amount"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+}
changedOutput schema / required
Previous value: -[
- "balances",
- "transactions"
-]New value: +[
+ "total_costs",
+ "people",
+ "transfers",
+ "note"
+]