mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 07:43:35 +00:00
[AC-1759] Update subscription status section (#8578)
* Resolve subscription status confusion * Add feature flag
This commit is contained in:
@@ -36,6 +36,10 @@ export class BillingSubscriptionResponse extends BaseResponse {
|
||||
status: string;
|
||||
cancelled: boolean;
|
||||
items: BillingSubscriptionItemResponse[] = [];
|
||||
collectionMethod: string;
|
||||
suspensionDate?: string;
|
||||
unpaidPeriodEndDate?: string;
|
||||
gracePeriod?: number;
|
||||
|
||||
constructor(response: any) {
|
||||
super(response);
|
||||
@@ -51,6 +55,10 @@ export class BillingSubscriptionResponse extends BaseResponse {
|
||||
if (items != null) {
|
||||
this.items = items.map((i: any) => new BillingSubscriptionItemResponse(i));
|
||||
}
|
||||
this.collectionMethod = this.getResponseProperty("CollectionMethod");
|
||||
this.suspensionDate = this.getResponseProperty("SuspensionDate");
|
||||
this.unpaidPeriodEndDate = this.getResponseProperty("unpaidPeriodEndDate");
|
||||
this.gracePeriod = this.getResponseProperty("GracePeriod");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@ export enum FeatureFlag {
|
||||
FlexibleCollectionsMigration = "flexible-collections-migration",
|
||||
ShowPaymentMethodWarningBanners = "show-payment-method-warning-banners",
|
||||
EnableConsolidatedBilling = "enable-consolidated-billing",
|
||||
AC1795_UpdatedSubscriptionStatusSection = "AC-1795_updated-subscription-status-section",
|
||||
}
|
||||
|
||||
// Replace this with a type safe lookup of the feature flag values in PM-2282
|
||||
|
||||
Reference in New Issue
Block a user