feat: add admin order refund flow

Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
2026-05-24 09:05:27 -07:00
parent f2033fd4b9
commit 1726a584fa
14 changed files with 672 additions and 9 deletions
+8 -5
View File
@@ -140,9 +140,12 @@ const (
)
const (
OrderNotExist uint32 = 61001
PaymentMethodNotFound uint32 = 61002
OrderStatusError uint32 = 61003
InsufficientOfPeriod uint32 = 61004
ExistAvailableTraffic uint32 = 61005
OrderNotExist uint32 = 61001
PaymentMethodNotFound uint32 = 61002
OrderStatusError uint32 = 61003
InsufficientOfPeriod uint32 = 61004
ExistAvailableTraffic uint32 = 61005
OrderAlreadyRefunded uint32 = 61006
OrderRefundNoSubscription uint32 = 61007
OrderRefundCommissionMismatch uint32 = 61008
)
+7 -4
View File
@@ -98,10 +98,13 @@ func init() {
UseridNotMatch: "Userid not match",
// Order error
OrderNotExist: "Order does not exist",
PaymentMethodNotFound: "Payment method not found",
OrderStatusError: "Order status error",
InsufficientOfPeriod: "Insufficient number of period",
OrderNotExist: "Order does not exist",
PaymentMethodNotFound: "Payment method not found",
OrderStatusError: "Order status error",
InsufficientOfPeriod: "Insufficient number of period",
OrderAlreadyRefunded: "Order already refunded",
OrderRefundNoSubscription: "Refund target subscription not found",
OrderRefundCommissionMismatch: "Refund commission source not found",
// Permission error
PermissionDenied: "Permission denied",