refactor: Replace map[string]interface{} with map[string]any across currency, handlers, integration, and rateplan packages

- Update BillingSummary.Breakdown field type from map[string]interface{} to map[string]any
- Update Transaction.Metadata field type from map[string]interface{} to map[string]any
- Update RatePlanCurrencyIntegrator subscription and billing metadata to use map[string]any
- Update handler request/response types to use map[string]any (CreateRatePlanRequest, UpdateRatePlanRequest,
This commit is contained in:
nutcas3
2026-05-02 03:21:42 +03:00
parent 31a8886bc0
commit f112aa4c52
27 changed files with 759 additions and 433 deletions
@@ -234,7 +234,7 @@ func (l *TenantEventLogger) LogResourceAccess(ctx context.Context, tenantID, use
TenantID: tenantID,
UserID: userID,
EventType: tenant.TenantEventType("resource_access"),
EventData: map[string]interface{}{
EventData: map[string]any{
"resource_type": resourceType,
"resource_id": resourceID,
"action": action,
@@ -254,7 +254,7 @@ func (l *TenantEventLogger) LogQuotaViolation(ctx context.Context, tenantID, res
TenantID: tenantID,
UserID: "",
EventType: tenant.TenantEventQuotaExceeded,
EventData: map[string]interface{}{
EventData: map[string]any{
"resource_type": resourceType,
"usage": usage,
"limit": limit,