Skip to content

AmeriaClientParams

Defined in: src/client.ts:74

Options for AmeriaClient.

clientId: string

Defined in: src/client.ts:76

Client ID issued by Ameriabank.


username: string

Defined in: src/client.ts:77


password: string

Defined in: src/client.ts:78


optional isTest?: boolean

Defined in: src/client.ts:80

Use the bank’s test environment (servicestest.ameriabank.am).


optional timeoutMs?: number

Defined in: src/client.ts:82

Abort a request to the bank after this many milliseconds. Default 30000.


optional fetch?: (input, init?) => Promise<Response>

Defined in: src/client.ts:87

fetch implementation to use, e.g. one that goes through a proxy. Defaults to the global fetch.

string | URL | Request

RequestInit

Promise<Response>