mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 22:33:35 +00:00
[PM-14894] Remove old sales tax rates references (#12784)
This commit is contained in:
@@ -95,7 +95,6 @@ import { PaymentResponse } from "../billing/models/response/payment.response";
|
|||||||
import { PlanResponse } from "../billing/models/response/plan.response";
|
import { PlanResponse } from "../billing/models/response/plan.response";
|
||||||
import { SubscriptionResponse } from "../billing/models/response/subscription.response";
|
import { SubscriptionResponse } from "../billing/models/response/subscription.response";
|
||||||
import { TaxInfoResponse } from "../billing/models/response/tax-info.response";
|
import { TaxInfoResponse } from "../billing/models/response/tax-info.response";
|
||||||
import { TaxRateResponse } from "../billing/models/response/tax-rate.response";
|
|
||||||
import { DeleteRecoverRequest } from "../models/request/delete-recover.request";
|
import { DeleteRecoverRequest } from "../models/request/delete-recover.request";
|
||||||
import { EventRequest } from "../models/request/event.request";
|
import { EventRequest } from "../models/request/event.request";
|
||||||
import { KdfRequest } from "../models/request/kdf.request";
|
import { KdfRequest } from "../models/request/kdf.request";
|
||||||
@@ -376,7 +375,6 @@ export abstract class ApiService {
|
|||||||
): Promise<OrganizationConnectionResponse<TConfig>>;
|
): Promise<OrganizationConnectionResponse<TConfig>>;
|
||||||
deleteOrganizationConnection: (id: string) => Promise<void>;
|
deleteOrganizationConnection: (id: string) => Promise<void>;
|
||||||
getPlans: () => Promise<ListResponse<PlanResponse>>;
|
getPlans: () => Promise<ListResponse<PlanResponse>>;
|
||||||
getTaxRates: () => Promise<ListResponse<TaxRateResponse>>;
|
|
||||||
|
|
||||||
getProviderUsers: (providerId: string) => Promise<ListResponse<ProviderUserUserDetailsResponse>>;
|
getProviderUsers: (providerId: string) => Promise<ListResponse<ProviderUserUserDetailsResponse>>;
|
||||||
getProviderUser: (providerId: string, id: string) => Promise<ProviderUserResponse>;
|
getProviderUser: (providerId: string, id: string) => Promise<ProviderUserResponse>;
|
||||||
|
|||||||
@@ -1,18 +0,0 @@
|
|||||||
import { BaseResponse } from "../../../models/response/base.response";
|
|
||||||
|
|
||||||
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");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -103,7 +103,6 @@ import { PaymentResponse } from "../billing/models/response/payment.response";
|
|||||||
import { PlanResponse } from "../billing/models/response/plan.response";
|
import { PlanResponse } from "../billing/models/response/plan.response";
|
||||||
import { SubscriptionResponse } from "../billing/models/response/subscription.response";
|
import { SubscriptionResponse } from "../billing/models/response/subscription.response";
|
||||||
import { TaxInfoResponse } from "../billing/models/response/tax-info.response";
|
import { TaxInfoResponse } from "../billing/models/response/tax-info.response";
|
||||||
import { TaxRateResponse } from "../billing/models/response/tax-rate.response";
|
|
||||||
import { DeviceType } from "../enums";
|
import { DeviceType } from "../enums";
|
||||||
import { VaultTimeoutAction } from "../enums/vault-timeout-action.enum";
|
import { VaultTimeoutAction } from "../enums/vault-timeout-action.enum";
|
||||||
import { CollectionBulkDeleteRequest } from "../models/request/collection-bulk-delete.request";
|
import { CollectionBulkDeleteRequest } from "../models/request/collection-bulk-delete.request";
|
||||||
@@ -897,11 +896,6 @@ export class ApiService implements ApiServiceAbstraction {
|
|||||||
return new ListResponse(r, PlanResponse);
|
return new ListResponse(r, PlanResponse);
|
||||||
}
|
}
|
||||||
|
|
||||||
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
|
// Settings APIs
|
||||||
|
|
||||||
async getSettingsDomains(): Promise<DomainsResponse> {
|
async getSettingsDomains(): Promise<DomainsResponse> {
|
||||||
|
|||||||
Reference in New Issue
Block a user