COMP order approval auto-provisions AccountSubscription and assigns license

Featurekamo-shared-library
Shipped
April 29, 2026 at 8:00 PM UTC
Author
Kamo
Commit
5bbd9ea

- SubscriptionOrder: add targetOrganization (nullable FK to orgs) - **************** add targetOrganizationId string - AccountRepository: add findByPrimaryMember_Id for account lookup by holder member - SubscriptionService: inject billing repos; provisionCompSubscription creates/upserts **************** SubscriptionMember, and ACTIVE AccountLicense for the target-org member; approveOrder calls it for COMP payment method; new activateCompOrder for retroactive provisioning of existing APPROVED COMP orders

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing