feat: add admin order refund flow
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
+8
-5
@@ -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
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user