File tree Expand file tree Collapse file tree 3 files changed +19
-5
lines changed
.werft/jobs/build/payment Expand file tree Collapse file tree 3 files changed +19
-5
lines changed Original file line number Diff line number Diff line change 9
9
"usageProductPriceIds": {
10
10
"EUR": "price_1LiId7GadRXm50o3OayAS2y4",
11
11
"USD": "price_1LiIdbGadRXm50o3ylg5S44r"
12
+ },
13
+ "individualUsagePriceIds": {
14
+ "EUR": "price_1LmFcFGadRXm50o3XUrEuajK",
15
+ "USD": "price_1LmFclGadRXm50o3mWTkir9g"
16
+ },
17
+ "teamUsagePriceIds": {
18
+ "EUR": "price_1LiId7GadRXm50o3OayAS2y4",
19
+ "USD": "price_1LiIdbGadRXm50o3ylg5S44r"
12
20
}
13
21
}
Original file line number Diff line number Diff line change @@ -817,8 +817,8 @@ export interface RepositoryCloneInformation {
817
817
818
818
export interface CoreDumpConfig {
819
819
enabled ?: boolean ;
820
- softLimit ?: number ;
821
- hardLimit ?: number ;
820
+ softLimit ?: number ;
821
+ hardLimit ?: number ;
822
822
}
823
823
824
824
export interface WorkspaceConfig {
@@ -1522,6 +1522,12 @@ export interface Terms {
1522
1522
readonly formElements ?: object ;
1523
1523
}
1524
1524
1525
+ export interface StripeConfig {
1526
+ usageProductPriceIds : { [ currency : string ] : string } ;
1527
+ individualUsagePriceIds ?: { [ currency : string ] : string } ;
1528
+ teamUsagePriceIds ?: { [ currency : string ] : string } ;
1529
+ }
1530
+
1525
1531
export type BillingStrategy = "other" | "stripe" ;
1526
1532
export interface CostCenter {
1527
1533
readonly id : AttributionId ;
Original file line number Diff line number Diff line change 7
7
import { GitpodHostUrl } from "@gitpod/gitpod-protocol/lib/util/gitpod-host-url" ;
8
8
import { AuthProviderParams , normalizeAuthProviderParams } from "./auth/auth-provider" ;
9
9
10
- import { NamedWorkspaceFeatureFlag } from "@gitpod/gitpod-protocol" ;
10
+ import { NamedWorkspaceFeatureFlag , StripeConfig } from "@gitpod/gitpod-protocol" ;
11
11
12
12
import { RateLimiterConfig } from "./auth/rate-limiter" ;
13
13
import { CodeSyncConfig } from "./code-sync/code-sync-service" ;
@@ -27,7 +27,7 @@ export type Config = Omit<
27
27
workspaceDefaults : WorkspaceDefaults ;
28
28
chargebeeProviderOptions ?: ChargebeeProviderOptions ;
29
29
stripeSecrets ?: { publishableKey : string ; secretKey : string } ;
30
- stripeConfig ?: { usageProductPriceIds : { [ currency : string ] : string } } ;
30
+ stripeConfig ?: StripeConfig ;
31
31
builtinAuthProvidersConfigured : boolean ;
32
32
inactivityPeriodForRepos ?: number ;
33
33
} ;
@@ -266,7 +266,7 @@ export namespace ConfigFile {
266
266
log . error ( "Could not load Stripe secrets" , error ) ;
267
267
}
268
268
}
269
- let stripeConfig : { usageProductPriceIds : { EUR : string ; USD : string } } | undefined ;
269
+ let stripeConfig : StripeConfig | undefined ;
270
270
if ( config . enablePayment && config . stripeConfigFile ) {
271
271
try {
272
272
stripeConfig = JSON . parse ( fs . readFileSync ( filePathTelepresenceAware ( config . stripeConfigFile ) , "utf-8" ) ) ;
You can’t perform that action at this time.
0 commit comments