feat(flobyte): enable multi-entity + per-entity from-email for resellers - #19
Merged
Merged
Conversation
The reseller/agency model creates one Lago billing entity per reseller, but a stock org is capped at 1 entity (MULTI_ENTITIES_MAX) and per-entity from-email is gated on an org premium flag. This adds an idempotent seed step that enables the required premium integrations on the org: - multi_entities_enterprise: unlimited billing entities (one per reseller) - from_email: per-entity branded from-address on agency invoices Non-destructive (only appends missing flags) and dry_run-aware. License.premium? is always-on in this fork, so these flags are the only remaining gate. Activates growth-os#1246 (agency billing entity provisioning). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Activates growth-os#1246. The reseller model creates one Lago billing entity per reseller, but a stock org is capped at 1 entity (
MULTI_ENTITIES_MAX). This adds an idempotent, non-destructive seed step (flobyte:seed) enabling the required premium integrations on the org:License.premium?is always-on in this fork, so these org flags are the only remaining gate. Only appends missing flags; dry_run-aware.Run
bin/rails 'flobyte:seed[<org_id>]'(or,dry_run) to apply. Part of ThinkfleetAI/growth-os#1243.