Merge pull request #23415 from overleaf/ii-flexible-group-licensing-manually-collected

[web] Manually collected subscriptions with flexible licensing

GitOrigin-RevId: ca7cf2abf5cfa1d873614bf3407fb5a259a78a76
This commit is contained in:
Liangjun Song
2025-02-07 09:05:28 +00:00
committed by Copybot
parent d66c11e786
commit 8421bcc5d2
17 changed files with 263 additions and 45 deletions
@@ -261,7 +261,8 @@ function subscriptionFromApi(apiSubscription) {
apiSubscription.currency == null ||
apiSubscription.currentPeriodStartedAt == null ||
apiSubscription.currentPeriodEndsAt == null ||
apiSubscription.createdAt == null
apiSubscription.createdAt == null ||
apiSubscription.collectionMethod == null
) {
throw new OError('Invalid Recurly subscription', {
subscription: apiSubscription,
@@ -283,6 +284,7 @@ function subscriptionFromApi(apiSubscription) {
periodStart: apiSubscription.currentPeriodStartedAt,
periodEnd: apiSubscription.currentPeriodEndsAt,
createdAt: apiSubscription.createdAt,
collectionMethod: apiSubscription.collectionMethod,
})
if (apiSubscription.pendingChange != null) {