Constructors
constructor
- new Client(accountID, licenseKey, timeout?, host?): Client
Parameters
- accountID: string
- licenseKey: string
- timeout: number = 3000
- host: string = 'minfraud.maxmind.com'
Properties
Private
accountID
accountID: string
Private
licenseKey
licenseKey: string
Private
timeout
timeout: number
Methods
factors
- factors(transaction): Promise<default>
Returns Promise<default>
Private
handleError
- handleError(data, response, url): WebServiceClientError
Parameters
- data: ResponseError
- response: IncomingMessage
- url: string
Returns WebServiceClientError
insights
- insights(transaction): Promise<default>
Returns Promise<default>
reportTransaction
- reportTransaction(report): Promise<void>
Returns Promise<void>
Private
responseFor
- responseFor<T>(path, postData, modelClass?): Promise<T>
Parameters
- path: servicePath
- postData: string
Optional
modelClass: any
Returns Promise<T>
score
- score(transaction): Promise<default>
Returns Promise<default>