This repository has been archived by the owner on Jun 17, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #115 from bitwarden/feature/tax-info-collection
Support tax collection info
- Loading branch information
Showing
6 changed files
with
72 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { TaxInfoUpdateRequest } from './taxInfoUpdateRequest'; | ||
|
||
export class OrganizationTaxInfoUpdateRequest extends TaxInfoUpdateRequest { | ||
taxId: string; | ||
line1: string; | ||
line2: string; | ||
city: string; | ||
state: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export class TaxInfoUpdateRequest { | ||
country: string; | ||
postalCode: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters