mirror of
https://github.com/bitwarden/browser
synced 2026-01-06 10:33:57 +00:00
Implemented tax collection for subscriptions (#215)
This commit is contained in:
@@ -104,6 +104,7 @@ import { SendResponse } from '../models/response/sendResponse';
|
||||
import { SubscriptionResponse } from '../models/response/subscriptionResponse';
|
||||
import { SyncResponse } from '../models/response/syncResponse';
|
||||
import { TaxInfoResponse } from '../models/response/taxInfoResponse';
|
||||
import { TaxRateResponse } from '../models/response/taxRateResponse';
|
||||
import { TwoFactorAuthenticatorResponse } from '../models/response/twoFactorAuthenticatorResponse';
|
||||
import { TwoFactorDuoResponse } from '../models/response/twoFactorDuoResponse';
|
||||
import { TwoFactorEmailResponse } from '../models/response/twoFactorEmailResponse';
|
||||
@@ -760,6 +761,11 @@ export class ApiService implements ApiServiceAbstraction {
|
||||
return this.send('POST', '/organizations/' + organizationId + '/import', request, true, false);
|
||||
}
|
||||
|
||||
async getTaxRates(): Promise<ListResponse<TaxRateResponse>> {
|
||||
const r = await this.send('GET', '/plans/sales-tax-rates/', null, true, true);
|
||||
return new ListResponse(r, TaxRateResponse);
|
||||
}
|
||||
|
||||
// Settings APIs
|
||||
|
||||
async getSettingsDomains(): Promise<DomainsResponse> {
|
||||
|
||||
Reference in New Issue
Block a user