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:
@@ -186,7 +186,7 @@ describe("PremiumOrgUpgradePaymentComponent", () => {
|
||||
tax: 5.0,
|
||||
total: 53.0,
|
||||
credit: 10.0,
|
||||
proratedAmountOfMonths: 1,
|
||||
newPlanProratedMonths: 1,
|
||||
});
|
||||
|
||||
mockSubscriptionPricingService.getBusinessSubscriptionPricingTiers$.mockReturnValue(
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user