mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 07:43:35 +00:00
usingInAppPurchase added to model
This commit is contained in:
@@ -8,6 +8,7 @@ export class SubscriptionResponse extends BaseResponse {
|
||||
upcomingInvoice: BillingSubscriptionUpcomingInvoiceResponse;
|
||||
license: any;
|
||||
expiration: string;
|
||||
usingInAppPurchase: boolean;
|
||||
|
||||
constructor(response: any) {
|
||||
super(response);
|
||||
@@ -16,6 +17,7 @@ export class SubscriptionResponse extends BaseResponse {
|
||||
this.maxStorageGb = this.getResponseProperty('MaxStorageGb');
|
||||
this.license = this.getResponseProperty('License');
|
||||
this.expiration = this.getResponseProperty('Expiration');
|
||||
this.usingInAppPurchase = this.getResponseProperty('UpcomingInvoice');
|
||||
const subscription = this.getResponseProperty('Subscription');
|
||||
const upcomingInvoice = this.getResponseProperty('UpcomingInvoice');
|
||||
this.subscription = subscription == null ? null : new BillingSubscriptionResponse(subscription);
|
||||
|
||||
Reference in New Issue
Block a user