mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 06:33:55 +01:00
Merge pull request #27800 from overleaf/ls-support-create-stripe-customer-from-admin-panel
Support creating Stripe customer from admin panel GitOrigin-RevId: 3e23008e1f4690e6f3737b5689e20958bf468f82
This commit is contained in:
@@ -17,6 +17,7 @@ export type AdminCapability =
|
||||
| 'view-script-log'
|
||||
| 'view-split-test'
|
||||
| 'view-user-additional-info'
|
||||
| 'create-stripe-account'
|
||||
|
||||
export type AdminRole =
|
||||
| 'engagement'
|
||||
|
||||
@@ -107,11 +107,15 @@ export type MemberGroupSubscription = Omit<GroupSubscription, 'admin_id'> & {
|
||||
admin_id: User
|
||||
}
|
||||
|
||||
type PaymentProviderService = 'stripe-us' | 'stripe-uk' | 'recurly'
|
||||
export type StripePaymentProviderService = Exclude<
|
||||
PaymentProviderService,
|
||||
'recurly'
|
||||
>
|
||||
const STRIPE_PAYMENT_PROVIDER_SERVICES = ['stripe-uk', 'stripe-us'] as const
|
||||
const PAYMENT_PROVIDER_SERVICES = [
|
||||
...STRIPE_PAYMENT_PROVIDER_SERVICES,
|
||||
'recurly',
|
||||
] as const
|
||||
|
||||
export type PaymentProviderService = (typeof PAYMENT_PROVIDER_SERVICES)[number]
|
||||
export type StripePaymentProviderService =
|
||||
(typeof STRIPE_PAYMENT_PROVIDER_SERVICES)[number]
|
||||
|
||||
export type PaymentProvider = {
|
||||
service: PaymentProviderService
|
||||
|
||||
Reference in New Issue
Block a user