mirror of
https://github.com/bitwarden/browser
synced 2026-02-12 14:34:02 +00:00
fix(billing): Update account billing client and remove redundant status
This commit is contained in:
@@ -4,6 +4,7 @@ import { ApiService } from "@bitwarden/common/abstractions/api.service";
|
||||
import { ProductTierType } from "@bitwarden/common/billing/enums";
|
||||
import { BitwardenSubscriptionResponse } from "@bitwarden/common/billing/models/response/bitwarden-subscription.response";
|
||||
import { SubscriptionCadence } from "@bitwarden/common/billing/types/subscription-pricing-tier";
|
||||
import { EncString } from "@bitwarden/common/key-management/crypto/models/enc-string";
|
||||
import { BitwardenSubscription } from "@bitwarden/subscription";
|
||||
|
||||
import {
|
||||
@@ -58,7 +59,7 @@ export class AccountBillingClient {
|
||||
|
||||
upgradePremiumToOrganization = async (
|
||||
organizationName: string,
|
||||
organizationKey: string,
|
||||
organizationKey: EncString,
|
||||
planTier: ProductTierType,
|
||||
cadence: SubscriptionCadence,
|
||||
billingAddress: Pick<BillingAddress, "country" | "postalCode">,
|
||||
|
||||
@@ -59,11 +59,7 @@ import {
|
||||
UpgradePaymentService,
|
||||
} from "./services/upgrade-payment.service";
|
||||
|
||||
/**
|
||||
* Status types for upgrade payment dialog
|
||||
*/
|
||||
export const UpgradePaymentStatus = {
|
||||
Back: "back",
|
||||
Closed: "closed",
|
||||
UpgradedToPremium: "upgradedToPremium",
|
||||
UpgradedToFamilies: "upgradedToFamilies",
|
||||
|
||||
Reference in New Issue
Block a user