mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 09:13:33 +00:00
standardize date types
This commit is contained in:
@@ -9,7 +9,7 @@ export class BillingResponse {
|
||||
upcomingInvoice: BillingInvoiceResponse;
|
||||
charges: BillingChargeResponse[] = [];
|
||||
license: any;
|
||||
expiration: Date;
|
||||
expiration: string;
|
||||
|
||||
constructor(response: any) {
|
||||
this.storageName = response.StorageName;
|
||||
@@ -43,11 +43,11 @@ export class BillingSourceResponse {
|
||||
}
|
||||
|
||||
export class BillingSubscriptionResponse {
|
||||
trialStartDate: Date;
|
||||
trialEndDate: Date;
|
||||
periodStartDate: Date;
|
||||
periodEndDate: Date;
|
||||
cancelledDate: Date;
|
||||
trialStartDate: string;
|
||||
trialEndDate: string;
|
||||
periodStartDate: string;
|
||||
periodEndDate: string;
|
||||
cancelledDate: string;
|
||||
cancelAtEndDate: boolean;
|
||||
status: string;
|
||||
cancelled: boolean;
|
||||
@@ -83,7 +83,7 @@ export class BillingSubscriptionItemResponse {
|
||||
}
|
||||
|
||||
export class BillingInvoiceResponse {
|
||||
date: Date;
|
||||
date: string;
|
||||
amount: number;
|
||||
|
||||
constructor(response: any) {
|
||||
@@ -93,7 +93,7 @@ export class BillingInvoiceResponse {
|
||||
}
|
||||
|
||||
export class BillingChargeResponse {
|
||||
createdDate: Date;
|
||||
createdDate: string;
|
||||
amount: number;
|
||||
paymentSource: BillingSourceResponse;
|
||||
status: string;
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
export class BreachAccountResponse {
|
||||
addedDate: Date;
|
||||
breachDate: Date;
|
||||
addedDate: string;
|
||||
breachDate: string;
|
||||
dataClasses: string[];
|
||||
description: string;
|
||||
domain: string;
|
||||
isActive: boolean;
|
||||
isVerified: boolean;
|
||||
logoType: string;
|
||||
modifiedDate: Date;
|
||||
modifiedDate: string;
|
||||
name: string;
|
||||
pwnCount: number;
|
||||
title: string;
|
||||
|
||||
@@ -10,7 +10,7 @@ export class EventResponse {
|
||||
groupId: string;
|
||||
organizationUserId: string;
|
||||
actingUserId: string;
|
||||
date: Date;
|
||||
date: string;
|
||||
deviceType: DeviceType;
|
||||
ipAddress: string;
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ export class OrganizationBillingResponse extends OrganizationResponse {
|
||||
subscription: BillingSubscriptionResponse;
|
||||
upcomingInvoice: BillingInvoiceResponse;
|
||||
charges: BillingChargeResponse[] = [];
|
||||
expiration: Date;
|
||||
expiration: string;
|
||||
|
||||
constructor(response: any) {
|
||||
super(response);
|
||||
@@ -27,6 +27,6 @@ export class OrganizationBillingResponse extends OrganizationResponse {
|
||||
if (response.Charges != null) {
|
||||
this.charges = response.Charges.map((c: any) => new BillingChargeResponse(c));
|
||||
}
|
||||
this.expiration = response.Expiration != null ? new Date(response.Expiration) : null;
|
||||
this.expiration = response.Expiration;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user