aml

package
v3.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	Country  string `json:"country"`
	Postcode string `json:"post_code"`
}

Address Address for Anti Money Laundering (AML) purposes

type Profile

type Profile struct {
	GivenNames string  `json:"given_names"`
	FamilyName string  `json:"family_name"`
	Address    Address `json:"address"`
	SSN        string  `json:"ssn"`
}

Profile User profile for Anti Money Laundering (AML) checks

type Result

type Result struct {
	OnFraudList bool `json:"on_fraud_list"`
	OnPEPList   bool `json:"on_pep_list"`
	OnWatchList bool `json:"on_watch_list"`
}

Result Result of Anti Money Laundering (AML) check for a particular user

func GetResult

func GetResult(response []byte) (Result, error)

GetResult Parses AML result from response

func PerformCheck

func PerformCheck(httpClient requests.HttpClient, profile Profile, clientSdkId, apiUrl string, key *rsa.PrivateKey) (result Result, err error)

PerformCheck performs an Anti Money Laundering Check (AML) for a particular user. Returns three boolean values: 'OnPEPList', 'OnWatchList' and 'OnFraudList'.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL