/* generated using openapi-typescript-codegen -- do not edit */ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ import type { FlowTypeEnum } from './FlowTypeEnum'; import type { NullEnum } from './NullEnum'; export type StripeCustomerPortalRequest = { /** * URL to redirect to when the customer exits the portal (back button) */ return_url: string; /** * Subscription ID required for subscription_update or subscription_cancel flows */ subscription_id?: string; /** * Type of flow to present: 'payment_method_update' for adding/updating payment method, 'subscription_update' for updating subscription, 'subscription_cancel' for cancellation. If not provided, shows the default portal homepage. * * * `payment_method_update` - Payment Method Update * * `subscription_update` - Subscription Update * * `subscription_cancel` - Subscription Cancel */ flow_type?: (FlowTypeEnum | NullEnum) | null; /** * URL to redirect after the flow is completed successfully. Only used when flow_type is set. Defaults to return_url if not provided. */ after_completion_url?: string | null; };