mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 01:03: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");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user