"""Transaction seed data.""" from datetime import date, datetime from decimal import Decimal from collaborator.constants import transaction as constants transaction_seed_data = [ { "transaction_id": 1, "collaborator_id": 1, "date": date(2019, 9, 8), "transaction_type": constants.TYPE_REVENUE, "description": "Manual revenue", "original_amount": Decimal(100), "collaborator_share": 1.0, "chargeable_amount": Decimal(100), "transferwise_transaction_id": None, "report_id": None, "current_balance": Decimal(100), "created_date": datetime(2019, 9, 8, 7, 6, 5), "voided_transaction_id": None, "currency": "USD", "statement_period_id": 1, }, { "transaction_id": 2, "collaborator_id": 1, "date": date(2019, 10, 9), "transaction_type": constants.TYPE_PAYMENT, "description": "Payment", "original_amount": Decimal(-50), "collaborator_share": 1.0, "chargeable_amount": Decimal(-50), "transferwise_transaction_id": 1, "report_id": 1, "current_balance": Decimal(50), "created_date": datetime(2019, 10, 9, 8, 7, 6), "voided_transaction_id": None, "currency": "USD", "statement_period_id": 1, }, { "transaction_id": 3, "collaborator_id": 1, "date": date(2019, 11, 10), "transaction_type": constants.TYPE_EXPENSE, "description": "Expense", "original_amount": Decimal(-100), "collaborator_share": 1.0, "chargeable_amount": Decimal(-100), "transferwise_transaction_id": None, "report_id": None, "current_balance": Decimal(-50), "created_date": datetime(2019, 11, 10, 9, 8, 7), "voided_transaction_id": None, "currency": "USD", "statement_period_id": 1, }, { "transaction_id": 4, "collaborator_id": 1, "date": date(2020, 1, 2), "transaction_type": constants.TYPE_VOID, "description": "Void", "original_amount": Decimal(100), "collaborator_share": 1.0, "chargeable_amount": Decimal(100), "transferwise_transaction_id": None, "report_id": None, "current_balance": Decimal(25), "created_date": datetime(2020, 1, 2, 3, 4, 5), "voided_transaction_id": 3, "currency": "GBP", "deleted_date": datetime(2021, 1, 2, 3, 4, 5), "statement_period_id": 1, }, { "transaction_id": 5, "collaborator_id": 1, "date": date(2020, 2, 3), "transaction_type": constants.TYPE_REVENUE, "description": "Report revenue", "original_amount": Decimal(1234), "collaborator_share": 1.0, "chargeable_amount": Decimal(1234), "transferwise_transaction_id": None, "report_id": 1, "current_balance": Decimal(1284), "created_date": datetime(2020, 2, 3, 4, 5, 6), "voided_transaction_id": None, "currency": "USD", "statement_period_id": 2, }, { "transaction_id": 6, "collaborator_id": 3, "date": date(2019, 10, 9), "transaction_type": constants.TYPE_REVENUE, "description": "Report revenue", "original_amount": Decimal(9001), "collaborator_share": 1.0, "chargeable_amount": Decimal(9001), "transferwise_transaction_id": None, "report_id": 5, "current_balance": Decimal(9001), "created_date": datetime(2020, 2, 3, 4, 5, 6), "voided_transaction_id": None, "currency": "USD", "statement_period_id": 2, }, { "transaction_id": 7, "collaborator_id": 20, "date": date(2018, 10, 9), "transaction_type": constants.TYPE_CREDIT, "description": "Report revenue", "original_amount": Decimal(9001), "collaborator_share": 1.0, "chargeable_amount": Decimal(9001), "transferwise_transaction_id": 2, "report_id": 5, "current_balance": Decimal(9001), "created_date": datetime(2020, 2, 3, 4, 5, 6), "voided_transaction_id": None, "currency": "USD", "statement_period_id": 1, }, { "transaction_id": 8, "collaborator_id": 21, "date": date(2018, 10, 9), "transaction_type": constants.TYPE_REVENUE, "description": "Report revenue", "original_amount": Decimal(9001), "collaborator_share": 1.0, "chargeable_amount": Decimal(9001), "transferwise_transaction_id": 2, "current_balance": Decimal(9001), "created_date": datetime(2020, 2, 3, 4, 5, 6), "voided_transaction_id": None, "currency": "USD", "statement_period_id": 3, }, { "transaction_id": 9, "collaborator_id": 21, "date": date(2018, 10, 9), "transaction_type": constants.TYPE_REVENUE, "description": "Report revenue", "original_amount": Decimal(9001), "collaborator_share": 1.0, "chargeable_amount": Decimal(9001), "transferwise_transaction_id": 2, "current_balance": Decimal(9001), "created_date": datetime(2020, 2, 3, 4, 5, 6), "voided_transaction_id": None, "currency": "GBP", "statement_period_id": 3, }, { "transaction_id": 10, "collaborator_id": 10, "date": date(2018, 10, 9), "transaction_type": constants.TYPE_REVENUE, "description": "Report revenue", "original_amount": Decimal(9001), "collaborator_share": 1.0, "chargeable_amount": Decimal(9001), "transferwise_transaction_id": 2, "current_balance": Decimal(9001), "created_date": datetime(2020, 2, 3, 4, 5, 6), "voided_transaction_id": None, "currency": "GBP", "statement_period_id": 3, "deleted_date": datetime(2021, 1, 2, 3, 4, 5), "report_id": 8, }, { "transaction_id": 11, "collaborator_id": 10, "date": date(2019, 11, 10), "transaction_type": constants.TYPE_REVENUE, "description": "Revenue", "original_amount": Decimal(500), "collaborator_share": 1.0, "chargeable_amount": Decimal(500), "transferwise_transaction_id": None, "report_id": None, "current_balance": Decimal(500), "created_date": datetime(2019, 11, 10, 9, 8, 7), "voided_transaction_id": None, "currency": "USD", "statement_period_id": 4, }, { "transaction_id": 12, "collaborator_id": 10, "date": date(2019, 11, 11), "transaction_type": constants.TYPE_BALANCE_CLEARING, "description": "Balance clearing", "original_amount": Decimal(-25), "collaborator_share": 1.0, "chargeable_amount": Decimal(-25), "transferwise_transaction_id": None, "report_id": None, "current_balance": Decimal(475), "created_date": datetime(2019, 11, 11, 9, 8, 7), "voided_transaction_id": None, "currency": "USD", "statement_period_id": 4, }, { "transaction_id": 13, "collaborator_id": 10, "date": date(2019, 11, 12), "transaction_type": constants.TYPE_EXPENSE, "description": "Expense", "original_amount": Decimal(-50), "collaborator_share": 1.0, "chargeable_amount": Decimal(-50), "transferwise_transaction_id": None, "report_id": None, "current_balance": Decimal(425), "created_date": datetime(2019, 11, 12, 9, 8, 7), "voided_transaction_id": None, "currency": "USD", "statement_period_id": 4, }, { "transaction_id": 14, "collaborator_id": 10, "date": date(2019, 11, 13), "transaction_type": constants.TYPE_WHT_ALLOCATION, "description": "WHT Allocation", "original_amount": Decimal(-10), "collaborator_share": 1.0, "chargeable_amount": Decimal(-10), "transferwise_transaction_id": None, "report_id": None, "current_balance": Decimal(415), "created_date": datetime(2019, 11, 13, 9, 8, 7), "voided_transaction_id": None, "currency": "USD", "statement_period_id": 4, }, { "transaction_id": 15, "collaborator_id": 10, "date": date(2019, 11, 14), "transaction_type": constants.TYPE_PAYMENT, "description": "Payment", "original_amount": Decimal(-15), "collaborator_share": 1.0, "chargeable_amount": Decimal(-15), "transferwise_transaction_id": None, "report_id": None, "current_balance": Decimal(400), "created_date": datetime(2019, 11, 14, 9, 8, 7), "voided_transaction_id": None, "currency": "USD", "statement_period_id": 4, }, { "transaction_id": 16, "collaborator_id": 10, "date": date(2019, 11, 15), "transaction_type": constants.TYPE_CREDIT, "description": "Credit", "original_amount": Decimal(-100), "collaborator_share": 1.0, "chargeable_amount": Decimal(-100), "transferwise_transaction_id": None, "report_id": None, "current_balance": Decimal(300), "created_date": datetime(2019, 11, 15, 9, 8, 7), "voided_transaction_id": None, "currency": "USD", "statement_period_id": 4, }, { "transaction_id": 17, "collaborator_id": 10, "date": date(2019, 11, 16), "transaction_type": constants.TYPE_DIRECT_PAYMENT, "description": "Direct Payment", "original_amount": Decimal(-75), "collaborator_share": 1.0, "chargeable_amount": Decimal(-75), "transferwise_transaction_id": None, "report_id": None, "current_balance": Decimal(325), "created_date": datetime(2019, 11, 14, 9, 8, 7), "voided_transaction_id": None, "currency": "USD", "statement_period_id": 4, }, { "transaction_id": 18, "collaborator_id": 10, "date": date(2019, 11, 16), "transaction_type": constants.TYPE_PAYMENT_FEES, "description": "Payment Fees", "original_amount": Decimal(-75), "collaborator_share": 1.0, "chargeable_amount": Decimal(-75), "transferwise_transaction_id": None, "report_id": None, "current_balance": Decimal(325), "created_date": datetime(2019, 11, 14, 9, 8, 7), "voided_transaction_id": None, "currency": "USD", "statement_period_id": 4, }, ]