add billing threshold + specific trial free credits (#11533)

In this PR : 
- set billing thresholds after subscription creation (not possible
during billing checkout)
- add specific free trial workflow credit quantities + set them in
subscription item + check them when receiving stripe alert event

closes : https://github.com/twentyhq/core-team-issues/issues/682
This commit is contained in:
Etienne
2025-04-14 18:25:07 +02:00
committed by GitHub
parent 704b18af30
commit 9a69cd0b61
17 changed files with 218 additions and 21 deletions

View File

@ -5,7 +5,8 @@ export const GET_METERED_PRODUCTS_USAGE = gql`
getMeteredProductsUsage {
productKey
usageQuantity
includedFreeQuantity
freeTierQuantity
freeTrialQuantity
unitPriceCents
totalCostCents
}