fix: package-based compliance audit — feature DIFF, remove hardcoded fallbacks
Build and Deploy to Kubernetes / build-and-deploy (push) Successful in 8m12s
Build and Deploy to Kubernetes / build-and-deploy (push) Successful in 8m12s
- ActivateClubMembership: replace GetAllFeatureIds with PackageFeature DIFF (Q20) - ActivateClubMembership: fix re-activation early return — check current cycle - AcceptClubMembershipContract: same feature DIFF logic - VerifyPackagePurchase: remove ?? 2.0m fallback, throw if package null - PackageService: remove ?? 2.0m fallback for DiscountMultiplier - UserOrderService: remove ?? 1B fallback for MagicWalletMaxDeposit - SystemConstants: remove 9 dead [Obsolete] constants (per-package values)
This commit is contained in:
+3
-1
@@ -101,7 +101,9 @@ public class VerifyPackagePurchaseCommandHandler
|
||||
|
||||
// شارژ DiscountBalance (موجودی تخفیف) — ضریب تخفیف از پکیج
|
||||
var oldDiscountBalance = wallet.DiscountBalance;
|
||||
var discountMultiplier = order.Package?.DiscountMultiplier ?? 2.0m;
|
||||
if (order.Package == null)
|
||||
throw new NotFoundException("پکیج مرتبط با سفارش یافت نشد");
|
||||
var discountMultiplier = order.Package.DiscountMultiplier;
|
||||
var discountAmount = (long)(order.Amount * discountMultiplier);
|
||||
wallet.DiscountBalance += discountAmount;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user