1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-11 05:53:42 +00:00

Refactor(billing): Update InvoicePreview with prorated amount details

This commit is contained in:
Stephon Brown
2026-02-03 16:22:04 -05:00
parent d32b33da3e
commit 976e13e8eb
2 changed files with 5 additions and 3 deletions

View File

@@ -186,7 +186,7 @@ describe("PremiumOrgUpgradePaymentComponent", () => {
tax: 5.0,
total: 53.0,
credit: 10.0,
proratedAmountOfMonths: 1,
newPlanProratedMonths: 1,
});
mockSubscriptionPricingService.getBusinessSubscriptionPricingTiers$.mockReturnValue(

View File

@@ -35,7 +35,8 @@ export interface InvoicePreview {
tax: number;
total: number;
credit: number;
proratedAmountOfMonths: number;
newPlanProratedMonths: number;
newPlanProratedAmount?: number;
}
@Injectable()
@@ -60,7 +61,8 @@ export class PremiumOrgUpgradeService {
tax: invoicePreviewResponse.tax,
total: invoicePreviewResponse.total,
credit: invoicePreviewResponse.credit,
proratedAmountOfMonths: invoicePreviewResponse.proratedAmountOfMonths,
newPlanProratedMonths: invoicePreviewResponse.newPlanProratedMonths,
newPlanProratedAmount: invoicePreviewResponse.newPlanProratedAmount,
};
}