-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add company field to identity validation (#379)
* chore: add company field to identity validation * Update resources/identity_validation/attributes/identity_validation_recipient.yml Co-authored-by: BennyKitchell <[email protected]> Co-authored-by: Aditi Ramaswamy <[email protected]>
- Loading branch information
1 parent
db24113
commit dd84c85
Showing
12 changed files
with
243 additions
and
78 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
resources/identity_validation/attributes/identity_validation_company.yml
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,7 @@ | ||
type: string | ||
|
||
description: The name of the company or firm. | ||
|
||
nullable: true | ||
|
||
maxLength: 500 |
7 changes: 7 additions & 0 deletions
7
resources/identity_validation/attributes/identity_validation_recipient.yml
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,7 @@ | ||
type: string | ||
|
||
description: The name of the person whose identity is being validated. | ||
|
||
nullable: true | ||
|
||
maxLength: 500 |
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
63 changes: 63 additions & 0 deletions
63
resources/identity_validation/models/company_identity_validation.yml
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,63 @@ | ||
allOf: | ||
- anyOf: | ||
- title: Address with `recipient` | ||
- title: Addresss with `company` | ||
|
||
- type: object | ||
|
||
properties: | ||
id: | ||
$ref: "../attributes/identity_validation_id.yml" | ||
|
||
company: | ||
$ref: "../attributes/identity_validation_company.yml" | ||
|
||
primary_line: | ||
$ref: "../../../shared/attributes/address/primary_line_us.yml" | ||
|
||
secondary_line: | ||
$ref: "../../../shared/attributes/address/secondary_line.yml" | ||
|
||
urbanization: | ||
$ref: "../../../shared/attributes/address/urbanization.yml" | ||
|
||
last_line: | ||
type: string | ||
description: | | ||
Combination of the following applicable `components`: | ||
* City (`city`) | ||
* State (`state`) | ||
* ZIP code (`zip_code`) | ||
* ZIP+4 (`zip_code_plus_4`) | ||
score: | ||
type: number | ||
nullable: true | ||
format: float | ||
description: > | ||
A numerical score between 0 and 100 that represents the likelihood the provided | ||
name is associated with a physical address. | ||
default: null | ||
minimum: 0 | ||
maximum: 100 | ||
|
||
confidence: | ||
type: string | ||
enum: | ||
- high | ||
- medium | ||
- low | ||
- "" | ||
description: | | ||
Indicates the likelihood the recipient name and address match based on our custom internal calculation. Possible values are: | ||
- `high` — Has a Lob confidence score greater than 70. | ||
- `medium` — Has a Lob confidence score between 40 and 70. | ||
- `low` — Has a Lob confidence score less than 40. | ||
- `""` — No tracking data exists for this address. | ||
object: | ||
type: string | ||
description: Value is resource type. | ||
enum: | ||
- id_validation | ||
default: id_validation |
50 changes: 50 additions & 0 deletions
50
resources/identity_validation/models/company_multi_line_address.yml
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,50 @@ | ||
allOf: | ||
- anyOf: | ||
- title: Address with `city` and `state` | ||
required: | ||
- city | ||
- state | ||
- title: Address with `zip_code` | ||
required: | ||
- zip_code | ||
|
||
- type: object | ||
required: | ||
- company | ||
- primary_line | ||
|
||
properties: | ||
company: | ||
$ref: "../attributes/identity_validation_company.yml" | ||
|
||
primary_line: | ||
$ref: "../../../shared/attributes/address/primary_line_us.yml" | ||
|
||
secondary_line: | ||
$ref: "../../../shared/attributes/address/secondary_line.yml" | ||
|
||
urbanization: | ||
$ref: "../../../shared/attributes/address/urbanization.yml" | ||
|
||
city: | ||
allOf: | ||
- $ref: "../../../shared/attributes/address/city/city_no_description.yml" | ||
- type: string | ||
description: >- | ||
The name of the city. `city` and `state` are required if no `zip_code` is passed. | ||
state: | ||
type: string | ||
description: >- | ||
The <a href="https://en.wikipedia.org/wiki/ISO_3166-2:US" target="_blank">ISO 3166-2</a> two letter code or subdivision name for | ||
the state. `city` and `state` are required if no `zip_code` is passed. | ||
maxLength: 50 | ||
|
||
zip_code: | ||
allOf: | ||
- type: string | ||
description: >- | ||
Required if `city` and `state` are not passed in. | ||
If included, must be formatted as a US ZIP or ZIP+4 (e.g. `94107`, | ||
`941072282`, `94107-2282`). | ||
- $ref: "../../../shared/attributes/address/zip_code.yml" |
61 changes: 3 additions & 58 deletions
61
resources/identity_validation/models/identity_validation.yml
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 |
---|---|---|
@@ -1,58 +1,3 @@ | ||
type: object | ||
|
||
properties: | ||
id: | ||
$ref: "../attributes/identity_validation_id.yml" | ||
|
||
recipient: | ||
$ref: "../../../shared/attributes/address/recipient.yml" | ||
|
||
primary_line: | ||
$ref: "../../../shared/attributes/address/primary_line_us.yml" | ||
|
||
secondary_line: | ||
$ref: "../../../shared/attributes/address/secondary_line.yml" | ||
|
||
urbanization: | ||
$ref: "../../../shared/attributes/address/urbanization.yml" | ||
|
||
last_line: | ||
type: string | ||
description: | | ||
Combination of the following applicable `components`: | ||
* City (`city`) | ||
* State (`state`) | ||
* ZIP code (`zip_code`) | ||
* ZIP+4 (`zip_code_plus_4`) | ||
score: | ||
type: number | ||
nullable: true | ||
format: float | ||
description: > | ||
A numerical score between 0 and 100 that represents the likelihood the provided | ||
name is associated with a physical address. | ||
default: null | ||
minimum: 0 | ||
maximum: 100 | ||
|
||
confidence: | ||
type: string | ||
enum: | ||
- high | ||
- medium | ||
- low | ||
- "" | ||
description: | | ||
Indicates the likelihood the recipient name and address match based on our custom internal calculation. Possible values are: | ||
- `high` — Has a Lob confidence score greater than 70. | ||
- `medium` — Has a Lob confidence score between 40 and 70. | ||
- `low` — Has a Lob confidence score less than 40. | ||
- `""` — No tracking data exists for this address. | ||
object: | ||
type: string | ||
description: Value is resource type. | ||
enum: | ||
- id_validation | ||
default: id_validation | ||
oneOf: | ||
- $ref: "recipient_identity_validation.yml" | ||
- $ref: "company_identity_validation.yml" |
3 changes: 3 additions & 0 deletions
3
resources/identity_validation/models/identity_validation_writable.yml
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,3 @@ | ||
oneOf: | ||
- $ref: "recipient_multi_line_address.yml" | ||
- $ref: "company_multi_line_address.yml" |
63 changes: 63 additions & 0 deletions
63
resources/identity_validation/models/recipient_identity_validation.yml
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,63 @@ | ||
allOf: | ||
- anyOf: | ||
- title: Address with `recipient` | ||
- title: Addresss with `company` | ||
|
||
- type: object | ||
|
||
properties: | ||
id: | ||
$ref: "../attributes/identity_validation_id.yml" | ||
|
||
recipient: | ||
$ref: "../attributes/identity_validation_recipient.yml" | ||
|
||
primary_line: | ||
$ref: "../../../shared/attributes/address/primary_line_us.yml" | ||
|
||
secondary_line: | ||
$ref: "../../../shared/attributes/address/secondary_line.yml" | ||
|
||
urbanization: | ||
$ref: "../../../shared/attributes/address/urbanization.yml" | ||
|
||
last_line: | ||
type: string | ||
description: | | ||
Combination of the following applicable `components`: | ||
* City (`city`) | ||
* State (`state`) | ||
* ZIP code (`zip_code`) | ||
* ZIP+4 (`zip_code_plus_4`) | ||
score: | ||
type: number | ||
nullable: true | ||
format: float | ||
description: > | ||
A numerical score between 0 and 100 that represents the likelihood the provided | ||
name is associated with a physical address. | ||
default: null | ||
minimum: 0 | ||
maximum: 100 | ||
|
||
confidence: | ||
type: string | ||
enum: | ||
- high | ||
- medium | ||
- low | ||
- "" | ||
description: | | ||
Indicates the likelihood the recipient name and address match based on our custom internal calculation. Possible values are: | ||
- `high` — Has a Lob confidence score greater than 70. | ||
- `medium` — Has a Lob confidence score between 40 and 70. | ||
- `low` — Has a Lob confidence score less than 40. | ||
- `""` — No tracking data exists for this address. | ||
object: | ||
type: string | ||
description: Value is resource type. | ||
enum: | ||
- id_validation | ||
default: id_validation |
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