1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 01:33:33 +00:00

Implemented tax collection for subscriptions (#215)

This commit is contained in:
Addison Beck
2020-12-04 12:05:31 -05:00
committed by GitHub
parent 93a3053f54
commit 0565d6f667
4 changed files with 28 additions and 0 deletions

View File

@@ -6,4 +6,6 @@ export class OrganizationUpgradeRequest {
additionalSeats: number;
additionalStorageGb: number;
premiumAccessAddon: boolean;
billingAddressCountry: string;
billingAddressPostalCode: string;
}

View File

@@ -0,0 +1,18 @@
import { BaseResponse } from './baseResponse';
export class TaxRateResponse extends BaseResponse {
id: string;
country: string;
state: string;
postalCode: string;
rate: number;
constructor(response: any) {
super(response);
this.id = this.getResponseProperty('Id');
this.country = this.getResponseProperty('Country');
this.state = this.getResponseProperty('State');
this.postalCode = this.getResponseProperty('PostalCode');
this.rate = this.getResponseProperty('Rate');
}
}