Rename v2_order.refund_amount to surplus_credit (#967)

The old name was misleading — this column tracks surplus credit returned
to the user's internal balance during plan upgrades, not a payment
gateway refund. The new name aligns with the existing surplus_amount
and surplus_order_ids naming convention.

Co-authored-by: socksprox <[email protected]>
Co-authored-by: Cursor <[email protected]>
This commit is contained in:
authored and GitHub committed 2026-06-02 11:49:58 +08:00
1 parent 8f66a9af94
commit 34bb1fdbcf
3 files changed
+27 -5

No files matched your search

+1 -1
View File
@@ -18,7 +18,7 @@ use Illuminate\Database\Eloquent\Relations\HasMany;
* @property int $total_amount
* @property int|null $handling_amount
* @property int|null $balance_amount
* @property int|null $refund_amount
* @property int|null $surplus_credit
* @property int|null $surplus_amount
* @property int $type
* @property int $status