1
0
mirror of https://github.com/bitwarden/web synced 2026-01-21 03:43:22 +00:00

billing page invoices and transactions

This commit is contained in:
Kyle Spearrin
2019-02-09 00:19:54 -05:00
parent 3432243acb
commit 0220f4519d
6 changed files with 147 additions and 33 deletions

View File

@@ -20,6 +20,7 @@ import { TokenService } from 'jslib/abstractions/token.service';
import { PaymentMethodType } from 'jslib/enums/paymentMethodType';
import { PlanType } from 'jslib/enums/planType';
import { TransactionType } from 'jslib/enums/transactionType';
@Component({
selector: 'app-org-billing',
@@ -37,6 +38,7 @@ export class OrganizationBillingComponent implements OnInit {
showUpdateLicense = false;
billing: OrganizationBillingResponse;
paymentMethodType = PaymentMethodType;
transactionType = TransactionType;
selfHosted = false;
verifyAmount1: number;
verifyAmount2: number;
@@ -227,12 +229,16 @@ export class OrganizationBillingComponent implements OnInit {
return this.billing != null ? this.billing.upcomingInvoice : null;
}
get paymentSource() {
return this.billing != null ? this.billing.paymentSource : null;
get invoices() {
return this.billing != null ? this.billing.invoices : null;
}
get charges() {
return this.billing != null ? this.billing.charges : null;
get transactions() {
return this.billing != null ? this.billing.transactions : null;
}
get paymentSource() {
return this.billing != null ? this.billing.paymentSource : null;
}
get storagePercentage() {