Skip to content

Commit f751771

Browse files
author
Andrew Farries
committed
Remove findStripeSubscriptionIdForTeam method
1 parent 1de442d commit f751771

File tree

4 files changed

+0
-10
lines changed

4 files changed

+0
-10
lines changed

components/gitpod-protocol/src/gitpod-service.ts

-1
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,6 @@ export interface GitpodServer extends JsonRpcServer<GitpodClient>, AdminServer,
285285
getStripePublishableKey(): Promise<string>;
286286
getStripeSetupIntentClientSecret(): Promise<string>;
287287
findStripeSubscriptionId(attributionId: string): Promise<string | undefined>;
288-
findStripeSubscriptionIdForTeam(teamId: string): Promise<string | undefined>;
289288
createOrUpdateStripeCustomerForTeam(teamId: string, currency: string): Promise<void>;
290289
createOrUpdateStripeCustomerForUser(currency: string): Promise<void>;
291290
subscribeToStripe(attributionId: string, setupIntentId: string): Promise<void>;

components/server/ee/src/workspace/gitpod-server-impl.ts

-5
Original file line numberDiff line numberDiff line change
@@ -2084,11 +2084,6 @@ export class GitpodServerEEImpl extends GitpodServerImpl {
20842084
}
20852085
}
20862086

2087-
async findStripeSubscriptionIdForTeam(ctx: TraceContext, teamId: string): Promise<string | undefined> {
2088-
const attributionId: AttributionId = { kind: "team", teamId: teamId };
2089-
return this.findStripeSubscriptionId(ctx, AttributionId.render(attributionId));
2090-
}
2091-
20922087
async createOrUpdateStripeCustomerForTeam(ctx: TraceContext, teamId: string, currency: string): Promise<void> {
20932088
const user = this.checkAndBlockUser("createOrUpdateStripeCustomerForTeam");
20942089
const team = await this.guardTeamOperation(teamId, "update");

components/server/src/auth/rate-limiter.ts

-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,6 @@ const defaultFunctions: FunctionsConfig = {
201201
getStripePublishableKey: { group: "default", points: 1 },
202202
getStripeSetupIntentClientSecret: { group: "default", points: 1 },
203203
findStripeSubscriptionId: { group: "default", points: 1 },
204-
findStripeSubscriptionIdForTeam: { group: "default", points: 1 },
205204
createOrUpdateStripeCustomerForTeam: { group: "default", points: 1 },
206205
createOrUpdateStripeCustomerForUser: { group: "default", points: 1 },
207206
subscribeToStripe: { group: "default", points: 1 },

components/server/src/workspace/gitpod-server-impl.ts

-3
Original file line numberDiff line numberDiff line change
@@ -3128,9 +3128,6 @@ export class GitpodServerImpl implements GitpodServerWithTracing, Disposable {
31283128
async findStripeSubscriptionId(ctx: TraceContext, attributionId: string): Promise<string | undefined> {
31293129
throw new ResponseError(ErrorCodes.SAAS_FEATURE, `Not implemented in this version`);
31303130
}
3131-
async findStripeSubscriptionIdForTeam(ctx: TraceContext, teamId: string): Promise<string | undefined> {
3132-
throw new ResponseError(ErrorCodes.SAAS_FEATURE, `Not implemented in this version`);
3133-
}
31343131
async createOrUpdateStripeCustomerForTeam(ctx: TraceContext, teamId: string, currency: string): Promise<void> {
31353132
throw new ResponseError(ErrorCodes.SAAS_FEATURE, `Not implemented in this version`);
31363133
}

0 commit comments

Comments
 (0)