Skip to content

Commit

Permalink
Add address-based and refactor AML confidence settings (#1697)
Browse files Browse the repository at this point in the history
* Add address-based AML confidence settings

* Update description phrasing

* Update phrasing and key

* Change structure

* Restructure entire schema

* Simplify address matching

* Update descriptions

* FIx descriptions

* Fix new lint rule

---------

Co-authored-by: Alexander Shkarpetin <[email protected]>
  • Loading branch information
mikerebilly and ashkarpetin authored Dec 13, 2023
1 parent 7b1a39c commit 4484c8b
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 82 deletions.
32 changes: 32 additions & 0 deletions openapi/components/schemas/AmlCompoundConfidence.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
type: object
properties:
addressMatch:
type: object
description: Match for the customer's city or region, or both, is found.
properties:
matchingCountry:
$ref: ./AmlConfidence.yaml
mismatchingCountry:
$ref: ./AmlConfidence.yaml
noCountry:
$ref: ./AmlConfidence.yaml
addressMismatch:
type: object
description: Match for the customer's city or region, or both, is not found.
properties:
matchingCountry:
$ref: ./AmlConfidence.yaml
mismatchingCountry:
$ref: ./AmlConfidence.yaml
noCountry:
$ref: ./AmlConfidence.yaml
noAddress:
type: object
description: No city and no region is available to match against.
properties:
matchingCountry:
$ref: ./AmlConfidence.yaml
mismatchingCountry:
$ref: ./AmlConfidence.yaml
noCountry:
$ref: ./AmlConfidence.yaml
117 changes: 35 additions & 82 deletions openapi/components/schemas/AmlSettings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,96 +5,49 @@ properties:
type: object
description: Confidence level settings for AML matches.
properties:
noDobExactMatch:
dob:
type: object
description: Exact match of the customer's name is found, but a date of birth is not.
description: Confidence level settings for AML matches based on date of birth.
properties:
matchingCountry:
$ref: ./AmlConfidence.yaml
mismatchingCountry:
$ref: ./AmlConfidence.yaml
noCountry:
$ref: ./AmlConfidence.yaml
noDobInexactMatch:
exactMatch:
description: Exact match of the customer's date of birth and name is found.
$ref: ./AmlCompoundConfidence.yaml
inexactMatch:
description: Exact match of the customer's date of birth and a fuzzy, or inexact, name match is found.
$ref: ./AmlCompoundConfidence.yaml
noDob:
type: object
description: Fuzzy, or inexact match of the customer's name is found, but a date of birth is not.
description: Confidence level settings for AML matches based on a missing date of birth.
properties:
matchingCountry:
$ref: ./AmlConfidence.yaml
mismatchingCountry:
$ref: ./AmlConfidence.yaml
noCountry:
$ref: ./AmlConfidence.yaml
noDobWeakMatch:
exactMatch:
description: Exact match of the customer's name is found, but a date of birth is not.
$ref: ./AmlCompoundConfidence.yaml
inexactMatch:
description: Fuzzy, or inexact match of the customer's name is found, but a date of birth is not.
$ref: ./AmlCompoundConfidence.yaml
weakMatch:
description: Weak match of the customer's name is found, but a date of birth is not.
$ref: ./AmlCompoundConfidence.yaml
yob:
type: object
description: Weak match of the customer's name is found, but a date of birth is not.
description: Confidence level settings for AML matches based on year of birth.
properties:
matchingCountry:
$ref: ./AmlConfidence.yaml
mismatchingCountry:
$ref: ./AmlConfidence.yaml
noCountry:
$ref: ./AmlConfidence.yaml
dobExactMatch:
exactMatch:
description: Exact match of the customer's year of birth and exact name is found.
$ref: ./AmlCompoundConfidence.yaml
inexactMatch:
description: Exact match of the customer's year of birth and a fuzzy, or inexact, name match is found.
$ref: ./AmlCompoundConfidence.yaml
inexactYob:
type: object
description: Exact match of the customer's date of birth and name is found.
description: Confidence level settings for AML matches based on a near match of year of birth.
properties:
matchingCountry:
$ref: ./AmlConfidence.yaml
mismatchingCountry:
$ref: ./AmlConfidence.yaml
noCountry:
$ref: ./AmlConfidence.yaml
dobInexactMatch:
type: object
description: Exact match of the customer's date of birth and a fuzzy, or inexact name match is found.
properties:
matchingCountry:
$ref: ./AmlConfidence.yaml
mismatchingCountry:
$ref: ./AmlConfidence.yaml
noCountry:
$ref: ./AmlConfidence.yaml
yobExactMatch:
type: object
description: Exact match of the customer's year of birth and exact name is found.
properties:
matchingCountry:
$ref: ./AmlConfidence.yaml
mismatchingCountry:
$ref: ./AmlConfidence.yaml
noCountry:
$ref: ./AmlConfidence.yaml
yobInexactMatch:
type: object
description: Exact match of the customer's year of birth and a fuzzy, or inexact name match is found.
properties:
matchingCountry:
$ref: ./AmlConfidence.yaml
mismatchingCountry:
$ref: ./AmlConfidence.yaml
noCountry:
$ref: ./AmlConfidence.yaml
inexactYobExactMatch:
type: object
description: Near match of the customer's year of birth and an exact name match is found.
properties:
matchingCountry:
$ref: ./AmlConfidence.yaml
mismatchingCountry:
$ref: ./AmlConfidence.yaml
noCountry:
$ref: ./AmlConfidence.yaml
inexactYobInexactMatch:
type: object
description: Near match of the customer's year of birth and a fuzzy, or inexact name match is found.
properties:
matchingCountry:
$ref: ./AmlConfidence.yaml
mismatchingCountry:
$ref: ./AmlConfidence.yaml
noCountry:
$ref: ./AmlConfidence.yaml
exactMatch:
description: Near match of the customer's year of birth and an exact name match is found.
$ref: ./AmlCompoundConfidence.yaml
inexactMatch:
description: Near match of the customer's year of birth and a fuzzy, or inexact, name match is found.
$ref: ./AmlCompoundConfidence.yaml
priority:
type: object
description: |-
Expand Down

0 comments on commit 4484c8b

Please sign in to comment.