erio
b4a42a640d
refactor: extract helpers to reduce duplication and function length in gateway billing
- Extract resolveChannelPricing to DRY the resolver pattern shared by calculateImageCost/calculateTokenCost
- Remove unnecessary IIFE wrapper and pass accountRateMultiplier as parameter
- Extract resolveBillingMode, resolveMediaType, optionalSubscriptionID to simplify buildRecordUsageLog (104→65 lines)
- Extract shouldDeductAPIKeyQuota/shouldUpdateRateLimits/shouldUpdateAccountQuota methods on postUsageBillingParams to unify duplicated billing conditions
2026-04-04 11:23:01 +08:00
..
2026-03-30 15:36:53 +08:00
2026-03-18 15:03:24 +08:00
2026-04-04 11:21:12 +08:00
2026-03-27 14:33:05 +08:00
2026-04-04 11:17:24 +08:00
2026-04-04 11:17:24 +08:00
2026-04-04 11:09:28 +08:00
2026-04-04 11:23:01 +08:00
2026-03-17 15:38:18 +08:00
2026-03-09 19:55:18 +08:00
2026-03-18 14:13:52 +08:00