From f630ee5f4e94f1c14db9877b4fcde0e29c9b10e8 Mon Sep 17 00:00:00 2001 From: Alex Morask <144709477+amorask-bitwarden@users.noreply.github.com> Date: Fri, 24 Jan 2025 13:38:44 -0500 Subject: [PATCH] [PM-11730] Remove feature flag: AC-2476-deprecate-stripe-sources-api (#13032) * Remove FF from trial-billing-step.component * Remove FF from user-subscription.component * Remove FF from individual-billing-routing.module * Remove FF from organization-billing.service * Remove FF from organization-subscription-cloud.component * Remove FF from organization-billing-routing.mdoule * Remove FF from organization-plans.component * Remove FF from change-plan-dialog.component * Remove FF * Remove legacy payment.component * Rename V2: adjust-payment-dialog.component * Rename V2: adjust-storage-dialog.component * Rename V2: payment-label.component * Rename V2: payment.component * Rename V2: premium.component * Patrick's feedback --- .../trial-initiation.module.ts | 3 +- .../trial-billing-step.component.html | 10 +- .../trial-billing-step.component.ts | 46 +- apps/web/src/app/billing/index.ts | 2 +- .../individual-billing-routing.module.ts | 18 +- .../individual/individual-billing.module.ts | 2 - .../premium/premium-v2.component.html | 149 ------ .../premium/premium-v2.component.ts | 228 --------- .../individual/premium/premium.component.html | 109 ++--- .../individual/premium/premium.component.ts | 258 +++++----- .../individual/user-subscription.component.ts | 50 +- .../change-plan-dialog.component.html | 13 +- .../change-plan-dialog.component.ts | 153 ++---- .../organization-billing-routing.module.ts | 27 +- .../organization-plans.component.html | 11 +- .../organization-plans.component.ts | 73 +-- ...ganization-subscription-cloud.component.ts | 56 +-- .../organization-payment-method.component.ts | 14 +- .../adjust-payment-dialog-v2.component.html | 29 -- .../adjust-payment-dialog-v2.component.ts | 179 ------- .../adjust-payment-dialog.component.html | 59 ++- .../adjust-payment-dialog.component.ts | 182 +++++--- .../adjust-storage-dialog-v2.component.html | 34 -- .../adjust-storage-dialog-v2.component.ts | 106 ----- .../adjust-storage-dialog.component.html | 23 +- .../adjust-storage-dialog.component.ts | 149 +++--- .../billing/shared/billing-shared.module.ts | 16 +- apps/web/src/app/billing/shared/index.ts | 1 - .../shared/payment-method.component.ts | 12 +- ...nent.html => payment-label.component.html} | 0 ...omponent.ts => payment-label.component.ts} | 6 +- .../shared/payment/payment-v2.component.html | 152 ------ .../shared/payment/payment-v2.component.ts | 205 -------- .../shared/payment/payment.component.html | 142 +++--- .../shared/payment/payment.component.ts | 439 +++++++----------- .../src/services/jslib-services.module.ts | 1 - .../organization-billing.service.ts | 5 +- .../services/organization-billing.service.ts | 22 +- libs/common/src/enums/feature-flag.enum.ts | 2 - 39 files changed, 784 insertions(+), 2202 deletions(-) delete mode 100644 apps/web/src/app/billing/individual/premium/premium-v2.component.html delete mode 100644 apps/web/src/app/billing/individual/premium/premium-v2.component.ts delete mode 100644 apps/web/src/app/billing/shared/adjust-payment-dialog/adjust-payment-dialog-v2.component.html delete mode 100644 apps/web/src/app/billing/shared/adjust-payment-dialog/adjust-payment-dialog-v2.component.ts delete mode 100644 apps/web/src/app/billing/shared/adjust-storage-dialog/adjust-storage-dialog-v2.component.html delete mode 100644 apps/web/src/app/billing/shared/adjust-storage-dialog/adjust-storage-dialog-v2.component.ts rename apps/web/src/app/billing/shared/payment/{payment-label-v2.component.html => payment-label.component.html} (100%) rename apps/web/src/app/billing/shared/payment/{payment-label-v2.component.ts => payment-label.component.ts} (89%) delete mode 100644 apps/web/src/app/billing/shared/payment/payment-v2.component.html delete mode 100644 apps/web/src/app/billing/shared/payment/payment-v2.component.ts diff --git a/apps/web/src/app/auth/trial-initiation/trial-initiation.module.ts b/apps/web/src/app/auth/trial-initiation/trial-initiation.module.ts index 464c00c4a3a..d49621222f6 100644 --- a/apps/web/src/app/auth/trial-initiation/trial-initiation.module.ts +++ b/apps/web/src/app/auth/trial-initiation/trial-initiation.module.ts @@ -10,7 +10,7 @@ import { RegisterFormModule } from "../../auth/register-form/register-form.modul import { SecretsManagerTrialFreeStepperComponent } from "../../auth/trial-initiation/secrets-manager/secrets-manager-trial-free-stepper.component"; import { SecretsManagerTrialPaidStepperComponent } from "../../auth/trial-initiation/secrets-manager/secrets-manager-trial-paid-stepper.component"; import { SecretsManagerTrialComponent } from "../../auth/trial-initiation/secrets-manager/secrets-manager-trial.component"; -import { PaymentComponent, TaxInfoComponent } from "../../billing"; +import { TaxInfoComponent } from "../../billing"; import { TrialBillingStepComponent } from "../../billing/accounts/trial-initiation/trial-billing-step.component"; import { EnvironmentSelectorModule } from "../../components/environment-selector/environment-selector.module"; import { SharedModule } from "../../shared"; @@ -51,7 +51,6 @@ import { VerticalStepperModule } from "./vertical-stepper/vertical-stepper.modul RegisterFormModule, OrganizationCreateModule, EnvironmentSelectorModule, - PaymentComponent, TaxInfoComponent, TrialBillingStepComponent, InputPasswordComponent, diff --git a/apps/web/src/app/billing/accounts/trial-initiation/trial-billing-step.component.html b/apps/web/src/app/billing/accounts/trial-initiation/trial-billing-step.component.html index 2f983944b70..5bcde6a697a 100644 --- a/apps/web/src/app/billing/accounts/trial-initiation/trial-billing-step.component.html +++ b/apps/web/src/app/billing/accounts/trial-initiation/trial-billing-step.component.html @@ -49,15 +49,7 @@
{{ "premiumUpgradeUnlockFeatures" | i18n }}
-- {{ - "premiumPriceWithFamilyPlan" | i18n: (premiumPrice | currency: "$") : familyPlanMaxUserCount - }} - - {{ "bitwardenFamiliesPlan" | i18n }} - -
- - {{ "purchasePremium" | i18n }} - -{{ "uploadLicenseFilePremium" | i18n }}
- -+
{{ "premiumPriceWithFamilyPlan" | i18n: (premiumPrice | currency: "$") : familyPlanMaxUserCount }} @@ -49,49 +49,58 @@
{{ "uploadLicenseFilePremium" | i18n }}
- +{{ "uploadLicenseFilePremium" | i18n }}
+ +