-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e3ca1f5
commit c737728
Showing
6 changed files
with
141 additions
and
7 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
File renamed without changes.
File renamed without changes.
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,96 @@ | ||
openapi: 3.0.0 | ||
info: | ||
title: The Plaid API | ||
description: The Plaid REST API. Please see https://plaid.com/docs/api for more details. | ||
termsOfService: https://plaid.com/legal/ | ||
contact: | ||
name: Plaid Developer Team | ||
url: https://plaid.com | ||
version: 2020-09-14_1.474.3 | ||
servers: | ||
- url: https://production.plaid.com | ||
description: Production | ||
- url: https://development.plaid.com | ||
description: Development | ||
- url: https://sandbox.plaid.com | ||
description: Sandbox | ||
paths: | ||
/watchlist_screening/individual/create: | ||
post: | ||
tags: | ||
- plaid | ||
summary: Create a watchlist screening for a person | ||
description: Create a new Watchlist Screening to check your customer against watchlists defined in the associated Watchlist Program. If your associated program has ongoing screening enabled, this is the profile information that will be used to monitor your customer over time. | ||
externalDocs: | ||
url: https://plaid.com/docs/api/products/monitor/#watchlist_screeningindividualcreate | ||
operationId: watchlistScreeningIndividualCreate | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/WatchlistScreeningIndividualCreateRequest' | ||
required: true | ||
responses: | ||
'200': | ||
description: OK | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
examples: | ||
example-1: | ||
value: | ||
assignee: 54350110fedcbaf01234ffee | ||
audit_trail: | ||
dashboard_user_id: 54350110fedcbaf01234ffee | ||
source: dashboard | ||
timestamp: 2020-07-24T03:26:02Z | ||
client_user_id: your-db-id-3b24110 | ||
id: scr_52xR9LKo77r1Np | ||
request_id: saKrIBuEB9qJZng | ||
search_terms: | ||
country: US | ||
date_of_birth: 1990-05-29 | ||
document_number: C31195855 | ||
legal_name: Aleksey Potemkin | ||
version: 1 | ||
watchlist_program_id: prg_2eRPsDnL66rZ7H | ||
status: cleared | ||
x-plaid-business-unit-context: BUSINESS_UNIT_PLAID | ||
|
||
components: | ||
schemas: | ||
WatchlistScreeningIndividualCreateRequest: | ||
description: Request input for creating an individual watchlist screening | ||
type: object | ||
properties: | ||
search_terms: | ||
$ref: '#/components/schemas/WatchlistScreeningRequestSearchTerms' | ||
client_user_id: | ||
$ref: '#/components/schemas/ClientUserID' | ||
required: | ||
- search_terms | ||
ClientUserID: | ||
example: your-db-id-3b24110 | ||
title: ClientUserID | ||
description: A unique ID that identifies the end user in your system. This ID can also be used to associate user-specific data from other Plaid products. Financial Account Matching requires this field and the `/link/token/create` `client_user_id` to be consistent. Personally identifiable information, such as an email address or phone number, should not be used in the `client_user_id`. | ||
type: string | ||
minLength: 1 | ||
WatchlistScreeningRequestSearchTerms: | ||
description: Search inputs for creating a watchlist screening | ||
type: object | ||
properties: | ||
watchlist_program_id: | ||
type: string | ||
legal_name: | ||
type: string | ||
date_of_birth: | ||
type: string | ||
format: date | ||
document_number: | ||
type: string | ||
country: | ||
type: string | ||
required: | ||
- watchlist_program_id | ||
- legal_name |
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,19 @@ | ||
use plaid::PlaidClient; | ||
use plaid::model::*; | ||
#[tokio::main] | ||
async fn main() { | ||
let client = PlaidClient::from_env(); | ||
let search_terms = WatchlistScreeningRequestSearchTerms { | ||
country: Some("your country".to_owned()), | ||
date_of_birth: Some(chrono::Utc::now().date_naive()), | ||
document_number: Some("your document number".to_owned()), | ||
legal_name: "your legal name".to_owned(), | ||
watchlist_program_id: "your watchlist program id".to_owned(), | ||
}; | ||
let response = client | ||
.watchlist_screening_individual_create(search_terms) | ||
.client_user_id("your client user id") | ||
.await | ||
.unwrap(); | ||
println!("{:#?}", response); | ||
} |
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