Skip to content

feat(charges): add intent override support - #4542

Merged
turip merged 3 commits into
mainfrom
feat/charges-override-support
Jun 18, 2026
Merged

turip merged 3 commits into
mainfrom
feat/charges-override-support

Conversation

@turip

@turip turip commented Jun 18, 2026 •

Copy link
Copy Markdown
Member

Summary

Adds persisted intent override support for flat-fee and usage-based charges.

Manual edits to flat-fee or usage-based invoice output need a durable marker so the charge can preserve the original subscription-generated intent while also remembering the manually accepted effective output. This PR stores that overlay on the charge row, maps it through the charge domain objects, and reads/writes it through the flat-fee and usage-based adapters.

Business Context

When a user manually edits invoice-backed charge output, subscription sync must not silently re-materialize the invoice line from the original rate card intent and erase that accepted manual change. Persisting an intent override lets the system distinguish the original charge intent from the manually overridden effective intent.

This is the foundation for invoice edits that should survive future subscription sync runs while keeping the original generated intent available for audit and support.

Changes

  • Adds shared intentoverride models and Ent mixins for common override fields.
  • Adds flat-fee-specific override fields including feature key, payment term, prorating, amount before proration, and percentage discounts.
  • Adds usage-based-specific override fields including feature key, price, and discounts.
  • Wires flat-fee and usage-based adapters to update, read, and clear overrides.
  • Adds adapter DB coverage for writing, reading, explicit clearing, and ignoring stale override columns when override_kind is absent.
  • Merges the flat-fee and usage-based DB changes into one migration.
  • Avoids emitting empty tax-code references in the customer charge API tax-config conversion.

Validation

  • direnv exec . make generate
  • direnv exec . atlas migrate --env local validate
  • direnv exec . atlas migrate --env local diff intent_override_schema_check
  • env POSTGRES_HOST=127.0.0.1 go test -tags=dynamic -count=1 ./openmeter/billing/charges/flatfee/adapter ./openmeter/billing/charges/usagebased/adapter
  • direnv exec . golangci-lint run --fix

make test-nocache was intentionally left for CI per request.

Summary by CodeRabbit

  • New Features

    • Added charge intent override support for both flat-fee and usage-based charges, allowing updates to intent metadata (name/description/metadata), tax behavior and tax code, service/billing periods, and pricing/discount details (including pro-rating and payment terms where applicable).
  • Tests

    • Added integration tests covering persistence, explicit field clearing vs full removal, and handling of stale override columns for both charge types.

@coderabbitai

coderabbitai Bot commented Jun 18, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

Pull request was closed or merged during review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 090d03c2-e8bf-4793-9262-5c110f8fb200

📥 Commits

Reviewing files that changed from the base of the PR and between 66bc10c and d2c2418.

