feat: add recharge callback processing
This commit is contained in:
+25
-1
@@ -1,6 +1,6 @@
|
||||
from django.contrib import admin
|
||||
|
||||
from .models import CallRecord, ExchangeRate, PointsLedger, PricingRule
|
||||
from .models import CallRecord, ExchangeRate, PointsLedger, PricingRule, RechargeOrder
|
||||
|
||||
|
||||
class ReadOnlyLedgerAdmin(admin.ModelAdmin):
|
||||
@@ -68,6 +68,30 @@ class ExchangeRateAdmin(admin.ModelAdmin):
|
||||
readonly_fields = ("created_at", "updated_at")
|
||||
|
||||
|
||||
@admin.register(RechargeOrder)
|
||||
class RechargeOrderAdmin(ReadOnlyLedgerAdmin):
|
||||
list_display = (
|
||||
"created_at",
|
||||
"order_no",
|
||||
"user",
|
||||
"pay_method",
|
||||
"status",
|
||||
"amount_money",
|
||||
"currency",
|
||||
"points_granted",
|
||||
"payment_txn_no",
|
||||
"paid_at",
|
||||
)
|
||||
list_filter = ("pay_method", "status", "currency", "created_at")
|
||||
search_fields = (
|
||||
"order_no",
|
||||
"user__username",
|
||||
"user__email",
|
||||
"payment_txn_no",
|
||||
)
|
||||
ordering = ("-created_at", "-id")
|
||||
|
||||
|
||||
@admin.register(CallRecord)
|
||||
class CallRecordAdmin(ReadOnlyLedgerAdmin):
|
||||
list_display = (
|
||||
|
||||
Reference in New Issue
Block a user