from django.contrib import admin
from payments.models import Payment


@admin.register(Payment)
class PaymentAdmin(admin.ModelAdmin):
    list_display = ('paystack_reference', 'type', 'amount', 'status', 'verified_at', 'created_at')
    list_filter = ('type', 'status', 'created_at')
    search_fields = ('paystack_reference',)
    readonly_fields = ('id', 'raw_webhook_payload', 'created_at', 'updated_at')
