1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-22 19:23:52 +00:00

Revert "[PM-13999] Show estimated tax for taxable countries (#12145)" (#12244)

This reverts commit 1dce7f5ba0.
This commit is contained in:
Jonas Hendrickx
2024-12-04 15:40:57 +01:00
committed by GitHub
parent 864e6759fd
commit b25dc6300c
34 changed files with 1243 additions and 1093 deletions

View File

@@ -1,5 +0,0 @@
export type CountryListItem = {
name: string;
value: string;
disabled: boolean;
};

View File

@@ -1,3 +1,2 @@
export * from "./bank-account";
export * from "./country-list-item";
export * from "./tax-information";

View File

@@ -10,10 +10,6 @@ export class ExpandedTaxInfoUpdateRequest extends TaxInfoUpdateRequest {
state: string;
static From(taxInformation: TaxInformation): ExpandedTaxInfoUpdateRequest {
if (!taxInformation) {
return null;
}
const request = new ExpandedTaxInfoUpdateRequest();
request.country = taxInformation.country;
request.postalCode = taxInformation.postalCode;

View File

@@ -1,14 +0,0 @@
export class PreviewIndividualInvoiceRequest {
passwordManager: PasswordManager;
taxInformation: TaxInformation;
}
class PasswordManager {
additionalStorage: number;
}
class TaxInformation {
postalCode: string;
country: string;
taxId: string;
}

View File

@@ -1,25 +0,0 @@
import { PlanType } from "@bitwarden/common/billing/enums";
export class PreviewOrganizationInvoiceRequest {
organizationId?: string;
passwordManager: PasswordManager;
secretsManager?: SecretsManager;
taxInformation: TaxInformation;
}
class PasswordManager {
plan: PlanType;
seats: number;
additionalStorage: number;
}
class SecretsManager {
seats: number;
additionalMachineAccounts: number;
}
class TaxInformation {
postalCode: string;
country: string;
taxId: string;
}

View File

@@ -1,16 +0,0 @@
import { BaseResponse } from "@bitwarden/common/models/response/base.response";
export class PreviewInvoiceResponse extends BaseResponse {
effectiveTaxRate: number;
taxableBaseAmount: number;
taxAmount: number;
totalAmount: number;
constructor(response: any) {
super(response);
this.effectiveTaxRate = this.getResponseProperty("EffectiveTaxRate");
this.taxableBaseAmount = this.getResponseProperty("TaxableBaseAmount");
this.taxAmount = this.getResponseProperty("TaxAmount");
this.totalAmount = this.getResponseProperty("TotalAmount");
}
}

View File

@@ -1,28 +0,0 @@
import { BaseResponse } from "@bitwarden/common/models/response/base.response";
export class TaxIdTypesResponse extends BaseResponse {
taxIdTypes: TaxIdTypeResponse[] = [];
constructor(response: any) {
super(response);
const taxIdTypes = this.getResponseProperty("TaxIdTypes");
if (taxIdTypes && taxIdTypes.length) {
this.taxIdTypes = taxIdTypes.map((t: any) => new TaxIdTypeResponse(t));
}
}
}
export class TaxIdTypeResponse extends BaseResponse {
code: string;
country: string;
description: string;
example: string;
constructor(response: any) {
super(response);
this.code = this.getResponseProperty("Code");
this.country = this.getResponseProperty("Country");
this.description = this.getResponseProperty("Description");
this.example = this.getResponseProperty("Example");
}
}