mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 09:13:33 +00:00
24 lines
782 B
TypeScript
24 lines
782 B
TypeScript
import { TaxInformation } from "@bitwarden/common/billing/models/domain/tax-information";
|
|
|
|
import { TaxInfoUpdateRequest } from "./tax-info-update.request";
|
|
|
|
export class ExpandedTaxInfoUpdateRequest extends TaxInfoUpdateRequest {
|
|
taxId: string;
|
|
line1: string;
|
|
line2: string;
|
|
city: string;
|
|
state: string;
|
|
|
|
static From(taxInformation: TaxInformation): ExpandedTaxInfoUpdateRequest {
|
|
const request = new ExpandedTaxInfoUpdateRequest();
|
|
request.country = taxInformation.country;
|
|
request.postalCode = taxInformation.postalCode;
|
|
request.taxId = taxInformation.taxId;
|
|
request.line1 = taxInformation.line1;
|
|
request.line2 = taxInformation.line2;
|
|
request.city = taxInformation.city;
|
|
request.state = taxInformation.state;
|
|
return request;
|
|
}
|
|
}
|