# Generated by Django 5.0.2 on 2025-08-12 18:55

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('payments', '0004_payment_customer_alter_payment_payment_method'),
    ]

    operations = [
        migrations.CreateModel(
            name='MpesaB2BTransaction',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('conversation_id', models.CharField(max_length=100, unique=True)),
                ('originator_conversation_id', models.CharField(max_length=100)),
                ('command_id', models.CharField(choices=[('BusinessPayBill', 'Business Pay Bill'), ('BusinessBuyGoods', 'Business Buy Goods'), ('DisburseFundsToBusiness', 'Disburse Funds To Business'), ('BusinessToBusinessTransfer', 'Business To Business Transfer')], max_length=30)),
                ('amount', models.DecimalField(decimal_places=2, max_digits=10)),
                ('party_a', models.CharField(max_length=20)),
                ('party_b', models.CharField(max_length=20)),
                ('account_reference', models.CharField(max_length=100)),
                ('remarks', models.CharField(max_length=200)),
                ('result_code', models.IntegerField(blank=True, null=True)),
                ('result_desc', models.CharField(blank=True, max_length=200)),
                ('transaction_id', models.CharField(blank=True, max_length=50)),
                ('transaction_receipt', models.CharField(blank=True, max_length=50)),
                ('transaction_amount', models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True)),
                ('working_account_funds', models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True)),
                ('utility_account_funds', models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True)),
                ('charges_paid_funds', models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('completed_at', models.DateTimeField(blank=True, null=True)),
            ],
        ),
        migrations.CreateModel(
            name='MpesaB2CTransaction',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('conversation_id', models.CharField(max_length=100, unique=True)),
                ('originator_conversation_id', models.CharField(max_length=100)),
                ('command_id', models.CharField(choices=[('SalaryPayment', 'Salary Payment'), ('BusinessPayment', 'Business Payment'), ('PromotionPayment', 'Promotion Payment')], max_length=20)),
                ('amount', models.DecimalField(decimal_places=2, max_digits=10)),
                ('phone_number', models.CharField(max_length=15)),
                ('remarks', models.CharField(max_length=200)),
                ('occasion', models.CharField(blank=True, max_length=100)),
                ('result_code', models.IntegerField(blank=True, null=True)),
                ('result_desc', models.CharField(blank=True, max_length=200)),
                ('transaction_id', models.CharField(blank=True, max_length=50)),
                ('transaction_receipt', models.CharField(blank=True, max_length=50)),
                ('transaction_amount', models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True)),
                ('working_account_funds', models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True)),
                ('utility_account_funds', models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True)),
                ('charges_paid_funds', models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True)),
                ('recipient_registered', models.BooleanField(default=False)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('completed_at', models.DateTimeField(blank=True, null=True)),
            ],
        ),
        migrations.CreateModel(
            name='MpesaBalanceInquiry',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('conversation_id', models.CharField(max_length=100, unique=True)),
                ('originator_conversation_id', models.CharField(max_length=100)),
                ('result_code', models.IntegerField(blank=True, null=True)),
                ('result_desc', models.CharField(blank=True, max_length=200)),
                ('working_account_funds', models.DecimalField(blank=True, decimal_places=2, max_digits=15, null=True)),
                ('utility_account_funds', models.DecimalField(blank=True, decimal_places=2, max_digits=15, null=True)),
                ('charges_paid_funds', models.DecimalField(blank=True, decimal_places=2, max_digits=15, null=True)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('completed_at', models.DateTimeField(blank=True, null=True)),
            ],
        ),
        migrations.CreateModel(
            name='MpesaReversal',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('conversation_id', models.CharField(max_length=100, unique=True)),
                ('originator_conversation_id', models.CharField(max_length=100)),
                ('original_transaction_id', models.CharField(max_length=50)),
                ('amount', models.DecimalField(decimal_places=2, max_digits=10)),
                ('receiver_party', models.CharField(max_length=20)),
                ('remarks', models.CharField(max_length=200)),
                ('occasion', models.CharField(blank=True, max_length=100)),
                ('result_code', models.IntegerField(blank=True, null=True)),
                ('result_desc', models.CharField(blank=True, max_length=200)),
                ('transaction_id', models.CharField(blank=True, max_length=50)),
                ('transaction_receipt', models.CharField(blank=True, max_length=50)),
                ('transaction_amount', models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True)),
                ('working_account_funds', models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True)),
                ('utility_account_funds', models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True)),
                ('charges_paid_funds', models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('completed_at', models.DateTimeField(blank=True, null=True)),
            ],
        ),
    ]