⛔ Files ignored due to path filters (16)
  • openmeter/ent/db/chargeflatfee.go is excluded by !**/ent/db/**
  • openmeter/ent/db/chargeflatfee/chargeflatfee.go is excluded by !**/ent/db/**
  • openmeter/ent/db/chargeflatfee/where.go is excluded by !**/ent/db/**
  • openmeter/ent/db/chargeflatfee_create.go is excluded by !**/ent/db/**
  • openmeter/ent/db/chargeflatfee_update.go is excluded by !**/ent/db/**
  • openmeter/ent/db/chargeusagebased.go is excluded by !**/ent/db/**
  • openmeter/ent/db/chargeusagebased/chargeusagebased.go is excluded by !**/ent/db/**
  • openmeter/ent/db/chargeusagebased/where.go is excluded by !**/ent/db/**
  • openmeter/ent/db/chargeusagebased_create.go is excluded by !**/ent/db/**
  • openmeter/ent/db/chargeusagebased_update.go is excluded by !**/ent/db/**
  • openmeter/ent/db/entmixinaccessor.go is excluded by !**/ent/db/**
  • openmeter/ent/db/migrate/schema.go is excluded by !**/ent/db/**
  • openmeter/ent/db/mutation.go is excluded by !**/ent/db/**
  • openmeter/ent/db/runtime.go is excluded by !**/ent/db/**
  • openmeter/ent/db/setorclear.go is excluded by !**/ent/db/**
  • tools/migrate/migrations/atlas.sum is excluded by !**/*.sum, !**/*.sum
📒 Files selected for processing (17)
  • api/v3/handlers/customers/charges/convert.go
  • openmeter/billing/charges/flatfee/adapter/charge.go
  • openmeter/billing/charges/flatfee/adapter/intentoverride_test.go
  • openmeter/billing/charges/flatfee/adapter/mapper.go
  • openmeter/billing/charges/flatfee/charge.go
  • openmeter/billing/charges/models/intentoverride/flatfee.go
  • openmeter/billing/charges/models/intentoverride/mixin.go
  • openmeter/billing/charges/models/intentoverride/usagebased.go
  • openmeter/billing/charges/usagebased/adapter/charge.go
  • openmeter/billing/charges/usagebased/adapter/intentoverride_test.go
  • openmeter/billing/charges/usagebased/adapter/mapper.go
  • openmeter/billing/charges/usagebased/charge.go
  • openmeter/ent/schema/chargesflatfee.go
  • openmeter/ent/schema/chargesusagebased.go
  • pkg/framework/entutils/entmixinaccessor/mixinaccessor.tpl
  • tools/migrate/migrations/20260618144808_add_charge_intent_overrides.down.sql
  • tools/migrate/migrations/20260618144808_add_charge_intent_overrides.up.sql
✅ Files skipped from review due to trivial changes (1)
  • api/v3/handlers/customers/charges/convert.go
🚧 Files skipped from review as they are similar to previous changes (13)
  • openmeter/billing/charges/usagebased/charge.go
  • openmeter/ent/schema/chargesusagebased.go
  • openmeter/billing/charges/usagebased/adapter/mapper.go
  • openmeter/ent/schema/chargesflatfee.go
  • tools/migrate/migrations/20260618144808_add_charge_intent_overrides.down.sql
  • openmeter/billing/charges/usagebased/adapter/charge.go
  • openmeter/billing/charges/flatfee/charge.go
  • tools/migrate/migrations/20260618144808_add_charge_intent_overrides.up.sql
  • openmeter/billing/charges/models/intentoverride/usagebased.go
  • pkg/framework/entutils/entmixinaccessor/mixinaccessor.tpl
  • openmeter/billing/charges/flatfee/adapter/intentoverride_test.go
  • openmeter/billing/charges/models/intentoverride/mixin.go
  • openmeter/billing/charges/models/intentoverride/flatfee.go

📝 Walkthrough

Walkthrough

Introduces a new intentoverride package with shared OverrideBase, FlatFee, and UsageBased models and Ent mixins. These are wired into ChargeFlatFee and ChargeUsageBased schemas, a DB migration adds the override columns, adapters for both charge types gain override CRUD, ChargeBase structs gain an IntentOverride field, the entmixinaccessor template is fixed for NillableValue, and integration test suites cover both charge types end-to-end.

Changes

Charge Intent Override Feature

Layer / File(s) Summary
OverrideBase domain model and Ent mixin
openmeter/billing/charges/models/intentoverride/mixin.go
Defines Kind, TaxBehaviorOverride, OverrideBase with tri-state semantics, the overrideBaseMixin Ent fields, and generic CreateBase/UpdateBase/MapBaseFromDB helpers with all option-pointer and closed-period conversion utilities.
FlatFee override model and Ent mixin
openmeter/billing/charges/models/intentoverride/flatfee.go
Adds flatFeeMixin Ent fields, PercentageDiscountsOverride, the FlatFee struct with mo.Option tri-state semantics, and generic CreateFlatFee/UpdateFlatFee/MapFlatFeeFromDB helpers.
UsageBased override model and Ent mixin
openmeter/billing/charges/models/intentoverride/usagebased.go
Adds UsageBasedMixin Ent fields (feature key, JSONB price/discounts), the UsageBased struct, and generic CreateUsageBased/UpdateUsageBased/MapUsageBasedFromDB helpers.
DB migration and Ent schema wiring
openmeter/ent/schema/chargesflatfee.go, openmeter/ent/schema/chargesusagebased.go, tools/migrate/migrations/20260618144808_add_charge_intent_overrides.*
Registers FlatFeeMixin and UsageBasedMixin on both Ent schemas and adds the up/down SQL migration adding all override columns to charge_flat_fees and charge_usage_based.
entmixinaccessor template fix
pkg/framework/entutils/entmixinaccessor/mixinaccessor.tpl
Changes the generated getter return-type condition from Nillable to NillableValue so mixin-added nillable-value fields produce correct pointer return types.
IntentOverride field on ChargeBase
openmeter/billing/charges/flatfee/charge.go, openmeter/billing/charges/usagebased/charge.go
Adds optional IntentOverride pointer fields and conditional validation to ChargeBase for both flat-fee and usage-based charge types.
Flat-fee adapter integration
openmeter/billing/charges/flatfee/adapter/charge.go, openmeter/billing/charges/flatfee/adapter/mapper.go
Integrates intentoverride.UpdateFlatFee into UpdateCharge, updates MapChargeBaseFromDB to populate IntentOverride from intentoverride.MapFlatFeeFromDB.
Usage-based adapter integration
openmeter/billing/charges/usagebased/adapter/charge.go, openmeter/billing/charges/usagebased/adapter/mapper.go
Integrates intentoverride.UpdateUsageBased into UpdateCharge and populates IntentOverride in MapChargeBaseFromDB via intentoverride.MapUsageBasedFromDB.
Flat-fee integration tests
openmeter/billing/charges/flatfee/adapter/intentoverride_test.go
Adds FlatFeeIntentOverrideAdapterSuite covering update/read/verify, explicit field clearing with raw DB assertions, nil-kind stale column guard, and test helpers.
Usage-based integration tests
openmeter/billing/charges/usagebased/adapter/intentoverride_test.go
Adds UsageBasedIntentOverrideAdapterSuite with the same coverage pattern including helpers for charge/customer/feature creation.
Cosmetic whitespace
api/v3/handlers/customers/charges/convert.go
Blank line added in convertTaxCodeConfigToAPI; no logic change.

Sequence Diagram(s)

sequenceDiagram
  participant Adapter as Flat-fee/Usage-based<br/>Adapter
  participant UpdateCharge
  participant intentoverride as intentoverride pkg
  participant EntDB as Ent DB Builder
  participant MapBaseFromDB as Map Function

  Adapter->>UpdateCharge: UpdateCharge(ctx, charge)
  UpdateCharge->>EntDB: chargemeta.Update(builder)
  UpdateCharge->>intentoverride: UpdateFlatFee/UpdateUsageBased<br/>(builder, charge.IntentOverride)
  intentoverride->>intentoverride: Normalize + Validate override<br/>(or clear all if nil)
  intentoverride->>EntDB: Set/Clear override columns
  EntDB-->>UpdateCharge: built update statement
  UpdateCharge->>EntDB: Exec() on DB
  EntDB-->>UpdateCharge: dbUpdatedCharge entity
  UpdateCharge->>MapBaseFromDB: MapChargeBaseFromDB(dbUpdatedCharge)
  MapBaseFromDB->>intentoverride: MapFlatFeeFromDB/<br/>MapUsageBasedFromDB(entity)
  intentoverride-->>MapBaseFromDB: *FlatFee/*UsageBased<br/>(nil if kind absent)
  MapBaseFromDB->>MapBaseFromDB: return ChargeBase{<br/>IntentOverride: ...}
  MapBaseFromDB-->>UpdateCharge: (ChargeBase, error)
  UpdateCharge-->>Adapter: result with populated<br/>or cleared override
Loading

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~60 minutes

Possibly related PRs

  • openmeterio/openmeter#4350: Overlaps flat-fee adapter mapping and UpdateCharge code paths that this PR extends with intent-override wiring.
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 14.29% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately captures the core feature being added—intent override support for charges—and directly reflects the substantial changes across flat-fee and usage-based billing models.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/charges-override-support

Warning

Review ran into problems

🔥 Problems

Stopped waiting for pipeline failures after 30000ms. One of your pipelines takes longer than our 30000ms fetch window to run, so review may not consider pipeline-failure results for inline comments if any failures occurred after the fetch window. Increase the timeout if you want to wait longer or run a @coderabbit review after the pipeline has finished.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@turip
turip marked this pull request as ready for review June 18, 2026 14:54
@turip
turip requested a review from a team as a code owner June 18, 2026 14:54
@turip turip added release-note/feature Release note: Exciting New Features area/billing labels Jun 18, 2026
@greptile-apps

greptile-apps Bot commented Jun 18, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

Adds persisted intent override support for flat-fee and usage-based charges, enabling manual invoice edits that survive future subscription sync runs. A new intentoverride package provides shared Ent mixins and domain models; both charge adapters are wired to write, read, and atomically clear the override fields via UpdateCharge.

  • Introduces OverrideBase, FlatFee, and UsageBased domain models with three-state field encoding (None / Some(nil) = clear / Some(value) = override) mapped through a pair of Ent mixins added to the ChargeFlatFee and ChargeUsageBased schemas.
  • Adds UpdateFlatFee / UpdateUsageBased updater functions that perform a full atomic replacement of all override columns on every UpdateCharge call, and clears all columns when IntentOverride == nil.
  • Adds one merged migration (20260618144808_add_charge_intent_overrides) with matching down script, and a corrected mixin-accessor code-gen template ($f.NillableValue instead of $f.Nillable).

Confidence Score: 5/5

Safe to merge — additive migration with nullable columns only, full-replacement update semantics are consistent, and all three encoding states round-trip correctly through the DB.

All new columns are nullable and additive; no existing rows are modified. The three-state field encoding (NULL / empty-string / value) is applied uniformly across Create, Update, and Map paths for both charge types. The clearOnBaseUpdater path correctly clears every column when the override is removed. Tests cover write, read, explicit clear, and stale-column scenarios.

No files require special attention.

Important Files Changed

Filename Overview
openmeter/billing/charges/models/intentoverride/mixin.go Core shared domain model and Ent mixin; three-state string encoding (null/empty/"value") for Description and FeatureKey is consistent throughout Create/Update/Map paths.
openmeter/billing/charges/models/intentoverride/flatfee.go FlatFee override domain model; PercentageDiscounts uses three-state mo.Option encoding via a PercentageDiscountsOverride wrapper struct; validation and DB mapping are consistent.
openmeter/billing/charges/models/intentoverride/usagebased.go UsageBased override domain model; FeatureKey uses two-state *string (no clear sentinel), diverging from FlatFee's three-state mo.Option — appears intentional given the different domain semantics.
openmeter/billing/charges/flatfee/adapter/charge.go Wires intentoverride.UpdateFlatFee into UpdateCharge; CreateCharges path intentionally leaves override fields unset (charges are always created from subscription intents).
openmeter/billing/charges/usagebased/adapter/charge.go Wires intentoverride.UpdateUsageBased into UpdateCharge; same pattern as the flat-fee adapter.
tools/migrate/migrations/20260618144808_add_charge_intent_overrides.up.sql Additive-only migration (all new nullable columns); no existing data is touched. Matching down script is present.
pkg/framework/entutils/entmixinaccessor/mixinaccessor.tpl Fixes code-gen template: GetX() methods on Optional (non-Nillable) mixin fields previously emitted a spurious * prefix; switching to $f.NillableValue restricts the pointer return type to explicitly Nillable fields only.
openmeter/ent/db/setorclear.go Generated SetOrClear helpers for all new override fields on both charge types; logic is uniform and correct.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[UpdateCharge called] --> B{IntentOverride == nil?}
    B -- yes --> C[clearOnBaseUpdater\nclears all override columns]
    B -- no --> D[Normalize + Validate override]
    D --> E[UpdateBase\nsets Kind, Name, Description,\nMetadata, TaxBehavior, TaxCodeID,\nServicePeriod, FullServicePeriod,\nBillingPeriod]
    E --> F{Charge type?}
    F -- FlatFee --> G[UpdateFlatFee\nalso sets FeatureKey, PaymentTerm,\nProRating, AmountBeforeProration,\nPercentageDiscounts]
    F -- UsageBased --> H[UpdateUsageBased\nalso sets FeatureKey, Price,\nDiscounts]
    G --> I[Save to DB]
    H --> I
    C --> I
    I --> J[MapChargeBaseFromDB\nMapBaseFromDB checks override_kind\nnon-nil to hydrate override]
    J --> K[Return ChargeBase\nwith IntentOverride]
Loading
%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%%
flowchart TD
    A[UpdateCharge called] --> B{IntentOverride == nil?}
    B -- yes --> C[clearOnBaseUpdater\nclears all override columns]
    B -- no --> D[Normalize + Validate override]
    D --> E[UpdateBase\nsets Kind, Name, Description,\nMetadata, TaxBehavior, TaxCodeID,\nServicePeriod, FullServicePeriod,\nBillingPeriod]
    E --> F{Charge type?}
    F -- FlatFee --> G[UpdateFlatFee\nalso sets FeatureKey, PaymentTerm,\nProRating, AmountBeforeProration,\nPercentageDiscounts]
    F -- UsageBased --> H[UpdateUsageBased\nalso sets FeatureKey, Price,\nDiscounts]
    G --> I[Save to DB]
    H --> I
    C --> I
    I --> J[MapChargeBaseFromDB\nMapBaseFromDB checks override_kind\nnon-nil to hydrate override]
    J --> K[Return ChargeBase\nwith IntentOverride]
Loading

Reviews (2): Last reviewed commit: "fix(charges): address intent override re..." | Re-trigger Greptile

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 4

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@openmeter/billing/charges/flatfee/adapter/intentoverride_test.go`:
- Around line 248-260: The test helper requireExplicitClearOverrideMatches
currently only asserts a subset of override fields (Description, TaxBehavior,
FeatureKey, PercentageDiscounts) have been cleared, which means regressions
where other fields are not properly cleared won't be caught. Add assertions for
all remaining base and flat-fee override fields that should be cleared in the
explicit clear update operation to ensure comprehensive coverage of the clear
behavior.

In `@openmeter/billing/charges/models/intentoverride/flatfee.go`:
- Around line 97-130: The FlatFee.Validate() method needs to add validation for
the FeatureKey field to reject empty-string values. Add a check that verifies if
FeatureKey is present and not an empty string, appending an error to the errs
slice if FeatureKey is set to an empty string. This prevents the tri-state
semantics issue where an empty string becomes indistinguishable from a cleared
value after database round-trips, ensuring set/clear behavior remains stable and
predictable.

In `@openmeter/billing/charges/models/intentoverride/mixin.go`:
- Around line 111-146: The OverrideBase.Validate() method currently doesn't
validate that the Name field is not empty, which defers validation failure to
persistence time instead of performing domain validation here. Add a validation
check in the Validate() method (after the Kind validation check) to ensure
o.Name is not empty, and if it is empty, append an error to the errs slice using
fmt.Errorf with an appropriate message prefix like "name:", following the same
pattern used for validating other fields like Kind, TaxBehavior, ServicePeriod,
FullServicePeriod, and BillingPeriod.

In `@openmeter/billing/charges/usagebased/adapter/intentoverride_test.go`:
- Around line 242-255: The test helper function
requireExplicitClearOverrideMatches needs to be extended to assert that all
omitted base override fields are properly cleared, not just the currently
validated subset. Review the intentoverride.UsageBased struct definition to
identify all fields that should be cleared during an explicit clear operation,
then add corresponding assertions in the helper function to verify each of these
fields is either nil or empty as appropriate. This ensures the helper
comprehensively validates the full-replace semantics of UpdateCharge on clear
updates.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 798a7bc6-ec35-4860-9a3f-de97154ec30b

📥 Commits

Reviewing files that changed from the base of the PR and between d1f5f53 and 66bc10c.

⛔ Files ignored due to path filters (16)
  • openmeter/ent/db/chargeflatfee.go is excluded by !**/ent/db/**
  • openmeter/ent/db/chargeflatfee/chargeflatfee.go is excluded by !**/ent/db/**
  • openmeter/ent/db/chargeflatfee/where.go is excluded by !**/ent/db/**
  • openmeter/ent/db/chargeflatfee_create.go is excluded by !**/ent/db/**
  • openmeter/ent/db/chargeflatfee_update.go is excluded by !**/ent/db/**
  • openmeter/ent/db/chargeusagebased.go is excluded by !**/ent/db/**
  • openmeter/ent/db/chargeusagebased/chargeusagebased.go is excluded by !**/ent/db/**
  • openmeter/ent/db/chargeusagebased/where.go is excluded by !**/ent/db/**
  • openmeter/ent/db/chargeusagebased_create.go is excluded by !**/ent/db/**
  • openmeter/ent/db/chargeusagebased_update.go is excluded by !**/ent/db/**
  • openmeter/ent/db/entmixinaccessor.go is excluded by !**/ent/db/**
  • openmeter/ent/db/migrate/schema.go is excluded by !**/ent/db/**
  • openmeter/ent/db/mutation.go is excluded by !**/ent/db/**
  • openmeter/ent/db/runtime.go is excluded by !**/ent/db/**
  • openmeter/ent/db/setorclear.go is excluded by !**/ent/db/**
  • tools/migrate/migrations/atlas.sum is excluded by !**/*.sum, !**/*.sum
📒 Files selected for processing (17)
  • api/v3/handlers/customers/charges/convert.go
  • openmeter/billing/charges/flatfee/adapter/charge.go
  • openmeter/billing/charges/flatfee/adapter/intentoverride_test.go
  • openmeter/billing/charges/flatfee/adapter/mapper.go
  • openmeter/billing/charges/flatfee/charge.go
  • openmeter/billing/charges/models/intentoverride/flatfee.go
  • openmeter/billing/charges/models/intentoverride/mixin.go
  • openmeter/billing/charges/models/intentoverride/usagebased.go
  • openmeter/billing/charges/usagebased/adapter/charge.go
  • openmeter/billing/charges/usagebased/adapter/intentoverride_test.go
  • openmeter/billing/charges/usagebased/adapter/mapper.go
  • openmeter/billing/charges/usagebased/charge.go
  • openmeter/ent/schema/chargesflatfee.go
  • openmeter/ent/schema/chargesusagebased.go
  • pkg/framework/entutils/entmixinaccessor/mixinaccessor.tpl
  • tools/migrate/migrations/20260618144808_add_charge_intent_overrides.down.sql
  • tools/migrate/migrations/20260618144808_add_charge_intent_overrides.up.sql

@turip
turip force-pushed the feat/charges-override-support branch from 66bc10c to d2c2418 Compare June 18, 2026 15:19
@turip
turip enabled auto-merge (squash) June 18, 2026 15:22
@turip
turip merged commit cd53383 into main Jun 18, 2026
23 of 25 checks passed
@turip
turip deleted the feat/charges-override-support branch June 18, 2026 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/billing release-note/feature Release note: Exciting New Features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants