mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 09:13:33 +00:00
Merge pull request #115 from bitwarden/feature/tax-info-collection
Support tax collection info
This commit is contained in:
24
src/models/response/taxInfoResponse.ts
Normal file
24
src/models/response/taxInfoResponse.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
import { BaseResponse } from './baseResponse';
|
||||
|
||||
export class TaxInfoResponse extends BaseResponse {
|
||||
taxId: string;
|
||||
taxIdType: string;
|
||||
line1: string;
|
||||
line2: string;
|
||||
city: string;
|
||||
state: string;
|
||||
country: string;
|
||||
postalCode: string;
|
||||
|
||||
constructor(response: any) {
|
||||
super(response);
|
||||
this.taxId = this.getResponseProperty('TaxIdNumber');
|
||||
this.taxIdType = this.getResponseProperty('TaxIdType');
|
||||
this.line1 = this.getResponseProperty('Line1');
|
||||
this.line2 = this.getResponseProperty('Line2');
|
||||
this.city = this.getResponseProperty('City');
|
||||
this.state = this.getResponseProperty('State');
|
||||
this.postalCode = this.getResponseProperty('PostalCode');
|
||||
this.country = this.getResponseProperty('Country');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user