Skip to content

Commit b5a601c

Browse files
remove dead code for billing and stripe
1 parent 9bec84e commit b5a601c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+12
-793
lines changed

src/api/billing/getBillingByRunIdApi.spec.ts

Lines changed: 0 additions & 27 deletions
This file was deleted.

src/api/billing/getBillingByRunIdApi.ts

Lines changed: 0 additions & 21 deletions
This file was deleted.

src/api/billing/getOrganizationBillingApi.ts

Lines changed: 0 additions & 17 deletions
This file was deleted.

src/api/billing/getPaymentMethodApi.ts

Lines changed: 0 additions & 17 deletions
This file was deleted.

src/api/billing/getStripePortalUrlApi.ts

Lines changed: 0 additions & 17 deletions
This file was deleted.

src/api/billing/getSubscriptionApi.ts

Lines changed: 0 additions & 17 deletions
This file was deleted.

src/api/billing/retryInvoiceApi.ts

Lines changed: 0 additions & 21 deletions
This file was deleted.

src/api/billing/updatePaymentMethodApi.ts

Lines changed: 0 additions & 19 deletions
This file was deleted.

src/api/billing/updateSubscriptionApi.ts

Lines changed: 0 additions & 19 deletions
This file was deleted.

src/api/endpoints.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -54,18 +54,4 @@ export const endpoints = {
5454
all: `/runs?unlisted=false&hydrated=true`,
5555
get: (runId: TId): string => `/runs/${runId}?unlisted=false&hydrated=true`,
5656
},
57-
billing: {
58-
my: '/billing/stripe/session',
59-
getOrganizationBilling: '/billing/organization',
60-
getPaymentMethod: '/billing/organization/get-payment-method',
61-
getSubscription: '/billing/stripe/get-subscription',
62-
updatePaymentMethod: (id: TId): string =>
63-
`/billing/stripe/update-payment-method?payment_method_id=${id}`,
64-
updateSubscription: (id: TId): string =>
65-
`/billing/stripe/update-subscription?plan_type=${id}`,
66-
get: (pipelineId: TId, runId: TId): string =>
67-
`/billing/${pipelineId}/runs/${runId}`,
68-
retryInvoice: (invoiceId: TId, paymentMethodId: TId): string =>
69-
`/billing/stripe/retry-invoice?invoice_id=${invoiceId}&payment_method_id=${paymentMethodId}`,
70-
},
7157
};

0 commit comments

Comments
 (0)