import json


def trigger_mutation_test(limit):
    """ Test data for IFTTT trigger bunq_mutation """
    result = [{
        "created_at": "2018-01-05T11:25:15+00:00",
        "date": "2018-01-05",
        "type": "MANUAL",
        "amount": "1.01",
        "balance": "15.15",
        "account": "NL42BUNQ0123456789",
        "account_name": "Test account",
        "counterparty_account": "NL11BANK1111111111",
        "counterparty_name": "John Doe",
        "description": "Here you are",
        "payment_id": "123e4567-e89b-12d3-a456-426655440001",
        "meta": {
            "id": "1",
            "timestamp": "1515151515"
        }
    }, {
        "created_at": "2014-10-24T09:03:34+00:00",
        "date": "2014-10-24",
        "type": "MANUAL",
        "amount": "2.02",
        "balance": "14.14",
        "account": "NL42BUNQ0123456789",
        "account_name": "Test account",
        "counterparty_account": "NL22BANK2222222222",
        "counterparty_name": "Jane Doe",
        "description": "What I owe you",
        "payment_id": "123e4567-e89b-12d3-a456-426655440002",
        "meta": {
            "id": "2",
            "timestamp": "1414141414"
        }
    }, {
        "created_at": "2008-05-30T04:20:12+00:00",
        "date": "2008-05-30",
        "type": "MANUAL",
        "amount": "-3.03",
        "balance": "12.12",
        "account": "NL42BUNQ0123456789",
        "account_name": "Test account",
        "counterparty_account": "",
        "counterparty_name": "ACME Store Inc.",
        "description": "POS transaction 1234567890",
        "payment_id": "123e4567-e89b-12d3-a456-426655440003",
        "meta": {
            "id": "3",
            "timestamp": "1212121212"
        }
    }]
    return json.dumps({"data": result[:limit]})