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:
@@ -6,4 +6,6 @@ export class OrganizationUpgradeRequest {
|
||||
additionalSeats: number;
|
||||
additionalStorageGb: number;
|
||||
premiumAccessAddon: boolean;
|
||||
billingAddressCountry: string;
|
||||
billingAddressPostalCode: string;
|
||||
}
|
||||
|
||||
18
src/models/response/taxRateResponse.ts
Normal file
18
src/models/response/taxRateResponse.ts
Normal 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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user