mirror of
https://github.com/andwati/telecom-platform.git
synced 2026-11-24 21:08:47 +00:00
refactor: Replace unused context parameters with blank identifiers and fix variable references
- Replace ctx parameter with _ in provisionTenantContext, provisionDatabaseSchema, provisionStorageResources, configureCarrier, configureRatePlans, setupPaymentProcessing, and validateCompliance methods - Fix tenant_id scope to use wrappedTx.tenantID instead of r.tenantID in TenantScopedTransaction - Fix pricing effectiveness analytics to use ratePlanAnalytics.AverageDiscount and ratePlanAnalytics.TotalSavings instead of analytics.
This commit is contained in:
@@ -172,8 +172,8 @@ func (pi *PricingIntegration) GetPricingEffectiveness(ctx context.Context, tenan
|
||||
ActiveRules: analytics.ActiveRules,
|
||||
TotalRatePlans: ratePlanAnalytics.TotalRatePlans,
|
||||
PlansWithPricing: ratePlanAnalytics.PlansWithPricing,
|
||||
AverageDiscountRate: analytics.DiscountStats.AverageDiscount,
|
||||
TotalSavings: analytics.DiscountStats.TotalDiscountValue,
|
||||
AverageDiscountRate: ratePlanAnalytics.AverageDiscount,
|
||||
TotalSavings: ratePlanAnalytics.TotalSavings,
|
||||
RulesByType: analytics.RulesByType,
|
||||
ConversionImprovement: ratePlanAnalytics.ConversionRate,
|
||||
GeneratedAt: id.GetCurrentTime(),
|
||||
|
||||
Reference in New Issue
Block a user