mirror of
https://github.com/bitwarden/server.git
synced 2026-06-01 01:55:55 -05:00
* feat(stripe): add checkout session constants and settings * feat(billing): integrate Stripe Checkout Session adapter * feat(billing): define premium checkout session DTOs * feat(billing): implement CreatePremiumCheckoutSessionCommand * feat(billing): add premium checkout session API endpoint * test(billing): add premium checkout session tests * fix(billing): run dotnet format * fix(billing): run dotnet format * refactor(billing): clarify Stripe session types in IStripeAdapter * refactor(billing): clarify Stripe session service and types in StripeAdapter * refactor(StripeAdapter): remove duplicate billing portal session method * style(premium): remove trailing comma from payment method types * refactor(billing): retrieve client version from context * refactor(premium): remove IUserService dependency from checkout command * refactor(premium): consolidate stripe customer creation logic * fix(billing) run dotnet format * feat(billing): add user ID to premium checkout session subscription * test(billing): verify user ID is set in premium checkout session metadata * test(billing): handle billing exception during stripe customer creation * [PM-32218] Create Session Complete Handler (#7283) * feat(billing): add checkout.session.completed webhook infrastructure * feat(billing): introduce StripeAdapter for Checkout Session retrieval * feat(billing): enable StripeEventService to retrieve Checkout Sessions * feat(billing): implement CheckoutSessionCompletedHandler * test(billing): add comprehensive tests for CheckoutSessionCompletedHandler and StripeEventService * fix(billing): run dotnet format * style: fix incorrect 'using' directive format * fix(billing): standardize logging levels for critical checkout session states * feat(billing): implement default payment method update on checkout session completion * refactor(billing): preload subscription with checkout session * refactor(billing): pass payment method ID to update method * test(billing): update mocks for direct subscription access * test(billing): update test names and expectations for payment method * fix(billing): run dotnet format * fix(billing): update order of operations * feat(billing): Prevent re-upgrading for existing premium users * refactor(billing): Augment UpdateDefaultPaymentMethodAsync with subscription ID * feat(billing): Reset Stripe subscription default payment method