ynab-splitwise-connect / tests / mock_data.json
mock_data.json
Raw
{
    "budgets_response": {
        "data": {
            "budgets": [
                {
                    "id": "1",
                    "name": "Test Budget",
                    "last_modified_on": "2023-03-17T16:56:18Z",
                    "first_month": "2023-02-01",
                    "last_month": "2023-04-01",
                    "date_format": {
                        "format": "MM/DD/YYYY"
                    },
                    "currency_format": {
                        "iso_code": "USD",
                        "example_format": "123,456.78",
                        "decimal_digits": 2,
                        "decimal_separator": ".",
                        "symbol_first": true,
                        "group_separator": ",",
                        "currency_symbol": "$",
                        "display_symbol": true
                    }
                },
                {
                    "id": "1a",
                    "name": "Another Test Budget",
                    "last_modified_on": "2023-03-18T16:56:18Z",
                    "first_month": "2023-02-01",
                    "last_month": "2023-04-01",
                    "date_format": {
                        "format": "MM/DD/YYYY"
                    },
                    "currency_format": {
                        "iso_code": "USD",
                        "example_format": "123,456.78",
                        "decimal_digits": 2,
                        "decimal_separator": ".",
                        "symbol_first": true,
                        "group_separator": ",",
                        "currency_symbol": "$",
                        "display_symbol": true
                    }
                }
            ]
        }
    },
    "accounts_response": {
        "data": {
            "accounts": [
                {
                    "id": "2",
                    "name": "Test Account",
                    "type": "creditCard",
                    "on_budget": true,
                    "closed": false,
                    "note": null,
                    "balance": -10000,
                    "cleared_balance": 5000,
                    "uncleared_balance": -15000,
                    "transfer_payee_id": "3",
                    "deleted": false
                },
                {
                    "id": "2a",
                    "name": "Another Test Account",
                    "type": "creditCard",
                    "on_budget": true,
                    "closed": false,
                    "note": null,
                    "balance": -20000,
                    "cleared_balance": 10000,
                    "uncleared_balance": -30000,
                    "transfer_payee_id": "3",
                    "deleted": false
                }
            ],
            "server_knowledge": 796
        }
    },
    "categories_response": {
        "data": {
            "category_groups": [
                {
                    "id": "4",
                    "name": "Test Category Group",
                    "hidden": false,
                    "deleted": false,
                    "categories": [
                        {
                            "id": "5",
                            "category_group_id": "4",
                            "name": "Test Category",
                            "hidden": false,
                            "original_category_group_id": null,
                            "note": null,
                            "budgeted": 0,
                            "activity": 0,
                            "balance": 0,
                            "goal_type": "MF",
                            "goal_creation_month": "2023-03-01",
                            "goal_target": 1000,
                            "goal_target_month": null,
                            "goal_percentage_complete": 0,
                            "deleted": false
                        },
                        {
                            "id": "5a",
                            "category_group_id": "4",
                            "name": "Another Test Category",
                            "hidden": false,
                            "original_category_group_id": null,
                            "note": null,
                            "budgeted": 0,
                            "activity": 0,
                            "balance": 1000,
                            "goal_type": "MF",
                            "goal_creation_month": "2023-03-01",
                            "goal_target": 2000,
                            "goal_target_month": null,
                            "goal_percentage_complete": 0,
                            "deleted": false
                        }
                    ]
                },
                {
                    "id": "4a",
                    "name": "Another Test Category Group",
                    "hidden": false,
                    "deleted": false,
                    "categories": [
                        {
                            "id": "5b",
                            "category_group_id": "4a",
                            "name": "Yet Another Test Category",
                            "hidden": false,
                            "original_category_group_id": null,
                            "note": null,
                            "budgeted": 0,
                            "activity": 0,
                            "balance": 1500,
                            "goal_type": "MF",
                            "goal_creation_month": "2023-03-01",
                            "goal_target": 3000,
                            "goal_target_month": null,
                            "goal_percentage_complete": 0,
                            "deleted": false
                        }
                    ]
                }
            ]
        }
    },
    "transactions_response": {
        "data": {
            "transactions": [
                {
                    "id": "6",
                    "date": "2023-02-15",
                    "amount": -500,
                    "memo": "Test",
                    "cleared": "uncleared",
                    "approved": false,
                    "flag_color": null,
                    "account_id": "2",
                    "payee_id": "7",
                    "category_id": "5",
                    "transfer_account_id": null,
                    "transfer_transaction_id": null,
                    "matched_transaction_id": null,
                    "import_id": null,
                    "deleted": false,
                    "account_name": "Test Account",
                    "payee_name": "Test Payee",
                    "category_name": "Test Category",
                    "subtransactions": []
                },
                {
                    "id": "6a",
                    "date": "2023-02-20",
                    "amount": -1000,
                    "memo": "Another Test",
                    "cleared": "uncleared",
                    "approved": false,
                    "flag_color": null,
                    "account_id": "2",
                    "payee_id": "7",
                    "category_id": "5a",
                    "transfer_account_id": null,
                    "transfer_transaction_id": null,
                    "matched_transaction_id": null,
                    "import_id": null,
                    "deleted": false,
                    "account_name": "Test Account",
                    "payee_name": "Test Payee",
                    "category_name": "Another Test Category",
                    "subtransactions": []
                }
            ]
        }
    },
    "payees_response": {
        "data": {
            "payees": [
                {
                    "id": "7",
                    "name": "Test Payee",
                    "transfer_account_id": null,
                    "deleted": false
                },
                {
                    "id": "7a",
                    "name": "Another Test Payee",
                    "transfer_account_id": null,
                    "deleted": false
                }
            ]
        }
    }
}